declslides.application.ScalaCliScriptRunner
See theScalaCliScriptRunner companion object
final class ScalaCliScriptRunner(declslidesDependency: String, scalaCliBinary: String = ..., scalaVersion: Option[String] = ..., inputValidator: InputScriptValidator = ..., inputReader: InputSourceReader = ..., bootstrapSourceFactory: BootstrapSourceFactory = ...) extends ScriptRunner
ScriptRunner implementation that evaluates presentation scripts with Scala CLI.
This runner validates the input, reads the user source, generates a small bootstrap program, executes it through Scala CLI, and cleans up the temporary workspace afterward.
Value parameters
- bootstrapSourceFactory
-
factory used to generate the bootstrap script
- declslidesDependency
-
dependency coordinate used inside the generated bootstrap script
- inputReader
-
reader for the input script source
- inputValidator
-
validator for the input script path
- scalaCliBinary
-
binary used to invoke Scala CLI
- scalaVersion
-
optional Scala version pin for the bootstrap script
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article