소스 검색

rename runCompose() to checkComposeSupport()

Signed-off-by: aiordache <[email protected]>
aiordache 5 년 전
부모
커밋
42a5dfc0d2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      cli/cmd/compose/compose.go

+ 2 - 2
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()