mirror of
https://github.com/docker/cli.git
synced 2026-09-25 17:02:07 -04:00
Add completion for --filter desired-state=shutdown
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 0ec2d368a8
Component: cli
This commit is contained in:
committed by
Tibor Vass
parent
e0bd29f9ac
commit
6ad7098f18
@@ -2906,7 +2906,7 @@ _docker_service_ps() {
|
||||
local key=$(__docker_map_key_of_current_option '--filter|-f')
|
||||
case "$key" in
|
||||
desired-state)
|
||||
COMPREPLY=( $( compgen -W "accepted running" -- "${cur##*=}" ) )
|
||||
COMPREPLY=( $( compgen -W "accepted running shutdown" -- "${cur##*=}" ) )
|
||||
return
|
||||
;;
|
||||
name)
|
||||
@@ -3399,7 +3399,7 @@ _docker_node_ps() {
|
||||
local key=$(__docker_map_key_of_current_option '--filter|-f')
|
||||
case "$key" in
|
||||
desired-state)
|
||||
COMPREPLY=( $( compgen -W "accepted running" -- "${cur##*=}" ) )
|
||||
COMPREPLY=( $( compgen -W "accepted running shutdown" -- "${cur##*=}" ) )
|
||||
return
|
||||
;;
|
||||
name)
|
||||
@@ -3888,7 +3888,7 @@ _docker_stack_ps() {
|
||||
local key=$(__docker_map_key_of_current_option '--filter|-f')
|
||||
case "$key" in
|
||||
desired-state)
|
||||
COMPREPLY=( $( compgen -W "accepted running" -- "${cur##*=}" ) )
|
||||
COMPREPLY=( $( compgen -W "accepted running shutdown" -- "${cur##*=}" ) )
|
||||
return
|
||||
;;
|
||||
id)
|
||||
|
||||
@@ -1344,7 +1344,7 @@ __docker_node_complete_ps_filters() {
|
||||
if compset -P '*='; then
|
||||
case "${${words[-1]%=*}#*=}" in
|
||||
(desired-state)
|
||||
state_opts=('accepted' 'running')
|
||||
state_opts=('accepted' 'running' 'shutdown')
|
||||
_describe -t state-opts "desired state options" state_opts && ret=0
|
||||
;;
|
||||
*)
|
||||
@@ -1784,7 +1784,7 @@ __docker_service_complete_ps_filters() {
|
||||
if compset -P '*='; then
|
||||
case "${${words[-1]%=*}#*=}" in
|
||||
(desired-state)
|
||||
state_opts=('accepted' 'running')
|
||||
state_opts=('accepted' 'running' 'shutdown')
|
||||
_describe -t state-opts "desired state options" state_opts && ret=0
|
||||
;;
|
||||
*)
|
||||
@@ -2040,7 +2040,7 @@ __docker_stack_complete_ps_filters() {
|
||||
if compset -P '*='; then
|
||||
case "${${words[-1]%=*}#*=}" in
|
||||
(desired-state)
|
||||
state_opts=('accepted' 'running')
|
||||
state_opts=('accepted' 'running' 'shutdown')
|
||||
_describe -t state-opts "desired state options" state_opts && ret=0
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user