Generate autocompletion script for bash
Generate the autocompletion script for lokoctl for the bash shell.
To load completions in your current shell session:
$ source <(lokoctl completion bash)
To load completions for every new session, execute once:
Linux: $ lokoctl completion bash > /etc/bash_completion.d/lokoctl && exec $SHELL
MacOS: $ lokoctl completion bash > /usr/local/etc/bash_completion.d/lokoctl && exec $SHELL
lokoctl completion bash
-h, --help help for bash
--kubeconfig-file string Path to a kubeconfig file. If empty, the following precedence order is used:
1. Cluster asset dir when a lokocfg file is present in the current directory.
2. KUBECONFIG environment variable.
3. ~/.kube/config file.
--lokocfg string Path to lokocfg directory or file (default "./")
--lokocfg-vars string Path to lokocfg.vars file (default "./lokocfg.vars")
- lokoctl completion - Generate autocompletion script for the specified shell