mirror of
https://github.com/sreedevk/deduplicator.git
synced 2026-09-05 06:50:44 +00:00
v0.2.0
This commit is contained in:
23
src/main.rs
23
src/main.rs
@@ -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(¶ms::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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user