Skip to content

feat(cli): add shell completion support#673

Open
salim-b wants to merge 1 commit intostakpak:mainfrom
salim-b:add-shell-completion
Open

feat(cli): add shell completion support#673
salim-b wants to merge 1 commit intostakpak:mainfrom
salim-b:add-shell-completion

Conversation

@salim-b
Copy link
Copy Markdown

@salim-b salim-b commented Mar 28, 2026

Adds a new stakpak completion <shell> subcommand that prints a shell completion script to stdout for any shell supported by clap_complete: bash, elvish, fish, powershell, and zsh.

Quick setup:

# Bash – add to ~/.bashrc
source <(stakpak completion bash)

# Zsh – add to ~/.zshrc
source <(stakpak completion zsh)

# Fish
stakpak completion fish > ~/.config/fish/completions/stakpak.fish

Also documents the new subcommand in README.md.

Co-authored-by: Copilot copilot@github.com

@salim-b salim-b force-pushed the add-shell-completion branch 2 times, most recently from da41760 to c023f38 Compare March 28, 2026 23:38
Adds a new `stakpak completion <shell>` subcommand that prints a shell
completion script to stdout for any shell supported by `clap_complete`:
bash, elvish, fish, powershell, and zsh.

Quick setup:

  # Bash – add to ~/.bashrc
  source <(stakpak completion bash)

  # Zsh – add to ~/.zshrc
  source <(stakpak completion zsh)

  # Fish
  stakpak completion fish > ~/.config/fish/completions/stakpak.fish

Also documents the new subcommand in README.md.

Co-authored-by: salim-b <20040931+salim-b@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
@salim-b salim-b force-pushed the add-shell-completion branch from c023f38 to eacca26 Compare March 28, 2026 23:40
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.

2 participants