Add support for multiple nodes in bash completion for `docker node ps`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-10-02 05:18:32 -07:00 committed by Tibor Vass
parent 3171c7b6e7
commit 62e87d4996
1 changed files with 1 additions and 4 deletions

View File

@ -2104,10 +2104,7 @@ _docker_node_ps() {
COMPREPLY=( $( compgen -W "--all -a --filter -f --help --no-resolve --no-trunc" -- "$cur" ) ) COMPREPLY=( $( compgen -W "--all -a --filter -f --help --no-resolve --no-trunc" -- "$cur" ) )
;; ;;
*) *)
local counter=$(__docker_pos_first_nonflag '--filter|-f')
if [ $cword -eq $counter ]; then
__docker_complete_nodes_plus_self __docker_complete_nodes_plus_self
fi
;; ;;
esac esac
} }