(config: Config, selectedPlatformName: string)
| 10 | import { allSerial } from '../util/promise'; |
| 11 | |
| 12 | export async function listCommand(config: Config, selectedPlatformName: string): Promise<void> { |
| 13 | const platforms = await selectPlatforms(config, selectedPlatformName); |
| 14 | try { |
| 15 | await allSerial(platforms.map((platformName) => () => list(config, platformName))); |
| 16 | } catch (e: any) { |
| 17 | if (isFatal(e)) { |
| 18 | throw e; |
| 19 | } |
| 20 | |
| 21 | logger.error(e.stack ?? e); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | export async function list(config: Config, platform: string): Promise<void> { |
| 26 | const allPlugins = await getPlugins(config, platform); |
no test coverage detected