(cwd: string, links: LinkedRepo[])
| 87 | } |
| 88 | |
| 89 | function 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 |
no test coverage detected