( _program: Command )
| 74 | * Creates the dag downstream action - shows what needs re-run if a block changes. |
| 75 | */ |
| 76 | export function createDagDownstreamAction( |
| 77 | _program: Command |
| 78 | ): (path: string | undefined, options: DagDownstreamOptions) => Promise<void> { |
| 79 | return async (path, options) => { |
| 80 | try { |
| 81 | debug(`Analyzing downstream for block: ${options.block}`) |
| 82 | const { dag, blocks, blockMap } = await analyzeDag(path, options) |
| 83 | outputDagDownstream(dag, blocks, blockMap, options) |
| 84 | } catch (error) { |
| 85 | handleError(error, options) |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | interface BlockInfo { |
| 91 | id: string |
no test coverage detected