Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Translator: allow go, but not by default" - Go translator is no worse than others #119

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ object Main extends App {
"rust"
)

val ALL_GOOD_LANGS = ALL_LANGS.filterNot(_ == "go")

val INIT_OBJ_TYPE = "unique_top_level_container"
val INIT_OBJ_NAME = "q1w2e3"

Expand Down Expand Up @@ -61,7 +59,7 @@ object Main extends App {

opt[String]('t', "target").unbounded().valueName("<language>").action { (x, c) =>
if (x == "all") {
c.copy(targets = ALL_GOOD_LANGS)
c.copy(targets = ALL_LANGS)
} else {
c.copy(targets = c.targets :+ x)
}
Expand Down Expand Up @@ -95,7 +93,7 @@ object Main extends App {
case None => System.exit(1)
case Some(config0) =>
val config = if (config0.targets.isEmpty) {
config0.copy(targets = ALL_GOOD_LANGS)
config0.copy(targets = ALL_LANGS)
} else {
config0
}
Expand Down