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
fn usage() -> &'static str
Docopt usage string
fn execute(&self, shell: &mut MultiShell) -> Result<(), Self::Error>
Run the command