1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #32081 from albers/completion-network-ls--filter-scope

Add bash completion for `network ls --filter scope`
This commit is contained in:
Vincent Demeester 2017-03-24 14:52:03 +01:00 committed by GitHub
commit b86efd2707

View file

@ -2717,6 +2717,10 @@ _docker_network_ls() {
__docker_complete_networks --cur "${cur##*=}" --name
return
;;
scope)
COMPREPLY=( $( compgen -W "global local swarm" -- "${cur##*=}" ) )
return
;;
type)
COMPREPLY=( $( compgen -W "builtin custom" -- "${cur##*=}" ) )
return
@ -2725,7 +2729,7 @@ _docker_network_ls() {
case "$prev" in
--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
return
;;