Scaffold/app/src/scripting/ScriptContext.kt

15 lines
412 B
Kotlin

package scaffold.scripting
interface ScriptContext {
fun echo(message: String)
fun prompt(text: String, default: String?): String
fun promptBoolean(text: String, default: Boolean?): Boolean
fun promptInt(text: String, default: Int?): Int
fun render(name: String, ctx: Map<String, Any?>): String
fun write(content: String, output: String)
fun copy(input: String, output: String)
}