From 5451d96a8131d27d2a6ae3c0339c73cd923fa268 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Sat, 7 May 2022 23:34:55 +0800 Subject: [PATCH] chore: update some logs (#1875) --- tools/goctl/tpl/templates.go | 2 +- tools/goctl/util/ctx/context.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/goctl/tpl/templates.go b/tools/goctl/tpl/templates.go index 3cfd89af..0a7a8499 100644 --- a/tools/goctl/tpl/templates.go +++ b/tools/goctl/tpl/templates.go @@ -109,7 +109,7 @@ func cleanTemplates(_ *cobra.Command, _ []string) error { return err } - fmt.Printf("%s\n", aurora.Green("template are clean!")) + fmt.Printf("%s\n", aurora.Green("templates are cleaned!")) return nil } diff --git a/tools/goctl/util/ctx/context.go b/tools/goctl/util/ctx/context.go index 1eba01f6..25f8d5a8 100644 --- a/tools/goctl/util/ctx/context.go +++ b/tools/goctl/util/ctx/context.go @@ -2,7 +2,6 @@ package ctx import ( "errors" - "fmt" "path/filepath" "github.com/zeromicro/go-zero/tools/goctl/rpc/execx" @@ -32,7 +31,6 @@ func Prepare(workDir string) (*ProjectContext, error) { if err == nil { return ctx, nil } - fmt.Printf("get project context from workdir[%s] failed: %s\n", workDir, err) name := filepath.Base(workDir) _, err = execx.Run("go mod init "+name, workDir)