From a39a2bb6c29405148df3e45216f46f54263cd5ea Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 23 Jan 2017 19:05:00 +0100 Subject: [PATCH] Add bash completion for `docker service ps --filter node` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index a4085844a2..9b00929341 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2710,11 +2710,15 @@ _docker_service_ps() { __docker_complete_services --cur "${cur##*=}" --name return ;; + node) + __docker_complete_nodes_plus_self --cur "${cur##*=}" + return + ;; esac case "$prev" in --filter|-f) - COMPREPLY=( $( compgen -W "desired-state id name" -S = -- "$cur" ) ) + COMPREPLY=( $( compgen -W "desired-state id name node" -S = -- "$cur" ) ) __docker_nospace return ;;