ReplExecutionStrategy

class ReplExecutionStrategy(readLine: () -> String? = ::readlnOrNull) : PipelineExecutionStrategy

A strategy to execute a Pipeline in a continuous REPL (Read-Eval-Print Loop) mode. The pipeline's context is shared across iterations, so definitions persist from one input to the next.

Parameters

readLine

supplier of the next input line, or null when the input is exhausted. Defaults to standard input

Constructors

Link copied to clipboard
constructor(readLine: () -> String? = ::readlnOrNull)

Functions

Link copied to clipboard
open override fun execute(pipeline: Pipeline): OutputResource?

Executes the pipeline.