(command: string)
| 386 | } |
| 387 | |
| 388 | function resolveSystem32Command(command: string) { |
| 389 | const root = process.env.SystemRoot ?? process.env.windir |
| 390 | if (!root) return command |
| 391 | const resolved = join(root, "System32", command) |
| 392 | return existsSync(resolved) ? resolved : command |
| 393 | } |
| 394 | |
| 395 | function withTimeout(opts: RunWslOptions | undefined, timeoutMs: number): RunWslOptions { |
| 396 | return { |
no test coverage detected