Kotlin / kotlin-interactive-shell

Kotlin Language Interactive Shell
Apache License 2.0
587 stars 36 forks source link

FR: Documentation for Invoking Programmatically #122

Open aryeh-looker opened 1 year ago

aryeh-looker commented 1 year ago

Seems to work well with a call to org.jetbrains.kotlinx.ki.shell.KotlinShell.main(args)

aryeh-looker commented 1 year ago

In particular, one can do the following:

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)
}