Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Latest commit

History

History
50 lines (33 loc) 路 1.6 KB

lokoctl_completion.md

File metadata and controls

50 lines (33 loc) 路 1.6 KB

lokoctl completion

Generate autocompletion script for the specified shell

Synopsis

Generate autocompletion script for lokoctl for the specified shell (bash or zsh).

Examples

  # Load the lokoctl completion code for bash into the current shell.
  source <(lokoctl completion bash)

  # Load the lokoctl completion code for zsh into the current shell.
  source <(lokoctl completion zsh)

  # Generate Bash completion file and load it for every shell.
  lokoctl completion zsh > ~/.bash_lokoctl_completion
  echo "source ~/.bash_lokoctl_completion" >> ~/.bashrc && source ~/.bashrc

  # Set the lokoctl completion code for zsh to autoload on startup.
  lokoctl completion zsh > "${fpath[1]}/_lokoctl" && exec $SHELL

Options

  -h, --help   help for completion

Options inherited from parent commands

      --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")

SEE ALSO