ScalaCliScriptRunner

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
trait ScriptRunner
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def render(input: Path, target: RenderFormat, output: Path): Either[ApplicationError, Unit]

Renders the input script into the requested output target.

Renders the input script into the requested output target.

Value parameters

input

source script to execute

output

destination file

target

resolved rendering target

Attributes

Definition Classes