Skip to content

@kekkai/blueprint / runInspect

Function: runInspect() ​

runInspect(root, options?): Promise<InspectResult>

Defined in: src/inspect/inspect.ts:73

Run blueprint inspect in root. Read-only (except --update-baseline): scans the configured architecture.sourceRoot, checks it against the resolved blueprint, and prints an Architecture Report. Returns the actionable findings and ok — in baseline mode, findings holds only the fresh (non-baselined) ones.

Parameters ​

root ​

string

options? ​

InspectOptions = {}

Returns ​

Promise<InspectResult>

Example ​

ts
const { ok, findings } = await runInspect(process.cwd(), { baseline: true });

process.exitCode = ok ? 0 : 1;