MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / writeVersion

Function writeVersion

projects/electron/src/modules/code/binaries.ts:114–119  ·  view source on GitHub ↗
(name: string, version: string)

Source from the content-addressed store, hash-verified

112}
113
114function writeVersion(name: string, version: string): void {
115 const versions = readVersions()
116 versions[name] = version
117 fs.mkdirSync(getBinDir(), { recursive: true })
118 fs.writeFileSync(getVersionsPath(), JSON.stringify(versions, null, 2))
119}
120
121function removeVersion(name: string): void {
122 const versions = readVersions()

Callers 1

ensureRuntimeBinaryFunction · 0.85

Calls 3

readVersionsFunction · 0.85
getBinDirFunction · 0.85
getVersionsPathFunction · 0.85

Tested by

no test coverage detected