From b7a52dc6855c57c30fa7840d2bffc8393563b707 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Fri, 7 Oct 2016 16:59:14 +0200 Subject: [PATCH] Add more standard templates --- .../kotlin/script/templates/standard/templates.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/core/script.runtime/src/kotlin/script/templates/standard/templates.kt b/core/script.runtime/src/kotlin/script/templates/standard/templates.kt index b2435c0ebde..b362e85d051 100644 --- a/core/script.runtime/src/kotlin/script/templates/standard/templates.kt +++ b/core/script.runtime/src/kotlin/script/templates/standard/templates.kt @@ -17,6 +17,17 @@ package kotlin.script.templates.standard /** - * Default script definition template + * Basic script definition template without parameters + */ +public abstract class SimpleScriptTemplate() + +/** + * Script definition template with standard argv-like parameter; default for regular kotlin scripts */ public abstract class ScriptTemplateWithArgs(val args: Array) + +/** + * Script definition template with generic bindings parameter (String to Object) + */ +public abstract class ScriptTemplateWithBindings(val bindings: Map) +