pub struct DashboardArgs {
pub repo: RepoArgs,
pub command: DashboardCommand,
pub format: OutputFormat,
}Expand description
majordomus dashboard. Every subcommand is one page of the Dashboard Suite, run through
the capability that answers it.
§Example
use majordomus_cli::cli::{Cli, Command, DashboardArgs, DashboardCommand, OutputFormat};
use clap::Parser;
let cli = Cli::try_parse_from(["majordomus", "dashboard", "overview", "--format", "json"]).unwrap();
let Command::Dashboard(args) = cli.command else { panic!("not the dashboard command") };
let args: DashboardArgs = args;
assert!(matches!(args.command, DashboardCommand::Overview));
assert!(matches!(args.format, OutputFormat::Json));Fields§
§repo: RepoArgsWhere and how the repository is read.
command: DashboardCommandoverview. Required: the group runs nothing of its own.
format: OutputFormatOutput shape
Trait Implementations§
Source§impl Args for DashboardArgs
impl Args for DashboardArgs
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 DashboardArgs
impl Debug for DashboardArgs
Source§impl FromArgMatches for DashboardArgs
impl FromArgMatches for DashboardArgs
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 DashboardArgs
impl RefUnwindSafe for DashboardArgs
impl Send for DashboardArgs
impl Sync for DashboardArgs
impl Unpin for DashboardArgs
impl UnsafeUnpin for DashboardArgs
impl UnwindSafe for DashboardArgs
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