This commit is contained in:
jamesk 2024-03-29 17:01:13 -04:00
parent acfe98210e
commit e3afbe42d7

View File

@ -9,19 +9,27 @@ pub struct Arguments {
#[derive(Subcommand, Clone, Debug)] #[derive(Subcommand, Clone, Debug)]
pub enum Commands { pub enum Commands {
/// Create a snapshot
Create { Create {
/// Directory to create snapshot from
#[arg(short, long)] #[arg(short, long)]
root_dir: String, root_dir: String,
/// Snapshot output/save location
#[arg(short, long)] #[arg(short, long)]
output_path: String, output_path: String,
}, },
/// Compare two snapshots
Compare { Compare {
/// left side of diff
#[arg(short, long)] #[arg(short, long)]
left: String, left: String,
/// right side of diff
#[arg(short, long)] #[arg(short, long)]
right: String, right: String,
/// OPTIONAL: specify which change type specifically to return
#[arg(short, long)] #[arg(short, long)]
selection: Option<String>, selection: Option<String>,
/// OPTIONAL: when using selection specify to return count only or not
#[arg(short)] #[arg(short)]
count_only: Option<bool>, count_only: Option<bool>,
}, },