clusterctl completion zsh
clusterctl completion zsh
clusterctl completion zsh
Generate the autocompletion script for zsh
Synopsis
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 <(clusterctl completion zsh)
To load completions for every new session, execute once:
Linux:
clusterctl completion zsh > "${fpath[1]}/_clusterctl"
macOS:
clusterctl completion zsh > $(brew --prefix)/share/zsh/site-functions/_clusterctl
You will need to start a new shell for this setup to take effect.
clusterctl completion zsh [flags]Options
-h, --help help for zsh
--no-descriptions disable completion descriptionsOptions inherited from parent commands
--config strings configuration file or directory to read, repeatable (default: CLUSTERCTL_CONFIG or the search path)
--context string context to act on (default: the current one)
--dry-run report what would be done and change nothing
--fanout int how many hosts to work on at once, at least 1 (default: from the configuration)
--force allow protected hosts, and nodes the inventory does not know, to be touched
-n, --nodes stringArray node set to act on, for example 'exe[1-10],@rack:R02' (default: CLUSTERCTL_NODES)
-o, --output string output format: table, wide, json, yaml, nodeset, name, jsonpath=, jq= (default "table")
--set stringArray override one configuration value as PATH=VALUE, repeatable
-y, --yes answer the confirmation prompts with yesSEE ALSO
- clusterctl completion - Generate the autocompletion script for the specified shell