MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / createFailedCommand

Function createFailedCommand

src/utils/ShellCommand.ts:447–465  ·  view source on GitHub ↗
(preSpawnError: string)

Source from the content-addressed store, hash-verified

445}
446
447export 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}

Callers 1

execFunction · 0.85

Calls 2

generateTaskIdFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected