MAQPNADocs

maqpna completion

Print a shell completion script (bash, zsh, fish, PowerShell)

Configure

Synopsis#

maqpna completion bash|zsh|fish|powershell

Description#

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#

Examples#

source <(maqpna completion bash)
maqpna completion zsh > "${fpath[1]}/_maqpna"
maqpna completion fish | source

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)

Terminal demo#

maqpna completion.cast