Skip to main content

completion

whzbox completion <shell> writes a shell completion script to stdout.

Syntax

whzbox completion [bash|zsh|fish|powershell]

Arguments

ArgumentRequiredValuesDescription
shellYesbash, zsh, fish, powershellTarget shell for the generated completion script.

Flags

This command uses only the global flags.

Behavior

  • Is provided by Cobra's built-in completion command.
  • Writes the script to stdout.
  • Does not require a state directory or network access.

Output

Shell-specific completion script text.

Exit behavior

  • 0 on success
  • 1 on generic command failure

See also