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.Auto Trait Implementations§
impl Freeze for TryArgs
impl RefUnwindSafe for TryArgs
impl Send for TryArgs
impl Sync for TryArgs
impl Unpin for TryArgs
impl UnsafeUnpin for TryArgs
impl UnwindSafe for TryArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request