adjust change field name from output to details in rule file #337
This commit is contained in:
@@ -45,7 +45,7 @@ pub fn after_fact() {
|
||||
|
||||
let mut displayflag = false;
|
||||
let mut target: Box<dyn io::Write> =
|
||||
if let Some(csv_path) = configs::CONFIG.read().unwrap().args.value_of("output") {
|
||||
if let Some(csv_path) = configs::CONFIG.read().unwrap().args.value_of("details") {
|
||||
// ファイル出力する場合
|
||||
match File::create(csv_path) {
|
||||
Ok(file) => Box::new(BufWriter::new(file)),
|
||||
|
||||
@@ -187,7 +187,7 @@ impl Detection {
|
||||
.unwrap_or("-".to_owned())
|
||||
.to_string(),
|
||||
rule.yaml["title"].as_str().unwrap_or("").to_string(),
|
||||
rule.yaml["output"].as_str().unwrap_or("").to_string(),
|
||||
rule.yaml["details"].as_str().unwrap_or("").to_string(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user