install.js 702 B

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