MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / runCommands

Function runCommands

src/eval.ts:281–295  ·  view source on GitHub ↗
(
    commands: string[],
    opts: { logger: Logger.Instance; cwd: string },
  )

Source from the content-addressed store, hash-verified

279 }
280
281 async function runCommands(
282 commands: string[],
283 opts: { logger: Logger.Instance; cwd: string },
284 ) {
285 const results = [];
286
287 for (const command of commands) {
288 opts.logger.log(command);
289 const result = await runCommand(command, opts.cwd);
290 opts.logger.log(...formatExecutionForLog(result).split("\n"));
291 results.push(result);
292 }
293
294 return results;
295 }
296
297 async function runCommand(command: string, cwd: string) {
298 const COMMAND_TIMEOUT_MS = 5 * 60 * 1000;

Callers 1

runOnceFunction · 0.85

Calls 2

runCommandFunction · 0.85
formatExecutionForLogFunction · 0.85

Tested by

no test coverage detected