UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

78 lines (59 loc) 1.86 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.ListCmd = void 0; function _bluebird() { const data = require("bluebird"); _bluebird = function () { return data; }; return data; } function _defineProperty2() { const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); _defineProperty2 = function () { return data; }; return data; } function _react() { const data = _interopRequireDefault(require("react")); _react = function () { return data; }; return data; } function _ink() { const data = require("ink"); _ink = function () { return data; }; return data; } // eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars class ListCmd { constructor(workspace) { this.workspace = workspace; (0, _defineProperty2().default)(this, "name", 'lister'); (0, _defineProperty2().default)(this, "description", 'list all components in the workspace'); (0, _defineProperty2().default)(this, "summery", 'a different text i dont really need'); (0, _defineProperty2().default)(this, "group", 'workspace'); (0, _defineProperty2().default)(this, "alias", ''); (0, _defineProperty2().default)(this, "options", []); } // eslint-disable-next-line @typescript-eslint/no-unused-vars render(params, options) { var _this = this; return (0, _bluebird().coroutine)(function* () { // eslint-disable-next-line @typescript-eslint/no-unused-vars const list = yield _this.workspace.list(); return /*#__PURE__*/_react().default.createElement(_ink().Color, { green: true }, "hi there"); })(); } } exports.ListCmd = ListCmd;