Browse code

Add zsh completion for 'docker update --restart'

Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
(cherry picked from commit ca2cca025579c92aaab0a27b6740c72f88788b1d)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Steve Durrheimer authored on 2016/03/26 23:07:02
Showing 1 changed files
... ...
@@ -542,7 +542,6 @@ __docker_subcommand() {
542 542
         "($help)--pid=[PID namespace to use]:PID: "
543 543
         "($help)--privileged[Give extended privileges to this container]"
544 544
         "($help)--read-only[Mount the container's root filesystem as read only]"
545
-        "($help)--restart=[Restart policy]:restart policy:(no on-failure always unless-stopped)"
546 545
         "($help)*--security-opt=[Security options]:security option: "
547 546
         "($help -t --tty)"{-t,--tty}"[Allocate a pseudo-tty]"
548 547
         "($help -u --user)"{-u=,--user=}"[Username or UID]:user:_users"
... ...
@@ -556,6 +555,7 @@ __docker_subcommand() {
556 556
         "($help)--blkio-weight=[Block IO (relative weight), between 10 and 1000]:Block IO weight:(10 100 500 1000)"
557 557
         "($help)--kernel-memory=[Kernel memory limit in bytes]:Memory limit: "
558 558
         "($help)--memory-reservation=[Memory soft limit]:Memory limit: "
559
+        "($help)--restart=[Restart policy]:restart policy:(no on-failure always unless-stopped)"
559 560
     )
560 561
     opts_attach_exec_run_start=(
561 562
         "($help)--detach-keys=[Escape key sequence used to detach a container]:sequence:__docker_complete_detach_keys"