Interface: ExecaLike()
Defined in: src/batteries/llm/claude_code_cli/types.ts:167
The slice of execa this adapter uses to spawn the wrapper.
ts
ExecaLike(
cmd: string,
args: readonly string[],
options: {
cleanup?: boolean;
cwd?: string;
env?: Record<string, string | undefined>;
}): {
catch: <TResult>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null) => Promise<
| {
exitCode: number | null;
}
| TResult>;
exitCode: number | null;
stdin: | {
end: void;
write: void;
}
| null;
stdout: | {
on: void;
}
| null;
then: <TResult1, TResult2>(onfulfilled?:
| ((value: {
exitCode: number | null;
}) => TResult1 | PromiseLike<TResult1>)
| null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null) => Promise<TResult1 | TResult2>;
kill: boolean;
};Defined in: src/batteries/llm/claude_code_cli/types.ts:168
The slice of execa this adapter uses to spawn the wrapper.
Parameters
| Parameter | Type |
|---|---|
cmd | string |
args | readonly string[] |
options | { cleanup?: boolean; cwd?: string; env?: Record<string, string | undefined>; } |
options.cleanup? | boolean |
options.cwd? | string |
options.env? | Record<string, string | undefined> |
Returns
| Name | Type | Defined in |
|---|---|---|
catch() | <TResult>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null) => Promise< | { exitCode: number | null; } | TResult> | src/batteries/llm/claude_code_cli/types.ts:185 |
exitCode | number | null | src/batteries/llm/claude_code_cli/types.ts:183 |
stdin | | { end: void; write: void; } | null | src/batteries/llm/claude_code_cli/types.ts:177 |
stdout | | { on: void; } | null | src/batteries/llm/claude_code_cli/types.ts:178 |
then() | <TResult1, TResult2>(onfulfilled?: | ((value: { exitCode: number | null; }) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null) => Promise<TResult1 | TResult2> | src/batteries/llm/claude_code_cli/types.ts:184 |
kill() | (signal?: string) => boolean | src/batteries/llm/claude_code_cli/types.ts:182 |