pub type CommandBuilder = Command<(), (), ()>;Available on crate feature
process only.Expand description
A Command to be built
Aliased Type§
pub struct CommandBuilder { /* private fields */ }Implementations§
Source§impl CommandBuilder
impl CommandBuilder
Sourcepub fn new(bin: impl AsRef<OsStr>) -> Self
pub fn new(bin: impl AsRef<OsStr>) -> Self
Start building a command. If the arg is a Path or PathBuf,
you can also call .command() on it (remember to import prelude)
use cu::pre::*;
let command = cu::CommandBuilder::new("git");
// or:
let command = std::path::Path::new("git").command();
// even better, find the executable in PATH using the crate's
// binary registry
let command = cu::which("git")?.command();