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

Function createAnalyzeAction

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

Source from the content-addressed store, hash-verified

52 * Creates the analyze action - comprehensive project analysis.
53 */
54export function createAnalyzeAction(
55 _program: Command
56): (path: string | undefined, options: AnalyzeOptions) => Promise<void> {
57 return async (path, options) => {
58 try {
59 debug(`Analyzing: ${path}`)
60 const result = await analyzeFile(path, options)
61 outputAnalysis(result, options)
62 } catch (error) {
63 handleError(error, options)
64 }
65 }
66}
67
68async function analyzeFile(path: string | undefined, options: AnalyzeOptions): Promise<AnalyzeResult> {
69 const { absolutePath } = await resolvePathToDeepnoteFile(path)

Callers 2

registerCommandsFunction · 0.90
analyze.test.tsFile · 0.90

Calls 4

debugFunction · 0.90
analyzeFileFunction · 0.85
outputAnalysisFunction · 0.85
handleErrorFunction · 0.70

Tested by

no test coverage detected