Trait cli_xtask::Run

source ·
pub trait Run: Any {
    fn run(&self, config: &Config<'_>) -> Result<()>;
    fn into_any(self: Box<Self>) -> Box<dyn Any>;
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;

    fn to_subcommands(&self) -> Option<SubcommandRun> { ... }
}
Expand description

Runs the command or subcommand.

Required Methods§

Runs the command or subcommand.

Converts the Box<dyn Run> to Box<dyn Any>.

Converts the &dyn Run trait object to a concrete type.

Converts the &dyn Run trait object to a mutable concrete type.

Provided Methods§

Returns the subcommands that this command will run.

Implementors§