MCPcopy Create free account
hub / github.com/SZZH/codex-cc-web-terminal / runCommand

Function runCommand

scripts/setup.mjs:95–102  ·  view source on GitHub ↗
(command, args)

Source from the content-addressed store, hash-verified

93}
94
95function runCommand(command, args) {
96 output.write(`> ${command} ${args.join(' ')}\n`);
97 const ret = spawnSync(command, args, { stdio: 'inherit' });
98 if (ret.error) {
99 output.write(`命令执行异常: ${ret.error.message}\n`);
100 }
101 return ret;
102}
103
104function isSuccess(ret) {
105 return ret.status === 0 && !ret.error;

Callers 3

runInstallWithRetryFunction · 0.85
mainFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected