Skip to content

Commit

Permalink
chore: update some logs (#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed May 7, 2022
1 parent 69c2bad commit 5451d96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion tools/goctl/tpl/templates.go
Expand Up @@ -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
}

Expand Down
2 changes: 0 additions & 2 deletions tools/goctl/util/ctx/context.go
Expand Up @@ -2,7 +2,6 @@ package ctx

import (
"errors"
"fmt"
"path/filepath"

"github.com/zeromicro/go-zero/tools/goctl/rpc/execx"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5451d96

Please sign in to comment.