(command: &mut Command)
| 9822 | } |
| 9823 | |
| 9824 | fn run_command(command: &mut Command) -> Result<()> { |
| 9825 | let status = command |
| 9826 | .status() |
| 9827 | .map_err(|err| anyhow!("failed to spawn command: {err}"))?; |
| 9828 | if !status.success() { |
| 9829 | bail!("command failed with {status}"); |
| 9830 | } |
| 9831 | Ok(()) |
| 9832 | } |
| 9833 | |
| 9834 | fn print_usage() { |
| 9835 | eprintln!("usage:"); |
no test coverage detected