@docyrus/cli
Version:
DocyUI unified CLI tool for all frameworks
3 lines (2 loc) • 1.34 kB
JavaScript
import{k as r,l as n,m,n as a}from"./chunk-LKI6GJRK.js";import{Command as i}from"commander";var t=new i;t.name("@docyrus/cli").description("DocyUI unified CLI for all frameworks").version("0.0.1").option("-f, --framework <type>","Framework to use (react|vue|svelte|react-native)").hook("preAction",o=>{let e=o.opts().framework;e&&(process.env.DOCYUI_FRAMEWORK=e)});t.command("init").description("Initialize DocyUI in your project").option("-f, --framework <type>","Framework to use (react|vue|svelte|react-native)").action(o=>r(o));t.command("list").description("List all available components").option("-f, --framework <type>","Framework to use (react|vue|svelte|react-native)").action(o=>m(o));t.command("add").description("Add components to your project").argument("[components...]","Component names to add (optional - will show selection if not provided)").option("--all","Install all available components").option("-f, --framework <type>","Framework to use (react|vue|svelte|react-native)").action((o,e)=>n(o,e));t.command("color").description("View or update color theme").argument("[color]","Color theme to use (zinc, stone, slate, etc.)").option("--custom <url>","Use custom color scheme from URL").option("-f, --framework <type>","Framework to use (react|vue|svelte|react-native)").action((o,e)=>a(o,e));t.parse();