[][src]Trait repl_rs::HelpViewer

pub trait HelpViewer {
    fn help_general(&self, context: &HelpContext) -> Result<()>;
fn help_command(&self, entry: &HelpEntry) -> Result<()>; }

Trait to be used if you want your own custom Help output

Required methods

fn help_general(&self, context: &HelpContext) -> Result<()>

Called when the plain help command is called with no arguments

fn help_command(&self, entry: &HelpEntry) -> Result<()>

Called when the help command is called with a command argument (i.e., help foo). Note that you won't have to handle an unknown command - it'll be handled in the caller

Loading content...

Implementors

Loading content...