MCPcopy Create free account
hub / github.com/BabylonJS/BabylonReactNative / exec

Function exec

Package/gulpfile.js:11–19  ·  view source on GitHub ↗
(command, workingDirectory = '.', logCommand = true)

Source from the content-addressed store, hash-verified

9const unzipper = require('unzipper');
10
11function exec(command, workingDirectory = '.', logCommand = true) {
12 if (logCommand) {
13 log(command);
14 }
15
16 if (shelljs.exec(command, { fatal: true, cwd: workingDirectory }).code) {
17 throw `'${command}' finished with non-zero exit code.`;
18 }
19}
20
21function checkDirectory(actualList, expectedList, directoryName) {
22 const extras = actualList.filter(path => !expectedList.includes(path));

Callers 6

buildTypeScriptFunction · 0.85
buildIphoneOSFunction · 0.85
buildIphoneSimulatorFunction · 0.85
buildAndroidFunction · 0.85
createPackageFunction · 0.85
runCMakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected