MCPcopy
hub / github.com/obytes/react-native-template-obytes / runCommand

Function runCommand

cli/utils.js:17–29  ·  view source on GitHub ↗
(
  command,
  { loading = 'loading ....', success = 'success', error = 'error' }
)

Source from the content-addressed store, hash-verified

15};
16
17const runCommand = async (
18 command,
19 { loading = 'loading ....', success = 'success', error = 'error' }
20) => {
21 consola.start(loading);
22 try {
23 await execShellCommand(command);
24 consola.success(success);
25 } catch (err) {
26 consola.error(`Failed to execute ${command}`, err);
27 process.exit(1);
28 }
29};
30// show more details message using chalk
31const showMoreDetails = (projectName) => {
32 consola.box(

Callers 2

installDepsFunction · 0.85
cloneLastTemplateReleaseFunction · 0.85

Calls 1

execShellCommandFunction · 0.85

Tested by

no test coverage detected