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

Function createDagShowAction

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

Source from the content-addressed store, hash-verified

40 * Creates the dag show action - displays the dependency graph.
41 */
42export 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.

Callers 2

registerCommandsFunction · 0.90
dag.test.tsFile · 0.90

Calls 4

debugFunction · 0.90
analyzeDagFunction · 0.85
outputDagShowFunction · 0.85
handleErrorFunction · 0.70

Tested by

no test coverage detected