[][src]Trait abscissa_core::command::Command

pub trait Command: Debug + Options + Runnable {
    fn name() -> &'static str;
fn description() -> &'static str;
fn version() -> &'static str;
fn authors() -> &'static str; fn from_args<A: IntoIterator<Item = String>>(into_args: A) -> Self { ... }
fn from_env_args() -> Self { ... }
fn print_usage_and_exit(args: &[String]) -> ! { ... }
fn subcommand_usage(_command: &str) -> Option<Usage> { ... } }

Subcommand of an application: derives or otherwise implements the Options trait, but also has a call() method which can be used to invoke the given (sub)command.

Required methods

fn name() -> &'static str

Name of this program as a string

fn description() -> &'static str

Description of this program

fn version() -> &'static str

Version of this program

fn authors() -> &'static str

Authors of this program

Loading content...

Provided methods

fn from_args<A: IntoIterator<Item = String>>(into_args: A) -> Self

Parse command-line arguments from a string iterator

fn from_env_args() -> Self

Parse command-line arguments from the environment

fn print_usage_and_exit(args: &[String]) -> !

Print usage information and exit

fn subcommand_usage(_command: &str) -> Option<Usage>

Get usage information for a particular subcommand (if available)

Loading content...

Implementors

impl<C> Command for Help<C> where
    C: Command
[src]

impl<Cmd> Command for EntryPoint<Cmd> where
    Cmd: Command + Runnable
[src]

fn name() -> &'static str[src]

Name of this program as a string

fn description() -> &'static str[src]

Description of this program

fn version() -> &'static str[src]

Version of this program

fn authors() -> &'static str[src]

Authors of this program

fn subcommand_usage(command: &str) -> Option<Usage>[src]

Get usage information for a particular subcommand (if available)

Loading content...