Bash completion annotations for rollingupdates

This commit is contained in:
Eric Paris
2015-03-28 23:39:19 -04:00
parent 65bff3d187
commit 9de64328a5
4 changed files with 24 additions and 7 deletions

View File

@@ -469,7 +469,11 @@ _kubectl_rolling-update()
flags+=("--deployment-label-key=")
flags+=("--dry-run")
flags+=("--filename=")
flags_with_completion+=("--filename")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
two_word_flags+=("-f")
flags_with_completion+=("-f")
flags_completion+=("__handle_filename_extension_flag json|yaml|yml")
flags+=("--help")
flags+=("-h")
flags+=("--image=")
@@ -485,6 +489,9 @@ _kubectl_rolling-update()
flags+=("--update-period=")
must_have_one_flag=()
must_have_one_flag+=("--filename=")
must_have_one_flag+=("-f")
must_have_one_flag+=("--image=")
must_have_one_noun=()
}