[−][src]Trait mmrbi::CommandExt
Utility methods for std::process::Command
Required methods
fn status0(&mut self) -> Result<()>
Command::status, but returns an error if the process didn't have a zero exit code
fn output0(&mut self) -> Result<Output>
Command::output, but returns an error if the process didn't have a zero exit code
fn stdout0(&mut self) -> Result<String>
Command::output, but:
- Returns an error if the process didn't have a zero exit code
- Returns an error if stdout wasn't valid unicode
- Returns only stdout
- Stderr is inherited instead of redirected
fn stdout0_no_stderr(&mut self) -> Result<String>
Command::output, but:
- Returns an error if the process didn't have a zero exit code
- Returns an error if stdout wasn't valid unicode
- Returns only stdout
- Stderr is nulled instead of redirected