Add bash completion for `docker {network,volume} ls --format`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-08-16 14:10:28 +02:00 committed by Tibor Vass
parent 9cec1ce2ee
commit 9b4b730adb
1 changed files with 8 additions and 2 deletions

View File

@ -1546,11 +1546,14 @@ _docker_network_ls() {
__docker_nospace
return
;;
--format)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--filter -f --help --no-trunc --quiet -q" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--filter -f --format --help --no-trunc --quiet -q" -- "$cur" ) )
;;
esac
}
@ -2835,11 +2838,14 @@ _docker_volume_ls() {
__docker_nospace
return
;;
--format)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--filter -f --help --quiet -q" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--filter -f --format --help --quiet -q" -- "$cur" ) )
;;
esac
}