pub enum Commands {
Show 14 variants
Feature {
action: WorktreeAction,
},
Bugfix {
action: WorktreeAction,
},
Hotfix {
action: WorktreeAction,
},
Spike {
action: SpikeAction,
},
Finish {
name: Option<String>,
force: bool,
keep_remote: bool,
},
Publish {
name: Option<String>,
remote: Option<String>,
},
List,
Run {
name: Option<String>,
command: Vec<String>,
},
Open {
name: Option<String>,
},
Cd {
name: Option<String>,
},
Tag {
version: Option<String>,
},
Init {
yes: bool,
},
ShellHook {
shell: String,
},
Completion {
shell: Shell,
},
}Variants§
Feature
Manage feature worktrees
Fields
§
action: WorktreeActionBugfix
Manage bugfix worktrees
Fields
§
action: WorktreeActionHotfix
Manage hotfix worktrees
Fields
§
action: WorktreeActionSpike
Manage spike worktrees
Fields
§
action: SpikeActionFinish
Complete a worktree, run tests, merge into main, and clean up
Fields
Publish
Publish a worktree branch to remote with upstream tracking
Fields
List
List all active worktree slots
Run
Run an arbitrary command inside a worktree with environment injected
Fields
Open
Open the worktree in configured editor ($EDITOR or code/cursor)
Cd
Print the worktree path (usable with cd $(git claw cd
Tag
Create an annotated SemVer release tag on main (auto-infers version and changelog from Conventional Commits if omitted)
Fields
Init
Initialize git-claw configuration for the current repository
ShellHook
Output shell integration script for auto-cd navigation
Completion
Generate shell auto-completion script
Trait Implementations§
impl Eq for Commands
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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.impl StructuralPartialEq for Commands
Source§impl Subcommand for Commands
impl Subcommand for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.