Skip to content

Commit

Permalink
Add zsh completion for 'docker service {create,update} --container-la…
Browse files Browse the repository at this point in the history
…bel{-add,-rm}'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
  • Loading branch information
sdurrheimer committed Jul 29, 2016
1 parent faf9dac commit ab95ec3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/completion/zsh/_docker
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ __docker_service_subcommand() {
_arguments $(__docker_arguments) \
$opts_help \
$opts_create_update \
"($help)*--container-label=[Container labels]:label: " \
"($help)--mode=[Service Mode]:mode:(global replicated)" \
"($help -): :__docker_images" \
"($help -):command: _command_names -e" \
Expand Down Expand Up @@ -1166,6 +1167,8 @@ __docker_service_subcommand() {
$opts_help \
$opts_create_update \
"($help)--arg=[Service command args]:arguments: _normal" \
"($help)*--container-label-add=[Add or update container labels]:label: " \
"($help)*--container-label-rm=[Remove a container label by its key]:label: " \
"($help)--image=[Service image tag]:image:__docker_repositories" \
"($help -)1:service:__docker_complete_services" && ret=0
;;
Expand Down

0 comments on commit ab95ec3

Please sign in to comment.