From 73664b92f0f42b47dc8a3035dad572a96369c82c Mon Sep 17 00:00:00 2001 From: anqiansong Date: Mon, 10 Apr 2023 17:48:48 +0800 Subject: [PATCH] fix(goctl): missing rpc --style flag (#3112) --- tools/goctl/internal/version/version.go | 2 +- tools/goctl/rpc/cmd.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/goctl/internal/version/version.go b/tools/goctl/internal/version/version.go index e73efbec..77f93077 100644 --- a/tools/goctl/internal/version/version.go +++ b/tools/goctl/internal/version/version.go @@ -6,7 +6,7 @@ import ( ) // BuildVersion is the version of goctl. -const BuildVersion = "1.5.1" +const BuildVersion = "1.5.2" var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5} diff --git a/tools/goctl/rpc/cmd.go b/tools/goctl/rpc/cmd.go index b0482ddd..d22e740e 100644 --- a/tools/goctl/rpc/cmd.go +++ b/tools/goctl/rpc/cmd.go @@ -51,6 +51,7 @@ func init() { protocCmdFlags.StringSliceVar(&cli.VarStringSliceGoGRPCOpt, "go-grpc_opt") protocCmdFlags.StringSliceVar(&cli.VarStringSlicePlugin, "plugin") protocCmdFlags.StringSliceVarP(&cli.VarStringSliceProtoPath, "proto_path", "I") + protocCmdFlags.StringVar(&cli.VarStringStyle, "style") protocCmdFlags.StringVar(&cli.VarStringZRPCOut, "zrpc_out") protocCmdFlags.StringVar(&cli.VarStringHome, "home") protocCmdFlags.StringVar(&cli.VarStringRemote, "remote")