var r=(p,o,a)=>new Promise((m,s)=>{var i=e=>{try{n(a.next(e))}catch(c){s(c)}},t=e=>{try{n(a.throw(e))}catch(c){s(c)}},n=e=>e.done?m(e.value):Promise.resolve(e.value).then(i,t);n((a=a.apply(p,o)).next())});var d={name:"xc",description:"List tasks from an xc-compatible markdown file",generateSpec:(p,o)=>r(void 0,null,function*(){let a=[{name:["-f","-file"],args:{name:"path",template:"filepaths"},description:'Specify a markdown file that contains tasks (default: "README.md")'},{name:["-d","-display"],description:"Print the markdown code of a task rather than running it"},{name:["-H","-heading"],args:{name:"heading",suggestions:["Tasks","Usage","Examples"]},description:'Specify the heading for xc tasks (default: "Tasks")'}],{stdout:m}=yield o({command:"xc",args:[]}),s=m.trim().split(`
`).map(i=>i.trim().split(/^([^ ]* )/).map(t=>t.trim())).map(([i,t,n])=>({name:t,description:n,options:a}));return{name:"xc",subcommands:s}}),options:[{name:["-s","-short"],description:"List task names in a short format"},{name:["-h","-help"],description:"Print this help text"},{name:["-f","-file"],args:{name:"path",template:"filepaths"},description:'Specify a markdown file that contains tasks (default: "README.md")'},{name:["-H","-heading"],args:{name:"heading",suggestions:["Tasks","Usage","Examples"]},description:'Specify the heading for xc tasks (default: "Tasks")'},{name:["-V","-version"],description:"Show xc version"},{name:"-complete",description:"Install shell completion for xc"},{name:"-uncomplete",description:"Uninstall shell completion for xc"}]},h=d;export{h as default};
