mirror of https://github.com/docker/cli.git
bash completion for `docker volume ls -f {driver,name}`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
35bad4a914
commit
3b1ae8bbd6
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue