MCPcopy Create free account
hub / github.com/blockmatic/basilic / run

Function run

scripts/run-e2e.mjs:26–31  ·  view source on GitHub ↗
(cmd, args, opts = {})

Source from the content-addressed store, hash-verified

24}
25
26function run(cmd, args, opts = {}) {
27 return new Promise((resolve, reject) => {
28 const proc = spawn(cmd, args, { cwd: repoRoot, stdio: 'inherit', ...opts })
29 proc.on('exit', code => (code === 0 ? resolve() : reject(new Error(`Exit ${code}`))))
30 })
31}
32
33async function main() {
34 killPorts()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected