Skip to content

Commit

Permalink
Add support for JS/TS ident for class name, enum and field name
Browse files Browse the repository at this point in the history
  • Loading branch information
mutagene committed Nov 25, 2023
1 parent 810c2b1 commit 2046247
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/scala/djinni/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,23 @@ object Main {
"FooBar",
c => { cppCliIdentStyle = cppCliIdentStyle.copy(file = c) }
)

note("\nTypescript/Javascript options:")
identStyle(
"ident-js-enum",
"FOO_BAR",
c => { jsIdentStyle = jsIdentStyle.copy(enum = c) }
)
identStyle(
"ident-js-field",
"fooBar",
c => { jsIdentStyle = jsIdentStyle.copy(field = c) }
)
identStyle(
"ident-js-type",
"FooBar",
c => { jsIdentStyle = jsIdentStyle.copy(ty = c) }
)
}

if (argParser.parse(args, ()).isEmpty) {
Expand Down

0 comments on commit 2046247

Please sign in to comment.