macro_rules! envs {
($($k:expr => $v:expr),* $(,)?) => { ... };
}Available on crate feature
process only.Expand description
Create a config to add multiple environments of different types when building a subprocess.
ยงExample
use std::path::Path;
use cu::pre::*;
let path = Path::new("bizbar");
cu::which("foo")?.command()
.add(cu::envs!{
"BAR" => "true",
"BIZ" => path
})
// ... more config