inoculate/
cargo.rs

1use crate::Options;
2use std::process::Command;
3
4impl Options {
5    pub fn cargo_cmd(&self, cmd: &str) -> Command {
6        let mut cargo = Command::new(self.cargo_path.as_os_str());
7        cargo
8            .arg(cmd)
9            // propagate our color mode configuration
10            .env("CARGO_TERM_COLOR", self.output.color.as_str());
11        cargo
12    }
13}