use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[command(
name = "deepwash",
version = env!("CARGO_PKG_VERSION"),
about = "Rust-based CLI cleaner"
)]
pub struct Cli {
#[command(subcommand)]
pub command: Option<Commands>,
}
#[derive(Subcommand)]
pub enum Commands {
Docker {
#[arg(short = 'i', long = "images")]
images: bool,
#[arg(short = 'v', long = "volumes")]
volumes: bool,
#[arg(short = 'f', long = "full")]
full: bool,
},
#[command(visible_alias = "c")]
Clean {
path: Option<PathBuf>,
#[arg(short = 'e', long)]
execute: bool,
#[arg(short = 'm', long = "min-size")]
min_size: Option<String>,
#[arg(short = 's', long)]
system: bool,
#[arg(short = 'n', long = "name")]
name: Vec<String>,
},
}