runScript

fun runScript(kts: String, context: Map<String, Any?>, name: String? = null, includes: List<Path> = emptyList()): Any?
fun OutputPath.runScript(kts: String, context: Map<String, Any?>, name: String? = null): Any?

Run the given Kotlin script kts with context.

Parameters

kts

The script to run

context

The context (global variables) to give to that script.

name

The name of the script to show in diagnostic messages.