CommandExt

Trait CommandExt 

Source
pub trait CommandExt {
    // Required method
    fn to_string(&self) -> String;
}

Required Methods§

Source

fn to_string(&self) -> String

Transforms a Command to a string representation

use bricks::cli::commandext::CommandExt;
let mut cmd = std::process::Command::new("ls");
cmd.arg("-al").arg(".");
assert_eq!(cmd.to_string(), "ls -al .".to_string());

Implementations on Foreign Types§

Source§

impl CommandExt for Command

Implementors§