pub struct TryArgs {
pub name: Option<String>,
pub workspace: WorkspaceModeArg,
pub auto_merge: bool,
pub keep_on_success: bool,
pub command: Vec<String>,
}Expand description
Arguments for the try command — atomic-ephemeral-thread sugar.
Implements item 3.1 from the heddle 6→8 plan: spin up an ephemeral
thread, run <cmd> inside that thread’s checkout, capture on
success and drop on failure. The parent’s working tree is never
touched, regardless of whether the command succeeds or fails — the
ephemeral thread is a sandbox.
Fields§
§name: Option<String>Optional thread name. When omitted, defaults to
try-<short-hash> derived from the command and a timestamp.
workspace: WorkspaceModeArgWorkspace mode for the ephemeral thread. Defaults to materialized
(a real isolated checkout) so <cmd> runs against a proper
filesystem. Pass auto, virtualized, or solid to use a different
workspace strategy.
auto_merge: boolOn zero exit, automatically land the resulting thread into the current thread. Default: off.
keep_on_success: boolKeep the ephemeral thread on success even if --auto-merge
would otherwise drop it after merging. Has no effect on the
failure path (failed attempts are always dropped).
command: Vec<String>The command to run. Everything after -- lands here. The
first token is the program; the rest are its arguments.
Trait Implementations§
Source§impl Args for TryArgs
impl Args for TryArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for TryArgs
impl FromArgMatches for TryArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<TryArgs, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<TryArgs, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<TryArgs, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<TryArgs, 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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.