Trait Command

Source
pub trait Command {
    // Required methods
    fn execute_command(&self, flags: HashMap<String, String>);
    fn get_information(&self) -> CommandInformation;
}
Expand description

Implementors of this trait handle a specific command’s execution.

Required Methods§

Source

fn execute_command(&self, flags: HashMap<String, String>)

The implementation of this function should execute the command with the given flag information.

Source

fn get_information(&self) -> CommandInformation

Returns general information about the command such as its name, help text, flags, and the flag’s help information.

Implementors§