#!/bin/bash __debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then echo "$*" >> "${BASH_COMP_DEBUG_FILE}" fi } # Homebrew on Macs have version 1.3 of bash-completion which doesn't include # _init_completion. This is a very minimal version of that function. __my_init_completion() { COMPREPLY=() _get_comp_words_by_ref cur prev words cword } __index_of_word() { local w word=$1 shift index=0 for w in "$@"; do [[ $w = "$word" ]] && return index=$((index+1)) done index=-1 } __contains_word() { local w word=$1; shift for w in "$@"; do [[ $w = "$word" ]] && return done return 1 } __handle_reply() { __debug "${FUNCNAME}" case $cur in -*) if [[ $(type -t compopt) = "builtin" ]]; then compopt -o nospace fi local allflags if [ ${#must_have_one_flag[@]} -ne 0 ]; then allflags=("${must_have_one_flag[@]}") else allflags=("${flags[*]} ${two_word_flags[*]}") fi COMPREPLY=( $(compgen -W "${allflags[*]}" -- "$cur") ) if [[ $(type -t compopt) = "builtin" ]]; then [[ $COMPREPLY == *= ]] || compopt +o nospace fi return 0; ;; esac # check if we are handling a flag with special work handling local index __index_of_word "${prev}" "${flags_with_completion[@]}" if [[ ${index} -ge 0 ]]; then ${flags_completion[${index}]} return fi # we are parsing a flag and don't have a special handler, no completion if [[ ${cur} != "${words[cword]}" ]]; then return fi local completions if [[ ${#must_have_one_flag[@]} -ne 0 ]]; then completions=("${must_have_one_flag[@]}") elif [[ ${#must_have_one_noun[@]} -ne 0 ]]; then completions=("${must_have_one_noun[@]}") else completions=("${commands[@]}") fi COMPREPLY=( $(compgen -W "${completions[*]}" -- "$cur") ) if [[ ${#COMPREPLY[@]} -eq 0 ]]; then declare -F __custom_func >/dev/null && __custom_func fi } # The arguments should be in the form "ext1|ext2|extn" __handle_filename_extension_flag() { local ext="$1" _filedir "@(${ext})" } __handle_subdirs_in_dir_flag() { local dir="$1" pushd "${dir}" >/dev/null 2>&1 && _filedir -d && popd >/dev/null 2>&1 } __handle_flag() { __debug "${FUNCNAME}: c is $c words[c] is ${words[c]}" # if a command required a flag, and we found it, unset must_have_one_flag() local flagname=${words[c]} # if the word contained an = if [[ ${words[c]} == *"="* ]]; then flagname=${flagname%=*} # strip everything after the = flagname="${flagname}=" # but put the = back fi __debug "${FUNCNAME}: looking for ${flagname}" if __contains_word "${flagname}" "${must_have_one_flag[@]}"; then must_have_one_flag=() fi # skip the argument to a two word flag if __contains_word "${words[c]}" "${two_word_flags[@]}"; then c=$((c+1)) # if we are looking for a flags value, don't show commands if [[ $c -eq $cword ]]; then commands=() fi fi # skip the flag itself c=$((c+1)) } __handle_noun() { __debug "${FUNCNAME}: c is $c words[c] is ${words[c]}" if __contains_word "${words[c]}" "${must_have_one_noun[@]}"; then must_have_one_noun=() fi nouns+=("${words[c]}") c=$((c+1)) } __handle_command() { __debug "${FUNCNAME}: c is $c words[c] is ${words[c]}" local next_command if [[ -n ${last_command} ]]; then next_command="_${last_command}_${words[c]}" else next_command="_${words[c]}" fi c=$((c+1)) __debug "${FUNCNAME}: looking for ${next_command}" declare -F $next_command >/dev/null && $next_command } __handle_word() { if [[ $c -ge $cword ]]; then __handle_reply return fi __debug "${FUNCNAME}: c is $c words[c] is ${words[c]}" if [[ "${words[c]}" == -* ]]; then __handle_flag elif __contains_word "${words[c]}" "${commands[@]}"; then __handle_command else __handle_noun fi __handle_word } # call oc get $1, __oc_parse_get() { local template template="{{ range .items }}{{ .metadata.name }} {{ end }}" local oc_out if oc_out=$(oc get -o template --template="${template}" "$1" 2>/dev/null); then COMPREPLY=( $( compgen -W "${oc_out[*]}" -- "$cur" ) ) fi } __oc_get_resource() { if [[ ${#nouns[@]} -eq 0 ]]; then return 1 fi __oc_parse_get ${nouns[${#nouns[@]} -1]} } # $1 is the name of the pod we want to get the list of containers inside __oc_get_containers() { local template template="{{ range .spec.containers }}{{ .name }} {{ end }}" __debug ${FUNCNAME} "nouns are ${nouns[@]}" local len="${#nouns[@]}" if [[ ${len} -ne 1 ]]; then return fi local last=${nouns[${len} -1]} local oc_out if oc_out=$(oc get -o template --template="${template}" pods "${last}" 2>/dev/null); then COMPREPLY=( $( compgen -W "${oc_out[*]}" -- "$cur" ) ) fi } # Require both a pod and a container to be specified __oc_require_pod_and_container() { if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get pods return 0 fi; __oc_get_containers return 0 } __custom_func() { case ${last_command} in # first arg is the kind according to ValidArgs, second is resource name oc_get | oc_describe | oc_delete | oc_label | oc_stop | oc_expose | oc_export | oc_patch | oc_annotate | oc_env | oc_edit | oc_volume | oc_scale ) __oc_get_resource return ;; # first arg is a pod name oc_rsh) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get pods fi; return ;; # first arg is a pod name, second is a container name oc_logs | oc_attach) __oc_require_pod_and_container return ;; # args other than the first are filenames oc_secrets_new) # Complete args other than the first as filenames if [[ ${#nouns[@]} -gt 0 ]]; then _filedir fi; return ;; # first arg is a build config name oc_start-build | oc_cancel-build) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get buildconfigs fi; return ;; # first arg is a deployment config oc_deploy) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get deploymentconfigs fi; return ;; # first arg is a deployment config OR deployment oc_rollback) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get deploymentconfigs,replicationcontrollers fi; return ;; # first arg is a project name oc_project) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get projects fi; return ;; # first arg is an image stream oc_import-image) if [[ ${#nouns[@]} -eq 0 ]]; then __oc_parse_get imagestreams fi; return ;; *) ;; esac } _oc_types() { last_command="oc_types" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_login() { last_command="oc_login" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--password=") two_word_flags+=("-p") flags+=("--username=") two_word_flags+=("-u") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_new-project() { last_command="oc_new-project" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--description=") flags+=("--display-name=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_new-app() { last_command="oc_new-app" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--allow-missing-images") flags+=("--allow-missing-imagestream-tags") flags+=("--as-test") flags+=("--code=") flags+=("--context-dir=") flags+=("--docker-image=") flags+=("--dry-run") flags+=("--env=") two_word_flags+=("-e") flags+=("--file=") flags_with_completion+=("--file") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--grant-install-rights") flags+=("--group=") flags+=("--image=") flags+=("--image-stream=") two_word_flags+=("-i") flags+=("--insecure-registry") flags+=("--labels=") two_word_flags+=("-l") flags+=("--list") flags+=("-L") flags+=("--name=") flags+=("--no-install") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--param=") two_word_flags+=("-p") flags+=("--search") flags+=("-S") flags+=("--strategy=") flags+=("--template=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_status() { last_command="oc_status" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all-namespaces") flags+=("--output=") two_word_flags+=("-o") flags+=("--verbose") flags+=("-v") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_project() { last_command="oc_project" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--short") flags+=("-q") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_explain() { last_command="oc_explain" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--include-extended-apis") flags+=("--recursive") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_cluster_up() { last_command="oc_cluster_up" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--create-machine") flags+=("--docker-machine=") flags+=("--env=") two_word_flags+=("-e") flags+=("--host-config-dir=") flags+=("--host-data-dir=") flags+=("--host-volumes-dir=") flags+=("--image=") flags+=("--public-hostname=") flags+=("--routing-suffix=") flags+=("--server-loglevel=") flags+=("--skip-registry-check") flags+=("--use-existing-config") flags+=("--version=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_cluster_down() { last_command="oc_cluster_down" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--docker-machine=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_cluster() { last_command="oc_cluster" commands=() commands+=("up") commands+=("down") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_deploy() { last_command="oc_deploy" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cancel") flags+=("--enable-triggers") flags+=("--latest") flags+=("--retry") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_rollback() { last_command="oc_rollback" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--change-scaling-settings") flags+=("--change-strategy") flags+=("--change-triggers") flags+=("--dry-run") flags+=("-d") flags+=("--output=") two_word_flags+=("-o") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--to-version=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_new-build() { last_command="oc_new-build" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--allow-missing-images") flags+=("--allow-missing-imagestream-tags") flags+=("--binary") flags+=("--build-secret=") flags+=("--code=") flags+=("--context-dir=") flags+=("--docker-image=") flags+=("--dockerfile=") two_word_flags+=("-D") flags+=("--dry-run") flags+=("--env=") two_word_flags+=("-e") flags+=("--image=") flags+=("--image-stream=") two_word_flags+=("-i") flags+=("--labels=") two_word_flags+=("-l") flags+=("--name=") flags+=("--no-output") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--source-image=") flags+=("--source-image-path=") flags+=("--strategy=") flags+=("--to=") flags+=("--to-docker") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_start-build() { last_command="oc_start-build" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--build-loglevel=") flags+=("--commit=") flags+=("--env=") two_word_flags+=("-e") flags+=("--follow") flags+=("--from-build=") flags+=("--from-dir=") flags+=("--from-file=") flags+=("--from-repo=") flags+=("--from-webhook=") flags+=("--git-post-receive=") flags+=("--git-repository=") flags+=("--list-webhooks=") flags+=("--wait") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_cancel-build() { last_command="oc_cancel-build" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--dump-logs") flags+=("--restart") flags+=("--state=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_import-image() { last_command="oc_import-image" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--confirm") flags+=("--from=") flags+=("--insecure") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_tag() { last_command="oc_tag" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--alias") flags+=("--delete") flags+=("-d") flags+=("--insecure") flags+=("--scheduled") flags+=("--source=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_get() { last_command="oc_get" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all-namespaces") flags+=("--export") 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+=("--include-extended-apis") flags+=("--label-columns=") two_word_flags+=("-L") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--recursive") flags+=("-R") flags+=("--selector=") two_word_flags+=("-l") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--watch") flags+=("-w") flags+=("--watch-only") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() must_have_one_noun+=("build") must_have_one_noun+=("buildconfig") must_have_one_noun+=("clusternetwork") must_have_one_noun+=("clusterpolicy") must_have_one_noun+=("clusterpolicybinding") must_have_one_noun+=("clusterrole") must_have_one_noun+=("clusterrolebinding") must_have_one_noun+=("componentstatus") must_have_one_noun+=("configmap") must_have_one_noun+=("daemonset") must_have_one_noun+=("deployment") must_have_one_noun+=("deploymentconfig") must_have_one_noun+=("endpoints") must_have_one_noun+=("event") must_have_one_noun+=("group") must_have_one_noun+=("horizontalpodautoscaler") must_have_one_noun+=("hostsubnet") must_have_one_noun+=("identity") must_have_one_noun+=("image") must_have_one_noun+=("imagestream") must_have_one_noun+=("imagestreamimage") must_have_one_noun+=("imagestreamtag") must_have_one_noun+=("ingress") must_have_one_noun+=("ispersonalsubjectaccessreview") must_have_one_noun+=("job") must_have_one_noun+=("limitrange") must_have_one_noun+=("namespace") must_have_one_noun+=("netnamespace") must_have_one_noun+=("node") must_have_one_noun+=("oauthaccesstoken") must_have_one_noun+=("oauthauthorizetoken") must_have_one_noun+=("oauthclient") must_have_one_noun+=("oauthclientauthorization") must_have_one_noun+=("persistentvolume") must_have_one_noun+=("persistentvolumeclaim") must_have_one_noun+=("pod") must_have_one_noun+=("podsecuritypolicy") must_have_one_noun+=("podtemplate") must_have_one_noun+=("policy") must_have_one_noun+=("policybinding") must_have_one_noun+=("project") must_have_one_noun+=("replicaset") must_have_one_noun+=("replicationcontroller") must_have_one_noun+=("resourcequota") must_have_one_noun+=("role") must_have_one_noun+=("rolebinding") must_have_one_noun+=("route") must_have_one_noun+=("secret") must_have_one_noun+=("securitycontextconstraints") must_have_one_noun+=("service") must_have_one_noun+=("serviceaccount") must_have_one_noun+=("template") must_have_one_noun+=("thirdpartyresource") must_have_one_noun+=("thirdpartyresourcedata") must_have_one_noun+=("user") must_have_one_noun+=("useridentitymapping") } _oc_describe() { last_command="oc_describe" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() 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+=("--include-extended-apis") flags+=("--recursive") flags+=("-R") flags+=("--selector=") two_word_flags+=("-l") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() must_have_one_noun+=("build") must_have_one_noun+=("buildconfig") must_have_one_noun+=("clusterpolicy") must_have_one_noun+=("clusterpolicybinding") must_have_one_noun+=("clusterrole") must_have_one_noun+=("clusterrolebinding") must_have_one_noun+=("configmap") must_have_one_noun+=("daemonset") must_have_one_noun+=("deployment") must_have_one_noun+=("deploymentconfig") must_have_one_noun+=("endpoints") must_have_one_noun+=("group") must_have_one_noun+=("horizontalpodautoscaler") must_have_one_noun+=("horizontalpodautoscaler") must_have_one_noun+=("identity") must_have_one_noun+=("image") must_have_one_noun+=("imagestream") must_have_one_noun+=("imagestreamimage") must_have_one_noun+=("imagestreamtag") must_have_one_noun+=("ingress") must_have_one_noun+=("job") must_have_one_noun+=("job") must_have_one_noun+=("limitrange") must_have_one_noun+=("namespace") must_have_one_noun+=("node") must_have_one_noun+=("oauthaccesstoken") must_have_one_noun+=("persistentvolume") must_have_one_noun+=("persistentvolumeclaim") must_have_one_noun+=("pod") must_have_one_noun+=("policy") must_have_one_noun+=("policybinding") must_have_one_noun+=("project") must_have_one_noun+=("replicaset") must_have_one_noun+=("replicationcontroller") must_have_one_noun+=("resourcequota") must_have_one_noun+=("role") must_have_one_noun+=("rolebinding") must_have_one_noun+=("route") must_have_one_noun+=("secret") must_have_one_noun+=("securitycontextconstraints") must_have_one_noun+=("service") must_have_one_noun+=("serviceaccount") must_have_one_noun+=("template") must_have_one_noun+=("user") must_have_one_noun+=("useridentitymapping") } _oc_edit() { last_command="oc_edit" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() 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+=("--include-extended-apis") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--save-config") flags+=("--windows-line-endings") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_set_env() { last_command="oc_set_env" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--containers=") two_word_flags+=("-c") flags+=("--env=") two_word_flags+=("-e") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--list") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overwrite") flags+=("--resource-version=") flags+=("--selector=") two_word_flags+=("-l") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_set_volumes() { last_command="oc_set_volumes" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--add") flags+=("--all") flags+=("--claim-mode=") flags+=("--claim-name=") flags+=("--claim-size=") flags+=("--configmap-name=") flags+=("--confirm") flags+=("--containers=") two_word_flags+=("-c") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--list") flags+=("--mount-path=") two_word_flags+=("-m") flags+=("--name=") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overwrite") flags+=("--path=") flags+=("--remove") flags+=("--secret-name=") flags+=("--selector=") two_word_flags+=("-l") flags+=("--source=") flags+=("--type=") two_word_flags+=("-t") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_set_probe() { last_command="oc_set_probe" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--containers=") two_word_flags+=("-c") flags+=("--failure-threshold=") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--get-url=") flags+=("--initial-delay-seconds=") flags+=("--liveness") flags+=("--no-headers") flags+=("--open-tcp=") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--period-seconds=") flags+=("--readiness") flags+=("--remove") flags+=("--selector=") two_word_flags+=("-l") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--success-threshold=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--timeout-seconds=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_set_triggers() { last_command="oc_set_triggers" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--auto") flags+=("--containers=") two_word_flags+=("-c") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--from-config") flags+=("--from-github") flags+=("--from-image=") flags+=("--from-webhook") flags+=("--from-webhook-allow-env") flags+=("--manual") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--remove") flags+=("--remove-all") flags+=("--selector=") two_word_flags+=("-l") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_set() { last_command="oc_set" commands=() commands+=("env") commands+=("volumes") commands+=("probe") commands+=("triggers") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_label() { last_command="oc_label" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") 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+=("--include-extended-apis") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overwrite") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--resource-version=") flags+=("--selector=") two_word_flags+=("-l") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() must_have_one_noun+=("build") must_have_one_noun+=("buildconfig") must_have_one_noun+=("clusternetwork") must_have_one_noun+=("clusterpolicy") must_have_one_noun+=("clusterpolicybinding") must_have_one_noun+=("clusterrole") must_have_one_noun+=("clusterrolebinding") must_have_one_noun+=("componentstatus") must_have_one_noun+=("configmap") must_have_one_noun+=("daemonset") must_have_one_noun+=("deployment") must_have_one_noun+=("deploymentconfig") must_have_one_noun+=("endpoints") must_have_one_noun+=("event") must_have_one_noun+=("group") must_have_one_noun+=("horizontalpodautoscaler") must_have_one_noun+=("hostsubnet") must_have_one_noun+=("identity") must_have_one_noun+=("image") must_have_one_noun+=("imagestream") must_have_one_noun+=("imagestreamimage") must_have_one_noun+=("imagestreamtag") must_have_one_noun+=("ingress") must_have_one_noun+=("ispersonalsubjectaccessreview") must_have_one_noun+=("job") must_have_one_noun+=("limitrange") must_have_one_noun+=("namespace") must_have_one_noun+=("netnamespace") must_have_one_noun+=("node") must_have_one_noun+=("oauthaccesstoken") must_have_one_noun+=("oauthauthorizetoken") must_have_one_noun+=("oauthclient") must_have_one_noun+=("oauthclientauthorization") must_have_one_noun+=("persistentvolume") must_have_one_noun+=("persistentvolumeclaim") must_have_one_noun+=("pod") must_have_one_noun+=("podsecuritypolicy") must_have_one_noun+=("podtemplate") must_have_one_noun+=("policy") must_have_one_noun+=("policybinding") must_have_one_noun+=("project") must_have_one_noun+=("replicaset") must_have_one_noun+=("replicationcontroller") must_have_one_noun+=("resourcequota") must_have_one_noun+=("role") must_have_one_noun+=("rolebinding") must_have_one_noun+=("route") must_have_one_noun+=("secret") must_have_one_noun+=("securitycontextconstraints") must_have_one_noun+=("service") must_have_one_noun+=("serviceaccount") must_have_one_noun+=("template") must_have_one_noun+=("thirdpartyresource") must_have_one_noun+=("thirdpartyresourcedata") must_have_one_noun+=("user") must_have_one_noun+=("useridentitymapping") } _oc_annotate() { last_command="oc_annotate" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") 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+=("--include-extended-apis") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overwrite") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--resource-version=") flags+=("--selector=") two_word_flags+=("-l") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_expose() { last_command="oc_expose" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--container-port=") flags+=("--create-external-load-balancer") flags+=("--dry-run") flags+=("--external-ip=") 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+=("--generator=") flags+=("--hostname=") flags+=("--labels=") two_word_flags+=("-l") flags+=("--load-balancer-ip=") flags+=("--name=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overrides=") flags+=("--path=") flags+=("--port=") flags+=("--protocol=") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--save-config") flags+=("--selector=") flags+=("--session-affinity=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--target-port=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--type=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_delete() { last_command="oc_delete" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--cascade") 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+=("--grace-period=") flags+=("--ignore-not-found") flags+=("--include-extended-apis") flags+=("--output=") two_word_flags+=("-o") flags+=("--recursive") flags+=("-R") flags+=("--selector=") two_word_flags+=("-l") flags+=("--timeout=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() must_have_one_noun+=("build") must_have_one_noun+=("buildconfig") must_have_one_noun+=("clusternetwork") must_have_one_noun+=("clusterpolicy") must_have_one_noun+=("clusterpolicybinding") must_have_one_noun+=("clusterrole") must_have_one_noun+=("clusterrolebinding") must_have_one_noun+=("componentstatus") must_have_one_noun+=("configmap") must_have_one_noun+=("daemonset") must_have_one_noun+=("deployment") must_have_one_noun+=("deploymentconfig") must_have_one_noun+=("endpoints") must_have_one_noun+=("event") must_have_one_noun+=("group") must_have_one_noun+=("horizontalpodautoscaler") must_have_one_noun+=("hostsubnet") must_have_one_noun+=("identity") must_have_one_noun+=("image") must_have_one_noun+=("imagestream") must_have_one_noun+=("imagestreamimage") must_have_one_noun+=("imagestreamtag") must_have_one_noun+=("ingress") must_have_one_noun+=("ispersonalsubjectaccessreview") must_have_one_noun+=("job") must_have_one_noun+=("limitrange") must_have_one_noun+=("namespace") must_have_one_noun+=("netnamespace") must_have_one_noun+=("node") must_have_one_noun+=("oauthaccesstoken") must_have_one_noun+=("oauthauthorizetoken") must_have_one_noun+=("oauthclient") must_have_one_noun+=("oauthclientauthorization") must_have_one_noun+=("persistentvolume") must_have_one_noun+=("persistentvolumeclaim") must_have_one_noun+=("pod") must_have_one_noun+=("podsecuritypolicy") must_have_one_noun+=("podtemplate") must_have_one_noun+=("policy") must_have_one_noun+=("policybinding") must_have_one_noun+=("project") must_have_one_noun+=("replicaset") must_have_one_noun+=("replicationcontroller") must_have_one_noun+=("resourcequota") must_have_one_noun+=("role") must_have_one_noun+=("rolebinding") must_have_one_noun+=("route") must_have_one_noun+=("secret") must_have_one_noun+=("securitycontextconstraints") must_have_one_noun+=("service") must_have_one_noun+=("serviceaccount") must_have_one_noun+=("template") must_have_one_noun+=("thirdpartyresource") must_have_one_noun+=("thirdpartyresourcedata") must_have_one_noun+=("user") must_have_one_noun+=("useridentitymapping") } _oc_scale() { last_command="oc_scale" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--current-replicas=") 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+=("--include-extended-apis") flags+=("--output=") two_word_flags+=("-o") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--replicas=") flags+=("--resource-version=") flags+=("--timeout=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--replicas=") must_have_one_noun=() must_have_one_noun+=("deploymentconfig") must_have_one_noun+=("job") must_have_one_noun+=("replicationcontroller") } _oc_autoscale() { last_command="oc_autoscale" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cpu-percent=") 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+=("--generator=") flags+=("--include-extended-apis") flags+=("--max=") flags+=("--min=") flags+=("--name=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--save-config") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--max=") must_have_one_noun=() } _oc_secrets_new() { last_command="oc_secrets_new" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--confirm") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--quiet") flags+=("-q") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--type=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_secrets_new-dockercfg() { last_command="oc_secrets_new-dockercfg" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--docker-email=") flags+=("--docker-password=") flags+=("--docker-server=") flags+=("--docker-username=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_secrets_new-basicauth() { last_command="oc_secrets_new-basicauth" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--ca-cert=") flags_with_completion+=("--ca-cert") flags_completion+=("_filedir") flags+=("--gitconfig=") flags_with_completion+=("--gitconfig") flags_completion+=("_filedir") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--password=") flags+=("--prompt") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--username=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_secrets_new-sshauth() { last_command="oc_secrets_new-sshauth" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--ca-cert=") flags_with_completion+=("--ca-cert") flags_completion+=("_filedir") flags+=("--gitconfig=") flags_with_completion+=("--gitconfig") flags_completion+=("_filedir") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--ssh-privatekey=") flags_with_completion+=("--ssh-privatekey") flags_completion+=("_filedir") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_secrets_add() { last_command="oc_secrets_add" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--for=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_secrets() { last_command="oc_secrets" commands=() commands+=("new") commands+=("new-dockercfg") commands+=("new-basicauth") commands+=("new-sshauth") commands+=("add") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_serviceaccounts_get-token() { last_command="oc_serviceaccounts_get-token" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_serviceaccounts_new-token() { last_command="oc_serviceaccounts_new-token" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--labels=") two_word_flags+=("-l") flags+=("--timeout=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_serviceaccounts() { last_command="oc_serviceaccounts" commands=() commands+=("get-token") commands+=("new-token") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_logs() { last_command="oc_logs" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--container=") two_word_flags+=("-c") flags+=("--follow") flags+=("-f") flags+=("--include-extended-apis") flags+=("--interactive") flags+=("--limit-bytes=") flags+=("--previous") flags+=("-p") flags+=("--since=") flags+=("--since-time=") flags+=("--tail=") flags+=("--timestamps") flags+=("--version=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_rsh() { last_command="oc_rsh" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--container=") two_word_flags+=("-c") flags+=("--no-tty") flags+=("-T") flags+=("--shell=") flags+=("--tty") flags+=("-t") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_rsync() { last_command="oc_rsync" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--container=") two_word_flags+=("-c") flags+=("--delete") flags+=("--exclude=") flags+=("--include=") flags+=("--no-perms") flags+=("--progress") flags+=("--quiet") flags+=("-q") flags+=("--strategy=") flags+=("--watch") flags+=("-w") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_port-forward() { last_command="oc_port-forward" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--pod=") two_word_flags+=("-p") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_debug() { last_command="oc_debug" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--as-root") flags+=("--as-user=") flags+=("--container=") two_word_flags+=("-c") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--keep-annotations") flags+=("--keep-liveness") flags+=("--keep-readiness") flags+=("--no-headers") flags+=("--no-stdin") flags+=("-I") flags+=("--no-tty") flags+=("-T") flags+=("--node-name=") flags+=("--one-container") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") flags+=("--tty") flags+=("-t") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_exec() { last_command="oc_exec" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--container=") two_word_flags+=("-c") flags+=("--pod=") two_word_flags+=("-p") flags+=("--stdin") flags+=("-i") flags+=("--tty") flags+=("-t") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_proxy() { last_command="oc_proxy" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--accept-hosts=") flags+=("--accept-paths=") flags+=("--address=") flags+=("--api-prefix=") flags+=("--disable-filter") flags+=("--port=") two_word_flags+=("-p") flags+=("--reject-methods=") flags+=("--reject-paths=") flags+=("--unix-socket=") two_word_flags+=("-u") flags+=("--www=") two_word_flags+=("-w") flags+=("--www-prefix=") two_word_flags+=("-P") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_attach() { last_command="oc_attach" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--container=") two_word_flags+=("-c") flags+=("--stdin") flags+=("-i") flags+=("--tty") flags+=("-t") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_run() { last_command="oc_run" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--attach") flags+=("--command") flags+=("--dry-run") flags+=("--env=") flags+=("--expose") flags+=("--generator=") flags+=("--hostport=") flags+=("--image=") flags+=("--include-extended-apis") flags+=("--labels=") two_word_flags+=("-l") flags+=("--leave-stdin-open") flags+=("--limits=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overrides=") flags+=("--port=") flags+=("--record") flags+=("--replicas=") two_word_flags+=("-r") flags+=("--requests=") flags+=("--restart=") flags+=("--rm") flags+=("--save-config") flags+=("--service-generator=") flags+=("--service-overrides=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--stdin") flags+=("-i") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--tty") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--image=") must_have_one_noun=() } _oc_adm_new-project() { last_command="oc_adm_new-project" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--admin=") flags+=("--admin-role=") flags+=("--description=") flags+=("--display-name=") flags+=("--node-selector=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_who-can() { last_command="oc_adm_policy_who-can" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all-namespaces") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-user() { last_command="oc_adm_policy_remove-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-group() { last_command="oc_adm_policy_remove-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_add-role-to-user() { last_command="oc_adm_policy_add-role-to-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--serviceaccount=") two_word_flags+=("-z") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_add-role-to-group() { last_command="oc_adm_policy_add-role-to-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-role-from-user() { last_command="oc_adm_policy_remove-role-from-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--serviceaccount=") two_word_flags+=("-z") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-role-from-group() { last_command="oc_adm_policy_remove-role-from-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_add-cluster-role-to-user() { last_command="oc_adm_policy_add-cluster-role-to-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_add-cluster-role-to-group() { last_command="oc_adm_policy_add-cluster-role-to-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-cluster-role-from-user() { last_command="oc_adm_policy_remove-cluster-role-from-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-cluster-role-from-group() { last_command="oc_adm_policy_remove-cluster-role-from-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_add-scc-to-user() { last_command="oc_adm_policy_add-scc-to-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--serviceaccount=") two_word_flags+=("-z") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_add-scc-to-group() { last_command="oc_adm_policy_add-scc-to-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-scc-from-user() { last_command="oc_adm_policy_remove-scc-from-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--serviceaccount=") two_word_flags+=("-z") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_remove-scc-from-group() { last_command="oc_adm_policy_remove-scc-from-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_reconcile-cluster-roles() { last_command="oc_adm_policy_reconcile-cluster-roles" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--additive-only") flags+=("--confirm") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_reconcile-cluster-role-bindings() { last_command="oc_adm_policy_reconcile-cluster-role-bindings" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--additive-only") flags+=("--confirm") flags+=("--exclude-groups=") flags+=("--exclude-users=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy_reconcile-sccs() { last_command="oc_adm_policy_reconcile-sccs" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--additive-only") flags+=("--confirm") flags+=("--infrastructure-namespace=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_policy() { last_command="oc_adm_policy" commands=() commands+=("who-can") commands+=("remove-user") commands+=("remove-group") commands+=("add-role-to-user") commands+=("add-role-to-group") commands+=("remove-role-from-user") commands+=("remove-role-from-group") commands+=("add-cluster-role-to-user") commands+=("add-cluster-role-to-group") commands+=("remove-cluster-role-from-user") commands+=("remove-cluster-role-from-group") commands+=("add-scc-to-user") commands+=("add-scc-to-group") commands+=("remove-scc-from-user") commands+=("remove-scc-from-group") commands+=("reconcile-cluster-roles") commands+=("reconcile-cluster-role-bindings") commands+=("reconcile-sccs") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_groups_new() { last_command="oc_adm_groups_new" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_groups_add-users() { last_command="oc_adm_groups_add-users" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_groups_remove-users() { last_command="oc_adm_groups_remove-users" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_groups_sync() { last_command="oc_adm_groups_sync" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--blacklist=") flags_with_completion+=("--blacklist") flags_completion+=("__handle_filename_extension_flag txt") flags+=("--confirm") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--sync-config=") flags_with_completion+=("--sync-config") flags_completion+=("__handle_filename_extension_flag yaml|yml") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--type=") flags+=("--whitelist=") flags_with_completion+=("--whitelist") flags_completion+=("__handle_filename_extension_flag txt") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_groups_prune() { last_command="oc_adm_groups_prune" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--blacklist=") flags_with_completion+=("--blacklist") flags_completion+=("__handle_filename_extension_flag txt") flags+=("--confirm") flags+=("--sync-config=") flags_with_completion+=("--sync-config") flags_completion+=("__handle_filename_extension_flag yaml|yml") flags+=("--whitelist=") flags_with_completion+=("--whitelist") flags_completion+=("__handle_filename_extension_flag txt") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_groups() { last_command="oc_adm_groups" commands=() commands+=("new") commands+=("add-users") commands+=("remove-users") commands+=("sync") commands+=("prune") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_router() { last_command="oc_adm_router" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--create") flags+=("--credentials=") flags_with_completion+=("--credentials") flags_completion+=("__handle_filename_extension_flag kubeconfig") flags+=("--default-cert=") flags+=("--dry-run") flags+=("--expose-metrics") flags+=("--external-host=") flags+=("--external-host-http-vserver=") flags+=("--external-host-https-vserver=") flags+=("--external-host-insecure") flags+=("--external-host-partition-path=") flags+=("--external-host-password=") flags+=("--external-host-private-key=") flags+=("--external-host-username=") flags+=("--force-subdomain=") flags+=("--host-network") flags+=("--host-ports") flags+=("--images=") flags+=("--labels=") flags+=("--latest-images") flags+=("--metrics-image=") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--ports=") flags+=("--replicas=") flags+=("--secrets-as-env") flags+=("--selector=") flags+=("--service-account=") flags+=("--stats-password=") flags+=("--stats-port=") flags+=("--stats-user=") flags+=("--subdomain=") flags+=("--type=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ipfailover() { last_command="oc_adm_ipfailover" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--create") flags+=("--credentials=") flags_with_completion+=("--credentials") flags_completion+=("__handle_filename_extension_flag kubeconfig") flags+=("--dry-run") flags+=("--images=") flags+=("--interface=") two_word_flags+=("-i") flags+=("--latest-images") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--replicas=") two_word_flags+=("-r") flags+=("--selector=") two_word_flags+=("-l") flags+=("--service-account=") flags+=("--type=") flags+=("--virtual-ips=") flags+=("--vrrp-id-offset=") flags+=("--watch-port=") two_word_flags+=("-w") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_registry() { last_command="oc_adm_registry" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--create") flags+=("--credentials=") flags_with_completion+=("--credentials") flags_completion+=("__handle_filename_extension_flag kubeconfig") flags+=("--daemonset") flags+=("--dry-run") flags+=("--images=") flags+=("--labels=") flags+=("--latest-images") flags+=("--mount-host=") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--ports=") flags+=("--replicas=") flags+=("--selector=") flags+=("--service-account=") flags+=("--tls-certificate=") flags+=("--tls-key=") flags+=("--type=") flags+=("--volume=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_build-chain() { last_command="oc_adm_build-chain" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--output=") two_word_flags+=("-o") flags+=("--reverse") flags+=("--trigger-only") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_diagnostics() { last_command="oc_adm_diagnostics" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cluster-context=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--diaglevel=") two_word_flags+=("-l") flags+=("--host") flags+=("--images=") flags+=("--latest-images") flags+=("--master-config=") flags+=("--node-config=") flags+=("--prevent-modification") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_manage-node() { last_command="oc_adm_manage-node" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--dry-run") flags+=("--evacuate") flags+=("--force") flags+=("--grace-period=") flags+=("--list-pods") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--pod-selector=") flags+=("--schedulable") flags+=("--selector=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_prune_builds() { last_command="oc_adm_prune_builds" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--confirm") flags+=("--keep-complete=") flags+=("--keep-failed=") flags+=("--keep-younger-than=") flags+=("--orphans") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_prune_deployments() { last_command="oc_adm_prune_deployments" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--confirm") flags+=("--keep-complete=") flags+=("--keep-failed=") flags+=("--keep-younger-than=") flags+=("--orphans") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_prune_images() { last_command="oc_adm_prune_images" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--certificate-authority=") flags+=("--confirm") flags+=("--keep-tag-revisions=") flags+=("--keep-younger-than=") flags+=("--registry-url=") flags+=("--api-version=") flags+=("--as=") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_prune_groups() { last_command="oc_adm_prune_groups" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--blacklist=") flags_with_completion+=("--blacklist") flags_completion+=("__handle_filename_extension_flag txt") flags+=("--confirm") flags+=("--sync-config=") flags_with_completion+=("--sync-config") flags_completion+=("__handle_filename_extension_flag yaml|yml") flags+=("--whitelist=") flags_with_completion+=("--whitelist") flags_completion+=("__handle_filename_extension_flag txt") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_prune() { last_command="oc_adm_prune" commands=() commands+=("builds") commands+=("deployments") commands+=("images") commands+=("groups") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_view() { last_command="oc_adm_config_view" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--flatten") flags+=("--merge=") flags+=("--minify") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--raw") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_set-cluster() { last_command="oc_adm_config_set-cluster" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--embed-certs=") flags+=("--insecure-skip-tls-verify=") flags+=("--server=") flags+=("--as=") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_set-credentials() { last_command="oc_adm_config_set-credentials" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--embed-certs=") flags+=("--password=") flags+=("--token=") flags+=("--username=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_set-context() { last_command="oc_adm_config_set-context" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cluster=") flags+=("--namespace=") flags+=("--user=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--server=") flags+=("--token=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_set() { last_command="oc_adm_config_set" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_unset() { last_command="oc_adm_config_unset" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_current-context() { last_command="oc_adm_config_current-context" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config_use-context() { last_command="oc_adm_config_use-context" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_config() { last_command="oc_adm_config" commands=() commands+=("view") commands+=("set-cluster") commands+=("set-credentials") commands+=("set-context") commands+=("set") commands+=("unset") commands+=("current-context") commands+=("use-context") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-kubeconfig() { last_command="oc_adm_create-kubeconfig" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--kubeconfig=") flags_with_completion+=("--kubeconfig") flags_completion+=("_filedir") flags+=("--master=") flags+=("--namespace=") flags+=("--public-master=") flags+=("--api-version=") flags+=("--as=") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-api-client-config() { last_command="oc_adm_create-api-client-config" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--basename=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-dir=") flags_with_completion+=("--client-dir") flags_completion+=("_filedir") flags+=("--groups=") flags+=("--master=") flags+=("--public-master=") flags+=("--signer-cert=") flags_with_completion+=("--signer-cert") flags_completion+=("_filedir") flags+=("--signer-key=") flags_with_completion+=("--signer-key") flags_completion+=("_filedir") flags+=("--signer-serial=") flags_with_completion+=("--signer-serial") flags_completion+=("_filedir") flags+=("--user=") flags+=("--api-version=") flags+=("--as=") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_pod-network_join-projects() { last_command="oc_adm_pod-network_join-projects" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--selector=") flags+=("--to=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_pod-network_make-projects-global() { last_command="oc_adm_pod-network_make-projects-global" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--selector=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_pod-network() { last_command="oc_adm_pod-network" commands=() commands+=("join-projects") commands+=("make-projects-global") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-bootstrap-project-template() { last_command="oc_adm_create-bootstrap-project-template" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--name=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-bootstrap-policy-file() { last_command="oc_adm_create-bootstrap-policy-file" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("_filedir") flags+=("--openshift-namespace=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-login-template() { last_command="oc_adm_create-login-template" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-provider-selection-template() { last_command="oc_adm_create-provider-selection-template" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-error-template() { last_command="oc_adm_create-error-template" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_overwrite-policy() { last_command="oc_adm_overwrite-policy" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("_filedir") flags+=("--force") flags+=("-f") flags+=("--master-config=") flags_with_completion+=("--master-config") flags_completion+=("__handle_filename_extension_flag yaml|yml") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_create-node-config() { last_command="oc_adm_create-node-config" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--allow-disabled-docker") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--dns-domain=") flags+=("--dns-ip=") flags+=("--hostnames=") flags+=("--images=") flags+=("--latest-images") flags+=("--listen=") flags+=("--master=") flags+=("--network-plugin=") flags+=("--node=") flags+=("--node-client-certificate-authority=") flags_with_completion+=("--node-client-certificate-authority") flags_completion+=("_filedir") flags+=("--node-dir=") flags_with_completion+=("--node-dir") flags_completion+=("_filedir") flags+=("--server-certificate=") flags_with_completion+=("--server-certificate") flags_completion+=("_filedir") flags+=("--server-key=") flags_with_completion+=("--server-key") flags_completion+=("_filedir") flags+=("--signer-cert=") flags_with_completion+=("--signer-cert") flags_completion+=("_filedir") flags+=("--signer-key=") flags_with_completion+=("--signer-key") flags_completion+=("_filedir") flags+=("--signer-serial=") flags_with_completion+=("--signer-serial") flags_completion+=("_filedir") flags+=("--volume-dir=") flags_with_completion+=("--volume-dir") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ca_create-master-certs() { last_command="oc_adm_ca_create-master-certs" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cert-dir=") flags_with_completion+=("--cert-dir") flags_completion+=("_filedir") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--hostnames=") flags+=("--master=") flags+=("--overwrite") flags+=("--public-master=") flags+=("--signer-name=") flags+=("--api-version=") flags+=("--as=") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ca_create-key-pair() { last_command="oc_adm_ca_create-key-pair" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--overwrite") flags+=("--private-key=") flags_with_completion+=("--private-key") flags_completion+=("_filedir") flags+=("--public-key=") flags_with_completion+=("--public-key") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ca_create-server-cert() { last_command="oc_adm_ca_create-server-cert" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cert=") flags_with_completion+=("--cert") flags_completion+=("_filedir") flags+=("--hostnames=") flags+=("--key=") flags_with_completion+=("--key") flags_completion+=("_filedir") flags+=("--overwrite") flags+=("--signer-cert=") flags_with_completion+=("--signer-cert") flags_completion+=("_filedir") flags+=("--signer-key=") flags_with_completion+=("--signer-key") flags_completion+=("_filedir") flags+=("--signer-serial=") flags_with_completion+=("--signer-serial") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ca_create-signer-cert() { last_command="oc_adm_ca_create-signer-cert" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cert=") flags_with_completion+=("--cert") flags_completion+=("_filedir") flags+=("--key=") flags_with_completion+=("--key") flags_completion+=("_filedir") flags+=("--name=") flags+=("--overwrite") flags+=("--serial=") flags_with_completion+=("--serial") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ca_encrypt() { last_command="oc_adm_ca_encrypt" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--genkey=") flags_with_completion+=("--genkey") flags_completion+=("_filedir") flags+=("--in=") flags_with_completion+=("--in") flags_completion+=("_filedir") flags+=("--key=") flags_with_completion+=("--key") flags_completion+=("_filedir") flags+=("--out=") flags_with_completion+=("--out") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ca_decrypt() { last_command="oc_adm_ca_decrypt" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--in=") flags_with_completion+=("--in") flags_completion+=("_filedir") flags+=("--key=") flags_with_completion+=("--key") flags_completion+=("_filedir") flags+=("--out=") flags_with_completion+=("--out") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_ca() { last_command="oc_adm_ca" commands=() commands+=("create-master-certs") commands+=("create-key-pair") commands+=("create-server-cert") commands+=("create-signer-cert") commands+=("encrypt") commands+=("decrypt") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm_options() { last_command="oc_adm_options" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_adm() { last_command="oc_adm" commands=() commands+=("new-project") commands+=("policy") commands+=("groups") commands+=("router") commands+=("ipfailover") commands+=("registry") commands+=("build-chain") commands+=("diagnostics") commands+=("manage-node") commands+=("prune") commands+=("config") commands+=("create-kubeconfig") commands+=("create-api-client-config") commands+=("pod-network") commands+=("create-bootstrap-project-template") commands+=("create-bootstrap-policy-file") commands+=("create-login-template") commands+=("create-provider-selection-template") commands+=("create-error-template") commands+=("overwrite-policy") commands+=("create-node-config") commands+=("ca") commands+=("options") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--insecure-skip-tls-verify") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") flags+=("--google-json-key=") flags+=("--log-flush-frequency=") must_have_one_flag=() must_have_one_noun=() } _oc_create_namespace() { last_command="oc_create_namespace" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--dry-run") flags+=("--generator=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--save-config") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_secret_docker-registry() { last_command="oc_create_secret_docker-registry" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--docker-email=") flags+=("--docker-password=") flags+=("--docker-server=") flags+=("--docker-username=") flags+=("--dry-run") flags+=("--generator=") flags+=("--include-extended-apis") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--save-config") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--docker-email=") must_have_one_flag+=("--docker-password=") must_have_one_flag+=("--docker-username=") must_have_one_noun=() } _oc_create_secret_generic() { last_command="oc_create_secret_generic" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--dry-run") flags+=("--from-file=") flags+=("--from-literal=") flags+=("--generator=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--save-config") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--type=") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_secret() { last_command="oc_create_secret" commands=() commands+=("docker-registry") commands+=("generic") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_configmap() { last_command="oc_create_configmap" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--dry-run") flags+=("--from-file=") flags+=("--from-literal=") flags+=("--generator=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--save-config") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_serviceaccount() { last_command="oc_create_serviceaccount" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--dry-run") flags+=("--generator=") flags+=("--include-extended-apis") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--save-config") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_route_edge() { last_command="oc_create_route_edge" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--ca-cert=") flags_with_completion+=("--ca-cert") flags_completion+=("_filedir") flags+=("--cert=") flags_with_completion+=("--cert") flags_completion+=("_filedir") flags+=("--hostname=") flags+=("--key=") flags_with_completion+=("--key") flags_completion+=("_filedir") flags+=("--output=") two_word_flags+=("-o") flags+=("--path=") flags+=("--port=") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--service=") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--service=") must_have_one_noun=() } _oc_create_route_passthrough() { last_command="oc_create_route_passthrough" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--hostname=") flags+=("--output=") two_word_flags+=("-o") flags+=("--port=") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--service=") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--service=") must_have_one_noun=() } _oc_create_route_reencrypt() { last_command="oc_create_route_reencrypt" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--ca-cert=") flags_with_completion+=("--ca-cert") flags_completion+=("_filedir") flags+=("--cert=") flags_with_completion+=("--cert") flags_completion+=("_filedir") flags+=("--dest-ca-cert=") flags_with_completion+=("--dest-ca-cert") flags_completion+=("_filedir") flags+=("--hostname=") flags+=("--key=") flags_with_completion+=("--key") flags_completion+=("_filedir") flags+=("--output=") two_word_flags+=("-o") flags+=("--path=") flags+=("--port=") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--service=") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--dest-ca-cert=") must_have_one_flag+=("--service=") must_have_one_noun=() } _oc_create_route() { last_command="oc_create_route" commands=() commands+=("edge") commands+=("passthrough") commands+=("reencrypt") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_policybinding() { last_command="oc_create_policybinding" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--output=") two_word_flags+=("-o") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_deploymentconfig() { last_command="oc_create_deploymentconfig" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--image=") flags+=("--output=") two_word_flags+=("-o") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--image=") must_have_one_noun=() } _oc_create_user() { last_command="oc_create_user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--full-name=") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_identity() { last_command="oc_create_identity" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create_useridentitymapping() { last_command="oc_create_useridentitymapping" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_create() { last_command="oc_create" commands=() commands+=("namespace") commands+=("secret") commands+=("configmap") commands+=("serviceaccount") commands+=("route") commands+=("policybinding") commands+=("deploymentconfig") commands+=("user") commands+=("identity") commands+=("useridentitymapping") flags=() two_word_flags=() flags_with_completion=() flags_completion=() 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+=("--include-extended-apis") flags+=("--output=") two_word_flags+=("-o") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--save-config") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--filename=") must_have_one_flag+=("-f") must_have_one_noun=() } _oc_replace() { last_command="oc_replace" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cascade") 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+=("--force") flags+=("--grace-period=") flags+=("--include-extended-apis") flags+=("--output=") two_word_flags+=("-o") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--save-config") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--timeout=") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--filename=") must_have_one_flag+=("-f") must_have_one_noun=() } _oc_apply() { last_command="oc_apply" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() 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+=("--include-extended-apis") flags+=("--output=") two_word_flags+=("-o") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--filename=") must_have_one_flag+=("-f") must_have_one_noun=() } _oc_patch() { last_command="oc_patch" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() 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+=("--include-extended-apis") flags+=("--output=") two_word_flags+=("-o") flags+=("--patch=") two_word_flags+=("-p") flags+=("--record") flags+=("--recursive") flags+=("-R") flags+=("--type=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--patch=") must_have_one_flag+=("-p") must_have_one_noun=() } _oc_process() { last_command="oc_process" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--labels=") two_word_flags+=("-l") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--parameters") flags+=("--raw") flags+=("--template=") two_word_flags+=("-t") flags+=("--value=") two_word_flags+=("-v") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_export() { last_command="oc_export" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--all-namespaces") flags+=("--as-template=") flags+=("--exact") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("_filedir") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("_filedir") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--raw") flags+=("--selector=") two_word_flags+=("-l") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_who-can() { last_command="oc_policy_who-can" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all-namespaces") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_can-i() { last_command="oc_policy_can-i" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all-namespaces") flags+=("--ignore-scopes") flags+=("--list") flags+=("--quiet") flags+=("-q") flags+=("--scopes=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_add-role-to-user() { last_command="oc_policy_add-role-to-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--serviceaccount=") two_word_flags+=("-z") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_remove-role-from-user() { last_command="oc_policy_remove-role-from-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--serviceaccount=") two_word_flags+=("-z") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_remove-user() { last_command="oc_policy_remove-user" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_add-role-to-group() { last_command="oc_policy_add-role-to-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_remove-role-from-group() { last_command="oc_policy_remove-role-from-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--role-namespace=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy_remove-group() { last_command="oc_policy_remove-group" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_policy() { last_command="oc_policy" commands=() commands+=("who-can") commands+=("can-i") commands+=("add-role-to-user") commands+=("remove-role-from-user") commands+=("remove-user") commands+=("add-role-to-group") commands+=("remove-role-from-group") commands+=("remove-group") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_convert() { last_command="oc_convert" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() 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+=("--include-extended-apis") flags+=("--local") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--recursive") flags+=("-R") flags+=("--schema-cache-dir=") flags_with_completion+=("--schema-cache-dir") flags_completion+=("_filedir") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--validate") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--filename=") must_have_one_flag+=("-f") must_have_one_noun=() } _oc_import_docker-compose() { last_command="oc_import_docker-compose" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--as-template=") 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+=("--generator=") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--filename=") must_have_one_flag+=("-f") must_have_one_noun=() } _oc_import_app.json() { last_command="oc_import_app.json" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--as-template=") 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+=("--generator=") flags+=("--image=") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_flag+=("--filename=") must_have_one_flag+=("-f") must_have_one_noun=() } _oc_import() { last_command="oc_import" commands=() commands+=("docker-compose") commands+=("app.json") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_logout() { last_command="oc_logout" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config_view() { last_command="oc_config_view" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--flatten") flags+=("--merge=") flags+=("--minify") flags+=("--no-headers") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--raw") flags+=("--show-all") flags+=("-a") flags+=("--show-labels") flags+=("--sort-by=") flags+=("--template=") flags_with_completion+=("--template") flags_completion+=("_filedir") two_word_flags+=("-t") flags_with_completion+=("-t") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config_set-cluster() { last_command="oc_config_set-cluster" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--embed-certs=") flags+=("--insecure-skip-tls-verify=") flags+=("--server=") flags+=("--as=") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config_set-credentials() { last_command="oc_config_set-credentials" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--embed-certs=") flags+=("--password=") flags+=("--token=") flags+=("--username=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config_set-context() { last_command="oc_config_set-context" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--cluster=") flags+=("--namespace=") flags+=("--user=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--server=") flags+=("--token=") must_have_one_flag=() must_have_one_noun=() } _oc_config_set() { last_command="oc_config_set" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config_unset() { last_command="oc_config_unset" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config_current-context() { last_command="oc_config_current-context" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config_use-context() { last_command="oc_config_use-context" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_config() { last_command="oc_config" commands=() commands+=("view") commands+=("set-cluster") commands+=("set-credentials") commands+=("set-context") commands+=("set") commands+=("unset") commands+=("current-context") commands+=("use-context") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--config=") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_whoami() { last_command="oc_whoami" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--context") flags+=("-c") flags+=("--token") flags+=("-t") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_env() { last_command="oc_env" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--all") flags+=("--containers=") two_word_flags+=("-c") flags+=("--env=") two_word_flags+=("-e") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--list") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overwrite") flags+=("--resource-version=") flags+=("--selector=") two_word_flags+=("-l") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_volumes() { last_command="oc_volumes" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--add") flags+=("--all") flags+=("--claim-mode=") flags+=("--claim-name=") flags+=("--claim-size=") flags+=("--configmap-name=") flags+=("--confirm") flags+=("--containers=") two_word_flags+=("-c") flags+=("--filename=") flags_with_completion+=("--filename") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") two_word_flags+=("-f") flags_with_completion+=("-f") flags_completion+=("__handle_filename_extension_flag yaml|yml|json") flags+=("--list") flags+=("--mount-path=") two_word_flags+=("-m") flags+=("--name=") flags+=("--output=") two_word_flags+=("-o") flags+=("--output-version=") flags+=("--overwrite") flags+=("--path=") flags+=("--remove") flags+=("--secret-name=") flags+=("--selector=") two_word_flags+=("-l") flags+=("--source=") flags+=("--type=") two_word_flags+=("-t") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_ex_dockerbuild() { last_command="oc_ex_dockerbuild" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--allow-pull") flags+=("--dockerfile=") flags_with_completion+=("--dockerfile") flags_completion+=("_filedir") flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_ex() { last_command="oc_ex" commands=() commands+=("dockerbuild") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc_options() { last_command="oc_options" commands=() flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } _oc() { last_command="oc" commands=() commands+=("types") commands+=("login") commands+=("new-project") commands+=("new-app") commands+=("status") commands+=("project") commands+=("explain") commands+=("cluster") commands+=("deploy") commands+=("rollback") commands+=("new-build") commands+=("start-build") commands+=("cancel-build") commands+=("import-image") commands+=("tag") commands+=("get") commands+=("describe") commands+=("edit") commands+=("set") commands+=("label") commands+=("annotate") commands+=("expose") commands+=("delete") commands+=("scale") commands+=("autoscale") commands+=("secrets") commands+=("serviceaccounts") commands+=("logs") commands+=("rsh") commands+=("rsync") commands+=("port-forward") commands+=("debug") commands+=("exec") commands+=("proxy") commands+=("attach") commands+=("run") commands+=("adm") commands+=("create") commands+=("replace") commands+=("apply") commands+=("patch") commands+=("process") commands+=("export") commands+=("policy") commands+=("convert") commands+=("import") commands+=("logout") commands+=("config") commands+=("whoami") commands+=("env") commands+=("volumes") commands+=("ex") commands+=("options") flags=() two_word_flags=() flags_with_completion=() flags_completion=() flags+=("--api-version=") flags+=("--as=") flags+=("--certificate-authority=") flags_with_completion+=("--certificate-authority") flags_completion+=("_filedir") flags+=("--client-certificate=") flags_with_completion+=("--client-certificate") flags_completion+=("_filedir") flags+=("--client-key=") flags_with_completion+=("--client-key") flags_completion+=("_filedir") flags+=("--cluster=") flags+=("--config=") flags_with_completion+=("--config") flags_completion+=("_filedir") flags+=("--context=") flags+=("--google-json-key=") flags+=("--insecure-skip-tls-verify") flags+=("--log-flush-frequency=") flags+=("--match-server-version") flags+=("--namespace=") two_word_flags+=("-n") flags+=("--server=") flags+=("--token=") flags+=("--user=") must_have_one_flag=() must_have_one_noun=() } __start_oc() { local cur prev words cword if declare -F _init_completion >/dev/null 2>&1; then _init_completion -s || return else __my_init_completion || return fi local c=0 local flags=() local two_word_flags=() local flags_with_completion=() local flags_completion=() local commands=("oc") local must_have_one_flag=() local must_have_one_noun=() local last_command local nouns=() __handle_word } if [[ $(type -t compopt) = "builtin" ]]; then complete -F __start_oc oc else complete -o nospace -F __start_oc oc fi # ex: ts=4 sw=4 et filetype=sh