Elegant CLI Builder: Citty Review
Review of Citty, an elegant CLI builder by Unjs. Implemented in unbuild source code with custom arguments for building and minifying.
In this article, we will review the Citty, an elegant CLI builder. This library is built by Unjs. I came across this package in cli.ts in unbuild. Let’s see this in action by running some experiments in codesandbox. I copied the code below, provided in citty docs, in a codesandbox project. import { defineCommand, runMain } from "citty"; const main = defineCommand({ meta: { name: "hello", version: "1.0.0", description: "My Awesome CLI App", }, args: { name: { type: "positional", description: "Your name", required: true, }, friendly: { type...