diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-24 16:25:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 16:25:41 -0400 |
commit | 0b9143df881f5de0f36f31bc2598e864fdeae7ed (patch) | |
tree | 76ed319444ac750d898d06b986adf8341ed605ef /completions | |
parent | 4af2081424c8fa7ac191e9c5231d2429edb8327c (diff) | |
parent | 915f8698f4f84fb79cf0438a5b6e4a283e75a7bf (diff) | |
download | podman-0b9143df881f5de0f36f31bc2598e864fdeae7ed.tar.gz podman-0b9143df881f5de0f36f31bc2598e864fdeae7ed.tar.bz2 podman-0b9143df881f5de0f36f31bc2598e864fdeae7ed.zip |
Merge pull request #6758 from mheon/v2.0.1_backports
V2.0.1 backports
Diffstat (limited to 'completions')
-rw-r--r-- | completions/bash/podman | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 5e990ec41..abcf54416 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -1018,14 +1018,15 @@ _podman_network_create() { ;; esac } + _podman_network_inspect() { local options_with_args=" + --format + -f " local boolean_options=" --help -h - --format - -f " _complete_ "$options_with_args" "$boolean_options" @@ -1038,15 +1039,15 @@ _podman_network_inspect() { _podman_network_ls() { local options_with_args=" + --format + -f + --filter " local boolean_options=" --help -h --quiet -q - --format - -f - -- filter " _complete_ "$options_with_args" "$boolean_options" @@ -1571,6 +1572,11 @@ _podman_image_tag() { _podman_tag } + +_podman_image_untag() { + _podman_untag +} + _podman_image() { local boolean_options=" --help @@ -1592,6 +1598,7 @@ _podman_image() { sign tag trust + untag " local aliases=" list @@ -2458,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 } @@ -3564,6 +3588,7 @@ _podman_podman() { logs manifest mount + network pause pod port @@ -3585,6 +3610,7 @@ _podman_podman() { umount unmount unpause + untag varlink version volume |