Skip to content

Commit

Permalink
Bash completion for docker manifest rm
Browse files Browse the repository at this point in the history
Signed-off-by: Jennings Zhang <jenni_zh@protonmail.com>
  • Loading branch information
jennydaman committed Apr 18, 2020
1 parent 3c8c843 commit 6d31d26
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/completion/bash/docker
Expand Up @@ -4104,6 +4104,7 @@ _docker_manifest() {
create
inspect
push
rm
"
__docker_subcommands "$subcommands" && return

Expand Down Expand Up @@ -4202,6 +4203,13 @@ _docker_manifest_push() {
esac
}

_docker_manifest_rm() {
local counter=$( __docker_pos_first_nonflag )
if [ "$cword" -eq "$counter" ]; then
__docker_complete_images --force-tag --id
fi
}

_docker_node() {
local subcommands="
demote
Expand Down

0 comments on commit 6d31d26

Please sign in to comment.