|
|
@ -55,7 +55,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -67,7 +74,14 @@ var commands = []cli.Command{
|
|
|
|
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",
|
|
|
@ -139,7 +153,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -260,7 +281,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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",
|
|
|
@ -353,7 +381,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -378,7 +413,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -393,7 +435,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -428,7 +477,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -473,7 +529,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -508,7 +571,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -553,7 +623,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
@ -582,7 +659,14 @@ var commands = []cli.Command{
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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,
|
|
|
|