var r=(m,s,a)=>new Promise((n,t)=>{var o=e=>{try{c(a.next(e))}catch(i){t(i)}},d=e=>{try{c(a.throw(e))}catch(i){t(i)}},c=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,d);c((a=a.apply(m,s)).next())});var l={name:"mask",generateSpec:(m,s)=>r(void 0,null,function*(){var a=m.indexOf("--maskfile"),n;if(a<0||a+3>m.length){let{stdout:t}=yield s({command:"cat",args:["maskfile.md"]});n=t}else{let{stdout:t}=yield s({command:"cat",args:[m[a+1]]});n=t}return n===""?{name:"null"}:{name:"mask",subcommands:n.match(/##.*/g).map(t=>({name:t.slice(3)}))}})},f=l;export{f as default};
