update rpc generate sample proto file (#1709)

* update rpc generate sample proto file

* update
This commit is contained in:
fang duan
2022-04-19 10:59:16 +08:00
committed by GitHub
parent e62870e268
commit bbe1249ecb
2 changed files with 27 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/urfave/cli"
"github.com/zeromicro/go-zero/tools/goctl/rpc/generator"
"github.com/zeromicro/go-zero/tools/goctl/util"
"github.com/zeromicro/go-zero/tools/goctl/util/console"
"github.com/zeromicro/go-zero/tools/goctl/util/pathx"
)
@@ -63,6 +64,8 @@ func RPCNew(c *cli.Context) error {
// RPCTemplate is the entry for generate rpc template
func RPCTemplate(c *cli.Context) error {
console.Warning("deprecated: goctl rpc template -o is deprecated and will be removed in the future, use goctl rpc -o instead")
if c.NumFlags() == 0 {
cli.ShowCommandHelpAndExit(c, "template", 1)
}