runQuarkdown

Executes a complete Quarkdown pipeline in session, over a fresh context that is closed once done.

This is the entry point used by both the CLI and any in-process embedder. On any PipelineException the exception propagates to the caller, for embedders to catch and handle. If CliOptions.timeoutSeconds is set and expires, an ExecutionTimeoutException is raised instead.

Return

the outcome of the executed pipeline, carrying the produced resource, directory (if any) and context

Parameters

executionStrategy

launch strategy of the pipeline, e.g. from file or REPL

session

session to run the pipeline in

cliOptions

options that define the behavior of the CLI, especially I/O and the execution timeout

Throws

if the pipeline fails and its error handler rethrows the error

if CliOptions.timeoutSeconds is set and the execution exceeds it


fun runQuarkdown(executionStrategy: PipelineExecutionStrategy, cliOptions: CliOptions, pipelineOptions: PipelineOptions): ExecutionOutcome

Executes a complete Quarkdown pipeline in a new session created from the given options.

Return

the outcome of the executed pipeline

Parameters

executionStrategy

launch strategy of the pipeline, e.g. from file or REPL

cliOptions

options that define the behavior of the CLI

pipelineOptions

options that define the behavior of the pipeline

See also