pub struct ContinuityArgs {
pub repo: RepoArgs,
pub command: ContinuityCommand,
pub format: OutputFormat,
}Expand description
majordomus continuity. The output shape is global, so it reads where a person writes
it, and the group runs nothing of its own.
§Example
use majordomus_cli::cli::{Cli, Command, ContinuityArgs, ContinuityCommand};
use clap::Parser;
let cli = Cli::try_parse_from(["majordomus", "continuity", "resume", "--record", "a1b2"]).unwrap();
let Command::Continuity(args) = cli.command else { panic!("not the continuity command") };
let args: ContinuityArgs = args;
assert!(matches!(args.command, ContinuityCommand::Resume { record: Some(r) } if r == "a1b2"));
assert!(Cli::try_parse_from(["majordomus", "continuity"]).is_err(), "a subcommand is required");Fields§
§repo: RepoArgsWhere and how the repository is read.
command: ContinuityCommandstatus, records, plan, publish, sync or resume. Required, so that every
runnable path is a capability’s.
format: OutputFormatOutput shape
Trait Implementations§
Source§impl Args for ContinuityArgs
impl Args for ContinuityArgs
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 ContinuityArgs
impl Debug for ContinuityArgs
Source§impl FromArgMatches for ContinuityArgs
impl FromArgMatches for ContinuityArgs
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 ContinuityArgs
impl RefUnwindSafe for ContinuityArgs
impl Send for ContinuityArgs
impl Sync for ContinuityArgs
impl Unpin for ContinuityArgs
impl UnsafeUnpin for ContinuityArgs
impl UnwindSafe for ContinuityArgs
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