( cg: CodeGraph, projectRoot: string, options: TrailsOptions )
| 282 | } |
| 283 | |
| 284 | export function buildTrails( |
| 285 | cg: CodeGraph, |
| 286 | projectRoot: string, |
| 287 | options: TrailsOptions |
| 288 | ): WireTrails { |
| 289 | const { trails, skipped } = listStoredTrails(projectRoot); |
| 290 | return { |
| 291 | trails: trails.map((stored) => resolveTrail(cg, stored)), |
| 292 | readOnly: options.readOnly, |
| 293 | readOnlyReason: options.readOnlyReason, |
| 294 | directory: TRAILS_RELATIVE_DIR, |
| 295 | skipped, |
| 296 | bounded: trails.length >= MAX_TRAILS, |
| 297 | }; |
| 298 | } |
| 299 | |
| 300 | /* ----------------------------------------------------------------- write -- */ |
| 301 |
no test coverage detected