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