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§
Sourcefn workspace_spawn(&mut self, workspace: &Metadata) -> Result<()>
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.
Sourcefn workspace_stdout_raw(&mut self, workspace: &Metadata) -> Result<Vec<u8>>
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.
Sourcefn workspace_stdout(&mut self, workspace: &Metadata) -> Result<String>
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.