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

Function open

cli/src/tasks/open.ts:52–64  ·  view source on GitHub ↗
(config: Config, platformName: string)

Source from the content-addressed store, hash-verified

50}
51
52export async function open(config: Config, platformName: string): Promise<void> {
53 if (platformName === config.ios.name) {
54 await runTask('Opening the Xcode workspace...', () => {
55 return openIOS(config);
56 });
57 } else if (platformName === config.android.name) {
58 return openAndroid(config);
59 } else if (platformName === config.web.name) {
60 return Promise.resolve();
61 } else {
62 throw `Platform ${platformName} is not valid.`;
63 }
64}

Callers 5

sendFunction · 0.85
openAndroidFunction · 0.85
openIOSFunction · 0.85
promptToSignupFunction · 0.85
openCommandFunction · 0.85

Calls 4

runTaskFunction · 0.90
openIOSFunction · 0.90
openAndroidFunction · 0.90
resolveMethod · 0.80

Tested by

no test coverage detected