MCPcopy Create free account
hub / github.com/api3dao/airnode / runShellCommand

Function runShellCommand

packages/airnode-examples/src/cli.ts:29–35  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

27 * Run the command passed as an argument in the current shell and stream the output of the command in the CLI.
28 */
29export const runShellCommand = (command: string) => {
30 cliPrint.info(command);
31 spawnSync(command, {
32 shell: true,
33 stdio: 'inherit',
34 });
35};
36
37export const cliPrint = {
38 info: (text: string) => logger.log(chalk.bold.white(text)),

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected