MCPcopy
hub / github.com/ionic-team/capacitor / run

Function run

cli/src/index.ts:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18process.on('message', receive);
19
20export async function run(): Promise<void> {
21 try {
22 const config = await loadConfig();
23 runProgram(config);
24 } catch (e: any) {
25 process.exitCode = isFatal(e) ? e.exitCode : 1;
26 logger.error(e.message ? e.message : String(e));
27 }
28}
29
30async function getPackageManager(config: Config, packageManager: any): Promise<PackageManager> {
31 if (packageManager === 'cocoapods') {

Callers

nothing calls this directly

Calls 4

loadConfigFunction · 0.90
isFatalFunction · 0.90
runProgramFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected