update rpc generate sample proto file (#1709)
* update rpc generate sample proto file * update
This commit is contained in:
@@ -116,7 +116,7 @@ var commands = []cli.Command{
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "o",
|
||||
Usage: "the output api file",
|
||||
Usage: "output a sample api file",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "home",
|
||||
@@ -510,6 +510,28 @@ var commands = []cli.Command{
|
||||
{
|
||||
Name: "rpc",
|
||||
Usage: "generate rpc code",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "o",
|
||||
Usage: "output a sample proto file",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "home",
|
||||
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{
|
||||
Name: "branch",
|
||||
Usage: "the branch of the remote repo, it does work with --remote",
|
||||
},
|
||||
},
|
||||
Action: rpc.RPCTemplate,
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Name: "new",
|
||||
@@ -552,7 +574,7 @@ var commands = []cli.Command{
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "out, o",
|
||||
Usage: "the target path of proto",
|
||||
Usage: "the target path of proto (deprecated)",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "home",
|
||||
|
||||
Reference in New Issue
Block a user