(commands: string[])
| 56 | * Returns the command name (not full path) of the first available one. |
| 57 | */ |
| 58 | export async function findAvailableCommand(commands: string[]): Promise<string | null> { |
| 59 | for (const cmd of commands) { |
| 60 | if (await isCommandAvailable(cmd)) { |
| 61 | return cmd; |
| 62 | } |
| 63 | } |
| 64 | return null; |
| 65 | } |
no test coverage detected