mirror of https://github.com/docker/cli.git
Merge pull request #677 from albers/completion-log-opts
Add new log driver options to bash completion
This commit is contained in:
commit
4f009541cb
|
@ -833,11 +833,11 @@ __docker_complete_log_options() {
|
||||||
local common_options2="env env-regex labels"
|
local common_options2="env env-regex labels"
|
||||||
|
|
||||||
# awslogs does not implement the $common_options2.
|
# awslogs does not implement the $common_options2.
|
||||||
local awslogs_options="$common_options1 awslogs-create-group awslogs-datetime-format awslogs-group awslogs-multiline-pattern awslogs-region awslogs-stream tag"
|
local awslogs_options="$common_options1 awslogs-create-group awslogs-credentials-endpoint awslogs-datetime-format awslogs-group awslogs-multiline-pattern awslogs-region awslogs-stream tag"
|
||||||
|
|
||||||
local fluentd_options="$common_options1 $common_options2 fluentd-address fluentd-async-connect fluentd-buffer-limit fluentd-retry-wait fluentd-max-retries tag"
|
local fluentd_options="$common_options1 $common_options2 fluentd-address fluentd-async-connect fluentd-buffer-limit fluentd-retry-wait fluentd-max-retries tag"
|
||||||
local gcplogs_options="$common_options1 $common_options2 gcp-log-cmd gcp-meta-id gcp-meta-name gcp-meta-zone gcp-project"
|
local gcplogs_options="$common_options1 $common_options2 gcp-log-cmd gcp-meta-id gcp-meta-name gcp-meta-zone gcp-project"
|
||||||
local gelf_options="$common_options1 $common_options2 gelf-address gelf-compression-level gelf-compression-type tag"
|
local gelf_options="$common_options1 $common_options2 gelf-address gelf-compression-level gelf-compression-type gelf-tcp-max-reconnect gelf-tcp-reconnect-delay tag"
|
||||||
local journald_options="$common_options1 $common_options2 tag"
|
local journald_options="$common_options1 $common_options2 tag"
|
||||||
local json_file_options="$common_options1 $common_options2 max-file max-size"
|
local json_file_options="$common_options1 $common_options2 max-file max-size"
|
||||||
local logentries_options="$common_options1 $common_options2 logentries-token tag"
|
local logentries_options="$common_options1 $common_options2 logentries-token tag"
|
||||||
|
@ -892,12 +892,17 @@ __docker_complete_log_driver_options() {
|
||||||
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
awslogs-credentials-endpoint)
|
||||||
|
COMPREPLY=( $( compgen -W "/" -- "${cur##*=}" ) )
|
||||||
|
__docker_nospace
|
||||||
|
return
|
||||||
|
;;
|
||||||
fluentd-async-connect)
|
fluentd-async-connect)
|
||||||
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
gelf-address)
|
gelf-address)
|
||||||
COMPREPLY=( $( compgen -W "udp" -S "://" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "tcp udp" -S "://" -- "${cur##*=}" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue