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 <(veidemannctl completion zsh)
To load completions for every new session, execute once:
veidemannctl completion zsh > "${fpath[1]}/_veidemannctl"
veidemannctl completion zsh > $(brew --prefix)/share/zsh/site-functions/_veidemannctl
You will need to start a new shell for this setup to take effect.
veidemannctl completion zsh [flags]
-h, --help help for zsh
--no-descriptions disable completion descriptions
--api-key string If set, it will be used as the bearer token for authentication
--config string Path to the config file to use (By default configuration file is stored under $HOME/.veidemann/contexts/
--context string The name of the context to use
--log-caller include information about caller in log output
--log-format string set log format, available formats are: "pretty" or "json" (default "pretty")
--log-level string set log level, available levels are "panic", "fatal", "error", "warn", "info", "debug" and "trace" (default "info")
--server string The address of the Veidemann server to use
--server-name-override string If set, it will override the virtual host name of authority (e.g. :authority header field) in requests