Merge branch 'main' into 654-enhancement-output-to-json

This commit is contained in:
DastInDark
2022-08-21 01:03:37 +09:00
22 changed files with 440 additions and 210 deletions

View File

@@ -249,7 +249,7 @@ fn emit_csv<W: std::io::Write>(
&disp_wtr,
get_writable_color(_get_output_color(
&color_map,
LEVEL_ABBR
LEVEL_FULL
.get(&detect_info.level)
.unwrap_or(&String::default()),
)),

View File

@@ -213,6 +213,14 @@ impl App {
}
self.analysis_files(live_analysis_list.unwrap(), &time_filter);
} else if let Some(filepath) = &configs::CONFIG.read().unwrap().args.filepath {
if !filepath.exists() {
AlertMessage::alert(&format!(
" The file {} does not exist. Please specify a valid file path.",
filepath.as_os_str().to_str().unwrap()
))
.ok();
return;
}
if !TARGET_EXTENSIONS.contains(
filepath
.extension()