Added events filter scope bash completion

Signed-off-by: Paweł Szczekutowicz <pszczekutowicz@gmail.com>
This commit is contained in:
Paweł Szczekutowicz 2018-07-20 15:33:37 +02:00
parent 543d6fb8da
commit c922ea2f45
1 changed files with 5 additions and 1 deletions

View File

@ -4658,6 +4658,10 @@ _docker_system_events() {
__docker_complete_networks --cur "${cur##*=}" __docker_complete_networks --cur "${cur##*=}"
return return
;; ;;
scope)
COMPREPLY=( $( compgen -W "local swarm" -- "${cur##*=}" ) )
return
;;
type) type)
COMPREPLY=( $( compgen -W "config container daemon image network plugin secret service volume" -- "${cur##*=}" ) ) COMPREPLY=( $( compgen -W "config container daemon image network plugin secret service volume" -- "${cur##*=}" ) )
return return
@ -4670,7 +4674,7 @@ _docker_system_events() {
case "$prev" in case "$prev" in
--filter|-f) --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 __docker_nospace
return return
;; ;;