Trait quartz_commands::CommandModule[][src]

pub trait CommandModule<C> {
    fn dispatch(&self, command: &str, context: C) -> Result<(), Error>;
fn get_suggestions(&self, command: &str, context: &C) -> Vec<String>; }
Expand description

Defines a command module, or a set of command definitions with an associated parser and suggestion generator.

Required methods

Dispatches the given command for execution.

Generates a list of suggestions to complete the final argument in the given command.

Implementors