Trait yacli::Command [] [src]

pub trait Command {
    type Error: Error;
    fn usage() -> &'static str;
    fn execute(&self, shell: &mut MultiShell) -> Result<(), Self::Error>;

    fn name() -> Option<&'static str> { ... }
}

Represents a CLI command

Associated Types

Required Methods

Docopt usage string

Run the command

Provided Methods

Name of the command as used in the docopt string

Implementors