- Remove bash completion for `service update --constraint`
- Add bash completion for `service update --constraint-{add,rm}`
Signed-off-by: Harald Albers <github@albersweb.de>
| ... | ... |
@@ -2967,7 +2967,6 @@ _docker_service_update_and_create() {
|
| 2967 | 2967 |
local $subcommand="${words[$subcommand_pos]}"
|
| 2968 | 2968 |
|
| 2969 | 2969 |
local options_with_args=" |
| 2970 |
- --constraint |
|
| 2971 | 2970 |
--endpoint-mode |
| 2972 | 2971 |
--env -e |
| 2973 | 2972 |
--force |
| ... | ... |
@@ -3018,6 +3017,7 @@ _docker_service_update_and_create() {
|
| 3018 | 3018 |
|
| 3019 | 3019 |
if [ "$subcommand" = "create" ] ; then |
| 3020 | 3020 |
options_with_args="$options_with_args |
| 3021 |
+ --constraint |
|
| 3021 | 3022 |
--container-label |
| 3022 | 3023 |
--dns |
| 3023 | 3024 |
--dns-option |
| ... | ... |
@@ -3061,6 +3061,8 @@ _docker_service_update_and_create() {
|
| 3061 | 3061 |
if [ "$subcommand" = "update" ] ; then |
| 3062 | 3062 |
options_with_args="$options_with_args |
| 3063 | 3063 |
--arg |
| 3064 |
+ --constraint-add |
|
| 3065 |
+ --constraint-rm |
|
| 3064 | 3066 |
--container-label-add |
| 3065 | 3067 |
--container-label-rm |
| 3066 | 3068 |
--dns-add |