aboutsummaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-06-24 14:44:42 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-06-24 15:34:46 +0200
commit1c6c12581ce0f2257a862e3a6a8dbaa7d0f32686 (patch)
tree391f714100dd231325c7c27d741c3de2ecb06e48 /completions
parent0d26b8f24babcd847a7412907e622514925544a4 (diff)
downloadpodman-1c6c12581ce0f2257a862e3a6a8dbaa7d0f32686.tar.gz
podman-1c6c12581ce0f2257a862e3a6a8dbaa7d0f32686.tar.bz2
podman-1c6c12581ce0f2257a862e3a6a8dbaa7d0f32686.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/podman24
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