Fix bash completion for service update --force
- `--force` is not available in `service create` - `--force` is a boolean option Signed-off-by: Harald Albers <github@albersweb.de> (cherry picked from commit5fa5eb1da6) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit:046ffa4e87Component: cli
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
1c8c425da1
commit
72b2e41948
@ -3395,7 +3395,6 @@ _docker_service_update_and_create() {
|
||||
local options_with_args="
|
||||
--endpoint-mode
|
||||
--entrypoint
|
||||
--force
|
||||
--health-cmd
|
||||
--health-interval
|
||||
--health-retries
|
||||
@ -3520,6 +3519,10 @@ _docker_service_update_and_create() {
|
||||
--secret-rm
|
||||
"
|
||||
|
||||
boolean_options="$boolean_options
|
||||
--force
|
||||
"
|
||||
|
||||
case "$prev" in
|
||||
--env-rm)
|
||||
COMPREPLY=( $( compgen -e -- "$cur" ) )
|
||||
|
||||
Reference in New Issue
Block a user