MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / run

Function run

vmm/ui/build.mjs:127–138  ·  view source on GitHub ↗
(command, args)

Source from the content-addressed store, hash-verified

125}
126
127async function run(command, args) {
128 await new Promise((resolve, reject) => {
129 const proc = spawn(command, args, { stdio: 'inherit' });
130 proc.on('close', (code) => {
131 if (code === 0) {
132 resolve();
133 } else {
134 reject(new Error(`${command} exited with code ${code}`));
135 }
136 });
137 });
138}
139
140async function copyDir(src, dest) {
141 const entries = await fs.readdir(src, { withFileTypes: true });

Callers 3

compileProtoFunction · 0.70
compileTypeScriptFunction · 0.70
mainFunction · 0.50

Calls 1

onMethod · 0.65

Tested by

no test coverage detected