add go-grpc_opt and go_opt for grpc new command (#1769)

Co-authored-by: zhouyy <zhouyy@ickey.cn>
This commit is contained in:
chowyu12
2022-04-21 16:45:56 +08:00
committed by GitHub
parent 305587aa81
commit 14bf2f33f7
2 changed files with 20 additions and 0 deletions

View File

@@ -538,6 +538,14 @@ var commands = []cli.Command{
Usage: `generate rpc demo service`,
UsageText: "example: goctl rpc new [options] service-name",
Flags: []cli.Flag{
cli.StringSliceFlag{
Name: "go_opt",
Hidden: true,
},
cli.StringSliceFlag{
Name: "go-grpc_opt",
Hidden: true,
},
cli.StringFlag{
Name: "style",
Usage: "the file naming format, see [https://github.com/zeromicro/go-zero/tree/master/tools/goctl/config/readme.md]",