pub enum DashboardCommand {
Overview,
}Expand description
The subcommands of majordomus dashboard: one per page of the suite.
§Example
use majordomus_cli::cli::{Cli, Command, DashboardCommand};
use clap::Parser;
let cli = Cli::try_parse_from(["majordomus", "dashboard", "overview"]).unwrap();
let Command::Dashboard(args) = cli.command else { panic!("not the dashboard command") };
assert!(matches!(args.command, DashboardCommand::Overview));Variants§
Overview
Is it healthy, what changed, what is broken, what needs action: every card with its value, the source’s verdict, and the capability and pointer it was read from; exit 10 when the overview is fail or unknown
Trait Implementations§
Source§impl Debug for DashboardCommand
impl Debug for DashboardCommand
Source§impl FromArgMatches for DashboardCommand
impl FromArgMatches for DashboardCommand
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 DashboardCommand
impl Subcommand for DashboardCommand
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 DashboardCommand
impl RefUnwindSafe for DashboardCommand
impl Send for DashboardCommand
impl Sync for DashboardCommand
impl Unpin for DashboardCommand
impl UnsafeUnpin for DashboardCommand
impl UnwindSafe for DashboardCommand
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