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

Function getPlatformTargetName

cli/src/common.ts:446–450  ·  view source on GitHub ↗
(target: PlatformTarget)

Source from the content-addressed store, hash-verified

444}
445
446export function getPlatformTargetName(target: PlatformTarget): string {
447 return `${target.name ?? target.model ?? target.id ?? '?'}${
448 target.virtual ? ` (${target.platform === 'ios' ? 'simulator' : 'emulator'})` : ''
449 }`;
450}
451
452export async function getAddedPlatforms(config: Config): Promise<string[]> {
453 const platforms: string[] = [];

Callers 2

runCommandFunction · 0.90
promptForPlatformTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected