|
|
@ -117,6 +117,10 @@ var (
|
|
|
|
Name: "style",
|
|
|
|
Name: "style",
|
|
|
|
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{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: gogen.GoCommand,
|
|
|
|
Action: gogen.GoCommand,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -234,6 +238,10 @@ var (
|
|
|
|
Usage: "the port to expose, default none",
|
|
|
|
Usage: "the port to expose, default none",
|
|
|
|
Value: 0,
|
|
|
|
Value: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: docker.DockerCommand,
|
|
|
|
Action: docker.DockerCommand,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -319,6 +327,10 @@ var (
|
|
|
|
Usage: "the max replicas of deploy",
|
|
|
|
Usage: "the max replicas of deploy",
|
|
|
|
Value: 10,
|
|
|
|
Value: 10,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: kube.DeploymentCommand,
|
|
|
|
Action: kube.DeploymentCommand,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -340,6 +352,10 @@ var (
|
|
|
|
Name: "idea",
|
|
|
|
Name: "idea",
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: rpc.RPCNew,
|
|
|
|
Action: rpc.RPCNew,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -382,6 +398,10 @@ var (
|
|
|
|
Name: "idea",
|
|
|
|
Name: "idea",
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
Usage: "whether the command execution environment is from idea plugin. [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: rpc.RPC,
|
|
|
|
Action: rpc.RPC,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -423,6 +443,10 @@ var (
|
|
|
|
Name: "database, db",
|
|
|
|
Name: "database, db",
|
|
|
|
Usage: "the name of database [optional]",
|
|
|
|
Usage: "the name of database [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: model.MysqlDDL,
|
|
|
|
Action: model.MysqlDDL,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -454,6 +478,10 @@ var (
|
|
|
|
Name: "idea",
|
|
|
|
Name: "idea",
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: model.MySqlDataSource,
|
|
|
|
Action: model.MySqlDataSource,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -495,6 +523,10 @@ var (
|
|
|
|
Name: "idea",
|
|
|
|
Name: "idea",
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
Usage: "for idea plugin [optional]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: model.PostgreSqlDataSource,
|
|
|
|
Action: model.PostgreSqlDataSource,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -520,6 +552,10 @@ var (
|
|
|
|
Name: "style",
|
|
|
|
Name: "style",
|
|
|
|
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{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: mongo.Action,
|
|
|
|
Action: mongo.Action,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -541,13 +577,25 @@ var (
|
|
|
|
Usage: "template operation",
|
|
|
|
Usage: "template operation",
|
|
|
|
Subcommands: []cli.Command{
|
|
|
|
Subcommands: []cli.Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "init",
|
|
|
|
Name: "init",
|
|
|
|
Usage: "initialize the all templates(force update)",
|
|
|
|
Usage: "initialize the all templates(force update)",
|
|
|
|
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
Action: tpl.GenTemplates,
|
|
|
|
Action: tpl.GenTemplates,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "clean",
|
|
|
|
Name: "clean",
|
|
|
|
Usage: "clean the all cache templates",
|
|
|
|
Usage: "clean the all cache templates",
|
|
|
|
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
Action: tpl.CleanTemplates,
|
|
|
|
Action: tpl.CleanTemplates,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -558,6 +606,10 @@ var (
|
|
|
|
Name: "category,c",
|
|
|
|
Name: "category,c",
|
|
|
|
Usage: "the category of template, enum [api,rpc,model,docker,kube]",
|
|
|
|
Usage: "the category of template, enum [api,rpc,model,docker,kube]",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: tpl.UpdateTemplates,
|
|
|
|
Action: tpl.UpdateTemplates,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -573,6 +625,10 @@ var (
|
|
|
|
Name: "name,n",
|
|
|
|
Name: "name,n",
|
|
|
|
Usage: "the target file name of template",
|
|
|
|
Usage: "the target file name of template",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
|
|
|
Name: "home",
|
|
|
|
|
|
|
|
Usage: "the goctl home path of the template",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: tpl.RevertTemplates,
|
|
|
|
Action: tpl.RevertTemplates,
|
|
|
|
},
|
|
|
|
},
|
|
|
|