Trait Cmd

Source
pub trait Cmd: ParserInfo {
    // Provided methods
    fn gen_help(&mut self) -> CliError { ... }
    fn parse(&mut self) { ... }
    fn complete_args(&mut self, tokens: &[String]) -> CliResult<Vec<CompOut>> { ... }
    fn parse_args(&mut self, tokens: &[String]) -> CliResult<()> { ... }
}

Provided Methods§

Source

fn gen_help(&mut self) -> CliError

Source

fn parse(&mut self)

Source

fn complete_args(&mut self, tokens: &[String]) -> CliResult<Vec<CompOut>>

Source

fn parse_args(&mut self, tokens: &[String]) -> CliResult<()>

Implementors§

Source§

impl<C> Cmd for C
where C: ParserInfo,