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

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

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>(into_args: A) -> Self where
    A: IntoIterator<Item = String>, 

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...

Implementations on Foreign Types

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...

Implementors

impl Command for ZebradCmd[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 the named subcommand

impl Command for GenerateCmd[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

impl Command for RevhexCmd[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

impl Command for SeedCmd[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

impl Command for StartCmd[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

impl Command for VersionCmd[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

Loading content...