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

Function main

packages/airnode-examples/src/scripts/stop-local-airnode.ts:4–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3// eslint-disable-next-line require-await
4const main = async () => {
5 const integrationInfo = readIntegrationInfo();
6 if (integrationInfo.airnodeType !== 'local') {
7 cliPrint.error('You only need to run this script if you want to stop Airnode running locally!');
8 return;
9 }
10
11 runShellCommand(`docker stop airnode`);
12};
13
14runAndHandleErrors(main);

Callers

nothing calls this directly

Calls 2

readIntegrationInfoFunction · 0.85
runShellCommandFunction · 0.85

Tested by

no test coverage detected