completion
sandwichcake completion <shell> prints a shell autocompletion script
to stdout. Shells: bash, zsh, fish, powershell.
The script is generated by cobra, so completions cover every command,
subcommand and flag dynamically — including pack <type> names and
global flags.
Examples
# zsh (macOS, homebrew)
sandwichcake completion zsh > /opt/homebrew/share/zsh/site-functions/_sandwichcake
# bash (linux)
sandwichcake completion bash | sudo tee /etc/bash_completion.d/sandwichcake
# fish
sandwichcake completion fish > ~/.config/fish/completions/sandwichcake.fish
# powershell — add to your profile
sandwichcake completion powershell >> $PROFILERestart the shell (or source the file) to activate. If the binary was
installed as swcake, generate completions under that name instead so
the right command is completed.