|
|
@ -24,9 +24,14 @@ pub enum Commands {
|
|
|
|
/// Set or save profiles
|
|
|
|
/// Set or save profiles
|
|
|
|
#[clap(subcommand)]
|
|
|
|
#[clap(subcommand)]
|
|
|
|
Profile(ProfileCommand),
|
|
|
|
Profile(ProfileCommand),
|
|
|
|
/// Set branch globally on workspace
|
|
|
|
/// Checkout specific repo reference (branch, commit etc.)
|
|
|
|
#[clap(subcommand)]
|
|
|
|
Checkout {
|
|
|
|
Branch(BranchCommand),
|
|
|
|
/// Reference name
|
|
|
|
|
|
|
|
reference: String,
|
|
|
|
|
|
|
|
/// Project list to apply checkout to, defaults to all
|
|
|
|
|
|
|
|
#[clap(short = 'p')]
|
|
|
|
|
|
|
|
projects: Option<Vec<String>>,
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Parser)]
|
|
|
|
#[derive(Debug, Parser)]
|
|
|
@ -40,15 +45,3 @@ pub enum ProfileCommand {
|
|
|
|
/// Lists all saved profiles
|
|
|
|
/// Lists all saved profiles
|
|
|
|
List,
|
|
|
|
List,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Parser)]
|
|
|
|
|
|
|
|
pub enum BranchCommand {
|
|
|
|
|
|
|
|
/// Switch all projects in workspace to given branch
|
|
|
|
|
|
|
|
#[clap(arg_required_else_help = true)]
|
|
|
|
|
|
|
|
Set {
|
|
|
|
|
|
|
|
branch: String,
|
|
|
|
|
|
|
|
/// Project list, do any operation only on projects in this list (*comma separated*)
|
|
|
|
|
|
|
|
#[clap(short = 'p')]
|
|
|
|
|
|
|
|
projects: Option<Vec<String>>,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|