MCPcopy
hub / github.com/simstudioai/sim / runCommand

Function runCommand

packages/cli/src/index.ts:37–47  ·  view source on GitHub ↗
(command: string[])

Source from the content-addressed store, hash-verified

35}
36
37async function runCommand(command: string[]): Promise<boolean> {
38 return new Promise((resolve) => {
39 const process = spawn(command[0], command.slice(1), { stdio: 'inherit' })
40 process.on('error', () => {
41 resolve(false)
42 })
43 process.on('close', (code) => {
44 resolve(code === 0)
45 })
46 })
47}
48
49async function ensureNetworkExists(): Promise<boolean> {
50 try {

Callers 3

ensureNetworkExistsFunction · 0.70
pullImageFunction · 0.70
mainFunction · 0.70

Calls 3

spawnFunction · 0.85
onMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected