From 42a5dfc0d2edb48ca5a58b18858e4b225026eddb Mon Sep 17 00:00:00 2001 From: aiordache Date: Thu, 6 Aug 2020 12:02:11 +0200 Subject: [PATCH] rename runCompose() to checkComposeSupport() Signed-off-by: aiordache --- cli/cmd/compose/compose.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/cmd/compose/compose.go b/cli/cmd/compose/compose.go index 3bcbb3874..5c57e5412 100644 --- a/cli/cmd/compose/compose.go +++ b/cli/cmd/compose/compose.go @@ -34,7 +34,7 @@ func Command() *cobra.Command { Short: "Docker Compose", Use: "compose", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { - return runCompose(cmd.Context()) + return checkComposeSupport(cmd.Context()) }, } @@ -46,7 +46,7 @@ func Command() *cobra.Command { return command } -func runCompose(ctx context.Context) error { +func checkComposeSupport(ctx context.Context) error { c, err := client.New(ctx) if err == nil { composeService := c.ComposeService()