From c1639e1e42903e008d75ac1454f13d9c1d3b0e3e Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Fri, 10 May 2019 22:14:39 +0200 Subject: [PATCH] Add bash completion for `events --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 255587120e..d83cce3229 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -5154,6 +5154,10 @@ _docker_system_events() { __docker_complete_networks --cur "${cur##*=}" return ;; + node) + __docker_complete_nodes --cur "${cur##*=}" + return + ;; scope) COMPREPLY=( $( compgen -W "local swarm" -- "${cur##*=}" ) ) return @@ -5170,7 +5174,7 @@ _docker_system_events() { case "$prev" in --filter|-f) - COMPREPLY=( $( compgen -S = -W "container daemon event image label network scope type volume" -- "$cur" ) ) + COMPREPLY=( $( compgen -S = -W "container daemon event image label network node scope type volume" -- "$cur" ) ) __docker_nospace return ;;