summaryrefslogblamecommitdiff
path: root/src/main.rs
blob: 6bcf5b53922ff862579a818f5bff9467bfd325d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                       
 

                 
                       

              

          
        

           


                                                                                           

                              
                                        

     
use std::path::PathBuf;

use clap::Parser;

use clean::handle_path;
use cli::Args;

mod cargo;
mod clean;
mod cli;

fn main() {
    let cli = Args::parse();

    let paths = std::fs::read_dir(cli.clone().dir.unwrap_or(PathBuf::from("./"))).unwrap();
    for path in paths {
        let p = path.unwrap();
        handle_path(&p.path(), 0, &cli);
    }
}