mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
reactor sql generation
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
"github.com/tal-tech/go-zero/tools/goctl/configgen"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/docker"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/feature"
|
||||
"github.com/tal-tech/go-zero/tools/goctl/model/sql/command"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
@@ -172,14 +173,19 @@ var (
|
||||
Usage: "generate sql model",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "config, c",
|
||||
Usage: "the file that contains main function",
|
||||
Name: "src, s",
|
||||
Usage: "the file path of sql",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "dir, d",
|
||||
Usage: "the target dir",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "cache, c",
|
||||
Usage: "generate code with cache",
|
||||
},
|
||||
},
|
||||
Action: command.Mysql,
|
||||
},
|
||||
{
|
||||
Name: "config",
|
||||
|
||||
Reference in New Issue
Block a user