fast-clean 1.1.2

A tool for quickly clean the target dir
Documentation
use clap::Parser;
use fast_clean::{run, Cli};

fn main() {
    let args = Cli::parse();
    let ret = run(&args);
    match ret {
        Ok(arr) => {
            if args.is_test {
                if arr.is_empty() {
                    println!("没有匹配的文件");
                } else {
                    println!("以下文件/文件夹将被删除:");
                    for file in &arr {
                        println!("{:?}", file);
                    }
                }
            } else {
                println!("删除完成,共删除 {} 个文件。", arr.len());
            }
        }
        Err(e) => eprintln!("Error: {}", e),
    }
}