This commit is contained in:
sreedev
2023-07-17 13:59:58 -04:00
parent 7bd88f1642
commit e3d48ec505
15 changed files with 871 additions and 771 deletions

View File

@@ -1,14 +1,23 @@
mod app;
mod file_manager;
mod output;
mod params;
mod fileinfo;
mod processor;
mod scanner;
mod filters;
mod params;
mod formatter;
mod interative;
use anyhow::Result;
use app::App;
use params::Params;
use scanner::Scanner;
use processor::Processor;
use clap::Parser;
use formatter::Formatter;
fn main() -> Result<()> {
App::init(&params::Params::parse())
let app_args = Params::parse();
let scan_results = Scanner::build(&app_args)?.scan()?;
let processor = Processor::new(scan_results);
let results = processor.sizewise()?.hashwise()?;
Formatter::print(results.files, &app_args)?;
Ok(())
}