"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

function _defineProperty2() {
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

  _defineProperty2 = function () {
    return data;
  };

  return data;
}

function _chalk() {
  const data = _interopRequireDefault(require("chalk"));

  _chalk = function () {
    return data;
  };

  return data;
}

function _command() {
  const data = _interopRequireDefault(require("../../command"));

  _command = function () {
    return data;
  };

  return data;
}

function _consumer() {
  const data = require("../../../api/consumer");

  _consumer = function () {
    return data;
  };

  return data;
}

function _linkTemplate() {
  const data = _interopRequireDefault(require("../../templates/link-template"));

  _linkTemplate = function () {
    return data;
  };

  return data;
}

function _constants() {
  const data = require("../../../constants");

  _constants = function () {
    return data;
  };

  return data;
}

class Create extends _command().default {
  constructor(...args) {
    super(...args);
    (0, _defineProperty2().default)(this, "name", 'link');
    (0, _defineProperty2().default)(this, "description", `generate symlinks for sourced components absolute path resolution.\n  https://${_constants().BASE_DOCS_DOMAIN}/docs/cli-link.html`);
    (0, _defineProperty2().default)(this, "alias", 'b');
    (0, _defineProperty2().default)(this, "opts", []);
    (0, _defineProperty2().default)(this, "private", false);
    (0, _defineProperty2().default)(this, "loader", true);
  }

  action() {
    return (0, _consumer().link)();
  }

  report(results) {
    return (0, _linkTemplate().default)(results);
  }

}

exports.default = Create;