This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.

40 lines
702 B
JavaScript
Raw Normal View History

2021-04-02 02:24:13 +03:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.install = install;
var _brewInstall = require("./brewInstall");
var _common = require("../commands/doctor/healthchecks/common");
async function install({
pkg,
label,
url,
loader
}) {
try {
switch (process.platform) {
case 'darwin':
await (0, _brewInstall.brewInstall)({
pkg,
label,
loader
});
break;
default:
throw new Error('Not implemented yet');
}
} catch (_error) {
loader.fail();
(0, _common.logManualInstallation)({
healthcheck: label,
url
});
}
}
//# sourceMappingURL=install.js.map