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

Function doctorCommand

cli/src/tasks/doctor.ts:13–24  ·  view source on GitHub ↗
(config: Config, selectedPlatformName: string)

Source from the content-addressed store, hash-verified

11import { getCommandOutput } from '../util/subprocess';
12
13export async function doctorCommand(config: Config, selectedPlatformName: string): Promise<void> {
14 output.write(`${_e('💊', '')} ${c.strong('Capacitor Doctor')} ${_e('💊', '')} \n\n`);
15
16 await doctorCore(config);
17
18 const platforms = await selectPlatforms(config, selectedPlatformName);
19 await Promise.all(
20 platforms.map((platformName) => {
21 return doctor(config, platformName);
22 }),
23 );
24}
25
26export async function doctorCore(config: Config): Promise<void> {
27 const [cliVersion, coreVersion, androidVersion, iosVersion] = await Promise.all([

Callers 1

runProgramFunction · 0.85

Calls 3

selectPlatformsFunction · 0.90
doctorCoreFunction · 0.85
doctorFunction · 0.85

Tested by

no test coverage detected