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

Function handleCliCommand

docker/scripts/cli.ts:16–22  ·  view source on GitHub ↗
(result: GoResult<void, Error>)

Source from the content-addressed store, hash-verified

14};
15
16const handleCliCommand = (result: GoResult<void, Error>) => {
17 if (!result.success) {
18 logger.error(result.error.message);
19 // eslint-disable-next-line functional/immutable-data
20 process.exitCode = 1;
21 }
22};
23
24const runAsyncCliCommand = async (command: () => Promise<void>) => {
25 const goCommand = await go(command);

Callers 3

runAsyncCliCommandFunction · 0.85
runCliCommandFunction · 0.85
cli.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected