Context
borg is built on cobra, which can generate shell completions, but no completion command is wired up (cmd/borg/). Completions are a small, high-polish DX win — and the install script could source them.
The task
Add a completion [bash|zsh|fish|powershell] subcommand that emits the script (cobra provides GenBashCompletion et al.), and document it briefly in the README.
Acceptance
turborg completion zsh (and the others) prints a working completion script.
- One line in the README's install/usage section on how to enable it.
- Naming respects the dual binary name (
turborg/borg) via version.Command().
Small and satisfying; cobra does the heavy lifting.
Context
borg is built on cobra, which can generate shell completions, but no
completioncommand is wired up (cmd/borg/). Completions are a small, high-polish DX win — and the install script could source them.The task
Add a
completion [bash|zsh|fish|powershell]subcommand that emits the script (cobra providesGenBashCompletionet al.), and document it briefly in the README.Acceptance
turborg completion zsh(and the others) prints a working completion script.turborg/borg) viaversion.Command().Small and satisfying; cobra does the heavy lifting.