Package-level declarations

Types

Link copied to clipboard
class CompileCommand(previewStrategyProvider: CompileCommand.() -> PreviewStrategy = { WebServerPreviewStrategy( port = serverPort, browser = browser, preferLivePreviewUrl = preview && watch, ) }) : ExecuteCommand

Command to compile a Quarkdown file into an output.

Link copied to clipboard
abstract class ExecuteCommand(name: String) : CliktCommand

Template for Quarkdown commands that launch a complete pipeline and produce output files.

Link copied to clipboard
data class ExecutionOutcome(val resource: OutputResource?, val directory: File?, val context: Context)

Outcome of a pipeline execution.

Link copied to clipboard
class ExecutionTimeoutException(val timeoutSeconds: Int) : RuntimeException

Thrown when the execution exceeds the allowed timeoutSeconds.

Link copied to clipboard

Command to start Quarkdown in interactive REPL mode. The result of each input is printed to standard output, and no file is written.

Properties

Link copied to clipboard

Name of the default directory to save output files in. It can be overridden by the user.

Functions

Link copied to clipboard
fun createSession(cliOptions: CliOptions, pipelineOptions: PipelineOptions): QuarkdownSession

Creates the session every CLI compilation runs in. A session is created once per command and reused across live preview recompilations.

Link copied to clipboard
fun runQuarkdown(executionStrategy: PipelineExecutionStrategy, cliOptions: CliOptions, pipelineOptions: PipelineOptions): ExecutionOutcome

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

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