diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-24 12:19:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 12:19:42 -0400 |
commit | 988fd27541dfa852ee9543c2d8a916896ef0c774 (patch) | |
tree | 592f484305f10be66d076952b6f81bc637309c11 /completions | |
parent | 6bc5dcc2829c2bc08923df0b50f71582d5558fe8 (diff) | |
parent | 1c6c12581ce0f2257a862e3a6a8dbaa7d0f32686 (diff) | |
download | podman-988fd27541dfa852ee9543c2d8a916896ef0c774.tar.gz podman-988fd27541dfa852ee9543c2d8a916896ef0c774.tar.bz2 podman-988fd27541dfa852ee9543c2d8a916896ef0c774.zip |
Merge pull request #6746 from vrothberg/untag
podman untag: error if tag doesn't exist
Diffstat (limited to 'completions')
-rw-r--r-- | completions/bash/podman | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index cb4e86156..c0d9560ed 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -1572,6 +1572,11 @@ _podman_image_tag() { _podman_tag } + +_podman_image_untag() { + _podman_untag +} + _podman_image() { local boolean_options=" --help @@ -1593,6 +1598,7 @@ _podman_image() { sign tag trust + untag " local aliases=" list @@ -2460,6 +2466,23 @@ _podman_tag() { esac } +_podman_untag() { + local options_with_args=" + " + local boolean_options=" + --help + -h + " + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + *) + __podman_complete_images + ;; + esac +} + __podman_top_descriptors() { podman top --list-descriptors } @@ -3588,6 +3611,7 @@ _podman_podman() { umount unmount unpause + untag varlink version volume |