Trait SimpleCommand

Source
pub trait SimpleCommand: Command<Input = ()> {
    // Provided method
    fn run_simple(&self) -> Result<Self::Output> { ... }
}
Expand description

Helper trait for commands with no input parameters

Provided Methods§

Source

fn run_simple(&self) -> Result<Self::Output>

Implementors§

Source§

impl<T> SimpleCommand for T
where T: Command<Input = ()>,

Auto-implement SimpleCommand for commands with () input