restored interactive mode

This commit is contained in:
sreedev
2023-07-17 14:34:42 -04:00
parent a40f251e30
commit 6be8596992
4 changed files with 177 additions and 95 deletions

View File

@@ -1,16 +1,16 @@
mod fileinfo;
mod formatter;
mod interactive;
mod params;
mod processor;
mod scanner;
mod params;
mod formatter;
mod interative;
use anyhow::Result;
use params::Params;
use scanner::Scanner;
use processor::Processor;
use clap::Parser;
use formatter::Formatter;
use params::Params;
use processor::Processor;
use scanner::Scanner;
fn main() -> Result<()> {
let app_args = Params::parse();
@@ -18,6 +18,10 @@ fn main() -> Result<()> {
let processor = Processor::new(scan_results);
let results = processor.sizewise()?.hashwise()?;
Formatter::print(results.files, &app_args)?;
match app_args.interactive {
false => { Formatter::print(results.files, &app_args)?; }
true => { interactive::init(results.files, &app_args)?; }
}
Ok(())
}