From 1344efe18d7e54c7f00ffd237861da05a40faa7b Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 26 Oct 2025 00:05:18 +0200 Subject: [PATCH] Add Dev Command --- src/main/kotlin/commands/dev/DevCommand.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/commands/dev/DevCommand.kt b/src/main/kotlin/commands/dev/DevCommand.kt index 7c27ad8..0bcbc64 100644 --- a/src/main/kotlin/commands/dev/DevCommand.kt +++ b/src/main/kotlin/commands/dev/DevCommand.kt @@ -48,8 +48,15 @@ class DevCommand : CliktCommand("dev") { override val treatUnknownOptionsAsArgs = true init { - println(System.getProperty("os.name").lowercase() - .let { osName -> listOf("mac", "nix", "sunos", "solaris", "bsd").any { it in osName } }) + val osName = System.getProperty("os.name").lowercase() + + val result = when { + "windows" in osName -> "Windows" + listOf("mac", "nix", "sunos", "solaris", "bsd").any { it in osName } -> "*nix" + else -> "Other" + } + + println(result) } val server by argument().help("Server Template")