MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / runText

Function runText

scripts/integration/webrtc.mjs:312–324  ·  view source on GitHub ↗
(command, args, options = {})

Source from the content-addressed store, hash-verified

310}
311
312function runText(command, args, options = {}) {
313 const result = spawnSync(command, args, {
314 cwd: options.cwd ?? root,
315 encoding: "utf8",
316 timeout: options.timeoutMs ?? 30_000,
317 });
318 if (result.status !== 0) {
319 throw new Error(
320 `${command} ${args.join(" ")} failed with ${result.status ?? result.signal}\n${result.stdout}\n${result.stderr}\n${result.error?.message ?? ""}`,
321 );
322 }
323 return result.stdout;
324}
325
326function runNodeScript(script, args, env) {
327 const result = spawnSync(

Callers 4

mainFunction · 0.70
simdeckJsonFunction · 0.70
runJsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected