completions
Emit shell-completion scripts so snippbot <TAB> auto-completes commands, subcommands, and options.
snippbot completions <shell> # Print the script to stdoutsnippbot completions <shell> --install-help # Print install instructionsSupported shells: bash, zsh, fish.
Install — bash
Section titled “Install — bash”Activate in your current shell (useful for testing):
eval "$(snippbot completions bash)"Persist across sessions — add to ~/.bashrc:
eval "$(snippbot completions bash)"Or save to a completions directory:
snippbot completions bash > ~/.local/share/bash-completion/completions/snippbotInstall — zsh
Section titled “Install — zsh”Activate in your current shell:
eval "$(snippbot completions zsh)"Persist — add to ~/.zshrc before compinit:
eval "$(snippbot completions zsh)"Or save to a fpath directory:
snippbot completions zsh > ~/.zfunc/_snippbot# Make sure ~/.zfunc is on your fpath:fpath=(~/.zfunc $fpath)autoload -U compinit && compinitInstall — fish
Section titled “Install — fish”Save to fish’s completions directory (loaded automatically):
snippbot completions fish > ~/.config/fish/completions/snippbot.fishWhat gets completed
Section titled “What gets completed”Once activated, the following are tab-completable:
- Every top-level command:
snippbot <TAB>→ start, stop, status, config, project, … - Every subcommand:
snippbot config <TAB>→ get, set, delete, list, path, init - Every option:
snippbot start --<TAB>→ —dev, —port, —host - Choice values:
snippbot setup --mode <TAB>→ self-hosted, cloud
Related
Section titled “Related”- Overview — full list of commands that become completable