pub trait CommandExt {
    // Required methods
    fn workspace_spawn(&mut self, workspace: &Metadata) -> Result<()>;
    fn workspace_stdout_raw(&mut self, workspace: &Metadata) -> Result<Vec<u8>>;
    fn workspace_stdout(&mut self, workspace: &Metadata) -> Result<String>;
}
Expand description

Extension methods for std::process::Command.

Required Methods§

source

fn workspace_spawn(&mut self, workspace: &Metadata) -> Result<()>

Executes the command as a child process on the workspace root directory, waiting for it to finish and checking the exit status.

source

fn workspace_stdout_raw(&mut self, workspace: &Metadata) -> Result<Vec<u8>>

Executes the command as a child process on the workspace root directory, waiting for it to finish and collecting all of its standard output as a bytes vector.

source

fn workspace_stdout(&mut self, workspace: &Metadata) -> Result<String>

Executes the command as a child process on the workspace root directory, waiting for it to finish and collecting all of its standard output as a string.

Implementations on Foreign Types§

source§

impl CommandExt for Command

source§

fn workspace_spawn(&mut self, workspace: &Metadata) -> Result<()>

source§

fn workspace_stdout_raw(&mut self, workspace: &Metadata) -> Result<Vec<u8>>

source§

fn workspace_stdout(&mut self, workspace: &Metadata) -> Result<String>

Implementors§