mirror of https://github.com/docker/cli.git
Add bash completion for `{dockerd,docker run} --log-opt max-buffer-size|mode`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
6686179ff5
commit
e49d13fc02
|
@ -712,16 +712,18 @@ __docker_complete_log_drivers() {
|
||||||
}
|
}
|
||||||
|
|
||||||
__docker_complete_log_options() {
|
__docker_complete_log_options() {
|
||||||
# see docs/reference/logging/index.md
|
# see repository docker/docker.github.io/engine/admin/logging/
|
||||||
local awslogs_options="awslogs-region awslogs-group awslogs-stream awslogs-create-group"
|
local common_options="max-buffer-size mode"
|
||||||
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 awslogs_options="$common_options awslogs-region awslogs-group awslogs-stream awslogs-create-group"
|
||||||
local gelf_options="env gelf-address gelf-compression-level gelf-compression-type labels tag"
|
local fluentd_options="$common_options env fluentd-address fluentd-async-connect fluentd-buffer-limit fluentd-retry-wait fluentd-max-retries labels tag"
|
||||||
local journald_options="env labels tag"
|
local gcplogs_options="$common_options env gcp-log-cmd gcp-project labels"
|
||||||
local json_file_options="env labels max-file max-size"
|
local gelf_options="$common_options env gelf-address gelf-compression-level gelf-compression-type labels tag"
|
||||||
local logentries_options="logentries-token"
|
local journald_options="$common_options env labels tag"
|
||||||
local syslog_options="env labels syslog-address syslog-facility syslog-format syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify tag"
|
local json_file_options="$common_options env labels max-file max-size"
|
||||||
local splunk_options="env labels 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 logentries_options="$common_options logentries-token"
|
||||||
|
local syslog_options="$common_options env labels syslog-address syslog-facility syslog-format syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify tag"
|
||||||
|
local splunk_options="$common_options env labels 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 all_options="$fluentd_options $gcplogs_options $gelf_options $journald_options $logentries_options $json_file_options $syslog_options $splunk_options"
|
local all_options="$fluentd_options $gcplogs_options $gelf_options $journald_options $logentries_options $json_file_options $syslog_options $splunk_options"
|
||||||
|
|
||||||
|
@ -784,6 +786,10 @@ __docker_complete_log_driver_options() {
|
||||||
COMPREPLY=( $( compgen -W "gzip none zlib" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "gzip none zlib" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
mode)
|
||||||
|
COMPREPLY=( $( compgen -W "blocking nonblocking" -- "${cur##*=}" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
syslog-address)
|
syslog-address)
|
||||||
COMPREPLY=( $( compgen -W "tcp:// tcp+tls:// udp:// unix://" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "tcp:// tcp+tls:// udp:// unix://" -- "${cur##*=}" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
|
|
Loading…
Reference in New Issue