Method
exec
(input: {
command: string;
cwd?: string;
id?: string;
timeoutMs?: number;
env?: Record<string, string>;
stdin?: Uint8Array;
})
Source from the content-addressed store, hash-verified
| 237 | } |
| 238 | |
| 239 | async exec(input: { |
| 240 | command: string; |
| 241 | cwd?: string; |
| 242 | id?: string; |
| 243 | timeoutMs?: number; |
| 244 | env?: Record<string, string>; |
| 245 | stdin?: Uint8Array; |
| 246 | }): Promise<{ |
| 247 | id: string; |
| 248 | events: ReadableStream<ExecEvent>; |
| 249 | }> { |
| 250 | return this.runner.exec(input.command, { |
| 251 | id: input.id, |
| 252 | cwd: input.cwd, |
| 253 | timeoutMs: input.timeoutMs, |
| 254 | env: input.env, |
| 255 | stdin: input.stdin, |
| 256 | }); |
| 257 | } |
| 258 | |
| 259 | async getExec(input: { id: string; after?: number | "tail" }): Promise<{ |
| 260 | id: string; |
Callers
nothing calls this directly
Tested by
no test coverage detected