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