( _program: Command )
| 57 | * Creates the dag vars action - lists variables defined/used by each block. |
| 58 | */ |
| 59 | export function createDagVarsAction( |
| 60 | _program: Command |
| 61 | ): (path: string | undefined, options: DagOptions) => Promise<void> { |
| 62 | return async (path, options) => { |
| 63 | try { |
| 64 | debug(`Analyzing variables for: ${path}`) |
| 65 | const { dag, blocks, blockMap } = await analyzeDag(path, options) |
| 66 | outputDagVars(dag, blocks, blockMap, options) |
| 67 | } catch (error) { |
| 68 | handleError(error, options) |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Creates the dag downstream action - shows what needs re-run if a block changes. |
no test coverage detected