(filePath: string)
| 32 | } |
| 33 | |
| 34 | async function readJsonFile<T>(filePath: string): Promise<T | null> { |
| 35 | try { |
| 36 | const content = await readFile(filePath, "utf-8") |
| 37 | return JSON.parse(content) as T |
| 38 | } catch { |
| 39 | return null |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Detect worktree config for a project |
nothing calls this directly
no test coverage detected