MCPcopy Create free account
hub / github.com/massCodeIO/massCode / applyImport

Function applyImport

src/main/import/index.ts:24–35  ·  view source on GitHub ↗
(
  source: ImportSource | undefined,
  payload: ImportPayload = {},
)

Source from the content-addressed store, hash-verified

22}
23
24export async function applyImport(
25 source: ImportSource | undefined,
26 payload: ImportPayload = {},
27): Promise<ImportApplySummary> {
28 const resolvedSource = detectImportSource(source, payload)
29
30 if (resolvedSource === 'obsidian') {
31 return applyObsidianImport(payload)
32 }
33
34 return applySnippetImport(resolvedSource, payload)
35}

Callers 1

imports.tsFile · 0.90

Calls 3

detectImportSourceFunction · 0.90
applyObsidianImportFunction · 0.90
applySnippetImportFunction · 0.90

Tested by

no test coverage detected