Add zsh completion for 'docker {run,create} --volume-driver'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2015-11-12 08:35:32 +01:00 committed by Tibor Vass
parent cfe0fadee2
commit c14094b895
1 changed files with 2 additions and 1 deletions

View File

@ -343,7 +343,7 @@ __docker_volume_subcommand() {
(create) (create)
_arguments $(__docker_arguments) \ _arguments $(__docker_arguments) \
$opts_help \ $opts_help \
"($help -d --driver)"{-d=,--driver=}"[Specify volume driver name]:Driver name: " \ "($help -d --driver)"{-d=,--driver=}"[Specify volume driver name]:Driver name:(local)" \
"($help)--name=[Specify volume name]" \ "($help)--name=[Specify volume name]" \
"($help)*"{-o=,--opt=}"[Set driver specific options]:Driver option: " && ret=0 "($help)*"{-o=,--opt=}"[Set driver specific options]:Driver option: " && ret=0
;; ;;
@ -452,6 +452,7 @@ __docker_subcommand() {
"($help -t --tty)"{-t,--tty}"[Allocate a pseudo-tty]" "($help -t --tty)"{-t,--tty}"[Allocate a pseudo-tty]"
"($help -u --user)"{-u=,--user=}"[Username or UID]:user:_users" "($help -u --user)"{-u=,--user=}"[Username or UID]:user:_users"
"($help)*-v[Bind mount a volume]:volume: " "($help)*-v[Bind mount a volume]:volume: "
"($help)--volume-driver=[Optional volume driver for the container]:volume driver:(local)"
"($help)*--volumes-from=[Mount volumes from the specified container]:volume: " "($help)*--volumes-from=[Mount volumes from the specified container]:volume: "
"($help -w --workdir)"{-w=,--workdir=}"[Working directory inside the container]:directory:_directories" "($help -w --workdir)"{-w=,--workdir=}"[Working directory inside the container]:directory:_directories"
) )