mirror of https://github.com/docker/cli.git
Add zsh completion for '--log-opt syslog-format'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
cf2670b8ba
commit
b7f5138adb
|
@ -216,7 +216,7 @@ __docker_get_log_options() {
|
||||||
gelf_options=("env" "gelf-address" "gelf-compression-level" "gelf-compression-type" "labels" "tag")
|
gelf_options=("env" "gelf-address" "gelf-compression-level" "gelf-compression-type" "labels" "tag")
|
||||||
journald_options=("env" "labels" "tag")
|
journald_options=("env" "labels" "tag")
|
||||||
json_file_options=("env" "labels" "max-file" "max-size")
|
json_file_options=("env" "labels" "max-file" "max-size")
|
||||||
syslog_options=("syslog-address" "syslog-tls-ca-cert" "syslog-tls-cert" "syslog-tls-key" "syslog-tls-skip-verify" "syslog-facility" "tag")
|
syslog_options=("syslog-address" "syslog-format" "syslog-tls-ca-cert" "syslog-tls-cert" "syslog-tls-key" "syslog-tls-skip-verify" "syslog-facility" "tag")
|
||||||
splunk_options=("env" "labels" "splunk-caname" "splunk-capath" "splunk-index" "splunk-insecureskipverify" "splunk-source" "splunk-sourcetype" "splunk-token" "splunk-url" "tag")
|
splunk_options=("env" "labels" "splunk-caname" "splunk-capath" "splunk-index" "splunk-insecureskipverify" "splunk-source" "splunk-sourcetype" "splunk-token" "splunk-url" "tag")
|
||||||
|
|
||||||
[[ $log_driver = (awslogs|all) ]] && _describe -t awslogs-options "awslogs options" awslogs_options "$@" && ret=0
|
[[ $log_driver = (awslogs|all) ]] && _describe -t awslogs-options "awslogs options" awslogs_options "$@" && ret=0
|
||||||
|
@ -236,7 +236,15 @@ __docker_log_options() {
|
||||||
integer ret=1
|
integer ret=1
|
||||||
|
|
||||||
if compset -P '*='; then
|
if compset -P '*='; then
|
||||||
|
case "${${words[-1]%=*}#*=}" in
|
||||||
|
(syslog-format)
|
||||||
|
syslog_format_opts=('rfc3164' 'rfc5424')
|
||||||
|
_describe -t syslog-format-opts "Syslog format Options" syslog_format_opts && ret=0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
_message 'value' && ret=0
|
_message 'value' && ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
__docker_get_log_options -qS "=" && ret=0
|
__docker_get_log_options -qS "=" && ret=0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue