|
|
@ -116,7 +116,7 @@ var commands = []cli.Command{
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "o",
|
|
|
|
Name: "o",
|
|
|
|
Usage: "the output api file",
|
|
|
|
Usage: "output a sample api file",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
@ -510,6 +510,28 @@ var commands = []cli.Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "rpc",
|
|
|
|
Name: "rpc",
|
|
|
|
Usage: "generate rpc code",
|
|
|
|
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{
|
|
|
|
Subcommands: []cli.Command{
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Name: "new",
|
|
|
|
Name: "new",
|
|
|
@ -552,7 +574,7 @@ var commands = []cli.Command{
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
Flags: []cli.Flag{
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "out, o",
|
|
|
|
Name: "out, o",
|
|
|
|
Usage: "the target path of proto",
|
|
|
|
Usage: "the target path of proto (deprecated)",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cli.StringFlag{
|
|
|
|
cli.StringFlag{
|
|
|
|
Name: "home",
|
|
|
|
Name: "home",
|
|
|
|