var a=(s,i,n)=>new Promise((c,t)=>{var d=e=>{try{o(n.next(e))}catch(r){t(r)}},m=e=>{try{o(n.throw(e))}catch(r){t(r)}},o=e=>e.done?c(e.value):Promise.resolve(e.value).then(d,m);o((n=n.apply(s,i)).next())});var p={custom:(s,i)=>a(void 0,null,function*(){let{stdout:n}=yield i({command:"curl",args:["-sL","https://raw.githubusercontent.com/shadcn/ui/main/apps/www/public/registry/index.json"]});return JSON.parse(n).map(t=>({name:t.name,description:t.type,priority:50,icon:"fig://icon?type=box"}))})},g={name:"shadcn-ui",description:"Shadcn UI CLI",subcommands:[{name:"add",description:"Add a component to your project",args:{name:"components",description:"The components to add",isVariadic:!0,generators:p},options:[{name:["-y","--yes"],description:"Skip confirmation prompt"},{name:["-o","--overwrite"],description:"Overwrite existing files"},{name:["-c","--cwd"],description:"The working directory. defaults to the current directory",args:{name:"cwd"}},{name:["-p","--path"],description:"The path to add the component to",args:{name:"path"}}]},{name:"diff",description:"Check for updates against the registry",args:{name:"component",description:"The component name",generators:p},options:[{name:["-y","--yes"],description:"Skip confirmation prompt"},{name:["-c","--cwd"],description:"The working directory. defaults to the current directory",args:{name:"cwd"}}]},{name:"init",description:"Initialize your project and install dependencies",options:[{name:["-y","--yes"],description:"Skip confirmation prompt"},{name:["-c","--cwd"],description:"The working directory. defaults to the current directory",args:{name:"cwd"}}]}]},u=g;export{u as default};
