Skip to main content

Command

Trait Command 

Source
pub trait Command {
    // Required method
    fn execute(&self) -> Result<()>;
}
Expand description

Trait implemented by every k2tools subcommand.

Required Methods§

Source

fn execute(&self) -> Result<()>

Execute the command.

§Errors

Returns an error if the command fails.

Implementors§