maqpna completion
Print a shell completion script (bash, zsh, fish, PowerShell)
Synopsis#
maqpna completion bash|zsh|fish|powershellDescription#
Load it in the current shell, or install it permanently:
bash: source <(maqpna completion bash) or maqpna completion bash > /etc/bash_completion.d/maqpna
zsh: source <(maqpna completion zsh) or maqpna completion zsh > "${fpath[1]}/_maqpna"
fish: maqpna completion fish | source or maqpna completion fish > ~/.config/fish/completions/maqpna.fish
powershell: maqpna completion powershell | Out-String | Invoke-Expression
As a kubectl plugin, install the script as the executable kubectl_complete-maqpna:
printf '#!/bin/sh\nexec maqpna __complete "$@"\n' > kubectl_complete-maqpna && chmod +x kubectl_complete-maqpna
Subcommands#
maqpna completion bashPrint the bash completion script
maqpna completion zshPrint the zsh completion script
maqpna completion fishPrint the fish completion script
maqpna completion powershellPrint the PowerShell completion script
Examples#
source <(maqpna completion bash)
maqpna completion zsh > "${fpath[1]}/_maqpna"
maqpna completion fish | sourceExit codes#
| Code | Meaning |
|---|---|
0 | success |
1 | error (the message says what failed, with a hint when there is one) |
2 | usage error: unknown flag, missing argument or bad value; the synopsis is printed |
3 | a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command) |