Trait QueryCommand

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

Trait for commands that return formatted output

Provided Methods§

Source

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

Execute the command and return formatted output

Implementors§

Source§

impl<T> QueryCommand for T
where T: Command<Output = String>,

Auto-implement QueryCommand for commands that output String