pub struct CommandLine {
pub format: Format,
pub command: SubCommand,
}
Expand description
Top-level command.
Fields§
§format: Format
the format to be used to display the results (json, text).
command: SubCommand
Trait Implementations§
Source§impl Command for CommandLine
impl Command for CommandLine
Source§impl Debug for CommandLine
impl Debug for CommandLine
Source§impl FromArgs for CommandLine
impl FromArgs for CommandLine
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
Source§impl PartialEq for CommandLine
impl PartialEq for CommandLine
impl StructuralPartialEq for CommandLine
impl TopLevelCommand for CommandLine
Auto Trait Implementations§
impl Freeze for CommandLine
impl RefUnwindSafe for CommandLine
impl Send for CommandLine
impl Sync for CommandLine
impl Unpin for CommandLine
impl UnwindSafe for CommandLine
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