1
0
mirror of https://github.com/docker/cli.git synced 2026-01-23 15:21:32 +03:00

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

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9aeb69a0690d0d26bd3dea344f675b22f9ceda19
Component: engine
This commit is contained in:
Harald Albers
2016-10-02 05:18:32 -07:00
parent 8585d1a8a3
commit 9f3299176f

View File

@@ -2103,10 +2103,7 @@ _docker_node_ps() {
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
fi
__docker_complete_nodes_plus_self
;;
esac
}