MCPcopy Create free account
hub / github.com/Bytez-com/docs / runCommand

Function runCommand

sdk/javascript/deploy.js:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7const packageJsonPath = "./package.json";
8
9const runCommand = command =>
10 new Promise((resolve, reject) => {
11 const [process, ...args] = command.split(" ");
12
13 spawn(process, args, { stdio: "inherit" }).once("close", exitCode =>
14 exitCode === 0 ? resolve() : reject(exitCode)
15 );
16 });
17
18const [answers, packageJson] = await Promise.all([
19 inquirer.prompt([

Callers 1

deploy.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected