UNPKG

665 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.install = install;
7
8var _brewInstall = require("./brewInstall");
9
10var _common = require("../commands/doctor/healthchecks/common");
11
12async function install({
13 pkg,
14 label,
15 url,
16 loader
17}) {
18 try {
19 switch (process.platform) {
20 case 'darwin':
21 await (0, _brewInstall.brewInstall)({
22 pkg,
23 label,
24 loader
25 });
26 break;
27
28 default:
29 throw new Error('Not implemented yet');
30 }
31 } catch (_error) {
32 loader.fail();
33 (0, _common.logManualInstallation)({
34 healthcheck: label,
35 url
36 });
37 }
38}
\No newline at end of file