mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
replace passing parameters by context with singletons
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
9301c298ef
commit
48402585fd
47 changed files with 169 additions and 205 deletions
|
|
@ -39,9 +39,9 @@ const ComDockerCli = "com.docker.cli"
|
|||
|
||||
// ExecIfDefaultCtxType delegates to com.docker.cli if on moby context
|
||||
func ExecIfDefaultCtxType(ctx context.Context, root *cobra.Command) {
|
||||
currentContext := apicontext.CurrentContext(ctx)
|
||||
currentContext := apicontext.Current()
|
||||
|
||||
s := store.ContextStore(ctx)
|
||||
s := store.Instance()
|
||||
|
||||
currentCtx, err := s.Get(currentContext)
|
||||
// Only run original docker command if the current context is not ours.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue