(config: Config, selectedPlatformName: string)
| 11 | import { getCommandOutput } from '../util/subprocess'; |
| 12 | |
| 13 | export 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 | |
| 26 | export async function doctorCore(config: Config): Promise<void> { |
| 27 | const [cliVersion, coreVersion, androidVersion, iosVersion] = await Promise.all([ |
no test coverage detected