pub trait SubcommandPlugin {
// Required method
fn run(&self, input: SubcommandInput) -> Result<ExitInfo, PluginError>;
}Required Methods§
Sourcefn run(&self, input: SubcommandInput) -> Result<ExitInfo, PluginError>
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.