(cmd: &str)
| 7 | |
| 8 | #[cfg(target_os = "windows")] |
| 9 | pub fn new_command(cmd: &str) -> Command { |
| 10 | let mut command = Command::new("cmd.exe"); |
| 11 | command.arg("/c"); |
| 12 | command.arg(cmd); |
| 13 | command |
| 14 | } |
| 15 | |
| 16 | #[cfg(not(target_os = "windows"))] |
| 17 | pub fn new_command(cmd: &str) -> Command { |
no test coverage detected