(command: string)
| 1041 | } |
| 1042 | |
| 1043 | async function commandExists(command: string): Promise<boolean> { |
| 1044 | return await new Promise<boolean>((resolve) => { |
| 1045 | const child = spawn(command, ['--version'], { |
| 1046 | stdio: 'ignore', |
| 1047 | windowsHide: true, |
| 1048 | }); |
| 1049 | child.once('error', () => resolve(false)); |
| 1050 | child.once('exit', (code) => resolve(code === 0)); |
| 1051 | }); |
| 1052 | } |
| 1053 | |
| 1054 | async function printFileTail( |
| 1055 | filePath: string, |
no test coverage detected