Shell completions for hort-cli

hort-cli generates its own completion scripts from clap's command tree (so they never drift from the real commands) and can complete repository names live from the server you're logged into.

Install (static — all shells)

hort-cli completions <shell> prints a completion script. Install it once:

This gives subcommand, flag, and fixed-value (enum) completion on every shell.

Dynamic repository-name completion (bash / zsh / fish)

For live repository-name completion (e.g. hort-cli list-versions <TAB> → the repos you can see), register the dynamic engine instead, which delegates back to the binary at TAB-time:

Repo-name completion is offered on every repository-key argument (list-versions, prefetch, get repo-score --name, the curation --repo flags, and admin quarantine ... --repo).

How it behaves (and fails)

Note (powershell / elvish): dynamic repo-name completion is wired for bash / zsh / fish; powershell and elvish get the static command/flag completion above.

Uninstall

Remove the file you installed (bash/zsh/fish), or the source <(COMPLETE=… ) / Invoke-Expression line from your shell rc.