var u=(e,i,r)=>new Promise((l,o)=>{var g=s=>{try{t(r.next(s))}catch(a){o(a)}},n=s=>{try{t(r.throw(s))}catch(a){o(a)}},t=s=>s.done?l(s.value):Promise.resolve(s.value).then(g,n);t((r=r.apply(e,i)).next())});var _={name:"degit",description:"Straightforward project scaffolding",args:[{name:"user/repo",generators:{trigger:(e,i)=>e.indexOf("/")!==i.indexOf("/"),custom:(e,i)=>u(void 0,null,function*(){let r=e[e.length-1];if(r.includes(":"))return[];let l=r.slice(0,r.indexOf("/")),{stdout:o}=yield i({command:"curl",args:["-sL",`https://api.github.com/users/${l}/repos`]});return JSON.parse(o).map(n=>{var t;return{name:n.full_name,description:(t=n.description)!=null?t:"Repository",priority:n.is_template?51:50,displayName:n.name,icon:"fig://icon?type=git"}})})}},{name:"location",isOptional:!0,template:"folders",suggestCurrentToken:!0}],options:[{name:"--help",description:"Print help"},{name:["-f","--force"],description:"Overwrite existing files"},{name:["-c","--cache"],description:"Use a cache"},{name:["-v","--verbose"],description:"Be verbose?"},{name:["-m","--mode"],description:"Clone mode",args:{name:"mode",suggestions:["git","tar"]}}]},m=_;export{m as default};
