Open aryeh-looker opened 1 year ago
In particular, one can do the following:
ki
as a maven dependency in their project (e.g. which uses gradle, maven, ant, bazel leiningen, etc.); https://mvnrepository.com/artifact/org.jetbrains.kotlinx/ki-shell; e.g. the following if using gradle:implementation group: 'org.jetbrains.kotlinx', name: 'ki-shell', version: '0.5.2'
import org.jetbrains.kotlinx.ki.shell. KotlinShell
fun main(args: Array<String>) {
KotlinShell.main(*args)
}
'org.jetbrains.kotlinx.ki-shell
is on the path as well)
Seems to work well with a call to
org.jetbrains.kotlinx.ki.shell.KotlinShell.main(args)