Skip to content

feat(cli): add shell completion for bash, zsh, and fish#31

Merged
f3rdy merged 1 commit intomasterfrom
feature/shell-completion
Mar 14, 2026
Merged

feat(cli): add shell completion for bash, zsh, and fish#31
f3rdy merged 1 commit intomasterfrom
feature/shell-completion

Conversation

@f3rdy
Copy link
Copy Markdown
Contributor

@f3rdy f3rdy commented Mar 14, 2026

Summary

  • New vaultctl completion <shell> command (bash, zsh, fish)
  • Uses Click's shell_completion API
  • Works without .vaultctl.yml config

Install

eval "$(vaultctl completion bash)"    # bash
eval "$(vaultctl completion zsh)"     # zsh
vaultctl completion fish > ~/.config/fish/completions/vaultctl.fish  # fish

Test plan

  • vaultctl completion bash outputs valid bash completion
  • vaultctl completion zsh outputs valid zsh completion
  • vaultctl completion fish outputs valid fish completion
  • Tab completion works after eval

Uses Click's built-in shell_completion API. Install with:
  eval "$(vaultctl completion bash)"
  eval "$(vaultctl completion zsh)"
  vaultctl completion fish > ~/.config/fish/completions/vaultctl.fish
@f3rdy f3rdy force-pushed the feature/shell-completion branch from 0e76500 to dc73936 Compare March 14, 2026 11:00
@f3rdy f3rdy merged commit 7d860d8 into master Mar 14, 2026
2 checks passed
@f3rdy f3rdy deleted the feature/shell-completion branch March 14, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant