MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / saveLinks

Function saveLinks

src/config/links.ts:89–93  ·  view source on GitHub ↗
(cwd: string, links: LinkedRepo[])

Source from the content-addressed store, hash-verified

87}
88
89function saveLinks(cwd: string, links: LinkedRepo[]): void {
90 const file = linksFilePath(cwd)
91 fs.mkdirSync(path.dirname(file), { recursive: true })
92 fs.writeFileSync(file, JSON.stringify({ links }, null, "\t") + "\n")
93}
94
95/**
96 * Turn the folder path the user entered — absolute, `~/path`, or relative to

Callers 2

addLinkFunction · 0.85
removeLinkFunction · 0.85

Calls 1

linksFilePathFunction · 0.85

Tested by

no test coverage detected