From ea0ae30d866af1e29320c0e3083ab9140d14d8d7 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 23 Feb 2022 18:10:47 +0100 Subject: [PATCH 1/2] contrib/completion: remove unused options variable Signed-off-by: Sebastiaan van Stijn --- contrib/completion/bash/docker | 1 - 1 file changed, 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index a22d16ea20..6015cfc4f4 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -5287,7 +5287,6 @@ _docker_version() { case "$cur" in -*) - local options="--format -f --help" COMPREPLY=( $( compgen -W "--format -f --help" -- "$cur" ) ) ;; esac From 2d74be89e22b5b0d527b3648080abf769842cd1f Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 24 Feb 2022 11:12:42 +0100 Subject: [PATCH 2/2] contrib/completion: remove orchestrator flags from zsh completion Signed-off-by: Sebastiaan van Stijn --- contrib/completion/zsh/_docker | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contrib/completion/zsh/_docker b/contrib/completion/zsh/_docker index 0f9b762bfc..dadf67381f 100644 --- a/contrib/completion/zsh/_docker +++ b/contrib/completion/zsh/_docker @@ -2583,10 +2583,8 @@ __docker_context_subcommand() { (create) _arguments $(__docker_arguments) \ $opts_help \ - "($help)--default-stack-orchestrator=[Default orchestrator for stack operations to use with this context]:default-stack-orchestrator:(swarm kubernetes all)" \ "($help)--description=[Description of the context]:description:" \ "($help)--docker=[Set the docker endpoint]:docker:" \ - "($help)--kubernetes=[Set the kubernetes endpoint]:kubernetes:" \ "($help)--from=[Create context from a named context]:from:__docker_complete_contexts" \ "($help -):name: " && ret=0 ;; @@ -2608,10 +2606,8 @@ __docker_context_subcommand() { (update) _arguments $(__docker_arguments) \ $opts_help \ - "($help)--default-stack-orchestrator=[Default orchestrator for stack operations to use with this context]:default-stack-orchestrator:(swarm kubernetes all)" \ "($help)--description=[Description of the context]:description:" \ "($help)--docker=[Set the docker endpoint]:docker:" \ - "($help)--kubernetes=[Set the kubernetes endpoint]:kubernetes:" \ "($help -):name:" && ret=0 ;; esac