Skip to content

Commit

Permalink
Fix bash completion
Browse files Browse the repository at this point in the history
docker#2449 (review)
Signed-off-by: Jennings Zhang <jenni_zh@protonmail.com>
  • Loading branch information
jennydaman committed Sep 15, 2020
1 parent 8c46bd6 commit b9ef85e
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions contrib/completion/bash/docker
Expand Up @@ -4227,18 +4227,15 @@ _docker_manifest_push() {
esac
}

_docker_manifest_rm() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -S "--help" -- "$cur" ) )
;;
*)
local counter=$( __docker_pos_first_nonflag )
if [ "$cword" -eq "$counter" ]; then
__docker_complete_images --force-tag --id
fi
;;
esac
_docker_network_rm() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
__docker_complete_images --force-tag --id
;;
esac
}

_docker_node() {
Expand Down

0 comments on commit b9ef85e

Please sign in to comment.