diff --git a/bin/mc2it_card.js b/bin/mc2it_card.js index 0b762e0..1b6d8fb 100755 --- a/bin/mc2it_card.js +++ b/bin/mc2it_card.js @@ -3,7 +3,7 @@ `;t+=" ";let u=e.hasOwnProperty!=null,l=null;for(l in e)u&&!e.hasOwnProperty(l)||l=="prototype"||l=="__class__"||l=="__super__"||l=="__interfaces__"||l=="__properties__"||(s.length!=2&&(s+=`, `),s+=t+l+" : "+O.__string_rec(e[l],t));return t=t.substring(1),s+=` `+t+"}",s;case"string":return e;default:return String(e)}}}O.__name__=!0;var ie=require("fs"),fe=require("buffer").Buffer;class x{static _new(){return new ce}static center(e,t){return x.line(e,""+x.repeat(e," ",Math.floor((39-x.getLength(e,t))/2))+t)}static footer(e){return x.addLine(e,"\u2570"+x.repeat(e,"\u2500")+"\u256F")}static header(e){return x.addLine(e,"\u256D"+x.repeat(e,"\u2500")+"\u256E")}static label(e,t,r){return x.line(e,B.lpad(""+t+": "," ",9+3+16)+r)}static line(e,t){return t==null&&(t=""),x.addLine(e,"\u2502"+t+x.repeat(e," ",39-x.getLength(e,t))+"\u2502")}static addLine(e,t){return e.b+=b.string(" "+t+P.newLine),e}static getLength(e,t){let r=new RegExp("<[^<]*>","g".split("u").join(""));return t.replace(r,"").length}static repeat(e,t,r){r==null&&(r=39);let n=[],s=0;for(;sMC2IT - Distribution & Services")),"Card","npx @mc2it/card"),"GitHub","https://github.com/mc2it")),"Email","dev@mc2it.com"),"Website","https://www.mc2it.com")));g.formatMode=0,g.logPrefix="";let r=g.logPrefix+(""+P.newLine+b.string(t));return r==null&&(r=""),g.printFormatted(r+` +`),new j(new L(S.Success(null)))}let t=x.footer(x.line(x.label(x.label(x.label(x.line(x.label(x.line(x.center(x.line(x.header(x._new())),"MC2IT - Distribution & Services")),"GitHub","https://github.com/mc2it")),"Card","npx @mc2it/card"),"Email","dev@mc2it.com"),"Website","https://www.mc2it.com")));g.formatMode=0,g.logPrefix="";let r=g.logPrefix+(""+P.newLine+b.string(t));return r==null&&(r=""),g.printFormatted(r+` `,0),new j(new L(S.Success(null)))}static main(){new we(new P,new ye(5)).process(process.argv.slice(2)).handle(me.exit)}}P.__name__=!0;class W{static get_packageVersion(){return W.packageVersion==null&&(W.packageVersion="4.0.0"),W.packageVersion}}W.__name__=!0;class me{static exit(e){switch(e._hx_index){case 0:process.exit(0);break;case 1:let t=e.failure,r=t.message;t.data!=null&&(r+=", "+(t.data==null?"null":b.string(t.data))),process.stdout.write(b.string(r)),process.stdout.write(` `);let n=t.code;process.exit(n);break}}}me.__name__=!0;class pe{constructor(e){this.buffer=e}}pe.__name__=!0;class q{static get(){return q.doc==null&&(q.doc={doc:" Print the business card of MC2IT, distribution and services. ",commands:[{isDefault:!0,isSub:!1,names:[],doc:null}],flags:[{names:["--help"],aliases:["h"],doc:" Output usage information. "},{names:["--version"],aliases:["v"],doc:" Output the version number. "}]}),q.doc}}q.__name__=!0;class Q{constructor(e,t,r){this.command=e,this.prompt=t,this.hasFlags=r}processArgs(e){let t=this;return this.hasFlags?N.catchExceptions(function(){let r=Q.expandAssignments(e),n=[],s=0,u=!1;for(;sMC2IT - Distribution & Services") .line() - .label("Card", "npx @mc2it/card") .label("GitHub", "https://github.com/mc2it") .line() + .label("Card", "npx @mc2it/card") .label("Email", "dev@mc2it.com") .label("Website", "https://www.mc2it.com") .line()