MCPcopy Create free account
hub / github.com/davialabs/davia / writeProjects

Function writeProjects

apps/cli/src/projects.ts:38–41  ·  view source on GitHub ↗
(projects: Project[])

Source from the content-addressed store, hash-verified

36 * Writes projects array to projects.json
37 */
38export async function writeProjects(projects: Project[]): Promise<void> {
39 const projectsPath = await getProjectsPath();
40 await fs.writeJson(projectsPath, projects, { spaces: 2 });
41}
42
43/**
44 * Finds project by matching path

Callers 3

setRunningFunction · 0.70
setWorkspaceIdFunction · 0.70
initializeDaviaFunction · 0.70

Calls 1

getProjectsPathFunction · 0.70

Tested by

no test coverage detected