Skip to content

Commit

Permalink
code-gen: add scala3_sources and no_lenses code generator options
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjohannessen committed Oct 18, 2023
1 parent 1c0a94d commit 7563ccb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugin/src/main/scala/fs2/grpc/codegen/Fs2GrpcPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ object Fs2GrpcPlugin extends AutoPlugin {
case object AsciiFormatToString extends CodeGeneratorOption {
override def toString: String = "ascii_format_to_string"
}
case object NoLenses extends CodeGeneratorOption {
override def toString: String = "no_lenses"
}
case object Scala3Sources extends CodeGeneratorOption {
override def toString: String = "scala3_sources"
}
}

val scalapbCodeGeneratorOptions =
Expand Down Expand Up @@ -94,7 +100,9 @@ object Fs2GrpcPlugin extends AutoPlugin {
javaConversions = options(CodeGeneratorOption.JavaConversions),
grpc = options(CodeGeneratorOption.Grpc),
singleLineToProtoString = options(CodeGeneratorOption.SingleLineToProtoString),
asciiFormatToString = options(CodeGeneratorOption.AsciiFormatToString)
asciiFormatToString = options(CodeGeneratorOption.AsciiFormatToString),
lenses = !options(CodeGeneratorOption.NoLenses),
scala3Sources = options(CodeGeneratorOption.Scala3Sources)
)
}

Expand Down

0 comments on commit 7563ccb

Please sign in to comment.