pub struct WorktreeArgs {
pub repo: RepoArgs,
pub command: Option<WorktreeCommand>,
pub format: OutputFormat,
}Expand description
majordomus worktree (alias wt). The output shape is global, so it reads the way a
person writes it — worktree list --format json — and is declared once.
Fields§
§repo: RepoArgsWhere the repository is found. The index is not built: nothing about the topology is in it.
command: Option<WorktreeCommand>The subcommand; none is status.
format: OutputFormatOutput shape
Trait Implementations§
Source§impl Args for WorktreeArgs
impl Args for WorktreeArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§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
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Debug for WorktreeArgs
impl Debug for WorktreeArgs
Source§impl FromArgMatches for WorktreeArgs
impl FromArgMatches for WorktreeArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for WorktreeArgs
impl RefUnwindSafe for WorktreeArgs
impl Send for WorktreeArgs
impl Sync for WorktreeArgs
impl Unpin for WorktreeArgs
impl UnsafeUnpin for WorktreeArgs
impl UnwindSafe for WorktreeArgs
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