Feature/#158 add rulefilepath column (#168)
* add level csv column * update * Feature/output detect count151 (#167) * add output process count of detects events #151 * add output process count of detects event when output stdio #151 * add format enter * update Co-authored-by: DustInDark <nextsasasa@gmail.com>
This commit is contained in:
+4
-2
@@ -9,7 +9,7 @@ use std::path::{Path, PathBuf};
|
||||
use yaml_rust::YamlLoader;
|
||||
|
||||
pub struct ParseYaml {
|
||||
pub files: Vec<yaml_rust::Yaml>,
|
||||
pub files: Vec<(String, yaml_rust::Yaml)>,
|
||||
}
|
||||
|
||||
impl ParseYaml {
|
||||
@@ -46,7 +46,9 @@ impl ParseYaml {
|
||||
if i["ignore"].as_bool().unwrap_or(false) {
|
||||
continue;
|
||||
}
|
||||
&self.files.push(i);
|
||||
&self
|
||||
.files
|
||||
.push((format!("{}", entry.path().display()), i));
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user