doclyft
Version:
CLI for DocLyft - Interactive documentation generator with hosted documentation support
30 lines (29 loc) • 1.82 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.showCompactBanner = exports.showBanner = exports.ASCII_BANNER = void 0;
const chalk_1 = __importDefault(require("chalk"));
exports.ASCII_BANNER = `
██████╗ ██████╗ ██████╗██╗ ██╗ ██╗███████╗████████╗
██╔══██╗██╔═══██╗██╔════╝██║ ╚██╗ ██╔╝██╔════╝╚══██╔══╝
██║ ██║██║ ██║██║ ██║ ╚████╔╝ █████╗ ██║
██║ ██║██║ ██║██║ ██║ ╚██╔╝ ██╔══╝ ██║
██████╔╝╚██████╔╝╚██████╗███████╗██║ ██║ ██║
╚═════╝ ╚═════╝ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚═╝
`;
const showBanner = (subtitle) => {
console.log(chalk_1.default.hex('#7431E4')(exports.ASCII_BANNER));
console.log(chalk_1.default.hex('#11002C')(' AI Powered Documentation'));
if (subtitle) {
console.log(chalk_1.default.white(` ${subtitle}`));
}
console.log('');
};
exports.showBanner = showBanner;
const showCompactBanner = () => {
console.log(chalk_1.default.hex('#7431E4').bold('DocLyft CLI') + chalk_1.default.hex('#11002C')(' - AI Powered Documentation'));
console.log('');
};
exports.showCompactBanner = showCompactBanner;