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

Function isValidPlatform

cli/src/common.ts:315–317  ·  view source on GitHub ↗
(platform: string)

Source from the content-addressed store, hash-verified

313}
314
315export async function isValidPlatform(platform: string): Promise<boolean> {
316 return (await getKnownPlatforms()).includes(platform);
317}
318
319export async function getKnownCommunityPlatforms(): Promise<string[]> {
320 return ['electron'];

Callers 8

copyCommandFunction · 0.90
updateCommandFunction · 0.90
runCommandFunction · 0.90
addCommandFunction · 0.90
syncCommandFunction · 0.90
openCommandFunction · 0.90
selectPlatformsFunction · 0.85
promptForPlatformFunction · 0.85

Calls 1

getKnownPlatformsFunction · 0.85

Tested by

no test coverage detected