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

Function readIntegrationsDocument

packages/cli/src/commands/integrations.ts:57–67  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

55 * This preserves comments and formatting for later manipulation.
56 */
57export async function readIntegrationsDocument(filePath: string): Promise<Document | null> {
58 try {
59 const content = await fs.readFile(filePath, 'utf-8')
60 return parseIntegrationsDocument(content)
61 } catch (error) {
62 if (isErrnoENOENT(error)) {
63 return null
64 }
65 throw error
66 }
67}
68
69/**
70 * Write integrations document to the YAML file.

Callers 3

createIntegrationFunction · 0.90
editIntegrationFunction · 0.90
pullIntegrationsFunction · 0.70

Calls 2

isErrnoENOENTFunction · 0.90

Tested by

no test coverage detected