Skip to main content

SubcommandPlugin

Trait SubcommandPlugin 

Source
pub trait SubcommandPlugin {
    // Required method
    fn run(&self, input: SubcommandInput) -> Result<ExitInfo, PluginError>;
}

Required Methods§

Source

fn run(&self, input: SubcommandInput) -> Result<ExitInfo, PluginError>

Run the subcommand.

§Errors

Returns a PluginError describing the failure. The host renders the error and exits the process with code 1.

Implementors§