From 6b0b1120d7e3c5fd0e40cd2cdf1b7b428f142fe7 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 25 Oct 2025 23:58:02 +0200 Subject: [PATCH] Add Dev Command --- src/main/kotlin/commands/dev/DevCommand.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/commands/dev/DevCommand.kt b/src/main/kotlin/commands/dev/DevCommand.kt index 2b33e7b..2e4874d 100644 --- a/src/main/kotlin/commands/dev/DevCommand.kt +++ b/src/main/kotlin/commands/dev/DevCommand.kt @@ -47,10 +47,14 @@ class DevCommand : CliktCommand("dev") { override val treatUnknownOptionsAsArgs = true + init { + echo(System.getProperty("os.name")) + } + val server by argument().help("Server Template") val port by option("--port").long().default( if (System.getProperty("os.name").lowercase() - .let { os -> listOf("mac", "nix", "sunos").any { os in it } } + .let { os -> listOf("mac", "nix", "sunos").any { it in os } } ) UnixSystem().uid else 2050 ).help("Port for Server") val world by option("--world", "-w").help("User World")