var s=(t,e,a)=>new Promise((p,i)=>{var l=n=>{try{r(a.next(n))}catch(o){i(o)}},u=n=>{try{r(a.throw(n))}catch(o){i(o)}},r=n=>n.done?p(n.value):Promise.resolve(n.value).then(l,u);r((a=a.apply(t,e)).next())});var c=(t,e)=>s(void 0,null,function*(){return(yield t({command:"ls",args:[e]})).status===0}),m={name:"php",description:"Run the PHP interpreter",generateSpec:(t,e)=>s(void 0,null,function*(){let a=[];return yield Promise.all([()=>s(void 0,null,function*(){(yield c(e,"artisan"))&&a.push({name:"artisan",loadSpec:"php/artisan"})}),()=>s(void 0,null,function*(){(yield c(e,"please"))&&a.push({name:"please",loadSpec:"php/please"})}),()=>s(void 0,null,function*(){(yield c(e,"bin/console"))&&a.push({name:"bin/console",loadSpec:"php/bin-console"})})]),{name:"php",subcommands:a,args:{generators:{template:"filepaths",filterTemplateSuggestions:function(p){return p.filter(i=>i.name.indexOf(".")===-1)}}}}})},g=m;export{g as default};
