mirror of https://github.com/docker/cli.git
Update bash completion for synchronous `docker service` commands
The default value for `docker service create|update|scale|rollback --detach|-d` changed from `true` to `false`. This updates bash completion to complete just `--detach|-d`. Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
1649af8129
commit
60bfaba6fb
|
@ -3224,7 +3224,7 @@ _docker_service_rm() {
|
||||||
_docker_service_rollback() {
|
_docker_service_rollback() {
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--detach=false -d --help --quit -q" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--detach -d --help --quit -q" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
local counter=$( __docker_pos_first_nonflag )
|
local counter=$( __docker_pos_first_nonflag )
|
||||||
|
@ -3238,7 +3238,7 @@ _docker_service_rollback() {
|
||||||
_docker_service_scale() {
|
_docker_service_scale() {
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--detach=false -d=false --help" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--detach -d --help" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__docker_complete_services
|
__docker_complete_services
|
||||||
|
@ -3339,7 +3339,7 @@ _docker_service_update_and_create() {
|
||||||
"
|
"
|
||||||
|
|
||||||
local boolean_options="
|
local boolean_options="
|
||||||
--detach=false -d=false
|
--detach -d
|
||||||
--help
|
--help
|
||||||
--no-healthcheck
|
--no-healthcheck
|
||||||
--read-only
|
--read-only
|
||||||
|
|
Loading…
Reference in New Issue