pub enum SkillsCommand {
Status,
Explain {
id: String,
},
Verify,
}Expand description
The subcommands of majordomus skills: the command line of skills.status,
skills.explain and skills.verify.
use clap::Parser;
use majordomus_cli::cli::{Cli, Command, SkillsCommand};
let cli = Cli::parse_from(["majordomus", "skills", "verify"]);
let Command::Skills(args) = cli.command else { panic!("skills") };
assert!(matches!(args.command, SkillsCommand::Verify));Variants§
Status
Every skill with its derived standing: tested, documented, enforced, used
Explain
One skill in full: each naming test and its evidence, its page, its gates, every invocation
Verify
Every finding over the skills; exit 10 when any is a failure
Trait Implementations§
Source§impl Debug for SkillsCommand
impl Debug for SkillsCommand
Source§impl FromArgMatches for SkillsCommand
impl FromArgMatches for SkillsCommand
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for SkillsCommand
impl Subcommand for SkillsCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for SkillsCommand
impl RefUnwindSafe for SkillsCommand
impl Send for SkillsCommand
impl Sync for SkillsCommand
impl Unpin for SkillsCommand
impl UnsafeUnpin for SkillsCommand
impl UnwindSafe for SkillsCommand
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