-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
korge-kotlin-compiler/src/main/kotlin/korlibs/korge/kotlincompiler/KorgeKotlinCompilerCLI.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" -> { | ||
//} | ||
} | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
korge-kotlin-compiler/src/main/kotlin/korlibs/korge/kotlincompiler/module/ModuleParser.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package korlibs.korge.kotlincompiler.module | ||
|
||
class ModuleParser { | ||
} |