@coat/cli
Version:
TODO: See #3
26 lines (24 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createCoatLogo = createCoatLogo;
var _boxen = _interopRequireDefault(require("boxen"));
var _chalk = _interopRequireDefault(require("chalk"));
var _centerText = require("./center-text");
var _constants = require("../constants");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Creates a box with the coat logo, description
* and a link to the coat website
*/
function createCoatLogo() {
const text = [(0, _centerText.centerText)(_constants.COAT_ASCII_LOGO, _constants.COAT_LOGO_BOX_WIDTH), "", _chalk.default.dim.green("─".repeat(_constants.COAT_LOGO_BOX_WIDTH)), "", (0, _centerText.centerText)("Declarative & continuous project configuration", _constants.COAT_LOGO_BOX_WIDTH), (0, _centerText.centerText)(_chalk.default.cyan("https://coat.dev"), _constants.COAT_LOGO_BOX_WIDTH), ""].join("\n");
// Place the logo and descriptions into a box
const logoBox = (0, _boxen.default)(text, {
dimBorder: true,
borderColor: "green",
float: "center"
});
return logoBox;
}