pub enum ThreadCommands {
Show 20 variants
Create {
name: String,
ephemeral: bool,
ttl_secs: Option<u32>,
},
Current,
Switch {
name: String,
print_cd_path: bool,
force: bool,
},
Cd {
name: String,
},
List(ThreadListArgs),
Show(ThreadShowArgs),
Captures(ThreadCapturesArgs),
Rename(ThreadRenameArgs),
Refresh(ThreadNameArgs),
Move(ThreadMoveArgs),
Absorb(ThreadAbsorbArgs),
Resolve(ThreadResolveArgs),
Promote(ThreadPromoteArgs),
Drop(ThreadDropArgs),
Approve(ThreadApproveArgs),
Approvals(ThreadApprovalsArgs),
RevokeApproval(ThreadRevokeApprovalArgs),
CheckMerge(ThreadCheckMergeArgs),
Cleanup(ThreadCleanupArgs),
Marker {
command: ThreadMarkerCommands,
},
}Variants§
Create
Create a thread ref at the current state.
Fields
Current
Print the name of the current thread (the thread the working
checkout is attached to). Read-only — no state change.
Useful in shell pipelines: cd "$(heddle thread cd "$(heddle thread current)")".
Switch
Switch the current checkout to an existing thread ref.
Fields
Cd
Print the on-disk path for a thread. Read-only — no state change,
no auto-capture. Pair with the shell hook (heddle shell init)
to land in the right directory:
eval “$(heddle thread cd X)”
Or use the shell function directly: heddle thread cd X becomes
cd <path> when the hook is installed.
List(ThreadListArgs)
List threads.
Show(ThreadShowArgs)
Show one thread with actor and workflow context.
Captures(ThreadCapturesArgs)
Show granular captures on a thread.
Rename(ThreadRenameArgs)
Rename a thread ref.
Refresh(ThreadNameArgs)
Refresh a thread onto its target thread.
Move(ThreadMoveArgs)
Move selected captured paths from one thread into another.
Absorb(ThreadAbsorbArgs)
Absorb a child thread into its parent or another thread.
Resolve(ThreadResolveArgs)
Guide a blocked or stale thread toward its next clean state.
Promote(ThreadPromoteArgs)
Materialize an existing thread ref at a chosen path.
Drop(ThreadDropArgs)
Drop a thread and mark it abandoned.
Approve(ThreadApproveArgs)
Record a merge approval for <source> -> <target>.
Approvals(ThreadApprovalsArgs)
List approvals recorded for <source> -> <target>.
RevokeApproval(ThreadRevokeApprovalArgs)
Revoke a previously recorded approval by id.
CheckMerge(ThreadCheckMergeArgs)
Check whether <source> -> <target> would merge under
the repo’s branch-protection policies. Read-only.
Cleanup(ThreadCleanupArgs)
Sweep merged or stale auto-created threads.
Marker
Manage named state markers under the thread namespace.
Fields
command: ThreadMarkerCommandsTrait Implementations§
Source§impl Clone for ThreadCommands
impl Clone for ThreadCommands
Source§fn clone(&self) -> ThreadCommands
fn clone(&self) -> ThreadCommands
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl FromArgMatches for ThreadCommands
impl FromArgMatches for ThreadCommands
Source§fn from_arg_matches(
__clap_arg_matches: &ArgMatches,
) -> Result<ThreadCommands, Error>
fn from_arg_matches( __clap_arg_matches: &ArgMatches, ) -> Result<ThreadCommands, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<ThreadCommands, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<ThreadCommands, 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 ThreadCommands
impl Subcommand for ThreadCommands
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 subcommand