grpc-swift
grpc-swift copied to clipboard
FileNaming (and other options) are not exposed to the SPM plugin
Is your feature request related to a problem? Please describe it.
When using the SPM Plugin you can not specify FileNaming which will lead often to name collisions which swift really does not like.
Describe the solution you'd like
Some way to either add arbitrary arguments to the protoc call form the json file. Or explicit support for all possible options the generator supports.
Describe alternatives you've considered
I can of course stop using the SPM plugin and generate all the code myself, but I'd much rather keep using the SPM plugin.
Additional context
I don't think there's any reason not to add this; we added it to the SwiftProtobuf plugin (https://github.com/apple/swift-protobuf/blob/main/Plugins/SwiftProtobufPlugin/plugin.swift). Adding it to gRPC Swift should be very similar.
It would be really lovely to have the "fileNaming": "PathToUnderscores", and its pals introduced.