MCPcopy Create free account
hub / github.com/capawesome-team/capacitor-plugins / execute

Function execute

scripts/lib/cli.mjs:1–6  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

1export const execute = (fn) => {
2 fn().catch((e) => {
3 console.error(e.stack ? e.stack : String(e));
4 process.exit(1);
5 });
6};

Callers 1

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected