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

Function runBuffer

scripts/integration/android.mjs:850–858  ·  view source on GitHub ↗
(command, args, options = {})

Source from the content-addressed store, hash-verified

848}
849
850function runBuffer(command, args, options = {}) {
851 const result = runCommand(command, args, options);
852 if (result.status !== 0) {
853 throw new Error(
854 `${[command, ...args].join(" ")} failed with ${result.status}\n${result.stderr}`,
855 );
856 }
857 return result.stdoutBuffer ?? Buffer.alloc(0);
858}
859
860function runCommand(command, args, options = {}) {
861 if (verbose) {

Callers 2

runCliSurfaceFunction · 0.70
runTextFunction · 0.70

Calls 1

runCommandFunction · 0.85

Tested by

no test coverage detected