diff --git a/contrib/completions/bash/oc b/contrib/completions/bash/oc index 4642a61423ae..300a7198ed4d 100644 --- a/contrib/completions/bash/oc +++ b/contrib/completions/bash/oc @@ -6609,6 +6609,107 @@ _oc_annotate() noun_aliases+=("users") } +_oc_api-resources() +{ + last_command="oc_api-resources" + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--allow-missing-template-keys") + local_nonpersistent_flags+=("--allow-missing-template-keys") + flags+=("--api-group=") + local_nonpersistent_flags+=("--api-group=") + flags+=("--cached") + local_nonpersistent_flags+=("--cached") + flags+=("--namespaced") + local_nonpersistent_flags+=("--namespaced") + flags+=("--no-headers") + local_nonpersistent_flags+=("--no-headers") + flags+=("--output=") + two_word_flags+=("-o") + local_nonpersistent_flags+=("--output=") + flags+=("--verbs=") + local_nonpersistent_flags+=("--verbs=") + flags+=("--as=") + flags+=("--as-group=") + flags+=("--cache-dir=") + flags+=("--certificate-authority=") + flags+=("--client-certificate=") + flags+=("--client-key=") + flags+=("--cluster=") + flags+=("--config=") + flags+=("--context=") + flags+=("--insecure-skip-tls-verify") + flags+=("--loglevel=") + flags+=("--logspec=") + flags+=("--match-server-version") + flags+=("--namespace=") + flags_with_completion+=("--namespace") + flags_completion+=("__oc_get_namespaces") + two_word_flags+=("-n") + flags_with_completion+=("-n") + flags_completion+=("__oc_get_namespaces") + flags+=("--password=") + flags+=("--request-timeout=") + flags+=("--server=") + two_word_flags+=("-s") + flags+=("--token=") + flags+=("--user=") + flags+=("--username=") + + must_have_one_flag=() + must_have_one_noun=() + noun_aliases=() +} + +_oc_api-versions() +{ + last_command="oc_api-versions" + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--as=") + flags+=("--as-group=") + flags+=("--cache-dir=") + flags+=("--certificate-authority=") + flags+=("--client-certificate=") + flags+=("--client-key=") + flags+=("--cluster=") + flags+=("--config=") + flags+=("--context=") + flags+=("--insecure-skip-tls-verify") + flags+=("--loglevel=") + flags+=("--logspec=") + flags+=("--match-server-version") + flags+=("--namespace=") + flags_with_completion+=("--namespace") + flags_completion+=("__oc_get_namespaces") + two_word_flags+=("-n") + flags_with_completion+=("-n") + flags_completion+=("__oc_get_namespaces") + flags+=("--password=") + flags+=("--request-timeout=") + flags+=("--server=") + two_word_flags+=("-s") + flags+=("--token=") + flags+=("--user=") + flags+=("--username=") + + must_have_one_flag=() + must_have_one_noun=() + noun_aliases=() +} + _oc_apply_edit-last-applied() { last_command="oc_apply_edit-last-applied" @@ -17982,6 +18083,8 @@ _oc_root_command() commands=() commands+=("adm") commands+=("annotate") + commands+=("api-resources") + commands+=("api-versions") commands+=("apply") commands+=("attach") commands+=("auth") diff --git a/contrib/completions/zsh/oc b/contrib/completions/zsh/oc index 38fc6ae1f5d0..8027f57bb9bc 100644 --- a/contrib/completions/zsh/oc +++ b/contrib/completions/zsh/oc @@ -6751,6 +6751,107 @@ _oc_annotate() noun_aliases+=("users") } +_oc_api-resources() +{ + last_command="oc_api-resources" + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--allow-missing-template-keys") + local_nonpersistent_flags+=("--allow-missing-template-keys") + flags+=("--api-group=") + local_nonpersistent_flags+=("--api-group=") + flags+=("--cached") + local_nonpersistent_flags+=("--cached") + flags+=("--namespaced") + local_nonpersistent_flags+=("--namespaced") + flags+=("--no-headers") + local_nonpersistent_flags+=("--no-headers") + flags+=("--output=") + two_word_flags+=("-o") + local_nonpersistent_flags+=("--output=") + flags+=("--verbs=") + local_nonpersistent_flags+=("--verbs=") + flags+=("--as=") + flags+=("--as-group=") + flags+=("--cache-dir=") + flags+=("--certificate-authority=") + flags+=("--client-certificate=") + flags+=("--client-key=") + flags+=("--cluster=") + flags+=("--config=") + flags+=("--context=") + flags+=("--insecure-skip-tls-verify") + flags+=("--loglevel=") + flags+=("--logspec=") + flags+=("--match-server-version") + flags+=("--namespace=") + flags_with_completion+=("--namespace") + flags_completion+=("__oc_get_namespaces") + two_word_flags+=("-n") + flags_with_completion+=("-n") + flags_completion+=("__oc_get_namespaces") + flags+=("--password=") + flags+=("--request-timeout=") + flags+=("--server=") + two_word_flags+=("-s") + flags+=("--token=") + flags+=("--user=") + flags+=("--username=") + + must_have_one_flag=() + must_have_one_noun=() + noun_aliases=() +} + +_oc_api-versions() +{ + last_command="oc_api-versions" + commands=() + + flags=() + two_word_flags=() + local_nonpersistent_flags=() + flags_with_completion=() + flags_completion=() + + flags+=("--as=") + flags+=("--as-group=") + flags+=("--cache-dir=") + flags+=("--certificate-authority=") + flags+=("--client-certificate=") + flags+=("--client-key=") + flags+=("--cluster=") + flags+=("--config=") + flags+=("--context=") + flags+=("--insecure-skip-tls-verify") + flags+=("--loglevel=") + flags+=("--logspec=") + flags+=("--match-server-version") + flags+=("--namespace=") + flags_with_completion+=("--namespace") + flags_completion+=("__oc_get_namespaces") + two_word_flags+=("-n") + flags_with_completion+=("-n") + flags_completion+=("__oc_get_namespaces") + flags+=("--password=") + flags+=("--request-timeout=") + flags+=("--server=") + two_word_flags+=("-s") + flags+=("--token=") + flags+=("--user=") + flags+=("--username=") + + must_have_one_flag=() + must_have_one_noun=() + noun_aliases=() +} + _oc_apply_edit-last-applied() { last_command="oc_apply_edit-last-applied" @@ -18124,6 +18225,8 @@ _oc_root_command() commands=() commands+=("adm") commands+=("annotate") + commands+=("api-resources") + commands+=("api-versions") commands+=("apply") commands+=("attach") commands+=("auth") diff --git a/docs/man/man1/.files_generated_oc b/docs/man/man1/.files_generated_oc index 13f73fcad18f..f0009f0561e8 100644 --- a/docs/man/man1/.files_generated_oc +++ b/docs/man/man1/.files_generated_oc @@ -118,6 +118,8 @@ oc-adm-uncordon.1 oc-adm-verify-image-signature.1 oc-adm.1 oc-annotate.1 +oc-api-resources.1 +oc-api-versions.1 oc-apply-edit-last-applied.1 oc-apply-set-last-applied.1 oc-apply-view-last-applied.1 diff --git a/docs/man/man1/oc-api-resources.1 b/docs/man/man1/oc-api-resources.1 new file mode 100644 index 000000000000..b6fd7a0f9896 --- /dev/null +++ b/docs/man/man1/oc-api-resources.1 @@ -0,0 +1,3 @@ +This file is autogenerated, but we've stopped checking such files into the +repository to reduce the need for rebases. Please run hack/generate-docs.sh to +populate this file. diff --git a/docs/man/man1/oc-api-versions.1 b/docs/man/man1/oc-api-versions.1 new file mode 100644 index 000000000000..b6fd7a0f9896 --- /dev/null +++ b/docs/man/man1/oc-api-versions.1 @@ -0,0 +1,3 @@ +This file is autogenerated, but we've stopped checking such files into the +repository to reduce the need for rebases. Please run hack/generate-docs.sh to +populate this file.