UNPKG

codetainer

Version:

A clean and simple CLI to manage and store code snippets with ease.

41 lines (34 loc) 1.05 kB
import figlet from "figlet"; import chalk from "chalk"; import boxen from "boxen"; export function registerAboutCommand(program) { program .command("about") .description("Show info about Codetainer") .action(() => { const logo = figlet.textSync("Codetainer", { font: "Big", horizontalLayout: "default", verticalLayout: "default", }); const aboutText = ` ${chalk.cyan(logo)} ${chalk.bold(chalk.greenBright("Codetainer"))} - ${chalk.italic( "Keep it contained." )} Codetainer is a CLI tool for saving, organizing, and searching code snippets with ease. It supports tags, syntax highlighting, and more to keep your dev life tidy. Made with 💻 by ${chalk.green("Joseph Agbonifo")} GitHub: ${chalk.underline("https://github.com/josephagbonifo")} `; console.log( boxen(aboutText, { padding: 1, margin: 1, borderStyle: "round", borderColor: "cyan", }) ); }); }