(projects: Project[])
| 36 | * Writes projects array to projects.json |
| 37 | */ |
| 38 | export 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 |
no test coverage detected