(log: &Logger, command: Command)
| 44 | } |
| 45 | |
| 46 | pub fn run_shell_command_with_log(log: &Logger, command: Command) -> Result<String, Error> { |
| 47 | log.debug(format!("Running command: {}", command.display())); |
| 48 | let output = run_shell_command(command)?; |
| 49 | log.debug(format!("Output: {:?}", output)); |
| 50 | Ok(output) |
| 51 | } |
| 52 | |
| 53 | pub fn run_shell_command(command: Command) -> Result<String, Error> { |
| 54 | let mut process = ProcessCommand::new(command.program); |
no test coverage detected