Trait ActionCommand

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

Trait for commands that don’t return data but perform actions (print output)

Provided Methods§

Source

fn run(&self, input: Self::Input) -> Result<()>

Execute the command and handle output internally

Implementors§

Source§

impl<T> ActionCommand for T
where T: Command<Output = ()>,

Auto-implement ActionCommand for commands that output ()