bash completion for new fluentd log driver options

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-03-25 03:31:48 -07:00 committed by Tibor Vass
parent d69044537c
commit a11a350519
1 changed files with 5 additions and 1 deletions

View File

@ -410,7 +410,7 @@ __docker_complete_log_drivers() {
__docker_complete_log_options() { __docker_complete_log_options() {
# see docs/reference/logging/index.md # see docs/reference/logging/index.md
local awslogs_options="awslogs-region awslogs-group awslogs-stream" local awslogs_options="awslogs-region awslogs-group awslogs-stream"
local fluentd_options="env fluentd-address labels tag" local fluentd_options="env fluentd-address fluentd-async-connect fluentd-buffer-limit fluentd-retry-wait fluentd-max-retries labels tag"
local gcplogs_options="env gcp-log-cmd gcp-project labels" local gcplogs_options="env gcp-log-cmd gcp-project labels"
local gelf_options="env gelf-address gelf-compression-level gelf-compression-type labels tag" local gelf_options="env gelf-address gelf-compression-level gelf-compression-type labels tag"
local journald_options="env labels tag" local journald_options="env labels tag"
@ -459,6 +459,10 @@ __docker_complete_log_options() {
__docker_complete_log_driver_options() { __docker_complete_log_driver_options() {
local key=$(__docker_map_key_of_current_option '--log-opt') local key=$(__docker_map_key_of_current_option '--log-opt')
case "$key" in case "$key" in
fluentd-async-connect)
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
return
;;
gelf-address) gelf-address)
COMPREPLY=( $( compgen -W "udp" -S "://" -- "${cur##*=}" ) ) COMPREPLY=( $( compgen -W "udp" -S "://" -- "${cur##*=}" ) )
__docker_nospace __docker_nospace