Trait CommandExt

Source
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§