add whether to generate rpc client option (#3361)

Co-authored-by: admin <admin@admindeMacBook-Pro.local>
This commit is contained in:
Mikael
2023-06-17 20:52:49 +08:00
committed by GitHub
parent b176d5d434
commit f5f5261556
7 changed files with 25 additions and 16 deletions

View File

@@ -102,6 +102,7 @@ func ZRPC(_ *cobra.Command, args []string) error {
ctx.IsGooglePlugin = isGooglePlugin
ctx.Output = zrpcOut
ctx.ProtocCmd = strings.Join(protocArgs, " ")
ctx.IsGenClient = VarBoolClient
g := generator.NewGenerator(style, verbose)
return g.Generate(&ctx)
}