Completions
Generate a shell completion script so your shell can tab-complete cook subcommands, aliases and flags.
Usage
The script is printed to stdout. Redirect it into the place your shell loads completions from, or source it from your shell configuration.
Arguments
| Argument | Description |
|---|---|
<SHELL> | One of bash, zsh, fish, powershell, elvish |
Installation
Bash
Zsh
Fish
PowerShell
Elvish
Notes
- The script is generated from the running binary, so it matches that binary exactly. Subcommands compiled out with
--no-default-features(such asserver,import,lsporupdate) are missing from the script too. - Regenerate the script after updating CookCLI so new subcommands and flags show up.
- Completion is static: it knows subcommands and flags, but does not complete recipe file names or
recipe.cook:2scaling suffixes.