Skip to content

Add shell completions (bash/zsh/fish) via a completion command #21

Description

@stefanthearchitect

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions