MCPcopy
hub / github.com/shareAI-lab/Kode-CLI / run

Function run

cli.js:67–76  ·  view source on GitHub ↗
(cmd, args)

Source from the content-addressed store, hash-verified

65}
66
67function run(cmd, args) {
68 const result = spawnSync(cmd, args, {
69 stdio: 'inherit',
70 env: { ...process.env, KODE_PACKAGED: process.env.KODE_PACKAGED || '1' },
71 })
72 if (result.error) {
73 throw result.error
74 }
75 process.exit(typeof result.status === 'number' ? result.status : 1)
76}
77
78function main() {
79 const packageRoot = findPackageRoot(__dirname)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected