Add completion for `--filter desired-state=shutdown`
| ... | ... |
@@ -2906,7 +2906,7 @@ _docker_service_ps() {
|
| 2906 | 2906 |
local key=$(__docker_map_key_of_current_option '--filter|-f') |
| 2907 | 2907 |
case "$key" in |
| 2908 | 2908 |
desired-state) |
| 2909 |
- COMPREPLY=( $( compgen -W "accepted running" -- "${cur##*=}" ) )
|
|
| 2909 |
+ COMPREPLY=( $( compgen -W "accepted running shutdown" -- "${cur##*=}" ) )
|
|
| 2910 | 2910 |
return |
| 2911 | 2911 |
;; |
| 2912 | 2912 |
name) |
| ... | ... |
@@ -3399,7 +3399,7 @@ _docker_node_ps() {
|
| 3399 | 3399 |
local key=$(__docker_map_key_of_current_option '--filter|-f') |
| 3400 | 3400 |
case "$key" in |
| 3401 | 3401 |
desired-state) |
| 3402 |
- COMPREPLY=( $( compgen -W "accepted running" -- "${cur##*=}" ) )
|
|
| 3402 |
+ COMPREPLY=( $( compgen -W "accepted running shutdown" -- "${cur##*=}" ) )
|
|
| 3403 | 3403 |
return |
| 3404 | 3404 |
;; |
| 3405 | 3405 |
name) |
| ... | ... |
@@ -3888,7 +3888,7 @@ _docker_stack_ps() {
|
| 3888 | 3888 |
local key=$(__docker_map_key_of_current_option '--filter|-f') |
| 3889 | 3889 |
case "$key" in |
| 3890 | 3890 |
desired-state) |
| 3891 |
- COMPREPLY=( $( compgen -W "accepted running" -- "${cur##*=}" ) )
|
|
| 3891 |
+ COMPREPLY=( $( compgen -W "accepted running shutdown" -- "${cur##*=}" ) )
|
|
| 3892 | 3892 |
return |
| 3893 | 3893 |
;; |
| 3894 | 3894 |
id) |
| ... | ... |
@@ -1344,7 +1344,7 @@ __docker_node_complete_ps_filters() {
|
| 1344 | 1344 |
if compset -P '*='; then |
| 1345 | 1345 |
case "${${words[-1]%=*}#*=}" in
|
| 1346 | 1346 |
(desired-state) |
| 1347 |
- state_opts=('accepted' 'running')
|
|
| 1347 |
+ state_opts=('accepted' 'running' 'shutdown')
|
|
| 1348 | 1348 |
_describe -t state-opts "desired state options" state_opts && ret=0 |
| 1349 | 1349 |
;; |
| 1350 | 1350 |
*) |
| ... | ... |
@@ -1784,7 +1784,7 @@ __docker_service_complete_ps_filters() {
|
| 1784 | 1784 |
if compset -P '*='; then |
| 1785 | 1785 |
case "${${words[-1]%=*}#*=}" in
|
| 1786 | 1786 |
(desired-state) |
| 1787 |
- state_opts=('accepted' 'running')
|
|
| 1787 |
+ state_opts=('accepted' 'running' 'shutdown')
|
|
| 1788 | 1788 |
_describe -t state-opts "desired state options" state_opts && ret=0 |
| 1789 | 1789 |
;; |
| 1790 | 1790 |
*) |
| ... | ... |
@@ -2040,7 +2040,7 @@ __docker_stack_complete_ps_filters() {
|
| 2040 | 2040 |
if compset -P '*='; then |
| 2041 | 2041 |
case "${${words[-1]%=*}#*=}" in
|
| 2042 | 2042 |
(desired-state) |
| 2043 |
- state_opts=('accepted' 'running')
|
|
| 2043 |
+ state_opts=('accepted' 'running' 'shutdown')
|
|
| 2044 | 2044 |
_describe -t state-opts "desired state options" state_opts && ret=0 |
| 2045 | 2045 |
;; |
| 2046 | 2046 |
*) |