mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user