.
This commit is contained in:
parent
acfe98210e
commit
e3afbe42d7
@ -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>,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user