Returns the command line as a string for debugging/testing purposes
(&self)
| 134 | |
| 135 | /// Returns the command line as a string for debugging/testing purposes |
| 136 | pub fn as_command_line(&self) -> String { |
| 137 | let mut parts: Vec<String> = vec![self.program.to_string_lossy().into_owned()]; |
| 138 | parts.extend( |
| 139 | self.argv |
| 140 | .iter() |
| 141 | .map(|arg| arg.to_string_lossy().into_owned()), |
| 142 | ); |
| 143 | shell_words::join(parts) |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | #[cfg(test)] |
no outgoing calls
no test coverage detected