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

Function doctor

cli/src/tasks/doctor.ts:66–76  ·  view source on GitHub ↗
(config: Config, platformName: string)

Source from the content-addressed store, hash-verified

64}
65
66export async function doctor(config: Config, platformName: string): Promise<void> {
67 if (platformName === config.ios.name) {
68 await doctorIOS(config);
69 } else if (platformName === config.android.name) {
70 await doctorAndroid(config);
71 } else if (platformName === config.web.name) {
72 return Promise.resolve();
73 } else {
74 throw `Platform ${platformName} is not valid.`;
75 }
76}

Callers 1

doctorCommandFunction · 0.85

Calls 3

doctorIOSFunction · 0.90
doctorAndroidFunction · 0.90
resolveMethod · 0.80

Tested by

no test coverage detected