pub struct RulesArgs {
pub repo: RepoArgs,
pub command: RulesCommand,
pub format: OutputFormat,
}Expand description
majordomus rules. The rule corpus against the proof there is for it: what each rule
names, whether it is in the tree, whether a runner drives it, whether anything ran, and
whether what ran is older than what it is about.
Distinct from majordomus doctrine, which asks whether the repository satisfies a rule
right now. That is a question about the tree; this is a question about the rule.
§Example
use majordomus_cli::cli::{Cli, Command, RulesArgs};
use clap::Parser;
let cli = Cli::try_parse_from(["majordomus", "rules", "report", "--findings"]).unwrap();
let Command::Rules(args) = cli.command else { panic!("not the rules command") };
let _: RulesArgs = args;Fields§
§repo: RepoArgsWhere and how the repository is read.
command: RulesCommandreport, show or proves. Required: the group runs nothing of its own, so that
every runnable path here is one a capability declares
rather than one classified command-line-only in cli::local.
format: OutputFormatOutput shape
Trait Implementations§
Source§impl Args for RulesArgs
impl Args for RulesArgs
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 RulesArgs
impl FromArgMatches for RulesArgs
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 RulesArgs
impl RefUnwindSafe for RulesArgs
impl Send for RulesArgs
impl Sync for RulesArgs
impl Unpin for RulesArgs
impl UnsafeUnpin for RulesArgs
impl UnwindSafe for RulesArgs
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