MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getOSType

Function getOSType

npm_modules/cli/src/setup/setupEntryPoint.ts:13–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11}
12
13function getOSType(): OSType {
14 switch (process.platform) {
15 case 'darwin': {
16 return OSType.MACOS;
17 }
18 case 'win32': {
19 return OSType.WINDOWS;
20 }
21 case 'linux': {
22 return OSType.LINUX;
23 }
24 default: {
25 return OSType.UNKNOWN;
26 }
27 }
28}
29
30export async function beginEnvironmentSetup(): Promise<number> {
31 const os = getOSType();

Callers 1

beginEnvironmentSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected