Trait yacli::CliCommand [] [src]

pub trait CliCommand<E>: Decodable {
    fn execute(&self, &mut MultiShell) -> Result<(), E>;
    fn usage() -> &'static str;

    fn from_argv(argv: Vec<String>) -> Self { ... }
}

Represents CLI commands

Required Methods

fn execute(&self, &mut MultiShell) -> Result<(), E>

fn usage() -> &'static str

Provided Methods

fn from_argv(argv: Vec<String>) -> Self

Implementors