pub enum StackAction {
Show 26 variants
Create {
name: String,
base: Option<String>,
description: Option<String>,
},
List {
verbose: bool,
active: bool,
format: Option<String>,
},
Switch {
name: String,
},
Deactivate {
force: bool,
},
Show {
verbose: bool,
mergeable: bool,
},
Push {
branch: Option<String>,
message: Option<String>,
commit: Option<String>,
since: Option<String>,
commits: Option<String>,
squash: Option<usize>,
squash_since: Option<String>,
auto_branch: bool,
allow_base_branch: bool,
dry_run: bool,
},
Pop {
keep_branch: bool,
},
Submit {
entry: Option<usize>,
title: Option<String>,
description: Option<String>,
range: Option<String>,
draft: bool,
open: bool,
},
Status {
name: Option<String>,
},
Prs {
state: Option<String>,
verbose: bool,
},
Check {
force: bool,
},
Sync {
force: bool,
cleanup: bool,
interactive: bool,
},
Rebase {
interactive: bool,
onto: Option<String>,
strategy: Option<RebaseStrategyArg>,
},
ContinueRebase,
AbortRebase,
RebaseStatus,
Delete {
name: String,
force: bool,
},
Validate {
name: Option<String>,
fix: Option<String>,
},
Land {
entry: Option<usize>,
force: bool,
dry_run: bool,
auto: bool,
wait_for_builds: bool,
strategy: Option<MergeStrategyArg>,
build_timeout: u64,
},
AutoLand {
force: bool,
dry_run: bool,
wait_for_builds: bool,
strategy: Option<MergeStrategyArg>,
build_timeout: u64,
},
ListPrs {
state: Option<String>,
verbose: bool,
},
ContinueLand,
AbortLand,
LandStatus,
Cleanup {
dry_run: bool,
force: bool,
include_stale: bool,
stale_days: u32,
cleanup_remote: bool,
include_non_stack: bool,
verbose: bool,
},
Repair,
}Variants§
Create
Create a new stack
Fields
List
List all stacks
Fields
Switch
Switch to a different stack
Deactivate
Deactivate the current stack (turn off stack mode)
Show
Show the current stack status
Fields
Push
Push current commit to the top of the stack
Fields
Pop
Pop the top commit from the stack
Submit
Submit a stack entry for review
Fields
Status
Check status of all pull requests in a stack
Prs
List all pull requests for the repository
Fields
Check
Check stack status with remote repository (read-only)
Sync
Sync stack with remote repository (pull + rebase + cleanup)
Fields
Rebase
Rebase stack on updated base branch
Fields
strategy: Option<RebaseStrategyArg>Rebase strategy to use
ContinueRebase
Continue an in-progress rebase after resolving conflicts
AbortRebase
Abort an in-progress rebase
RebaseStatus
Show rebase status and conflict resolution guidance
Delete
Delete a stack
Validate
Validate stack integrity and handle branch modifications
Checks that stack branches match their expected commit hashes. Detects when branches have been manually modified (extra commits added).
Available –fix modes:
• incorporate: Update stack entry to include extra commits
• split: Create new stack entry for extra commits
• reset: Remove extra commits (DESTRUCTIVE - loses work)
Without –fix, runs interactively asking for each modification.
Fields
Land
Land (merge) approved stack entries
Fields
strategy: Option<MergeStrategyArg>Merge strategy to use
AutoLand
Auto-land all ready PRs (shorthand for land –auto)
Fields
strategy: Option<MergeStrategyArg>Merge strategy to use
ListPrs
List pull requests from Bitbucket
Fields
ContinueLand
Continue an in-progress land operation after resolving conflicts
AbortLand
Abort an in-progress land operation
LandStatus
Show status of in-progress land operation
Cleanup
Clean up merged and stale branches
Fields
Repair
Repair data consistency issues in stack metadata
Trait Implementations§
Source§impl Debug for StackAction
impl Debug for StackAction
Source§impl FromArgMatches for StackAction
impl FromArgMatches for StackAction
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>
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>
ArgMatches to self.Source§impl Subcommand for StackAction
impl Subcommand for StackAction
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
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
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for StackAction
impl RefUnwindSafe for StackAction
impl Send for StackAction
impl Sync for StackAction
impl Unpin for StackAction
impl UnwindSafe for StackAction
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more