This commit is contained in:
kazuminn
2020-12-06 22:28:00 +09:00
parent 67da36c919
commit b9189f8e31
2 changed files with 1 additions and 6 deletions

View File

@@ -1,4 +1,3 @@
extern crate chrono;
extern crate csv; extern crate csv;
use std::path::PathBuf; use std::path::PathBuf;

View File

@@ -1,15 +1,13 @@
extern crate serde; extern crate serde;
#[macro_use]
extern crate serde_derive; extern crate serde_derive;
use quick_xml::de::DeError;
use std::{fs, path::PathBuf}; use std::{fs, path::PathBuf};
use yamato_event_analyzer::afterfact::after_fact; use yamato_event_analyzer::afterfact::after_fact;
use yamato_event_analyzer::detections::configs; use yamato_event_analyzer::detections::configs;
use yamato_event_analyzer::detections::detection; use yamato_event_analyzer::detections::detection;
use yamato_event_analyzer::omikuji::Omikuji; use yamato_event_analyzer::omikuji::Omikuji;
fn main() -> Result<(), DeError> { fn main() {
if let Some(filepath) = configs::singleton().args.value_of("filepath") { if let Some(filepath) = configs::singleton().args.value_of("filepath") {
detect_files(vec![PathBuf::from(filepath)]); detect_files(vec![PathBuf::from(filepath)]);
} else if let Some(directory) = configs::singleton().args.value_of("directory") { } else if let Some(directory) = configs::singleton().args.value_of("directory") {
@@ -18,8 +16,6 @@ fn main() -> Result<(), DeError> {
} }
after_fact(); after_fact();
Ok(())
} }
fn collect_evtxfiles(dirpath: &str) -> Vec<PathBuf> { fn collect_evtxfiles(dirpath: &str) -> Vec<PathBuf> {