Support version command in zsh completion

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
Steve Durrheimer 2015-06-02 12:38:23 +02:00
parent 8eb65ed946
commit 77409737ce
1 changed files with 4 additions and 0 deletions

View File

@ -243,6 +243,10 @@ __docker-compose_subcommand () {
"--x-smart-recreate[Only recreate containers whose configuration or image needs to be updated. (EXPERIMENTAL)]" \
'*:services:__docker-compose_services_all' && ret=0
;;
(version)
_arguments \
"--short[Shows only Compose's version number.]" && ret=0
;;
(*)
_message 'Unknown sub command'
esac