Skip to content

Commit

Permalink
Add oc create imagestreamtag
Browse files Browse the repository at this point in the history
Supports all spec tag options. Specify a source with --from
(imagestreamtag) or --from-image (docker)
  • Loading branch information
smarterclayton committed Sep 15, 2017
1 parent 5584aad commit 70967ff
Show file tree
Hide file tree
Showing 11 changed files with 841 additions and 293 deletions.
83 changes: 83 additions & 0 deletions contrib/completions/bash/oc
Expand Up @@ -8514,6 +8514,88 @@ _oc_create_imagestream()
noun_aliases=()
}

_oc_create_imagestreamtag()
{
last_command="oc_create_imagestreamtag"
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+=("--annotation=")
two_word_flags+=("-A")
local_nonpersistent_flags+=("--annotation=")
flags+=("--dry-run")
local_nonpersistent_flags+=("--dry-run")
flags+=("--from=")
local_nonpersistent_flags+=("--from=")
flags+=("--from-image=")
local_nonpersistent_flags+=("--from-image=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--reference")
local_nonpersistent_flags+=("--reference")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--scheduled")
local_nonpersistent_flags+=("--scheduled")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--as=")
flags+=("--as-group=")
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+=("--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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_oc_create_namespace()
{
last_command="oc_create_namespace"
Expand Down Expand Up @@ -10209,6 +10291,7 @@ _oc_create()
commands+=("deploymentconfig")
commands+=("identity")
commands+=("imagestream")
commands+=("imagestreamtag")
commands+=("namespace")
commands+=("poddisruptionbudget")
commands+=("policybinding")
Expand Down
83 changes: 83 additions & 0 deletions contrib/completions/bash/openshift
Expand Up @@ -13489,6 +13489,88 @@ _openshift_cli_create_imagestream()
noun_aliases=()
}

_openshift_cli_create_imagestreamtag()
{
last_command="openshift_cli_create_imagestreamtag"
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+=("--annotation=")
two_word_flags+=("-A")
local_nonpersistent_flags+=("--annotation=")
flags+=("--dry-run")
local_nonpersistent_flags+=("--dry-run")
flags+=("--from=")
local_nonpersistent_flags+=("--from=")
flags+=("--from-image=")
local_nonpersistent_flags+=("--from-image=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--reference")
local_nonpersistent_flags+=("--reference")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--scheduled")
local_nonpersistent_flags+=("--scheduled")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--as=")
flags+=("--as-group=")
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+=("--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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_openshift_cli_create_namespace()
{
last_command="openshift_cli_create_namespace"
Expand Down Expand Up @@ -15184,6 +15266,7 @@ _openshift_cli_create()
commands+=("deploymentconfig")
commands+=("identity")
commands+=("imagestream")
commands+=("imagestreamtag")
commands+=("namespace")
commands+=("poddisruptionbudget")
commands+=("policybinding")
Expand Down
83 changes: 83 additions & 0 deletions contrib/completions/zsh/oc
Expand Up @@ -8663,6 +8663,88 @@ _oc_create_imagestream()
noun_aliases=()
}

_oc_create_imagestreamtag()
{
last_command="oc_create_imagestreamtag"
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+=("--annotation=")
two_word_flags+=("-A")
local_nonpersistent_flags+=("--annotation=")
flags+=("--dry-run")
local_nonpersistent_flags+=("--dry-run")
flags+=("--from=")
local_nonpersistent_flags+=("--from=")
flags+=("--from-image=")
local_nonpersistent_flags+=("--from-image=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--reference")
local_nonpersistent_flags+=("--reference")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--scheduled")
local_nonpersistent_flags+=("--scheduled")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--as=")
flags+=("--as-group=")
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+=("--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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_oc_create_namespace()
{
last_command="oc_create_namespace"
Expand Down Expand Up @@ -10358,6 +10440,7 @@ _oc_create()
commands+=("deploymentconfig")
commands+=("identity")
commands+=("imagestream")
commands+=("imagestreamtag")
commands+=("namespace")
commands+=("poddisruptionbudget")
commands+=("policybinding")
Expand Down
83 changes: 83 additions & 0 deletions contrib/completions/zsh/openshift
Expand Up @@ -13638,6 +13638,88 @@ _openshift_cli_create_imagestream()
noun_aliases=()
}

_openshift_cli_create_imagestreamtag()
{
last_command="openshift_cli_create_imagestreamtag"
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+=("--annotation=")
two_word_flags+=("-A")
local_nonpersistent_flags+=("--annotation=")
flags+=("--dry-run")
local_nonpersistent_flags+=("--dry-run")
flags+=("--from=")
local_nonpersistent_flags+=("--from=")
flags+=("--from-image=")
local_nonpersistent_flags+=("--from-image=")
flags+=("--insecure")
local_nonpersistent_flags+=("--insecure")
flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--reference")
local_nonpersistent_flags+=("--reference")
flags+=("--reference-policy=")
local_nonpersistent_flags+=("--reference-policy=")
flags+=("--scheduled")
local_nonpersistent_flags+=("--scheduled")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--as=")
flags+=("--as-group=")
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+=("--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+=("--request-timeout=")
flags+=("--server=")
flags+=("--token=")
flags+=("--user=")

must_have_one_flag=()
must_have_one_noun=()
noun_aliases=()
}

_openshift_cli_create_namespace()
{
last_command="openshift_cli_create_namespace"
Expand Down Expand Up @@ -15333,6 +15415,7 @@ _openshift_cli_create()
commands+=("deploymentconfig")
commands+=("identity")
commands+=("imagestream")
commands+=("imagestreamtag")
commands+=("namespace")
commands+=("poddisruptionbudget")
commands+=("policybinding")
Expand Down

0 comments on commit 70967ff

Please sign in to comment.