Add Dev Command
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-10-26 00:00:33 +02:00
parent ab58109659
commit cb33bdcc6d

View File

@ -48,13 +48,15 @@ class DevCommand : CliktCommand("dev") {
override val treatUnknownOptionsAsArgs = true
init {
println(System.getProperty("os.name"))
println(if (System.getProperty("os.name").lowercase()
.let { osName -> listOf("mac", "nix", "sunos", "solaris", "bsd").any { it in osName } }
) UnixSystem().uid else 2050)
}
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 { it in os } }
.let { osName -> listOf("mac", "nix", "sunos", "solaris", "bsd").any { it in osName } }
) UnixSystem().uid else 2050
).help("Port for Server")
val world by option("--world", "-w").help("User World")