ExtendedCommand

Trait ExtendedCommand 

Source
pub trait ExtendedCommand {
    // Required method
    fn execute(self, runner: CliRunner) -> Result<(), Report>;
}
Available on crate feature cli only.
Expand description

A trait for extension subcommands that can be added to the CLI.

Consumers implement this trait for their custom subcommands to define how they should be executed.

Required Methods§

Source

fn execute(self, runner: CliRunner) -> Result<(), Report>

Execute the extension command with the provided CLI runner.

Implementors§