MCPcopy Index your code
hub / github.com/ionic-team/capacitor / listCommand

Function listCommand

cli/src/tasks/list.ts:12–23  ·  view source on GitHub ↗
(config: Config, selectedPlatformName: string)

Source from the content-addressed store, hash-verified

10import { allSerial } from '../util/promise';
11
12export 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
25export async function list(config: Config, platform: string): Promise<void> {
26 const allPlugins = await getPlugins(config, platform);

Callers 1

runProgramFunction · 0.85

Calls 5

selectPlatformsFunction · 0.90
allSerialFunction · 0.90
isFatalFunction · 0.90
listFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected