(preSpawnError: string)
| 445 | } |
| 446 | |
| 447 | export function createFailedCommand(preSpawnError: string): ShellCommand { |
| 448 | const taskOutput = new TaskOutput(generateTaskId('local_bash'), null) |
| 449 | return { |
| 450 | status: 'completed' as const, |
| 451 | result: Promise.resolve({ |
| 452 | code: 1, |
| 453 | stdout: '', |
| 454 | stderr: preSpawnError, |
| 455 | interrupted: false, |
| 456 | preSpawnError, |
| 457 | }), |
| 458 | taskOutput, |
| 459 | background(): boolean { |
| 460 | return false |
| 461 | }, |
| 462 | kill(): void {}, |
| 463 | cleanup(): void {}, |
| 464 | } |
| 465 | } |
no test coverage detected