()
| 11 | } |
| 12 | |
| 13 | function 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 | |
| 30 | export async function beginEnvironmentSetup(): Promise<number> { |
| 31 | const os = getOSType(); |
no outgoing calls
no test coverage detected