chainmail completion
Print a script that teaches your shell to complete chainmail's commands, flags and arguments, with descriptions. Completions that name accounts, folders, labels, messages, attachments, secrets and watch groups ask the daemon, so they need it running; when it is not, they offer nothing.
Usage
chainmail completion <bash|zsh|fish|powershell>
Examples
# bash: add to ~/.bashrc
source <(chainmail completion bash)
# zsh: write it to a directory on $fpath
chainmail completion zsh > "${fpath[1]}/_chainmail"
# fish
chainmail completion fish > ~/.config/fish/completions/chainmail.fish
# PowerShell
chainmail completion powershell | Out-String | Invoke-Expression
Global flags
--output string output format: json or table (default $CHAINMAIL_OUTPUT, then cli.toml, then table on a terminal, json otherwise)
--socket string daemon socket (default $CHAINMAIL_SOCKET, then cli.toml, then /run/chainmail/chainmail.sock)