(program: PathBuf, args: [&str; N])
| 1441 | } |
| 1442 | |
| 1443 | fn run_command_text<const N: usize>(program: PathBuf, args: [&str; N]) -> Result<String, AppError> { |
| 1444 | let output = run_command(program, args)?; |
| 1445 | String::from_utf8(output) |
| 1446 | .map_err(|error| AppError::native(format!("Command returned non-UTF8 output: {error}"))) |
| 1447 | } |
| 1448 | |
| 1449 | fn run_command_text_with_stdin<const N: usize>( |
| 1450 | program: PathBuf, |
no test coverage detected