Generate the autocompletion script for zsh
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
source <(vespa completion zsh)
To load completions for every new session, execute once:
vespa completion zsh > "${fpath[1]}/_vespa"
vespa completion zsh > $(brew --prefix)/share/zsh/site-functions/_vespa
You will need to start a new shell for this setup to take effect.
vespa completion zsh [flags]
-h, --help help for zsh
--no-descriptions disable completion descriptions
-a, --application string The application to use (cloud only)
-C, --cluster string The container cluster to use. This is only required for applications with multiple clusters
-c, --color string Whether to use colors in output. Must be "auto", "never", or "always" (default "auto")
-i, --instance string The instance of the application to use (cloud only)
-q, --quiet Print only errors
-t, --target string The target platform to use. Must be "local", "cloud", "hosted" or an URL (default "local")
-z, --zone string The zone to use. This defaults to a dev zone (cloud only)