Generate shell completion scripts.
Options
-s/--shell- The shell type
Possible values:bash | elvish | fish | powershell | zsh
Default value:bash -d/--debug- Print debug info
Default value:false --host- Zoo API host to use for all commands (e.g., "api.zoo.dev" or "http://localhost:8888"). Overrides the configured default host
-h/--help- Print help (see a summary with '-h')
About
When installing zoo CLI through a package manager, it's possible that
no additional shell configuration is necessary to gain completion support. For
Homebrew, see https://docs.brew.sh/Shell-Completion.
If you need to set up completions manually, follow the instructions below. The exact config file locations might vary based on your system. Make sure to restart your shell before testing whether completions are working.
bash
First, ensure that you install bash-completion using your package manager.
After, add this to your ~/.bash_profile:
zsh
Generate a _zoo completion script and put it somewhere in your $fpath:
Ensure that the following is present in your ~/.zshrc:
Zsh version 5.7 or later is recommended.
fish
Generate a zoo.fish completion script:
PowerShell
Open your profile script with:
Add the line and save the file: