Add Dev Command
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-10-26 00:05:18 +02:00
parent 8dd2756a31
commit 1344efe18d

View File

@ -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")