pub trait MultiFormat: Command {
// Required methods
fn supported_formats(&self) -> Vec<&'static str>;
fn execute_with_format(&self, format: &str) -> Result<String>;
}
Expand description
Trait for commands that support different output formats
Required Methods§
Sourcefn supported_formats(&self) -> Vec<&'static str>
fn supported_formats(&self) -> Vec<&'static str>
Available output formats
Sourcefn execute_with_format(&self, format: &str) -> Result<String>
fn execute_with_format(&self, format: &str) -> Result<String>
Execute with specific format