|
|
|
@ -54,14 +54,12 @@ var (
|
|
|
|
|
Usage: "the format target dir",
|
|
|
|
|
},
|
|
|
|
|
cli.BoolFlag{
|
|
|
|
|
Name: "iu",
|
|
|
|
|
Usage: "ignore update",
|
|
|
|
|
Required: false,
|
|
|
|
|
Name: "iu",
|
|
|
|
|
Usage: "ignore update",
|
|
|
|
|
},
|
|
|
|
|
cli.BoolFlag{
|
|
|
|
|
Name: "stdin",
|
|
|
|
|
Usage: "use stdin to input api doc content, press \"ctrl + d\" to send EOF",
|
|
|
|
|
Required: false,
|
|
|
|
|
Name: "stdin",
|
|
|
|
|
Usage: "use stdin to input api doc content, press \"ctrl + d\" to send EOF",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Action: format.GoFormatApi,
|
|
|
|
@ -101,9 +99,8 @@ var (
|
|
|
|
|
Usage: "the api file",
|
|
|
|
|
},
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "style",
|
|
|
|
|
Required: false,
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
Name: "style",
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Action: gogen.GoCommand,
|
|
|
|
@ -136,19 +133,16 @@ var (
|
|
|
|
|
Usage: "the api file",
|
|
|
|
|
},
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "webapi",
|
|
|
|
|
Usage: "the web api file path",
|
|
|
|
|
Required: false,
|
|
|
|
|
Name: "webapi",
|
|
|
|
|
Usage: "the web api file path",
|
|
|
|
|
},
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "caller",
|
|
|
|
|
Usage: "the web api caller",
|
|
|
|
|
Required: false,
|
|
|
|
|
Name: "caller",
|
|
|
|
|
Usage: "the web api caller",
|
|
|
|
|
},
|
|
|
|
|
cli.BoolFlag{
|
|
|
|
|
Name: "unwrap",
|
|
|
|
|
Usage: "unwrap the webapi caller for import",
|
|
|
|
|
Required: false,
|
|
|
|
|
Name: "unwrap",
|
|
|
|
|
Usage: "unwrap the webapi caller for import",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Action: tsgen.TsCommand,
|
|
|
|
@ -204,9 +198,8 @@ var (
|
|
|
|
|
Usage: "the api file",
|
|
|
|
|
},
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "style",
|
|
|
|
|
Required: false,
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
Name: "style",
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Action: plugin.PluginCommand,
|
|
|
|
@ -221,6 +214,11 @@ var (
|
|
|
|
|
Name: "go",
|
|
|
|
|
Usage: "the file that contains main function",
|
|
|
|
|
},
|
|
|
|
|
cli.IntFlag{
|
|
|
|
|
Name: "port",
|
|
|
|
|
Usage: "the port to expose, default none",
|
|
|
|
|
Value: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Action: docker.DockerCommand,
|
|
|
|
|
},
|
|
|
|
@ -321,9 +319,8 @@ var (
|
|
|
|
|
Usage: `generate rpc demo service`,
|
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "style",
|
|
|
|
|
Required: false,
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
Name: "style",
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
},
|
|
|
|
|
cli.BoolFlag{
|
|
|
|
|
Name: "idea",
|
|
|
|
@ -360,9 +357,8 @@ var (
|
|
|
|
|
Usage: `the target path of the code`,
|
|
|
|
|
},
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "style",
|
|
|
|
|
Required: false,
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
Name: "style",
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
},
|
|
|
|
|
cli.BoolFlag{
|
|
|
|
|
Name: "idea",
|
|
|
|
@ -394,9 +390,8 @@ var (
|
|
|
|
|
Usage: "the target dir",
|
|
|
|
|
},
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "style",
|
|
|
|
|
Required: false,
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
Name: "style",
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
},
|
|
|
|
|
cli.BoolFlag{
|
|
|
|
|
Name: "cache, c",
|
|
|
|
@ -430,9 +425,8 @@ var (
|
|
|
|
|
Usage: "the target dir",
|
|
|
|
|
},
|
|
|
|
|
cli.StringFlag{
|
|
|
|
|
Name: "style",
|
|
|
|
|
Required: false,
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
Name: "style",
|
|
|
|
|
Usage: "the file naming format, see [https://github.com/tal-tech/go-zero/tree/master/tools/goctl/config/readme.md]",
|
|
|
|
|
},
|
|
|
|
|
cli.BoolFlag{
|
|
|
|
|
Name: "idea",
|
|
|
|
|