mirror of https://github.com/docker/cli.git
Merge pull request #726 from albers/completion-log-opt-line-only
Add bash completion for `--log-opt line-only`
This commit is contained in:
commit
8053cf67e0
|
@ -840,7 +840,7 @@ __docker_complete_log_options() {
|
||||||
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 max-file max-size"
|
||||||
local logentries_options="$common_options1 $common_options2 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"
|
||||||
|
|
||||||
|
@ -918,6 +918,10 @@ __docker_complete_log_driver_options() {
|
||||||
COMPREPLY=( $( compgen -W "gzip none zlib" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "gzip none zlib" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
line-only)
|
||||||
|
COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
mode)
|
mode)
|
||||||
COMPREPLY=( $( compgen -W "blocking non-blocking" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "blocking non-blocking" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue