(paths: string[])
| 955 | * Find the first existing path from a list of system paths |
| 956 | */ |
| 957 | export async function findFirstExistingPath(paths: string[]): Promise<string | null> { |
| 958 | for (const p of paths) { |
| 959 | if (await systemPathAccess(p)) { |
| 960 | return p; |
| 961 | } |
| 962 | } |
| 963 | return null; |
| 964 | } |
| 965 | |
| 966 | /** |
| 967 | * Check if GitHub CLI is installed and return its path |
no test coverage detected