From 31a8965dd40ad576891d0c98f23b53d6aaf63ece Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Wed, 22 Mar 2017 12:48:03 -0700 Subject: [PATCH] Add bash completion for `secret ls --format` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index b2ea815e55..b120063d84 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3850,9 +3850,15 @@ _docker_secret_list() { } _docker_secret_ls() { + case "$prev" in + --format) + return + ;; + esac + case "$cur" in -*) - COMPREPLY=( $( compgen -W "--help --quiet -q" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--format --help --quiet -q" -- "$cur" ) ) ;; esac }