File: kubectx.bash

package info (click to toggle)
kubectx 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 956 kB
  • sloc: sh: 410; makefile: 16
file content (8 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
_kube_contexts()
{
  local curr_arg;
  curr_arg=${COMP_WORDS[COMP_CWORD]}
  COMPREPLY=( $(compgen -W "- $(kubectl config get-contexts --output='name')" -- $curr_arg ) );
}

complete -F _kube_contexts kubectx kctx