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

bash completion for docker ps --filter network

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-06-07 12:44:17 -07:00
parent 8cd6977f98
commit 337eaab5d1

View file

@ -1516,6 +1516,11 @@ _docker_ps() {
__docker_complete_container_names __docker_complete_container_names
return return
;; ;;
network)
cur="${cur##*=}"
__docker_complete_networks
return
;;
since) since)
cur="${cur##*=}" cur="${cur##*=}"
__docker_complete_containers_all __docker_complete_containers_all
@ -1534,7 +1539,7 @@ _docker_ps() {
case "$prev" in case "$prev" in
--filter|-f) --filter|-f)
COMPREPLY=( $( compgen -S = -W "ancestor before exited id label name since status volume" -- "$cur" ) ) COMPREPLY=( $( compgen -S = -W "ancestor before exited id label name network since status volume" -- "$cur" ) )
__docker_nospace __docker_nospace
return return
;; ;;