(program: S)
| 14 | |
| 15 | impl CommandBuilder { |
| 16 | pub fn new<S: AsRef<OsStr>>(program: S) -> Self { |
| 17 | Self { |
| 18 | program: program.as_ref().to_owned(), |
| 19 | argv: Vec::new(), |
| 20 | envs: BTreeMap::new(), |
| 21 | cwd: None, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | pub fn build(self) -> Command { |
| 26 | let mut command = Command::new(&self.program); |
nothing calls this directly
no outgoing calls
no test coverage detected