Use tapd completion to generate shell completion scripts for the installed
tapd binary.
tapd completion bash
tapd completion zsh
tapd completion fish
tapd completion powershellRun shell-specific help for the exact generated script behavior:
tapd completion zsh --help
tapd completion bash --help
tapd completion fish --help
tapd completion powershell --helpLoad completion in the current shell session:
source <(tapd completion zsh)Install completion for future zsh sessions on macOS with Homebrew:
tapd completion zsh > "$(brew --prefix)/share/zsh/site-functions/_tapd"If zsh completion is not enabled yet, enable it once:
echo "autoload -U compinit; compinit" >> ~/.zshrcStart a new shell after installing the completion file.
Load completion in the current shell session:
source <(tapd completion bash)Install completion for future bash sessions on macOS with Homebrew:
tapd completion bash > "$(brew --prefix)/etc/bash_completion.d/tapd"The generated bash completion script depends on the bash-completion package.
Install it first if completion does not load in bash.
Load completion in the current shell session:
tapd completion fish | sourceInstall completion for future fish sessions:
tapd completion fish > ~/.config/fish/completions/tapd.fishStart a new shell after installing the completion file.
Load completion in the current PowerShell session:
tapd completion powershell | Out-String | Invoke-ExpressionTo load completion for future sessions, add the same command to your PowerShell profile.
Completion scripts are generated from the current CLI command tree. After adding or renaming commands, regenerate the installed completion file with the same command used during installation.
For example, after adding a new zsh command:
tapd completion zsh > "$(brew --prefix)/share/zsh/site-functions/_tapd"