Merge pull request #12239 from eparis/bash-completions-rolling-update

Bash completion annotations for rollingupdates
This commit is contained in:
Alex Robinson
2015-08-10 15:02:48 -07:00
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=()
}