From c922ea2f453d2c2b1f4f1f805e0288cfd72aee8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Szczekutowicz?= Date: Fri, 20 Jul 2018 15:33:37 +0200 Subject: [PATCH] Added events filter scope bash completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Szczekutowicz --- 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 9307caca8e..5e6440bf3b 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -4658,6 +4658,10 @@ _docker_system_events() { __docker_complete_networks --cur "${cur##*=}" return ;; + scope) + COMPREPLY=( $( compgen -W "local swarm" -- "${cur##*=}" ) ) + return + ;; type) COMPREPLY=( $( compgen -W "config container daemon image network plugin secret service volume" -- "${cur##*=}" ) ) return @@ -4670,7 +4674,7 @@ _docker_system_events() { case "$prev" in --filter|-f) - COMPREPLY=( $( compgen -S = -W "container daemon event image label network type volume" -- "$cur" ) ) + COMPREPLY=( $( compgen -S = -W "container daemon event image label network scope type volume" -- "$cur" ) ) __docker_nospace return ;;