* progress * progress * fix: checkbox styling * fix(ui,ui-preset): Fix the styling of Select, DropdownMenu, and Checkbox * update ellipse-solid-mini icon * cleanup
33 lines
844 B
TypeScript
33 lines
844 B
TypeScript
import { Command } from "commander"
|
|
|
|
import { generateIcons } from "@/commands/icons/command"
|
|
import { generateTokens } from "@/commands/tokens/command"
|
|
|
|
import pkg from "../package.json"
|
|
|
|
export async function createCli() {
|
|
const program = new Command()
|
|
|
|
program.name("toolbox").version(pkg.version)
|
|
|
|
// Icon
|
|
|
|
const generateIconsCommand = program.command("icons")
|
|
generateIconsCommand.description("Generate icons from Figma")
|
|
|
|
generateIconsCommand.option("-o, --output <path>", "Output directory")
|
|
|
|
generateIconsCommand.action(generateIcons)
|
|
|
|
// Color tokens
|
|
|
|
const generateTokensCommand = program.command("tokens")
|
|
generateTokensCommand.description("Generate tokens from Figma")
|
|
|
|
generateTokensCommand.option("-o, --output <path>", "Output directory")
|
|
|
|
generateTokensCommand.action(generateTokens)
|
|
|
|
return program
|
|
}
|