pub trait CommandModule<C> {
// Required methods
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.