From 68d67f2cbfb4d1a5ca7bed716f1af41327d5e9e8 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Fri, 10 May 2019 21:48:27 +0200 Subject: [PATCH] Add bash completion for `context create --from` Signed-off-by: Harald Albers (cherry picked from commit b55992afc6a063fbb45c6eb6b1d930df03f6430d) Signed-off-by: Sebastiaan van Stijn --- contrib/completion/bash/docker | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 52577ece5e..ad0fc1238d 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2342,11 +2342,15 @@ _docker_context_create() { --description|--docker|--kubernetes) return ;; + --from) + __docker_complete_contexts + return + ;; esac case "$cur" in -*) - COMPREPLY=( $( compgen -W "--default-stack-orchestrator --description --docker --help --kubernetes" -- "$cur" ) ) + COMPREPLY=( $( compgen -W "--default-stack-orchestrator --description --docker --from --help --kubernetes" -- "$cur" ) ) ;; esac }