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

Function writeIntegrationsFile

packages/cli/src/commands/integrations.ts:73–81  ·  view source on GitHub ↗
(filePath: string, doc: Document)

Source from the content-addressed store, hash-verified

71 * Uses doc.toString() to preserve comments and formatting.
72 */
73export async function writeIntegrationsFile(filePath: string, doc: Document): Promise<void> {
74 const yamlContent = serializeIntegrationsDocument(doc)
75
76 // Ensure parent directory exists
77 const dir = path.dirname(filePath)
78 await fs.mkdir(dir, { recursive: true })
79
80 await fs.writeFile(filePath, yamlContent, 'utf-8')
81}
82
83/**
84 * Execute the integrations pull command.

Callers 3

createIntegrationFunction · 0.90
editIntegrationFunction · 0.90
pullIntegrationsFunction · 0.70

Calls 1

Tested by

no test coverage detected