[][src]Trait zebrad::prelude::Command

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

Commonly used Abscissa traits 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

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

Name of this program as a string

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

Description of this program

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

Version of this program

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

Authors of this program

Loading content...

Provided methods

pub fn from_args<A>(into_args: A) -> Self where
    A: IntoIterator<Item = String>, 
[src]

Parse command-line arguments from a string iterator

pub fn from_env_args() -> Self[src]

Parse command-line arguments from the environment

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

Print usage information and exit

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

Get usage information for a particular subcommand (if available)

Loading content...

Implementations on Foreign Types

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

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

Name of this program as a string

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

Description of this program

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

Version of this program

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

Authors of this program

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

Get usage information for a particular subcommand (if available)

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

Loading content...

Implementors

impl Command for ZebradCmd[src]

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

Name of this program as a string

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

Description of this program

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

Version of this program

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

Authors of this program

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

get usage information for the named subcommand

impl Command for GenerateCmd[src]

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

Name of this program as a string

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

Description of this program

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

Version of this program

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

Authors of this program

impl Command for StartCmd[src]

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

Name of this program as a string

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

Description of this program

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

Version of this program

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

Authors of this program

impl Command for VersionCmd[src]

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

Name of this program as a string

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

Description of this program

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

Version of this program

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

Authors of this program

Loading content...