Add zsh completion for 'docker swarm unlock|unlock-key' commands
| ... | ... |
@@ -2067,6 +2067,8 @@ __docker_swarm_commands() {
|
| 2067 | 2067 |
"join:Join a swarm as a node and/or manager" |
| 2068 | 2068 |
"join-token:Manage join tokens" |
| 2069 | 2069 |
"leave:Leave a swarm" |
| 2070 |
+ "unlock:Unlock swarm" |
|
| 2071 |
+ "unlock-key:Manage the unlock key" |
|
| 2070 | 2072 |
"update:Update the swarm" |
| 2071 | 2073 |
) |
| 2072 | 2074 |
_describe -t docker-swarm-commands "docker swarm command" _docker_swarm_subcommands |
| ... | ... |
@@ -2116,6 +2118,16 @@ __docker_swarm_subcommand() {
|
| 2116 | 2116 |
$opts_help \ |
| 2117 | 2117 |
"($help -f --force)"{-f,--force}"[Force this node to leave the swarm, ignoring warnings]" && ret=0
|
| 2118 | 2118 |
;; |
| 2119 |
+ (unlock) |
|
| 2120 |
+ _arguments $(__docker_arguments) \ |
|
| 2121 |
+ $opts_help && ret=0 |
|
| 2122 |
+ ;; |
|
| 2123 |
+ (unlock-key) |
|
| 2124 |
+ _arguments $(__docker_arguments) \ |
|
| 2125 |
+ $opts_help \ |
|
| 2126 |
+ "($help -q --quiet)"{-q,--quiet}"[Only display token]" \
|
|
| 2127 |
+ "($help)--rotate[Rotate unlock token]" && ret=0 |
|
| 2128 |
+ ;; |
|
| 2119 | 2129 |
(update) |
| 2120 | 2130 |
_arguments $(__docker_arguments) \ |
| 2121 | 2131 |
$opts_help \ |