Skip to content

formatPipelineLineage

formatPipelineLineage(pipelineLineage, asts, options?): FormattedPipeline

Defined in: pipeline/format.ts:71

Format pipeline lineage into a structured, readable representation.

PipelineLineage

The pipeline lineage to format

Record<string, PlanAst>

Map of step names to their plan ASTs

FormatLineageOptions

Optional formatting options

FormattedPipeline

Formatted pipeline output

const result = await pipeline.run()
if (result.ok) {
const formatted = formatPipelineLineage(
result.pipelineLineage,
{ extract: extractPlan.ast, transform: transformPlan.ast }
)
console.log(formatted.summary)
for (const step of formatted.steps) {
console.log(`${step.name}: ${step.ok ? 'ok' : 'failed'}`)
}
}