Skip to content

Commit

Permalink
fix: add kitexArgument.ProtobufPlugins
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jin-gou committed May 18, 2023
1 parent 207497c commit d8c9063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/client/kitex.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func convertKitexArgs(sa *config.ClientArgument, kitexArgument *kargs.Arguments)
f.BoolVar(&kitexArgument.Record, "record", false, "Record Kitex cmd into kitex-all.sh.")
f.StringVar(&kitexArgument.GenPath, "gen-path", generator.KitexGenPath,
"Specify a code gen path.")
f.Var(&kitexArgument.ProtobufPlugins, "protobuf-plugin", "Specify protobuf plugin arguments for the protobuf compiler.(plugin_name:options:out_dir)")

f.Usage = func() {
fmt.Fprintf(os.Stderr, `Version %s
Expand Down
1 change: 1 addition & 0 deletions pkg/server/kitex.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func convertKitexArgs(sa *config.ServerArgument, kitexArgument *kargs.Arguments)
f.Var(&kitexArgument.ThriftOptions, "thrift", "Specify arguments for the thrift go compiler.")
f.DurationVar(&kitexArgument.ThriftPluginTimeLimit, "thrift-plugin-time-limit", generator.DefaultThriftPluginTimeLimit, "Specify thrift plugin execution time limit.")
f.Var(&kitexArgument.ThriftPlugins, "thrift-plugin", "Specify thrift plugin arguments for the thrift compiler.")
f.Var(&kitexArgument.ProtobufPlugins, "protobuf-plugin", "Specify protobuf plugin arguments for the protobuf compiler.(plugin_name:options:out_dir)")
f.Var(&kitexArgument.ProtobufOptions, "protobuf", "Specify arguments for the protobuf compiler.")
f.BoolVar(&kitexArgument.CombineService, "combine-service", false,
"Combine services in root thrift file.")
Expand Down

0 comments on commit d8c9063

Please sign in to comment.