Trait cli_xtask::process::CommandExt
source · [−]pub trait CommandExt {
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.
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.