mirror of https://github.com/docker/cli.git
Add bash completion for "local" log driver
Ref: https://github.com/moby/moby/pull/37092 Also adds log-opt `compress` to json-file log driver because this was also added in the referenced PR. Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
504cecf293
commit
c59038b15c
|
@ -881,6 +881,7 @@ __docker_complete_log_drivers() {
|
||||||
gelf
|
gelf
|
||||||
journald
|
journald
|
||||||
json-file
|
json-file
|
||||||
|
local
|
||||||
logentries
|
logentries
|
||||||
none
|
none
|
||||||
splunk
|
splunk
|
||||||
|
@ -904,7 +905,8 @@ __docker_complete_log_options() {
|
||||||
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 gelf-tcp-max-reconnect gelf-tcp-reconnect-delay 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 compress max-file max-size"
|
||||||
|
local local_options="$common_options1 compress max-file max-size"
|
||||||
local logentries_options="$common_options1 $common_options2 line-only logentries-token tag"
|
local logentries_options="$common_options1 $common_options2 line-only logentries-token tag"
|
||||||
local splunk_options="$common_options1 $common_options2 splunk-caname splunk-capath splunk-format splunk-gzip splunk-gzip-level splunk-index splunk-insecureskipverify splunk-source splunk-sourcetype splunk-token splunk-url splunk-verify-connection tag"
|
local splunk_options="$common_options1 $common_options2 splunk-caname splunk-capath splunk-format splunk-gzip splunk-gzip-level splunk-index splunk-insecureskipverify splunk-source splunk-sourcetype splunk-token splunk-url splunk-verify-connection tag"
|
||||||
local syslog_options="$common_options1 $common_options2 syslog-address syslog-facility syslog-format syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify tag"
|
local syslog_options="$common_options1 $common_options2 syslog-address syslog-facility syslog-format syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify tag"
|
||||||
|
@ -933,6 +935,9 @@ __docker_complete_log_options() {
|
||||||
json-file)
|
json-file)
|
||||||
COMPREPLY=( $( compgen -W "$json_file_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$json_file_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
local)
|
||||||
|
COMPREPLY=( $( compgen -W "$local_options" -S = -- "$cur" ) )
|
||||||
|
;;
|
||||||
logentries)
|
logentries)
|
||||||
COMPREPLY=( $( compgen -W "$logentries_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$logentries_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
@ -962,7 +967,7 @@ __docker_complete_log_driver_options() {
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
fluentd-async-connect)
|
compress|fluentd-async-connect)
|
||||||
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue