initial commit

This commit is contained in:
sreedev
2022-12-24 18:45:16 -05:00
commit 3b06c0851f
9 changed files with 838 additions and 0 deletions

16
src/cli.rs Normal file
View File

@@ -0,0 +1,16 @@
use std::path::PathBuf;
use clap::Parser;
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
pub struct App {
/// Filetypes to deduplicate (default = all)
#[arg(short, long)]
pub filetypes: Option<String>,
/// List duplcates without deleting (default = true)
#[arg(short, long)]
pub dry: bool,
/// Run Deduplicator on dir different from pwd
#[arg(long)]
pub dir: Option<PathBuf>
}