"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CatComponentCmd = void 0;
function _catComponent() {
  const data = require("./cat-component");
  _catComponent = function () {
    return data;
  };
  return data;
}
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
class CatComponentCmd {
  constructor() {
    _defineProperty(this, "name", 'cat-component [id]');
    _defineProperty(this, "description", 'cat a bit object by component-id');
    _defineProperty(this, "private", true);
    _defineProperty(this, "alias", 'cmp');
    _defineProperty(this, "options", [
    // json is also the default for this command. it's only needed to suppress the logger.console
    ['j', 'json', 'json format']]);
    _defineProperty(this, "loadAspects", false);
  }
  async report([id]) {
    const result = await (0, _catComponent().catComponent)(id);
    return JSON.stringify(result, null, 4);
  }
  async json([id]) {
    return (0, _catComponent().catComponent)(id);
  }
}
exports.CatComponentCmd = CatComponentCmd;

//# sourceMappingURL=cat-component-cmd.js.map