run
run<
Out>(plan,ctx):Promise<RunResult<Out>>
Defined in: execution/run.ts:77
Execute a plan with the given context.
Type Parameters
Section titled “Type Parameters”Out
Parameters
Section titled “Parameters”Plan<Out>
The compiled plan to execute
RunContext = {}
Optional execution context (readFile, glob, registry)
Returns
Section titled “Returns”Promise<RunResult<Out>>
Promise resolving to success with value or failure with errors
Example
Section titled “Example”// DirectInput only - no context neededconst result = await run(plan)
// With file accessconst result = await run(plan, { readFile: myReadFile })
// With custom registryconst result = await run(plan, { readFile: myReadFile, registry: customRegistry })