Skip to content

run

run<Out>(plan, ctx): Promise<RunResult<Out>>

Defined in: execution/run.ts:77

Execute a plan with the given context.

Out

Plan<Out>

The compiled plan to execute

RunContext = {}

Optional execution context (readFile, glob, registry)

Promise<RunResult<Out>>

Promise resolving to success with value or failure with errors

// DirectInput only - no context needed
const result = await run(plan)
// With file access
const result = await run(plan, { readFile: myReadFile })
// With custom registry
const result = await run(plan, { readFile: myReadFile, registry: customRegistry })