MCPcopy
hub / github.com/easychen/CookieCloud / run

Function run

ext/scripts/release.mjs:16–22  ·  view source on GitHub ↗
(cmd, argv, opts = {})

Source from the content-addressed store, hash-verified

14const defaultMode = args.has('--mode=release') ? 'release' : 'build';
15
16function run(cmd, argv, opts = {}) {
17 const result = spawnSync(cmd, argv, { stdio: 'inherit', ...opts });
18 if (result.status !== 0) {
19 process.exit(result.status ?? 1);
20 }
21 return result;
22}
23
24function capture(cmd, argv, opts = {}) {
25 const result = spawnSync(cmd, argv, { encoding: 'utf8', ...opts });

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected