var p={name:"artisan",description:"Laravel Artisan Command",generateSpec:async(c,s)=>{var{stdout:o}=await s({command:"php",args:["artisan","list","--format=json"]});let i=[];try{JSON.parse(o).commands.map(t=>{i.push({name:t.name,description:t.description,icon:"https://web.tinkerwell.app/img/laravel.3cab6a56.png",args:Object.keys(t.definition.arguments).map(e=>{let n=t.definition.arguments[e];return{name:n.name,description:n.description,isOptional:!n.is_required}}),options:Object.keys(t.definition.options).map(e=>{let n=t.definition.options[e],a=[n.name];return n.shortcut!==""&&a.push(n.shortcut),{name:a,description:n.description}})})})}catch{}return{name:"artisan",debounce:!0,subcommands:i}}},m=p;export{m as default};
