add "kubectl patch". It will replace "kubectl udpate --patch" in the future
This commit is contained in:
@@ -350,6 +350,27 @@ _kubectl_replace()
|
||||
must_have_one_noun=()
|
||||
}
|
||||
|
||||
_kubectl_patch()
|
||||
{
|
||||
last_command="kubectl_patch"
|
||||
commands=()
|
||||
|
||||
flags=()
|
||||
two_word_flags=()
|
||||
flags_with_completion=()
|
||||
flags_completion=()
|
||||
|
||||
flags+=("--help")
|
||||
flags+=("-h")
|
||||
flags+=("--patch=")
|
||||
two_word_flags+=("-p")
|
||||
|
||||
must_have_one_flag=()
|
||||
must_have_one_flag+=("--patch=")
|
||||
must_have_one_flag+=("-p")
|
||||
must_have_one_noun=()
|
||||
}
|
||||
|
||||
_kubectl_delete()
|
||||
{
|
||||
last_command="kubectl_delete"
|
||||
@@ -905,6 +926,7 @@ _kubectl()
|
||||
commands+=("describe")
|
||||
commands+=("create")
|
||||
commands+=("replace")
|
||||
commands+=("patch")
|
||||
commands+=("delete")
|
||||
commands+=("namespace")
|
||||
commands+=("logs")
|
||||
|
Reference in New Issue
Block a user