(&self)
| 36 | } |
| 37 | |
| 38 | pub fn display(&self) -> String { |
| 39 | std::iter::once(self.program.as_str()) |
| 40 | .chain(self.args.iter().map(String::as_str)) |
| 41 | .collect::<Vec<_>>() |
| 42 | .join(" ") |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | pub fn run_shell_command_with_log(log: &Logger, command: Command) -> Result<String, Error> { |