(rootDir: string, points: RestorePoint[])
| 40 | } |
| 41 | |
| 42 | async function saveManifest(rootDir: string, points: RestorePoint[]): Promise<void> { |
| 43 | const dataPath = await ensureDataDir(rootDir); |
| 44 | await writeFile(join(dataPath, "restore-points.json"), JSON.stringify(points, null, 2)); |
| 45 | } |
| 46 | |
| 47 | export async function createRestorePoint(rootDir: string, files: string[], message: string): Promise<RestorePoint> { |
| 48 | const normalizedRoot = resolve(rootDir); |
no test coverage detected