bash completion for `docker volume ls -f {driver,name}`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-04-08 13:43:45 +02:00 committed by Tibor Vass
parent 35bad4a914
commit 3b1ae8bbd6
1 changed files with 11 additions and 1 deletions

View File

@ -2077,11 +2077,21 @@ _docker_volume_ls() {
COMPREPLY=( $( compgen -W "true false" -- "${cur##*=}" ) )
return
;;
driver)
cur=${cur##*=}
__docker_complete_plugins Volume
return
;;
name)
cur=${cur##*=}
__docker_complete_volumes
return
;;
esac
case "$prev" in
--filter|-f)
COMPREPLY=( $( compgen -S = -W "dangling" -- "$cur" ) )
COMPREPLY=( $( compgen -S = -W "dangling driver name" -- "$cur" ) )
__docker_nospace
return
;;