( _program: Command )
| 40 | * Creates the dag show action - displays the dependency graph. |
| 41 | */ |
| 42 | export function createDagShowAction( |
| 43 | _program: Command |
| 44 | ): (path: string | undefined, options: DagOptions) => Promise<void> { |
| 45 | return async (path, options) => { |
| 46 | try { |
| 47 | debug(`Analyzing DAG for: ${path}`) |
| 48 | const { dag, blocks, blockMap } = await analyzeDag(path, options) |
| 49 | outputDagShow(dag, blocks, blockMap, options) |
| 50 | } catch (error) { |
| 51 | handleError(error, options) |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Creates the dag vars action - lists variables defined/used by each block. |
no test coverage detected