MCPcopy Index your code
hub / github.com/deepnote/deepnote / createDagDownstreamAction

Function createDagDownstreamAction

packages/cli/src/commands/dag.ts:76–88  ·  view source on GitHub ↗
(
  _program: Command
)

Source from the content-addressed store, hash-verified

74 * Creates the dag downstream action - shows what needs re-run if a block changes.
75 */
76export 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
90interface BlockInfo {
91 id: string

Callers 2

registerCommandsFunction · 0.90
dag.test.tsFile · 0.90

Calls 4

debugFunction · 0.90
analyzeDagFunction · 0.85
outputDagDownstreamFunction · 0.85
handleErrorFunction · 0.70

Tested by

no test coverage detected