MCPcopy Create free account
hub / github.com/ionic-team/capacitor / determineOS

Function determineOS

cli/src/config.ts:322–333  ·  view source on GitHub ↗
(os: NodeJS.Platform)

Source from the content-addressed store, hash-verified

320}
321
322function determineOS(os: NodeJS.Platform): OS {
323 switch (os) {
324 case 'darwin':
325 return OS.Mac;
326 case 'win32':
327 return OS.Windows;
328 case 'linux':
329 return OS.Linux;
330 }
331
332 return OS.Unknown;
333}
334
335async function determineXcodeWorkspaceDirAbs(nativeProjectDirAbs: string): Promise<string> {
336 return resolve(nativeProjectDirAbs, 'App.xcworkspace');

Callers 1

loadCLIConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected