tkn pac completion command generates shell completion scripts that enable tab completion for tkn-pac commands, subcommands, and flags.
Usage
Supported Shells
bashzshfishpowershell
Installation
Bash
Zsh
For oh-my-zsh, you may need to reload the completion cache:
Fish
PowerShell
Examples
Bash with Homebrew
If you installed tkn-pac via Homebrew on macOS:Zsh with Oh-My-Zsh
Test Completion
After installing, test completion by typing:What Gets Completed
Shell completion provides suggestions for:- Commands:
bootstrap,create,generate, etc. - Subcommands:
repository list,repository delete,webhook add - Flags:
--namespace,--repository,--last - Flag values: Git providers, event types (where applicable)
Troubleshooting
Completion not working after installation
Completion not working after installation
Make sure you’ve reloaded your shell configuration:
Command not found: compgen (Bash)
Command not found: compgen (Bash)
Install bash-completion:
Completions not appearing in Zsh
Completions not appearing in Zsh
Check that completion is enabled in your If using oh-my-zsh, verify the completions directory is in your
~/.zshrc:fpath.See Also
- CLI Overview - Introduction to tkn-pac CLI
- Installation - Installing tkn-pac