Skip to content

Commit a3258a3

Browse files
committed
Add Kotlin DSL option to CLI
1 parent 52a3838 commit a3258a3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cli/commands/init.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ const ICON_ADVANCED_OPTION = "Generate Unique Mod Icon";
3232
const KOTLIN_ADVANCED_OPTION = "Kotlin Programming Language";
3333
const DATAGEN_ADVANCED_OPTION = "Data Generation";
3434
const SPLIT_ADVANCED_OPTION = "Split client and common sources";
35+
const KOTLIN_DSL_ADVANCED_OPTION = "Gradle Kotlin DSL";
3536

3637
const ADVANCED_OPTIONS: Map<string, string> = new Map([
3738
["kotlin", KOTLIN_ADVANCED_OPTION],
3839
["datagen", DATAGEN_ADVANCED_OPTION],
3940
["splitSources", SPLIT_ADVANCED_OPTION],
4041
["mojangMappings", MOJMAP_ADVANCED_OPTION],
42+
["gradleKotlin", KOTLIN_DSL_ADVANCED_OPTION],
4143
]);
4244

4345
interface CliOptions {
@@ -286,6 +288,7 @@ async function promptUser(
286288
splitSources: advancedOptions.includes(SPLIT_ADVANCED_OPTION),
287289
uniqueModIcon: advancedOptions.includes(ICON_ADVANCED_OPTION) &&
288290
ENABLE_ICON_GENERATION,
291+
gradleKotlin: advancedOptions.includes(KOTLIN_DSL_ADVANCED_OPTION),
289292
};
290293
}
291294

0 commit comments

Comments
 (0)