rename runCompose() to checkComposeSupport()

Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
aiordache 2020-08-06 12:02:11 +02:00
parent bb3500d77b
commit 42a5dfc0d2
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ func Command() *cobra.Command {
Short: "Docker Compose", Short: "Docker Compose",
Use: "compose", Use: "compose",
PersistentPreRunE: func(cmd *cobra.Command, args []string) error { 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 return command
} }
func runCompose(ctx context.Context) error { func checkComposeSupport(ctx context.Context) error {
c, err := client.New(ctx) c, err := client.New(ctx)
if err == nil { if err == nil {
composeService := c.ComposeService() composeService := c.ComposeService()