update completions
parent
4e5d1c5eba
commit
63fcc23d6f
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,8 @@
|
||||||
_kube_namespaces()
|
_kube_contexts()
|
||||||
{
|
{
|
||||||
local curr_arg;
|
local curr_arg;
|
||||||
curr_arg=${COMP_WORDS[COMP_CWORD]}
|
curr_arg=${COMP_WORDS[COMP_CWORD]}
|
||||||
COMPREPLY=( $(compgen -W "- $(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}')" -- $curr_arg ) );
|
COMPREPLY=( $(compgen -W "- $(kubectl config get-contexts --output='name')" -- $curr_arg ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _kube_namespaces kubens kns
|
complete -F _kube_contexts kubectx kctx
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
_kube_contexts()
|
_kube_namespaces()
|
||||||
{
|
{
|
||||||
local curr_arg;
|
local curr_arg;
|
||||||
curr_arg=${COMP_WORDS[COMP_CWORD]}
|
curr_arg=${COMP_WORDS[COMP_CWORD]}
|
||||||
COMPREPLY=( $(compgen -W "- $(kubectl config get-contexts --output='name')" -- $curr_arg ) );
|
COMPREPLY=( $(compgen -W "- $(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}')" -- $curr_arg ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -F _kube_contexts kubectx kctx
|
complete -F _kube_namespaces kubens kns
|
||||||
|
|
Reference in New Issue