diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-06-24 14:44:42 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-06-24 14:46:50 -0400 |
commit | 6594d5d6558437d4cdb11a72eda175ead407ec75 (patch) | |
tree | c57e5e1b46eeb23605d4991b9baeb382e68fb832 /completions | |
parent | 639b809c80dc2fce76c4d24459d06c469777868f (diff) | |
download | podman-6594d5d6558437d4cdb11a72eda175ead407ec75.tar.gz podman-6594d5d6558437d4cdb11a72eda175ead407ec75.tar.bz2 podman-6594d5d6558437d4cdb11a72eda175ead407ec75.zip |
podman untag: error if tag doesn't exist
Throw an error if a specified tag does not exist. Also make sure that
the user input is normalized as we already do for `podman tag`.
To prevent regressions, add a set of end-to-end and systemd tests.
Last but not least, update the docs and add bash completions.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
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 053dd7047..abcf54416 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 @@ -2459,6 +2465,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 } @@ -3587,6 +3610,7 @@ _podman_podman() { umount unmount unpause + untag varlink version volume |