(path: &[String])
| 9 | use std::process::{Command, Output}; |
| 10 | |
| 11 | fn run_help(path: &[String]) -> Output { |
| 12 | Command::new(env!("CARGO_BIN_EXE_atomic")) |
| 13 | .args(path) |
| 14 | .arg("--no-color") |
| 15 | .arg("--help") |
| 16 | .output() |
| 17 | .unwrap_or_else(|error| { |
| 18 | panic!( |
| 19 | "failed to execute `atomic{} --help`: {error}", |
| 20 | display_path(path) |
| 21 | ) |
| 22 | }) |
| 23 | } |
| 24 | |
| 25 | fn display_path(path: &[String]) -> String { |
| 26 | if path.is_empty() { |
no test coverage detected