refactor file|path (#1409)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/logrusorgru/aurora"
|
||||
"github.com/tal-tech/go-zero/core/logx"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/api/parser"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/util"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/util/pathx"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
@@ -33,7 +33,7 @@ func TsCommand(c *cli.Context) error {
|
||||
}
|
||||
|
||||
api.Service = api.Service.JoinPrefix()
|
||||
logx.Must(util.MkdirIfNotExist(dir))
|
||||
logx.Must(pathx.MkdirIfNotExist(dir))
|
||||
logx.Must(genHandler(dir, webAPI, caller, api, unwrapAPI))
|
||||
logx.Must(genComponents(dir, api))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user