Skip to content
1 min read · 212 words

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 ​

ParameterType
cmdstring
argsreadonly string[]
options{ cleanup?: boolean; cwd?: string; env?: Record<string, string | undefined>; }
options.cleanup?boolean
options.cwd?string
options.env?Record<string, string | undefined>

Returns ​

NameTypeDefined in
catch()<TResult>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null) => Promise< | { exitCode: number | null; } | TResult>src/batteries/llm/claude_code_cli/types.ts:185
exitCodenumber | nullsrc/batteries/llm/claude_code_cli/types.ts:183
stdin| { end: void; write: void; } | nullsrc/batteries/llm/claude_code_cli/types.ts:177
stdout| { on: void; } | nullsrc/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) => booleansrc/batteries/llm/claude_code_cli/types.ts:182