blob: 6bcf5b53922ff862579a818f5bff9467bfd325d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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);
}
}
|