pub struct PackArgs {
pub repo: RepoArgs,
pub command: PackCommand,
pub format: OutputFormat,
}Expand description
majordomus pack. The output shape is global, so it reads where a person writes it.
§Example
use majordomus_cli::cli::{Cli, Command, PackArgs, PackCommand};
use clap::Parser;
let cli = Cli::try_parse_from(["majordomus", "pack", "plan", "chatgpt"]).unwrap();
let Command::Pack(args) = cli.command else { panic!("not the pack command") };
let args: PackArgs = args;
assert!(matches!(args.command, PackCommand::Plan { profile: Some(_) }));Fields§
§repo: RepoArgsWhere and how the repository is read.
command: PackCommandplan, build or verify. Required: the group runs nothing of its own.
format: OutputFormatOutput shape
Trait Implementations§
Source§impl Args for PackArgs
impl Args for PackArgs
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 FromArgMatches for PackArgs
impl FromArgMatches for PackArgs
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 PackArgs
impl RefUnwindSafe for PackArgs
impl Send for PackArgs
impl Sync for PackArgs
impl Unpin for PackArgs
impl UnsafeUnpin for PackArgs
impl UnwindSafe for PackArgs
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