Merge branch 'main' into 654-enhancement-output-to-json
This commit is contained in:
@@ -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()),
|
||||
)),
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user