Skip to content

Commit

Permalink
WIP KorgeKotlinCompilerCLI
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Jun 25, 2024
1 parent 6a51874 commit a503654
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package korlibs.korge.kotlincompiler

import java.io.File

object KorgeKotlinCompilerCLI {
@JvmStatic
fun main(args: Array<String>) {
for (line in System.`in`.bufferedReader().lineSequence()) {
val command = line.substringBefore(' ')
val params = line.substringAfter(' ', "")
when (command) {
"listen" -> {
val socketFile = File("$params.socket")
val pidFile = File("$params.pid")
val currentPid = ProcessHandle.current().pid()
pidFile.writeText("$currentPid")
//println("Listening on $currentPid")
TODO()
}
"exit" -> {
System.exit(0)
}
"compile" -> {
}
"run" -> {
}
"stop" -> {
}
"package:jvm" -> {
}
//"package:js" -> {
//}
//"package:wasm" -> {
//}
//"package:ios" -> {
//}
//"package:android" -> {
//}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package korlibs.korge.kotlincompiler.module

class ModuleParser {
}

0 comments on commit a503654

Please sign in to comment.