From d5271568a2bc2eba3fad31e81b4dd9db52d6f416 Mon Sep 17 00:00:00 2001 From: dungeonmaster18 Date: Fri, 1 Dec 2017 18:39:41 +0530 Subject: [PATCH] Added auto complete command for fluentd-sub-second-precision Signed-off-by: dungeonmaster18 --- contrib/completion/bash/docker | 6 +++++- contrib/completion/zsh/_docker | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 5083e19449..ff6c4e0488 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -835,7 +835,7 @@ __docker_complete_log_options() { # awslogs does not implement the $common_options2. 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 fluentd-sub-second-precision tag" 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 journald_options="$common_options1 $common_options2 tag" @@ -901,6 +901,10 @@ __docker_complete_log_driver_options() { COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) ) return ;; + fluentd-sub-second-precision) + COMPREPLY=( $( compgen -W "false true" -- "${cur##*=}" ) ) + return + ;; gelf-address) COMPREPLY=( $( compgen -W "tcp udp" -S "://" -- "${cur##*=}" ) ) __docker_nospace diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index b25dc7b197..309db74ff6 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -226,7 +226,7 @@ __docker_get_log_options() { common_options=("max-buffer-size" "mode") common_options2=("env" "env-regex" "labels") awslogs_options=($common_options "awslogs-create-group" "awslogs-datetime-format" "awslogs-group" "awslogs-multiline-pattern" "awslogs-region" "awslogs-stream" "tag") - fluentd_options=($common_options $common_options2 "fluentd-address" "fluentd-async-connect" "fluentd-buffer-limit" "fluentd-retry-wait" "fluentd-max-retries" "tag") + fluentd_options=($common_options $common_options2 "fluentd-address" "fluentd-async-connect" "fluentd-buffer-limit" "fluentd-retry-wait" "fluentd-max-retries" "fluentd-sub-second-precision" "tag") gcplogs_options=($common_options $common_options2 "gcp-log-cmd" "gcp-meta-id" "gcp-meta-name" "gcp-meta-zone" "gcp-project") gelf_options=($common_options $common_options2 "gelf-address" "gelf-compression-level" "gelf-compression-type" "tag") journald_options=($common_options $common_options2 "tag")