mirror of
https://github.com/docker/cli.git
synced 2026-09-26 09:20:58 -04:00
Add bash completion for network ls --filter scope
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d9a648caed
Component: cli
This commit is contained in:
committed by
Tibor Vass
parent
1624cade76
commit
3823a21d86
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user