feat: support goctl --module to set go module (#5135)

This commit is contained in:
Kevin Wan
2025-08-31 16:40:49 +08:00
committed by GitHub
parent d728a3b2d9
commit 955b8016aa
14 changed files with 944 additions and 6 deletions

View File

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