From 513ea82edd3c39e794a75f23226cab0f78906c8e Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 27 Apr 2017 10:01:17 +0200 Subject: [PATCH] Add bash completion for `stack 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 ff043f20f3..7f5cc2e991 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -4033,9 +4033,15 @@ _docker_stack_list() { } _docker_stack_ls() { + case "$prev" in + --format) + return + ;; + esac + case "$cur" in -*) - COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--format --help" -- "$cur" ) ) ;; esac }