|
|
@ -54,8 +54,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "the output api file",
|
|
|
|
Usage: "the output api file",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: apigen.ApiCommand,
|
|
|
|
Action: apigen.ApiCommand,
|
|
|
@ -66,8 +73,15 @@ var commands = []cli.Command{
|
|
|
|
Action: new.CreateServiceCommand,
|
|
|
|
Action: new.CreateServiceCommand,
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "style",
|
|
|
|
Name: "style",
|
|
|
@ -138,8 +152,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: gogen.GoCommand,
|
|
|
|
Action: gogen.GoCommand,
|
|
|
@ -259,8 +280,15 @@ var commands = []cli.Command{
|
|
|
|
Value: 0,
|
|
|
|
Value: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "version",
|
|
|
|
Name: "version",
|
|
|
@ -352,8 +380,15 @@ var commands = []cli.Command{
|
|
|
|
Value: 10,
|
|
|
|
Value: 10,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: kube.DeploymentCommand,
|
|
|
|
Action: kube.DeploymentCommand,
|
|
|
@ -377,8 +412,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: rpc.RPCNew,
|
|
|
|
Action: rpc.RPCNew,
|
|
|
@ -392,8 +434,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "the target path of proto",
|
|
|
|
Usage: "the target path of proto",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time," +
|
|
|
|
|
|
|
|
" if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: rpc.RPCTemplate,
|
|
|
|
Action: rpc.RPCTemplate,
|
|
|
@ -427,8 +476,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: rpc.RPC,
|
|
|
|
Action: rpc.RPC,
|
|
|
@ -472,8 +528,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "the name of database [optional]",
|
|
|
|
Usage: "the name of database [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: model.MysqlDDL,
|
|
|
|
Action: model.MysqlDDL,
|
|
|
@ -507,8 +570,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: model.MySqlDataSource,
|
|
|
|
Action: model.MySqlDataSource,
|
|
|
@ -552,8 +622,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: model.PostgreSqlDataSource,
|
|
|
|
Action: model.PostgreSqlDataSource,
|
|
|
@ -581,8 +658,15 @@ var commands = []cli.Command{
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
Usage: "the goctl home path of the template, --home and --remote cannot be set at the same time," +
|
|
|
|
|
|
|
|
" if they are, --remote has higher priority",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "remote",
|
|
|
|
|
|
|
|
Usage: "the remote git repo of the template, --home and --remote cannot be set at the same time, " +
|
|
|
|
|
|
|
|
"if they are, --remote has higher priority\n\tThe git repo directory must be consistent with the " +
|
|
|
|
|
|
|
|
"https://github.com/zeromicro/go-zero-template directory structure",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: mongo.Action,
|
|
|
|
Action: mongo.Action,
|
|
|
|