pub enum Command {
Show 17 variants
New {
branch: String,
},
Parent {
branch: Option<String>,
},
Children {
branch: Option<String>,
},
Up,
Down {
branch: Option<String>,
},
List,
Status {
branch: Option<String>,
},
Adopt {
branch: String,
parent: String,
},
Detach {
branch: Option<String>,
},
Restack {
update_refs: bool,
no_update_refs: bool,
},
Continue,
Abort,
Provider,
Review {
branch: Option<String>,
},
Sync {
branch: Option<String>,
dry_run: bool,
},
Submit {
branch: Option<String>,
dry_run: bool,
stack: bool,
},
Cleanup {
branch: Option<String>,
dry_run: bool,
delete_branch: bool,
},
}Variants§
New
Create a new child branch from the current branch.
Parent
Print a branch’s stack parent.
Children
Print a branch’s stack children.
Up
Check out the current branch’s stack parent.
Down
Check out a stack child of the current branch.
List
Print the current stack.
Status
Print local and remote stack status for a branch.
Adopt
Attach an existing branch to a parent.
Detach
Remove stack parent metadata from a branch.
Restack
Rebase the current branch and descendants onto their stack parents.
Fields
Continue
Continue an interrupted restack after resolving conflicts.
Abort
Abort an interrupted restack.
Provider
Print detected review provider.
Review
Print the review request for a branch.
Sync
Sync local stack metadata from remote review requests.
Submit
Create or update a remote review request for a branch.
Fields
Cleanup
Clean up local metadata for merged review requests.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more