MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / cmd_completion

Function cmd_completion

crates/flowtrace-cli/src/main.rs:444–458  ·  view source on GitHub ↗
(shell: &str)

Source from the content-addressed store, hash-verified

442}
443
444fn 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
460fn cmd_run(action: RunCmd) -> Result<()> {
461 let root = trace_root_or_bail()?;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…