Add bash completion for `events --filter node`

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit c1639e1e42)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Harald Albers 2019-05-10 22:14:39 +02:00 committed by Sebastiaan van Stijn
parent 68d67f2cbf
commit 8cf8fc27fa
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 5 additions and 1 deletions

View File

@ -5158,6 +5158,10 @@ _docker_system_events() {
__docker_complete_networks --cur "${cur##*=}" __docker_complete_networks --cur "${cur##*=}"
return return
;; ;;
node)
__docker_complete_nodes --cur "${cur##*=}"
return
;;
scope) scope)
COMPREPLY=( $( compgen -W "local swarm" -- "${cur##*=}" ) ) COMPREPLY=( $( compgen -W "local swarm" -- "${cur##*=}" ) )
return return
@ -5174,7 +5178,7 @@ _docker_system_events() {
case "$prev" in case "$prev" in
--filter|-f) --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 __docker_nospace
return return
;; ;;