Commands

Enum Commands 

Source
pub enum Commands {
Show 27 variants Init { bitbucket_url: Option<String>, force: bool, }, Config { action: ConfigAction, }, Stacks { action: StackAction, }, Entry { action: EntryAction, }, Repo, Version, Doctor, Diagnose, Completions { action: CompletionsAction, }, Setup { force: bool, }, Tui, Hooks { action: HooksAction, }, Viz { action: VizAction, }, Cleanup { execute: bool, force: bool, }, Stack { 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, }, 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, }, Sync { action: Option<SyncAction>, force: bool, cleanup: bool, interactive: bool, }, Rebase { action: Option<RebaseAction>, interactive: bool, onto: Option<String>, strategy: Option<RebaseStrategyArg>, }, Switch { name: String, }, Conflicts { detailed: bool, auto_only: bool, manual_only: bool, files: Vec<String>, }, Deactivate { force: bool, }, Submit { entry: Option<usize>, title: Option<String>, description: Option<String>, range: Option<String>, draft: bool, open: bool, }, Validate { name: Option<String>, fix: Option<String>, }, CompletionHelper { action: CompletionHelperAction, },
}
Expand description

Commands available in the CLI

Variants§

§

Init

Initialize repository for Cascade

Fields

§bitbucket_url: Option<String>

Bitbucket Server URL

§force: bool

Force initialization even if already initialized

§

Config

Configuration management

Fields

§

Stacks

Stack management

Fields

§

Entry

Entry management and editing

Fields

§

Repo

Show repository overview and all stacks

§

Version

Show version information

§

Doctor

Check repository health and configuration

§

Diagnose

Diagnose git2 TLS/SSH support issues

§

Completions

Generate shell completions

Fields

§

Setup

Interactive setup wizard

Fields

§force: bool

Force reconfiguration if already initialized

§

Tui

Launch interactive TUI for stack management

§

Hooks

Git hooks management

Fields

§

Viz

Visualize stacks and dependencies

Fields

§action: VizAction
§

Cleanup

Clean up orphaned temporary branches

Fields

§execute: bool

Actually delete branches (default is dry-run)

§force: bool

Force deletion even if branches have unmerged commits

§

Stack

Show current stack details

Fields

§verbose: bool

Show detailed pull request information

§mergeable: bool

Show mergability status for all PRs

§

Push

Push current commit to the top of the stack (shortcut for ‘stack push’)

Fields

§branch: Option<String>

Branch name for this commit

§message: Option<String>

Commit message (if creating a new commit)

§commit: Option<String>

Use specific commit hash instead of HEAD

§since: Option<String>

Push commits since this reference (e.g., HEAD~3)

§commits: Option<String>

Push multiple specific commits (comma-separated)

§squash: Option<usize>

Squash last N commits into one before pushing

§squash_since: Option<String>

Squash all commits since this reference (e.g., HEAD~5)

§auto_branch: bool

Auto-create feature branch when pushing from base branch

§allow_base_branch: bool

Allow pushing commits from base branch (not recommended)

§dry_run: bool

Show what would be pushed without actually pushing

§

Pop

Pop the top commit from the stack (shortcut for ‘stack pop’)

Fields

§keep_branch: bool

Keep the branch (don’t delete it)

§

Land

Land (merge) approved stack entries (shortcut for ‘stack land’)

Fields

§entry: Option<usize>

Stack entry number to land (1-based index, optional)

§force: bool

Force land even with blocking issues (dangerous)

§dry_run: bool

Dry run - show what would be landed without doing it

§auto: bool

Use server-side validation (safer, checks approvals/builds)

§wait_for_builds: bool

Wait for builds to complete before merging

§strategy: Option<MergeStrategyArg>

Merge strategy to use

§build_timeout: u64

Maximum time to wait for builds (seconds)

§

Autoland

Auto-land all ready PRs (shortcut for ‘stack autoland’)

Fields

§force: bool

Force land even with blocking issues (dangerous)

§dry_run: bool

Dry run - show what would be landed without doing it

§wait_for_builds: bool

Wait for builds to complete before merging

§strategy: Option<MergeStrategyArg>

Merge strategy to use

§build_timeout: u64

Maximum time to wait for builds (seconds)

§

Sync

Sync operations (shortcut for ‘stack sync’)

Fields

§force: bool

Force sync even if there are conflicts

§cleanup: bool

Also cleanup merged branches after sync

§interactive: bool

Interactive mode for conflict resolution

§

Rebase

Rebase operations (shortcut for ‘stack rebase’)

Fields

§interactive: bool

Interactive rebase

§onto: Option<String>

Target base branch (defaults to stack’s base branch)

§strategy: Option<RebaseStrategyArg>

Rebase strategy to use

§

Switch

Switch to a different stack (shortcut for ‘stacks switch’)

Fields

§name: String

Name of the stack to switch to

§

Conflicts

Analyze conflicts in the repository

Fields

§detailed: bool

Show detailed information about each conflict

§auto_only: bool

Only show conflicts that can be auto-resolved

§manual_only: bool

Only show conflicts that require manual resolution

§files: Vec<String>

Analyze specific files (if not provided, analyzes all conflicted files)

§

Deactivate

Deactivate the current stack - turn off stack mode (shortcut for ‘stacks deactivate’)

Fields

§force: bool

Force deactivation without confirmation

§

Submit

Submit a stack entry for review (shortcut for ‘stacks submit’)

Fields

§entry: Option<usize>

Stack entry number (1-based, defaults to all unsubmitted)

§title: Option<String>

Pull request title

§description: Option<String>

Pull request description

§range: Option<String>

Submit range of entries (e.g., “1-3” or “2,4,6”)

§draft: bool

Create draft pull requests (default: true, use –no-draft to create ready PRs)

§open: bool

Open the PR(s) in your default browser after submission (default: true, use –no-open to disable)

§

Validate

Validate stack integrity and handle branch modifications (shortcut for ‘stacks validate’)

Fields

§name: Option<String>

Name of the stack (defaults to active stack)

§fix: Option<String>

Auto-fix mode: incorporate, split, or reset

§

CompletionHelper

Internal command for shell completion (hidden)

Trait Implementations§

Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,