(shell: &str)
| 442 | } |
| 443 | |
| 444 | fn cmd_completion(shell: &str) -> Result<()> { |
| 445 | use clap_complete::Shell; |
| 446 | let shell = match shell { |
| 447 | "bash" => Shell::Bash, |
| 448 | "zsh" => Shell::Zsh, |
| 449 | "fish" => Shell::Fish, |
| 450 | "powershell" | "pwsh" => Shell::PowerShell, |
| 451 | "elvish" => Shell::Elvish, |
| 452 | other => anyhow::bail!("unsupported shell: {}", other), |
| 453 | }; |
| 454 | let mut cmd = Cli::command(); |
| 455 | let bin = cmd.get_name().to_string(); |
| 456 | clap_complete::generate(shell, &mut cmd, bin, &mut std::io::stdout()); |
| 457 | Ok(()) |
| 458 | } |
| 459 | |
| 460 | fn cmd_run(action: RunCmd) -> Result<()> { |
| 461 | let root = trace_root_or_bail()?; |
no outgoing calls
no test coverage detected
searching dependent graphs…