pub trait Command {
    // Required methods
    fn name(&self) -> &'static str;
    fn command(&self) -> Command;
    fn execute(
        &self,
        args: &ArgMatches,
        writer: &mut Writer,
        reader: &mut Reader
    ) -> Result<i32, Error>;
}

Required Methods§

source

fn name(&self) -> &'static str

source

fn command(&self) -> Command

source

fn execute( &self, args: &ArgMatches, writer: &mut Writer, reader: &mut Reader ) -> Result<i32, Error>

Implementors§