Add completion for the possible values `true`|`false`, correct sort order.
Signed-off-by: Harald Albers <github@albersweb.de>
| ... | ... |
@@ -738,7 +738,7 @@ __docker_complete_log_options() {
|
| 738 | 738 |
# see repository docker/docker.github.io/engine/admin/logging/ |
| 739 | 739 |
local common_options="max-buffer-size mode" |
| 740 | 740 |
|
| 741 |
- local awslogs_options="$common_options awslogs-region awslogs-group awslogs-stream awslogs-create-group" |
|
| 741 |
+ local awslogs_options="$common_options awslogs-create-group awslogs-group awslogs-region awslogs-stream" |
|
| 742 | 742 |
local fluentd_options="$common_options env fluentd-address fluentd-async-connect fluentd-buffer-limit fluentd-retry-wait fluentd-max-retries labels tag" |
| 743 | 743 |
local gcplogs_options="$common_options env gcp-log-cmd gcp-project labels" |
| 744 | 744 |
local gelf_options="$common_options env gelf-address gelf-compression-level gelf-compression-type labels tag" |
| ... | ... |
@@ -792,6 +792,10 @@ __docker_complete_log_options() {
|
| 792 | 792 |
__docker_complete_log_driver_options() {
|
| 793 | 793 |
local key=$(__docker_map_key_of_current_option '--log-opt') |
| 794 | 794 |
case "$key" in |
| 795 |
+ awslogs-create-group) |
|
| 796 |
+ COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
|
| 797 |
+ return |
|
| 798 |
+ ;; |
|
| 795 | 799 |
fluentd-async-connect) |
| 796 | 800 |
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
| 797 | 801 |
return |