fix(goctl): Fix #2561 (#2562)

* Fix #2561

* format code
This commit is contained in:
anqiansong
2022-10-29 22:40:56 +08:00
committed by GitHub
parent 7eb6aae949
commit 3db64c7d47
2 changed files with 10 additions and 4 deletions

View File

@@ -10,7 +10,9 @@ var (
Cmd = &cobra.Command{
Use: "rpc",
Short: "Generate rpc code",
RunE: cli.RPCTemplate,
RunE: func(cmd *cobra.Command, args []string) error {
return cli.RPCTemplate(true)
},
}
newCmd = &cobra.Command{
@@ -23,7 +25,9 @@ var (
templateCmd = &cobra.Command{
Use: "template",
Short: "Generate proto template",
RunE: cli.RPCTemplate,
RunE: func(cmd *cobra.Command, args []string) error {
return cli.RPCTemplate(false)
},
}
protocCmd = &cobra.Command{