Add bash completion for `network ls --filter scope`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-03-24 13:06:26 +01:00
parent 4e290f7a2b
commit 4dd461a6bf
1 changed files with 5 additions and 1 deletions

View File

@ -2717,6 +2717,10 @@ _docker_network_ls() {
__docker_complete_networks --cur "${cur##*=}" --name __docker_complete_networks --cur "${cur##*=}" --name
return return
;; ;;
scope)
COMPREPLY=( $( compgen -W "global local swarm" -- "${cur##*=}" ) )
return
;;
type) type)
COMPREPLY=( $( compgen -W "builtin custom" -- "${cur##*=}" ) ) COMPREPLY=( $( compgen -W "builtin custom" -- "${cur##*=}" ) )
return return
@ -2725,7 +2729,7 @@ _docker_network_ls() {
case "$prev" in case "$prev" in
--filter|-f) --filter|-f)
COMPREPLY=( $( compgen -S = -W "driver id label name type" -- "$cur" ) ) COMPREPLY=( $( compgen -S = -W "driver id label name scope type" -- "$cur" ) )
__docker_nospace __docker_nospace
return return
;; ;;