@maka/maka-cli 4.2.28 → 4.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command.js +1 -1
- package/dist/commands/_index.js +1 -1
- package/dist/commands/aws/_index.js +1 -1
- package/dist/commands/aws/aws.command.js +1 -1
- package/dist/commands/aws/ci.sub.cmd.js +1 -1
- package/dist/commands/aws/ckp.sub.cmd.js +1 -1
- package/dist/commands/aws/csg.sub.cmd.js +1 -1
- package/dist/commands/aws/di.sub.cmd.js +1 -1
- package/dist/commands/aws/dkp.sub.cmd.js +1 -1
- package/dist/commands/aws/dsg.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.sub.cmd.js +1 -1
- package/dist/commands/aws/rkp.sub.cmd.js +1 -1
- package/dist/commands/aws/sth.sub.cmd.js +1 -1
- package/dist/commands/aws/ti.sub.cmd.js +1 -1
- package/dist/commands/build/_index.js +1 -1
- package/dist/commands/build/build.js +1 -1
- package/dist/commands/build/docker.sub.cmd.js +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/debug.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/game/_index.js +1 -1
- package/dist/commands/game/battleship.sub.cmd.js +1 -1
- package/dist/commands/game/play.command.js +1 -1
- package/dist/commands/game/pong.sub.cmd.js +1 -1
- package/dist/commands/game/snake.sub.cmd.js +1 -1
- package/dist/commands/game/tetris.sub.cmd.js +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/get/_index.js +1 -1
- package/dist/commands/get/get.command.js +1 -1
- package/dist/commands/get/global.sub.cmd.js +1 -1
- package/dist/commands/get/local.sub.cmd.js +1 -1
- package/dist/commands/get/whoami.sub.cmd.js +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/jsdoc.js +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logs.js +1 -1
- package/dist/commands/maka.cmd.js +1 -1
- package/dist/commands/murder.js +1 -1
- package/dist/commands/proxy.js +1 -1
- package/dist/commands/reconfig.js +1 -1
- package/dist/commands/run/_index.js +1 -1
- package/dist/commands/run/docker.sub.cmd.js +1 -1
- package/dist/commands/run/run.command.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/generators/services/_index.js +1 -1
- package/dist/generators/services/openssl.js +1 -1
- package/dist/generators/services/translation.js +1 -1
- package/dist/maka.js +1 -1
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/dist/command.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x168))/0x1+parseInt(N(0x169))/0x2*(parseInt(N(0x174))/0x3)+-parseInt(N(0x132))/0x4+parseInt(N(0x150))/0x5*(-parseInt(N(0xf5))/0x6)+-parseInt(N(0x113))/0x7*(-parseInt(N(0x146))/0x8)+-parseInt(N(0x106))/0x9+parseInt(N(0x144))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x2994a));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(O(0x101)==='FcSEf'){if(c){const e=c[O(0x130)](b,arguments);return c=null,e;}}else throw new b();}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0xea)]()[P(0xe7)]('(((.+)+)+)+$')['toString']()[P(0x115)](a0a)[P(0xe7)](P(0x140));});a0a();var __awaiter=this&&this[a0Q(0x120)]||function(a,b,c,d){function e(f){const R=a0d;if(R(0x127)===R(0x127))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;try{if(S(0x15b)!==S(0x123))j(d[S(0x16d)](k));else throw S(0x10b);}catch(m){if(S(0xec)===S(0xec))g(m);else throw S(0xf2)+(d===null||m===void 0x0?void 0x0:f['join'](',\x20'))+S(0x136);}}function i(k){const T=a0d;try{j(d[T(0x103)](k));}catch(l){T(0x162)!==T(0x12b)?g(l):(d['error'](l),f[T(0xef)](0x0));}}function j(k){const U=a0d;k[U(0x171)]?f(k[U(0x10e)]):e(k[U(0x10e)])[U(0xe9)](h,i);}j((d=d['apply'](a,b||[]))[V(0x16d)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xe5;let f=c[d];return f;},a0d(a,b);}const homeDir=a0J['homedir']();import a0L from'cli-table';function a0c(){const ah=['roles','parent','name','284781HxWBAJ','305304qteQzm','invoke','error','There\x20is\x20no\x20Meteor\x20application\x20here','next','mustBeInMakaProject','maxOptsLength','run','done','ZGbuO','disableAuthCheck','3KQdaXS','Too\x20many\x20options','deploy','search','find','then','toString','_commands','ckEkC','assign','aFNgu','exit','Description','includes','To\x20use\x20these\x20pro\x20flags,\x20\x22','keys','No\x20aliases','30bUuVAQ','examples','options','AKmpG','push','YLXTh','addCommand\x20requires\x20a\x20Command\x20instance','_handler','Command.create\x20requires\x20some\x20options!','call','hnhod','AnaXY','FcSEf','Command\x20requires\x20a\x20name','throw','bind','proCommands','2007837FbZWbE','Command\x20requires\x20a\x20handler\x20function','function','usage','AWFBP','Command\x20not\x20found','getPro','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','value','Please\x20run\x20\x22maka\x20install\x20meteor\x22','utImj','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','No\x20usage\x20provided.','1897qzpWsd','filter','constructor','win32','FOyOe','Alias','eQzZg','findProjectDirectory','proFlags','Too\x20many\x20arguments','.meteor','DLpOm','Too\x20few\x20arguments','__awaiter','trialExpirationDate','maxArgLength','DmHhM','mustHaveMeteorInstalled','split','minArgLength','fcNom','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','pPbjR','number','vuOkT','Sub\x20Commands:','Command.create\x20requires\x20a\x20handler\x20function!','wGIBD','AuOTT','apply','fsi','602372xPiGtT','HufYy','help','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','join','bright','kOBEO','forEach','mBkAE','aliases','findCommand','validateParams','AppData','(((.+)+)+)+$','notice','validateMakaSubscription','validateMeteorInstall','5767770rCsWKO','existsSync','4296rJkKqg','sort','domainLicense','Missing\x20required\x20options\x20','runSubCommand','length','murder','vTFyj','Too\x20few\x20options','platform','46175bDxIdK','singleLicense','validateMakaProject','addCommand','tableList','vfbSz','match','uHfTk','FnzsP','To\x20use\x20this\x20command,\x20\x22','Name','nHHAE','qkySW','trialActive','Dcjfu','concat','qOzgL','OGxYc','qBqjy','game','description'];a0c=function(){return ah;};return a0c();}import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0Q;super();if(!a)throw new Error(W(0x128));if(!a['name'])throw new Error(W(0x102));if(typeof b!=='function')throw new Error(W(0x107));this['options']=Object[W(0xed)]({},a),this[W(0x167)]=this[W(0xf7)]['name'],this['_commands']=[],this[W(0xfc)]=b[W(0x104)](this);}static['create'](a,b,c){const X=a0Q;var d;if(!a){if(X(0x129)===X(0x129))throw new Error(X(0xfd));else g[X(0x16b)](X(0x135)),h[X(0x141)](X(0x10f)),i[X(0x109)](j,k,l);}if(typeof b!==X(0x108))throw new Error(X(0x12d));let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c['options'])===null||d===void 0x0?void 0x0:d[X(0x167)]}),c[X(0x153)](e),e;}[a0Q(0x156)](a){const Y=a0Q;let b=[this[Y(0x167)]][Y(0x15f)](this['options']['aliases']||[]);if(this['parent']){if(Y(0x110)===Y(0x110))b[Y(0xf9)](this[Y(0x166)]);else{c['error'](Y(0x14e));throw new d();}}return b[Y(0xf1)](a);}[a0Q(0x153)](a){const Z=a0Q;if(!(a instanceof Command)){if(Z(0x11e)!==Z(0x11e)){if(e){const c=i[Z(0x130)](j,arguments);return k=null,c;}}else throw new Error(Z(0xfb));}this[Z(0xeb)]['push'](a);}[a0Q(0x152)](){const a0=a0Q,a=this['fsi'][a0(0x11a)]();return a!==![]?!![]:![];}[a0Q(0x143)](){const a1=a0Q;let a=a0I[a1(0x137)](homeDir,a1(0x11d));const b=process[a1(0x14f)]===a1(0x116);if(b){a=a0I[a1(0x137)](homeDir,a1(0x13f),'Local',a1(0x11d));if(!a0K[a1(0x145)](a)){if('OGxYc'!==a1(0x161))e[a1(0xf9)]([f[a1(0x167)],g[a1(0x13c)](),h[a1(0x164)]()]);else return![];}}else{if(!a0K[a1(0x145)](a))return![];}return!![];}[a0Q(0x142)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if('eQzZg'===a2(0x119))try{const c=this[a2(0x13d)](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c[a2(0x167)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c[a2(0x166)])||'',g=c===null||c===void 0x0?void 0x0:c[a2(0xf7)];if(g[a2(0x173)])return;const h=a[0x0],i=Object[a2(0xf3)](b),j=yield this['fsi'][a2(0x10c)]();!j&&(Log[a2(0x16b)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const k=(j===null||j===void 0x0?void 0x0:j[a2(0x105)][a2(0xf1)](d))||(j===null||j===void 0x0?void 0x0:j[a2(0x105)]['includes'](f)),l=(j===null||j===void 0x0?void 0x0:j[a2(0x165)]['includes'](a2(0x151)))||(j===null||j===void 0x0?void 0x0:j[a2(0x165)][a2(0xf1)](a2(0x148))),m=!l&&!(j===null||j===void 0x0?void 0x0:j[a2(0x15d)]);if(k&&m)throw a2(0x159)+a[0x0]+a2(0x136);if(i['length']>0x0){if('mYKba'!=='mYKba')return d=e[0x0],this[a2(0x13d)](f);else{const o=j===null||j===void 0x0?void 0x0:j[a2(0x11b)][a2(0x114)](p=>i[a2(0xf1)](p));if(o&&o['length']>0x0&&m)throw a2(0xf2)+(o===null||o===void 0x0?void 0x0:o['join'](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}if(h===a2(0xe6)){const p=yield this[a2(0x131)][a2(0x10c)](),q=p===null||p===void 0x0?void 0x0:p['proCommands'][a2(0xf1)](a[0x0]+'\x20'+a[0x1]);if(q&&m)throw a2(0x159)+a[0x0]+a2(0x136);}(j===null||j===void 0x0?void 0x0:j['trialActive'])&&!l&&Log[a2(0x141)]('Trial\x20License\x20Expires:\x20'+j[a2(0x121)]['split']('T')[0x0]);}}catch(r){if(a2(0x155)==='rTwXz')try{i(j[a2(0x103)](k));}catch(t){m(t);}else throw r;}else return;});}[a0Q(0x13e)](a,b,c){const a3=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object['keys'](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a3(0x14b)])>0x0){if(g['length']===0x0){if(a3(0x133)===a3(0x117))f['error'](a3(0x111)),g[a3(0x109)](h,i,j);else{Log[a3(0x16b)](a3(0x149)+requiredOpts['join'](',\x20'));throw new UsageError();}}requiredOpts[a3(0x13a)](i=>{const a4=a3;if(!g['includes'](i)){Log[a4(0x16b)]('Missing\x20required\x20option:\x20'+i);throw new UsageError();}});}validOpts=validOpts[a3(0x15f)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0&&(validOpts[a3(0xf9)]('help'),g[a3(0x13a)](i=>{const a5=a3;if(a5(0x172)===a5(0x12f)){if(!c[a5(0x145)](d))return![];}else{if(!validOpts[a5(0xf1)](i)){Log[a5(0x16b)]('Invalid\x20options:\x20'+i);throw new UsageError();}}}));}[a0Q(0x170)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a0d;if('kCzhi'!==a6(0x15c))try{if(a6(0x158)===a6(0xee)){var d;if(!p)throw new E(a6(0xfd));if(typeof r!=='function')throw new F(a6(0x12d));let f=new t(u,v);return w=x||y,z[a6(0xed)](f,{'parent':(d=A===null||B===void 0x0?void 0x0:C[a6(0xf7)])===null||d===void 0x0?void 0x0:d[a6(0x167)]}),D['addCommand'](f),f;}else{a=a||[],b=b||{};try{yield this['validateMakaSubscription'](a,b);}catch(d){Log[a6(0x16b)](d),process[a6(0xef)](0x0);}yield this[a6(0x16a)](a,b);}}catch(f){if('Dcjfu'===a6(0x15e))process['exit'](0x1);else throw new b(a6(0xfb));}else{c['error'](a6(0xe5));throw new d();}});}[a0Q(0x16a)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d,{usage:usage='',description:description='',examples:examples=[],isRoot:isRoot=![]}=this[a7(0xf7)];try{if(!isRoot){const c=(a[0x0]===_prevCmd||a[a7(0x14b)]===0x0)&&this[a7(0xeb)]['length']>=0x0;if(c&&b[a7(0x134)]){if(this[a7(0xeb)][a7(0x14b)]>0x0){if(a7(0x139)!==a7(0x10a))throw new UsageErrorWithSubs();else try{i(j['next'](k));}catch(f){m(f);}}throw new UsageError();}if(!b[a7(0x134)]){if(this[a7(0xf7)][a7(0x16e)]){const f=this['validateMakaProject']();if(!f)throw new MustBeInProjectError();}if(this[a7(0xf7)][a7(0x124)]){const g=this[a7(0x143)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[a7(0xf7)]['minArgLength']===a7(0x12a)){if(a[a7(0x14b)]<this['options'][a7(0x126)]){Log[a7(0x16b)](a7(0x11f));throw new UsageError();}}if(typeof this[a7(0xf7)][a7(0x122)]===a7(0x12a)){if(a['length']>=this[a7(0xf7)][a7(0x122)]){Log[a7(0x16b)](a7(0x11c));throw new UsageError();}}if(typeof this[a7(0xf7)]['minOptsLength']===a7(0x12a)){if(Object[a7(0xf3)](b)[a7(0x14b)]<this[a7(0xf7)]['minOptsLength']){Log[a7(0x16b)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[a7(0xf7)]['maxOptsLength']===a7(0x12a)){if(Object[a7(0xf3)](b)[a7(0x14b)]>=this['options'][a7(0x16f)]){Log['error'](a7(0xe5));throw new UsageError();}}}}this[a7(0x13e)](a,b,this[a7(0xf7)]),_prevCmd=a[0x0],yield this[a7(0xfc)][a7(0xfe)](this,a,b);}catch(h){if(a7(0xfa)!==a7(0x12e)){if(h instanceof UsageError){if(a7(0x157)===a7(0x13b))return this[a7(0xeb)]['find'](j=>j['match'](c));else Log[a7(0x109)](description,examples,usage);}else{if(h instanceof UsageErrorWithSubs)Log[a7(0x109)](description,examples,usage),Log[a7(0x141)](a7(0x12c)),this[a7(0x154)](this[a7(0xeb)]);else{if(h instanceof MustBeInProjectError)Log[a7(0x16b)](a7(0x111)),Log[a7(0x109)](description,examples,usage);else{if(h instanceof NoMeteorFoundError)Log[a7(0x16b)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[a7(0x141)](a7(0x10f)),Log[a7(0x109)](description,examples,usage);else{if(h instanceof NoMeteorAppFoundError){if(a7(0x100)!=='hiees')Log[a7(0x16b)](a7(0x16c)),Log[a7(0x109)](description,examples,usage);else{let k=f===null||g===void 0x0?void 0x0:h[a7(0x125)](':');if(k)return k=k[0x0],this[a7(0x13d)](l);else return;}}else{if(a7(0x160)==='qOzgL')throw h;else{c['error'](a7(0x11c));throw new d();}}}}}}process['exit'](0x1);}else throw c[a7(0x16b)](d);}});}[a0Q(0x154)](a){const a8=a0Q,b=new a0L({});b[a8(0xf9)]([a8(0x15a),a8(0x118),a8(0xf0)]),a[a8(0x147)]()[a8(0x13a)](c=>{const a9=a8;if(c[a9(0x167)]!==a9(0x14c)&&c[a9(0x167)]!==a9(0x163)){if(a9(0x14d)===a9(0x14d))b[a9(0xf9)]([c[a9(0x167)],c[a9(0x13c)](),c[a9(0x164)]()]);else{c[a9(0x16b)](a9(0x11f));throw new d();}}}),Log[a8(0x138)](b['toString']());}[a0Q(0x13d)](a){const aa=a0Q;return this['_commands'][aa(0xe8)](b=>b[aa(0x156)](a));}['findSubCommand'](a){const ab=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ab(0x125)](':');if(b)return a=b[0x0],this[ab(0x13d)](a);else return;}[a0Q(0x14a)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ac=a0d;if(ac(0xf8)!=='AKmpG')c[ac(0x16b)](ac(0x10d)),d['exit'](0x1);else try{let f=a[ac(0x125)](':');a=f[0x0];let g=f[0x1];g&&b['splice'](0x0,0x0,g);let h=this['findCommand'](a);if(h)yield h['run'](b,c);else{if(ac(0xff)==='hnhod')throw ac(0x10b);else b['exit'](0x1);}}catch(j){throw Log[ac(0x16b)](j);}});}[a0Q(0x164)](){const ad=a0Q;return this[ad(0xf7)]['description']||'No\x20description\x20provided.';}['usage'](){const ae=a0Q;return this['options'][ae(0x109)]||ae(0x112);}[a0Q(0xf6)](){const af=a0Q;return this[af(0xf7)][af(0xf6)]||[];}['aliases'](){const ag=a0Q;return this[ag(0xf7)][ag(0x13c)]||ag(0xf4);}}
|
|
1
|
+
function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x71;let f=c[d];return f;},a0d(a,b);}const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0xac))/0x1*(parseInt(N(0xe1))/0x2)+-parseInt(N(0x101))/0x3+parseInt(N(0x80))/0x4+parseInt(N(0x7c))/0x5*(-parseInt(N(0xaf))/0x6)+-parseInt(N(0x97))/0x7*(-parseInt(N(0xbe))/0x8)+-parseInt(N(0xfb))/0x9*(-parseInt(N(0x9c))/0xa)+-parseInt(N(0x9e))/0xb*(parseInt(N(0xd4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x514ef));const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if(O(0x9d)!==O(0x9d))c[O(0x89)](O(0x73)+d['trialExpirationDate'][O(0xa1)]('T')[0x0]);else{const e=a?function(){const P=O;if(P(0xd8)!=='ItBrS'){if(c){const f=c[P(0xe6)](b,arguments);return c=null,f;}}else c(d);}:function(){};return a=![],e;}};}()),a0a=a0b(this,function(){const Q=a0d;return a0a[Q(0xaa)]()[Q(0xcd)](Q(0xe3))[Q(0xaa)]()[Q(0xe0)](a0a)[Q(0xcd)](Q(0xe3));});a0a();var __awaiter=this&&this[a0R(0xbb)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const S=a0d;if(S(0xf1)===S(0xf1))g(f);else{if(e){const i=i[S(0xe6)](j,arguments);return k=null,i;}}});}return new(c||(c=Promise))(function(f,g){function h(k){const T=a0d;try{if('iEJMF'!==T(0x85))throw new b();else j(d[T(0x8b)](k));}catch(m){g(m);}}function i(k){const U=a0d;try{j(d['throw'](k));}catch(l){if('ffmFf'!=='ZfyNS')g(l);else{d[U(0x81)](U(0x77)+l[U(0xba)](',\x20'));throw new f();}}}function j(k){const V=a0d;k['done']?f(k[V(0x74)]):e(k[V(0x74)])[V(0xc8)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};function a0c(){const ak=['No\x20aliases','kuVzi','HIxwy','_commands','join','__awaiter','Command\x20requires\x20a\x20name','help','22784UaCyQJ','getPro','roles','qTZTI','usage','No\x20usage\x20provided.','validateMeteorInstall','addCommand\x20requires\x20a\x20Command\x20instance','match','XqMzx','then','cPXRW','exit','bbbMK','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','search','validateMakaProject','NmbNA','Local','tbCRf','No\x20description\x20provided.','domainLicense','957288ferdIN','There\x20is\x20no\x20Meteor\x20application\x20here','qpmeg','maxArgLength','TxQzs','Too\x20few\x20arguments','wvOzk','findSubCommand','Description','Alias','fsi','deploy','constructor','28086mQKqBC','Command.create\x20requires\x20some\x20options!','(((.+)+)+)+$','proCommands','VXQAE','apply','yeXQV','minOptsLength','parent','number','TOPcx','description','XbbPV','filter','function','VWYox','nNkcI','homedir','trialExpirationDate','name','existsSync','runSubCommand','yphbo','findProjectDirectory','lcOLy','call','149571uUcLSk','XtCzk','run','bright','maxOptsLength','Too\x20few\x20options','1258941iBEern','ovdoc','Too\x20many\x20arguments','ZnhcJ','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','UpzIM','Trial\x20License\x20Expires:\x20','value','lIJRu','keys','Missing\x20required\x20options\x20','aliases','Name','game','To\x20use\x20these\x20pro\x20flags,\x20\x22','5485bgRzWw','xmrgP','yESdx','BVako','2494076zuxmZh','error','findCommand','Command\x20not\x20found','To\x20use\x20this\x20command,\x20\x22','iEJMF','fZWTY','Too\x20many\x20options','jrUSd','notice','minArgLength','next','muKCT','Missing\x20required\x20option:\x20','examples','concat','proFlags','EyCjJ','push','length','sSQZY','SScCu','sort','966zZOFtv','forEach','includes','murder','trialActive','10XcfvPv','UyhfL','44sIexiW','Command\x20requires\x20a\x20handler\x20function','XBTZK','split','Sub\x20Commands:','.meteor','validateParams','validateMakaSubscription','options','tableList','win32','mustBeInMakaProject','toString','invoke','4LZJtbk','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','JVfIu','96agchwP','Invalid\x20options:\x20','NYEBy','addCommand','splice','platform','Please\x20run\x20\x22maka\x20install\x20meteor\x22'];a0c=function(){return ak;};return a0c();}import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0R(0xf2)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0R;super();if(!a){if(W(0xd6)!==W(0xc1))throw new Error(W(0x71));else{d[W(0x81)](W(0x8d)+e);throw new f();}}if(!a[W(0xf4)])throw new Error(W(0xbc));if(typeof b!=='function'){if(W(0x7f)!==W(0xb8))throw new Error(W(0x9f));else f[W(0xc2)](g,h,i),j[W(0x89)](W(0xa2)),this[W(0xa7)](this['_commands']);}this[W(0xa6)]=Object['assign']({},a),this[W(0xf4)]=this[W(0xa6)][W(0xf4)],this[W(0xb9)]=[],this['_handler']=b['bind'](this);}static['create'](a,b,c){const X=a0R;var d;if(!a)throw new Error(X(0xe2));if(typeof b!==X(0xef))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0xa6)])===null||d===void 0x0?void 0x0:d[X(0xf4)]}),c[X(0xb2)](e),e;}[a0R(0xc6)](a){const Y=a0R;let b=[this[Y(0xf4)]][Y(0x8f)](this[Y(0xa6)][Y(0x78)]||[]);return this[Y(0xe9)]&&(Y(0x75)===Y(0x7d)?e[Y(0xc2)](f,g,h):b[Y(0x92)](this[Y(0xe9)])),b['includes'](a);}['addCommand'](a){const Z=a0R;if(!(a instanceof Command))throw new Error(Z(0xc5));this[Z(0xb9)][Z(0x92)](a);}['validateMakaProject'](){const a0=a0R,a=this[a0(0xde)][a0(0xf8)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const a1=a0R;let a=a0I['join'](homeDir,a1(0xa3));const b=process[a1(0xb4)]===a1(0xa8);if(b){a=a0I['join'](homeDir,'AppData',a1(0xd0),a1(0xa3));if(!a0K['existsSync'](a))return![];}else{if(a1(0xeb)===a1(0x7e))throw a1(0x7b)+(d===null||e===void 0x0?void 0x0:f[a1(0xba)](',\x20'))+a1(0xad);else{if(!a0K[a1(0xf5)](a))return![];}}return!![];}[a0R(0xa5)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;try{const c=this['findCommand'](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c[a2(0xf4)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c[a2(0xe9)])||'',g=c===null||c===void 0x0?void 0x0:c[a2(0xa6)];if(g['disableAuthCheck']){if(a2(0x104)!==a2(0xf9))return;else{if(e[a2(0x76)](f)[a2(0x93)]>=this[a2(0xa6)][a2(0xff)]){i[a2(0x81)](a2(0x87));throw new j();}}}const h=a[0x0],i=Object[a2(0x76)](b),j=yield this['fsi']['getPro']();if(!j){if(a2(0xb1)!==a2(0xf0))Log[a2(0x81)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[a2(0xca)](0x1);else{const p=g?function(){if(p){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}const k=(j===null||j===void 0x0?void 0x0:j[a2(0xe4)][a2(0x99)](d))||(j===null||j===void 0x0?void 0x0:j[a2(0xe4)]['includes'](f)),l=(j===null||j===void 0x0?void 0x0:j[a2(0xc0)][a2(0x99)]('singleLicense'))||(j===null||j===void 0x0?void 0x0:j['roles']['includes'](a2(0xd3))),m=!l&&!(j===null||j===void 0x0?void 0x0:j[a2(0x9b)]);if(k&&m)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0xad);if(i[a2(0x93)]>0x0){if('fZWTY'!==a2(0x86)){if(i[a2(0x93)]===0x0){q[a2(0x81)](a2(0x77)+r[a2(0xba)](',\x20'));throw new s();}m[a2(0x98)](z=>{const a3=a2;if(!t['includes'](z)){w[a3(0x81)](a3(0x8d)+z);throw new x();}});}else{const q=j===null||j===void 0x0?void 0x0:j['proFlags'][a2(0xee)](r=>i['includes'](r));if(q&&q[a2(0x93)]>0x0&&m){if(a2(0xda)===a2(0xda))throw a2(0x7b)+(q===null||q===void 0x0?void 0x0:q[a2(0xba)](',\x20'))+a2(0xad);else b['push'](this['parent']);}}}if(h===a2(0xdf)){const s=yield this['fsi'][a2(0xbf)](),t=s===null||s===void 0x0?void 0x0:s[a2(0xe4)][a2(0x99)](a[0x0]+'\x20'+a[0x1]);if(t&&m){if('yeXQV'===a2(0xe7))throw a2(0x84)+a[0x0]+a2(0xad);else f[a2(0x92)](a2(0xbd)),g['forEach'](v=>{const a4=a2;if(!k[a4(0x99)](v)){n[a4(0x81)]('Invalid\x20options:\x20'+v);throw new o();}});}}if((j===null||j===void 0x0?void 0x0:j[a2(0x9b)])&&!l){if(a2(0x91)===a2(0x91))Log[a2(0x89)](a2(0x73)+j[a2(0xf3)][a2(0xa1)]('T')[0x0]);else{if(!(e instanceof f))throw new i(a2(0xc5));this[a2(0xb9)][a2(0x92)](h);}}}}catch(w){throw w;}});}['validateParams'](a,b,c){const a5=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a5(0x76)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a5(0x93)])>0x0){if('QLIcx'===a5(0xcf)){if(!f[a5(0x99)](g)){k[a5(0x81)](a5(0xb0)+l);throw new m();}}else{if(g[a5(0x93)]===0x0){if(a5(0x88)===a5(0xfc))throw new b('Command.create\x20requires\x20a\x20handler\x20function!');else{Log[a5(0x81)]('Missing\x20required\x20options\x20'+requiredOpts[a5(0xba)](',\x20'));throw new UsageError();}}requiredOpts[a5(0x98)](j=>{const a6=a5;if(!g[a6(0x99)](j)){Log['error'](a6(0x8d)+j);throw new UsageError();}});}}validOpts=validOpts[a5(0x8f)](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0){if(a5(0xa0)!==a5(0xd1))validOpts[a5(0x92)](a5(0xbd)),g[a5(0x98)](j=>{const a7=a5;if(!validOpts[a7(0x99)](j)){Log['error'](a7(0xb0)+j);throw new UsageError();}});else{if(e['keys'](f)[a5(0x93)]<this['options']['minOptsLength']){i[a5(0x81)](a5(0x100));throw new j();}}}}[a0R(0xfd)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if(a8(0xed)===a8(0xed))try{a=a||[],b=b||{};try{yield this[a8(0xa5)](a,b);}catch(c){Log['error'](c),process[a8(0xca)](0x0);}yield this[a8(0xab)](a,b);}catch(d){process[a8(0xca)](0x1);}else{if(d['length']<this[a8(0xa6)]['minArgLength']){g[a8(0x81)](a8(0xd9));throw new h();}}});}['invoke'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d,{usage:usage='',description:description='',examples:examples=[],isRoot:isRoot=![]}=this[a9(0xa6)];try{if(a9(0x102)!==a9(0x102)){if(d[a9(0x93)]>=this['options'][a9(0xd7)]){g['error'](a9(0x103));throw new h();}}else{if(!isRoot){if(a9(0xe5)===a9(0xe5)){const d=(a[0x0]===_prevCmd||a[a9(0x93)]===0x0)&&this['_commands']['length']>=0x0;if(d&&b['help']){if(this['_commands'][a9(0x93)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b['help']){if(a9(0xf7)!==a9(0x8c)){if(this['options'][a9(0xa9)]){const f=this[a9(0xce)]();if(!f)throw new MustBeInProjectError();}if(this[a9(0xa6)]['mustHaveMeteorInstalled']){const g=this[a9(0xc4)]();if(!g){if('iJQSL'!=='ucxMy')throw new NoMeteorFoundError();else c(d);}}if(typeof this[a9(0xa6)][a9(0x8a)]===a9(0xea)){if(a9(0x95)!==a9(0x95)){const j=this['validateMakaProject']();if(!j)throw new c();}else{if(a[a9(0x93)]<this[a9(0xa6)][a9(0x8a)]){Log['error'](a9(0xd9));throw new UsageError();}}}if(typeof this[a9(0xa6)][a9(0xd7)]===a9(0xea)){if(a[a9(0x93)]>=this['options'][a9(0xd7)]){Log[a9(0x81)](a9(0x103));throw new UsageError();}}if(typeof this[a9(0xa6)][a9(0xe8)]===a9(0xea)){if(Object[a9(0x76)](b)[a9(0x93)]<this[a9(0xa6)][a9(0xe8)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[a9(0xa6)][a9(0xff)]==='number'){if(Object[a9(0x76)](b)[a9(0x93)]>=this['options']['maxOptsLength']){if('JVfIu'!==a9(0xae))throw new b(a9(0xc5));else{Log[a9(0x81)](a9(0x87));throw new UsageError();}}}}else{const l=f===null||g===void 0x0?void 0x0:h[a9(0x90)][a9(0xee)](m=>l[a9(0x99)](m));if(l&&l[a9(0x93)]>0x0&&j)throw a9(0x7b)+(l===null||l===void 0x0?void 0x0:l[a9(0xba)](',\x20'))+a9(0xad);}}}else c(d);}this[a9(0xa4)](a,b,this[a9(0xa6)]),_prevCmd=a[0x0],yield this['_handler'][a9(0xfa)](this,a,b);}}catch(m){if('dzqNB'!=='dzqNB'){const o=new d({});o[a9(0x92)]([a9(0x79),'Alias',a9(0xdc)]),m[a9(0x96)]()[a9(0x98)](p=>{const aa=a9;p[aa(0xf4)]!=='murder'&&p[aa(0xf4)]!=='game'&&o[aa(0x92)]([p[aa(0xf4)],p['aliases'](),p[aa(0xec)]()]);}),f[a9(0xfe)](o[a9(0xaa)]());}else{if(m instanceof UsageError)Log[a9(0xc2)](description,examples,usage);else{if(m instanceof UsageErrorWithSubs){if(a9(0xc9)===a9(0xc9))Log[a9(0xc2)](description,examples,usage),Log[a9(0x89)]('Sub\x20Commands:'),this['tableList'](this[a9(0xb9)]);else throw b;}else{if(m instanceof MustBeInProjectError)Log[a9(0x81)](a9(0xcc)),Log['usage'](description,examples,usage);else{if(m instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[a9(0x89)](a9(0xb5)),Log[a9(0xc2)](description,examples,usage);else{if(m instanceof NoMeteorAppFoundError)Log[a9(0x81)](a9(0xd5)),Log[a9(0xc2)](description,examples,usage);else{if('SYuXG'===a9(0xc7))return![];else throw m;}}}}}process[a9(0xca)](0x1);}}});}['tableList'](a){const ab=a0R,b=new a0L({});b[ab(0x92)]([ab(0x79),ab(0xdd),ab(0xdc)]),a[ab(0x96)]()[ab(0x98)](c=>{const ac=ab;if(c['name']!=='murder'&&c[ac(0xf4)]!==ac(0x7a)){if('wtGtm'!==ac(0xcb))b[ac(0x92)]([c[ac(0xf4)],c[ac(0x78)](),c[ac(0xec)]()]);else{if(!f['includes'](g)){k[ac(0x81)](ac(0x8d)+l);throw new m();}}}}),Log[ab(0xfe)](b[ab(0xaa)]());}[a0R(0x82)](a){const ad=a0R;return this[ad(0xb9)]['find'](b=>b[ad(0xc6)](a));}[a0R(0xdb)](a){const ae=a0R;let b=a===null||a===void 0x0?void 0x0:a[ae(0xa1)](':');if(b)return a=b[0x0],this[ae(0x82)](a);else return;}[a0R(0xf6)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const af=a0d;try{let d=a[af(0xa1)](':');a=d[0x0];let f=d[0x1];f&&b[af(0xb3)](0x0,0x0,f);let g=this[af(0x82)](a);if(g)af(0x72)!==af(0xb7)?yield g[af(0xfd)](b,c):g[af(0xf4)]!==af(0x9a)&&h[af(0xf4)]!=='game'&&m['push']([n[af(0xf4)],o['aliases'](),p[af(0xec)]()]);else{if(af(0x94)!==af(0x94))return d=e[0x0],this['findCommand'](f);else throw af(0x83);}}catch(j){throw Log['error'](j);}});}[a0R(0xec)](){const ag=a0R;return this[ag(0xa6)]['description']||ag(0xd2);}['usage'](){const ah=a0R;return this['options'][ah(0xc2)]||ah(0xc3);}[a0R(0x8e)](){const ai=a0R;return this[ai(0xa6)][ai(0x8e)]||[];}[a0R(0x78)](){const aj=a0R;return this[aj(0xa6)][aj(0x78)]||aj(0xb6);}}
|
package/dist/commands/_index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0xb8))/0x1*(-parseInt(u(0xbc))/0x2)+-parseInt(u(0xc6))/0x3*(-parseInt(u(0xbe))/0x4)+parseInt(u(0xc5))/0x5*(-parseInt(u(0xc1))/0x6)+parseInt(u(0xc3))/0x7*(-parseInt(u(0xba))/0x8)+parseInt(u(0xb7))/0x9*(-parseInt(u(0xc0))/0xa)+parseInt(u(0xc8))/0xb*(parseInt(u(0xb9))/0xc)+-parseInt(u(0xbf))/0xd*(-parseInt(u(0xc7))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xb848a));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0xc2)]()[w(0xb6)](w(0xbd))[w(0xc2)]()[w(0xc4)](a1a)[w(0xb6)](w(0xbd));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xb6;var f=c[d];return f;},a1d(a,b);}function a1c(){var x=['307668FtLuVV','26qcnhHE','1241720CiIzHG','499764srkVJU','toString','97377xNSDrz','constructor','85XFKdEU','36pwzsUr','20005412QtrzbZ','11gPmOzd','search','108GBDrEV','593CMRhoj','14828472oxSDRO','632uKJPRd','apply','866NOZKVX','(((.+)+)+)+$'];a1c=function(){return x;};return a1c();}import'./murder.js';import'./proxy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(
|
|
1
|
+
(function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0x171))/0x1+-parseInt(u(0x170))/0x2*(parseInt(u(0x16e))/0x3)+-parseInt(u(0x16c))/0x4+-parseInt(u(0x16f))/0x5+parseInt(u(0x175))/0x6+-parseInt(u(0x176))/0x7+parseInt(u(0x16b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x7c3f5));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a['toString']()['search'](w(0x174))[w(0x16d)]()[w(0x172)](a2a)['search']('(((.+)+)+)+$');});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a2c(){var x=['335360wnjeBr','782254KmKYtE','constructor','apply','(((.+)+)+)+$','1151082zjtoec','1031646AvTfmY','11295888szftsF','3795204tSFkFb','toString','6wJRLsD','2228155UnZsOp'];a2c=function(){return x;};return a2c();}function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x16b;var f=c[d];return f;},a2d(a,b);}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xea;let f=c[d];return f;},a3d(a,b);}const a3z=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0xf8))/0x1*(parseInt(w(0xf9))/0x2)+parseInt(w(0xf3))/0x3+parseInt(w(0x103))/0x4*(parseInt(w(0x10b))/0x5)+parseInt(w(0xfb))/0x6*(parseInt(w(0x10c))/0x7)+parseInt(w(0xef))/0x8+parseInt(w(0xed))/0x9*(parseInt(w(0x104))/0xa)+-parseInt(w(0x109))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x82a13));const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0xec)===x(0xf1))c(d);else{const e=a?function(){if(c){const f=c['apply'](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a3a=a3b(this,function(){const y=a3d;return a3a['toString']()['search']('(((.+)+)+)+$')['toString']()[y(0xf7)](a3a)[y(0xfe)](y(0xf5));});a3a();var __awaiter=this&&this[a3z(0xfa)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a3d;if(A(0xf4)===A(0xf4))g(f);else{let k=d[0x0],l=this[A(0x102)](k);l&&this[A(0xf2)](k,g,h);}});}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const B=a3d;try{j(d[B(0xee)](k));}catch(l){g(l);}}function i(k){const C=a3d;try{if(C(0xfd)!==C(0xfd))try{i(j[C(0xee)](k));}catch(m){m(m);}else j(d[C(0xf0)](k));}catch(m){g(m);}}function j(k){const D=a3d;k[D(0xfc)]?f(k[D(0x10a)]):e(k[D(0x10a)])[D(0x10d)](h,i);}j((d=d[E(0x108)](a,b||[]))[E(0xee)]());});};function a3c(){const G=['TYgAZ','search','error','exit','maka\x20aws\x20<command>','findSubCommand','4lspKai','460630kCyCXS','woUkK','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','ZRaUB','apply','13607407AmEZfw','value','1656085jBvKZd','2716EmZRoP','then','fcVVF','create','yPpBM','18DBwmzY','next','3341408JANSvW','throw','kTHbW','runSubCommand','2449434CezZmr','RoLfj','(((.+)+)+)+$','aws','constructor','9aInQcv','114386RwYAXL','__awaiter','9732BFaXLW','done'];a3c=function(){return G;};return a3c();}import{Command}from'../../command.js';const AWSCommand=Command[a3z(0xeb)]({'name':a3z(0xf6),'usage':a3z(0x101),'minArgLength':0x1,'description':a3z(0x106),'examples':['maka\x20aws:describe-instance','maka\x20aws:di']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;try{let c=a[0x0],d=this[F(0x102)](c);d&&('NSxzd'===F(0xea)?c(d):this['runSubCommand'](c,a,b));}catch(g){F(0x107)!==F(0x105)?(console[F(0xff)](g),process[F(0x100)](0x0)):d(g[F(0xf0)](f));}});});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4ar=a4d;(function(a,b){const ao=a4d,c=a();while(!![]){try{const d=-parseInt(ao(0xa1))/0x1+parseInt(ao(0xfd))/0x2+parseInt(ao(0xc1))/0x3*(-parseInt(ao(0xa2))/0x4)+-parseInt(ao(0xf3))/0x5+parseInt(ao(0xe0))/0x6+parseInt(ao(0x91))/0x7*(parseInt(ao(0xcd))/0x8)+-parseInt(ao(0xc5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x44171));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ap=a4d;if('RxWqk'==='RxWqk'){if(c){if(ap(0xcf)!==ap(0xcf))e[ap(0xdd)](ap(0xc2)+f['id']+'\x20AMIID:\x20'+g[ap(0xfa)]+'\x20DESCRIPTION:\x20'+h[ap(0xea)]);else{const f=c[ap(0x92)](b,arguments);return c=null,f;}}}else c['error'](d);}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const aq=a4d;return a4a['toString']()[aq(0xd5)](aq(0x89))['toString']()[aq(0xf8)](a4a)[aq(0xd5)]('(((.+)+)+)+$');});function a4c(){const aJ=['QxVjX','LHjPb','date','confirm','Setting\x20AMI\x20ID\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','UScRw','304570lirwAg','80tTlVok','Instace\x20Type:\x20','vuTaA','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','split','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','sort','rLLSU','notice','subnetId','EIvpY','XSTKY','fWZRL','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','EC2\x20Name:\x20[','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Security\x20Group:\x20','VFITV','gJTEp','name','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getTime','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','next','bright','ESjuP','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','error','buZgY','CiChT','3297SnuiIQ','ID:\x20','number','Subnet:\x20','934524lluwOC','help','Setting\x20Subnet\x20ID\x20to\x20','Tgbso','User\x20Data:','No\x20instance\x20has\x20been\x20created.','1:1','Key-Pair:\x20','40PzFyxF','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','vzZfQ','ec2describeKeys','value','__awaiter','createKeyPair','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','search','amazon','\x20DESCRIPTION:\x20','Creating\x20user\x20data\x20file\x20in\x20','AXPqm','forEach','push','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','log','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','2504376MnxYVP','koHqt','build\x20on\x20','DyxND','VqrYa','cidr','then','getConfigFromShorthand','YWlBi','Setting\x20SG\x20ID\x20to:\x20','desc','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','success','t3.micro','lxjbT','Security\x20Group\x20Name:\x20[','hJwRx','ec2createSG','1577285JblEAr','\x20:\x20','Setting\x20the\x20key-pair\x20to:\x20','\x20AMIID:\x20','string','constructor','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','amiId','create','env','210778UkrLxM','\x20CIDR:\x20','join','iaWaW','RREib','maka\x20aws:create-instance','Instance\x20Count:\x20','zZKTM','parse','**\x20Available\x20Subnets\x20**','toString','create-instance','Please\x20choose\x20a\x20key\x20to\x20use:\x20','(((.+)+)+)+$','getProjectConfig','Desc','**\x20Available\x20key-pairs\x20**','tHsPX','WzuNz','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','fsi','702737ExhUkR','apply','createFile','sgId','nedOu','getConfigPath','ask','}]\x22','chooseVPC'];a4c=function(){return aJ;};return a4c();}a4a();var __awaiter=this&&this[a4ar(0xd2)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const as=a4d;'YWlBi'!==as(0xe8)?i['id']===j(k)&&(q=r[as(0xfa)],s[as(0xed)](as(0x9e)+t+as(0xf4)+u[as(0xea)])):g(f);});}return new(c||(c=Promise))(function(f,g){const aw=a4d;function h(k){const at=a4d;try{at(0x8e)!==at(0x100)?j(d[at(0xba)](k)):(d[at(0xbe)](e),f['exit'](0x0));}catch(m){g(m);}}function i(k){const au=a4d;try{au(0xef)!==au(0xad)?j(d['throw'](k)):b[au(0xab)](au(0xa5));}catch(m){g(m);}}function j(k){const av=a4d;k['done']?f(k['value']):e(k[av(0xd1)])[av(0xe6)](h,i);}j((d=d[aw(0x92)](a,b||[]))['next']());});};import a4F from'./aws.command.js';import{execSync}from'child_process';import a4G from'path';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x88;let f=c[d];return f;},a4d(a,b);}import a4H from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4ar(0xfb)]({'name':a4ar(0x108),'aliases':['ci'],'usage':a4ar(0x102),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ar(0xfc)],'validOpts':[a4ar(0xc6)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ax=a4d;try{if('LHjPb'!==ax(0x9b))throw b[ax(0xbe)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else{const d=this[ax(0x90)][ax(0x8a)](),f=new AWS(),{appName:g}=d,h=this['fsi'][ax(0xe7)](b[ax(0xfc)]),i=this[ax(0x90)][ax(0x96)](h);let j=g+'-'+h,k=(yield Actions[ax(0x97)](ax(0xb1)+j+']\x20'))||j,l='',m='',n='',o='',p='',q='',r='';const s=yield Actions[ax(0x9d)](ax(0xf9));let t='';s&&(ax(0x9a)===ax(0x9a)?t=yield f[ax(0xd3)]({'env':h}):(e['log'](f),g[ax(0xbe)](h)));try{Log[ax(0xab)](ax(0x8c));let z=t?t:k,A=f[ax(0xd0)]({'suggestion':z}),B=(yield Actions[ax(0x97)](ax(0x88)))||'-1';if(parseInt(B)<0x0){Log[ax(0xbe)](ax(0xb9)),Log[ax(0xab)](ax(0xca));return;}A===null||A===void 0x0?void 0x0:A[ax(0xda)](function(C){const ay=ax;if(parseInt(B)===C['id']){if('wOZCo'!=='wOZCo'){let E=e[ay(0x8b)]['split'](ay(0xe2))[0x1];f[ay(0xdb)]({'amiId':g['ID'],'desc':h['Desc'],'date':E});}else l=C[ay(0xb6)],Log[ay(0xed)](ay(0xf5)+l);}});}catch(C){Log['error'](C);}m=yield f[ax(0x99)]();let u=yield Actions[ax(0x9d)](ax(0xb2)),v;if(u){if(ax(0x101)!=='FIZym'){let D=m===''?f[ax(0x99)]():m;v=(yield Actions['ask'](ax(0xf0)+k+']'))||k;let E=(yield Actions[ax(0x97)](ax(0xbd)))||'22,80,443',F=E[ax(0xa6)](',');f[ax(0xf2)]({'description':'\x22Web\x20App\x22','name':v,'vpcId':D,'sgPorts':F});}else c=d;}v=k;try{if(ax(0xaa)===ax(0xaa)){let H=yield f['listSecurityGroups'](v),I=(yield Actions[ax(0x97)](ax(0xdf)))||'0';H['forEach'](function(J){const az=ax;J['id']===parseInt(I)&&(n=J[az(0x94)],Log[az(0xed)](az(0xe9)+n+'\x0a'));});if(n===''){if(ax(0xe1)!==ax(0xe1))c(d);else throw Log[ax(0xbe)](ax(0x9f));}}else h['id']===i(j)&&(o=p[ax(0x94)],q[ax(0xed)]('Setting\x20SG\x20ID\x20to:\x20'+r+'\x0a'));}catch(L){Log['error'](L);}try{let M=0x7e6;Log[ax(0xab)]('**\x20Available\x20AMIs\x20**');let N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ax(0xa8))[ax(0x107)](),O=JSON[ax(0x105)](N),P=[],Q=[];O['forEach'](function(S,T){const aA=ax;if(aA(0xe4)==='rjjpH')d(e[aA(0xba)](f));else{if(S['alias']===aA(0xd6)){let V=S[aA(0x8b)][aA(0xa6)](aA(0xe2))[0x1];P[aA(0xdb)]({'amiId':S['ID'],'desc':S[aA(0x8b)],'date':V});}}}),P[ax(0xa9)](function(S,T){const aB=ax;return new Date(T[aB(0x9c)])[aB(0xb8)]()-new Date(S[aB(0x9c)])[aB(0xb8)]();}),P[ax(0xda)](function(S,T){const aC=ax;'MhqKz'===aC(0x8d)?h(i)===j['id']&&(o=p[aC(0xb6)],q[aC(0xed)](aC(0xf5)+r)):Q['push']({'id':T,'amiId':S['amiId'],'desc':S[aC(0xea)]});}),Q[ax(0xda)](function(S){const aD=ax;console[aD(0xdd)](aD(0xc2)+S['id']+aD(0xf6)+S[aD(0xfa)]+aD(0xd7)+S[aD(0xea)]);});let R=(yield Actions[ax(0x97)](ax(0xa7)))||'0';Q[ax(0xda)](function(S){const aE=ax;S['id']===parseInt(R)&&(aE(0xaf)!==aE(0xa0)?(o=S[aE(0xfa)],Log[aE(0xed)]('Setting\x20AMI\x20ID\x20to\x20'+o+aE(0xf4)+S['desc'])):c['error'](d));});if(o==='')throw Log[ax(0xbe)](ax(0x9f));}catch(S){ax(0xb5)===ax(0xb5)?Log[ax(0xbe)](S):h['done']?i(j[ax(0xd1)]):k(l[ax(0xd1)])['then'](m,n);}try{Log['notice'](ax(0x106));let U=execSync(ax(0xde))[ax(0x107)](),V=JSON[ax(0x105)](U),W=[];V[ax(0xda)](function(Y,Z){const aF=ax;W[aF(0xdb)]({'id':Z,'cidr':Y['cider'],'az':Y['az'],'subnetId':Y['subnetId']});}),W[ax(0xda)](function(Y){const aG=ax;console[aG(0xdd)](aG(0xc2)+Y['id']+'\x20CIDR:\x20'+Y[aG(0xe5)]+'\x20AZONE:\x20'+Y['az']+'\x20SUBNETID:\x20'+Y[aG(0xac)]);});let X=(yield Actions['ask'](ax(0xb7)))||'0';W[ax(0xda)](function(Y){const aH=ax;aH(0x95)===aH(0x95)?Y['id']===parseInt(X)&&(q=Y[aH(0xac)],Log['success'](aH(0xc7)+q)):(c[aH(0xed)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),d['bright'](aH(0xb0)));});if(q===''){if('HCQGn'!==ax(0xc0))throw Log[ax(0xbe)](ax(0x9f));else c[ax(0xbe)](d);}}catch(Z){if(ax(0xe3)!=='DyxND')throw b[ax(0xbe)](ax(0x9f));else Log[ax(0xbe)](Z);}let w=ax(0xcb);try{if('hJwRx'===ax(0xf1)){let a1=(yield Actions[ax(0x97)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||'1:1',a2=a1[ax(0xa6)](':')[0x0],a3=a1[ax(0xa6)](':')[0x1];typeof parseInt(a2)===ax(0xc3)&&typeof parseInt(a3)==='number'&&(w=[a2,a3]['join'](':'),Log[ax(0xed)](ax(0xec)+w));}else try{i(j[ax(0xba)](k));}catch(a5){m(a5);}}catch(a5){ax(0x104)!=='zZKTM'?f[ax(0xdd)](ax(0xc2)+g['id']+ax(0xfe)+h['cidr']+'\x20AZONE:\x20'+i['az']+'\x20SUBNETID:\x20'+j[ax(0xac)]):Log['error'](a5);}try{let a7=(yield Actions[ax(0x97)](ax(0xeb)))||ax(0xee);typeof a7===ax(0xf7)&&(p=a7);}catch(a8){if(ax(0xc8)==='PJqMv'){const aa=g?function(){const aI=ax;if(aa){const ab=q[aI(0x92)](r,arguments);return s=null,ab;}}:function(){};return l=![],aa;}else Log['error'](a8);}let x;try{if(ax(0xbf)===ax(0xbf)){let aa=yield Actions[ax(0x9d)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);if(aa){if(ax(0xae)===ax(0xae)){x=a4G[ax(0xff)](i,'user-data'),Log[ax(0xab)](ax(0xd8)+x),yield this['fsi'][ax(0x93)]({'filePath':x,'data':''});let ab=yield Actions[ax(0x9d)](ax(0xdc));}else throw b[ax(0xbe)](ax(0x9f));}}else e=f[ax(0xac)],g['success'](ax(0xc7)+h);}catch(ae){Log[ax(0xbe)](ae);}try{if(ax(0xb4)===ax(0xa4))h['id']===i(j)&&(o=p[ax(0xac)],q[ax(0xed)](ax(0xc7)+r));else{let ag=JSON['parse'](execSync(ax(0xd4)+q+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')['toString']())[0x0]['subnet'];Log['notice']('ImageID:'+o),Log[ax(0xab)](ax(0x103)+w),Log[ax(0xab)](ax(0xa3)+p),Log[ax(0xab)](ax(0xcc)+l),Log[ax(0xab)](ax(0xb3)+n),Log[ax(0xab)](ax(0xc4)+ag);if(x){Log[ax(0xab)](ax(0xc9)+x);const ai=yield a4H['readFileSync'](x);Log[ax(0xab)](ai);}let ah=yield Actions[ax(0x9d)](ax(0xce));if(ah){if('AXPqm'===ax(0xd9)){let aj=f['ec2create'](Object['assign']({'imageId':o,'count':w,'type':p,'key':l,'sgIds':n,'subnet':q,'tags':ax(0x8f)+h+'},\x20{Key=Name,Value='+k+ax(0x98)},x&&{'userData':x}));aj&&(Log[ax(0xed)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ax(0xbb)](ax(0xb0)));}else{if(e){const al=i[ax(0x92)](j,arguments);return k=null,al;}}}else Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}}catch(al){console[ax(0xdd)](al),Log[ax(0xbe)](al);}}}catch(am){'ESjuP'!==ax(0xbc)?c[ax(0xbe)](d):(console[ax(0xbe)](am),process['exit'](0x0));}});},a4F);
|
|
1
|
+
const a4az=a4d;(function(a,b){const ar=a4d,c=a();while(!![]){try{const d=parseInt(ar(0xdc))/0x1*(-parseInt(ar(0xcf))/0x2)+-parseInt(ar(0xce))/0x3+parseInt(ar(0xf6))/0x4*(parseInt(ar(0x140))/0x5)+-parseInt(ar(0xf9))/0x6+-parseInt(ar(0xe8))/0x7*(-parseInt(ar(0x126))/0x8)+-parseInt(ar(0xc6))/0x9*(parseInt(ar(0x129))/0xa)+parseInt(ar(0xd3))/0xb*(parseInt(ar(0x121))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x9892a));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const as=a4d;if(as(0xc1)===as(0x11a))e[as(0x104)](as(0x123)+f['id']+as(0x12d)+g[as(0x10d)]+as(0xf8)+h[as(0x142)]);else{if(c){if(as(0x109)===as(0x109)){const f=c['apply'](b,arguments);return c=null,f;}else c[as(0xc7)](d);}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const at=a4d;return a4a['toString']()[at(0xf1)]('(((.+)+)+)+$')[at(0xcb)]()[at(0x103)](a4a)['search']('(((.+)+)+)+$');});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xb7;let f=c[d];return f;},a4d(a,b);}function a4c(){const aM=['error','ask','listSecurityGroups','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','toString','\x20AZONE:\x20','create-instance','3432168eFYXpv','236VHsHbq','vlNuP','exit','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','31609259XfnZML','LZgNx','SrlQW','fsi','WKAdP','getConfigFromShorthand','PXASk','EUBHI','uVMZr','176fTqmIX','string','ZPydN','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','push','user-data','ec2createSG','zVrrE','notice','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Security\x20Group\x20Name:\x20[','apply','83489ZxSraU','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','throw','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','then','alias','aYOig','cidr','split','search','ec2create','YDdTA','bsqNP','build\x20on\x20','15292YSGGtM','create','\x20DESCRIPTION:\x20','5625888cyLzBM','assign','ZUbBf','Would\x20you\x20like\x20to\x20include\x20user\x20data?','success','bright','tGgxW','forEach','join','\x20:\x20','constructor','log','wfUxz','LhHmh','Setting\x20Subnet\x20ID\x20to\x20','Instance\x20Count:\x20','TsPrC','maka\x20aws:create-instance','JBgGr','DpSNU','amiId','name','oAFef','Please\x20choose\x20a\x20key\x20to\x20use:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','subnetId','getTime','LSBDb','createFile','Security\x20Group:\x20','\x22Web\x20App\x22','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Desc','dfdcu','date','Key-Pair:\x20','NspVi','number','Ptspa','User\x20Data:','12qeCQeP','**\x20Available\x20Subnets\x20**','ID:\x20','(((.+)+)+)+$','Setting\x20AMI\x20ID\x20to\x20','152azjuLq','ixzWe','amazon','1123570fYLIwY','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','GkLfQ','ec2describeKeys','\x20AMIID:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Setting\x20SG\x20ID\x20to:\x20','1:1','AWstP','Setting\x20the\x20key-pair\x20to:\x20','t3.micro','parse','WqkXn','getConfigPath','EC2\x20Name:\x20[','No\x20instance\x20has\x20been\x20created.','HWKVk','getProjectConfig','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','help','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','fvxjf','ApOPT','835bdvxNj','glfCb','desc','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ImageID:','done','ayFWD','confirm','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','env','chooseVPC','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','NFCVc','**\x20Available\x20key-pairs\x20**','qzbhZ','JIHgX','Instace\x20Type:\x20','sgId','value','next','81AFaKQM'];a4c=function(){return aM;};return a4c();}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const au=a4d;au(0xee)===au(0xd4)?c[au(0xc7)](d):g(f);});}return new(c||(c=Promise))(function(f,g){const ay=a4d;function h(k){const av=a4d;if(av(0x106)==='XhAcm'){let m=e['Desc'][av(0xf0)](av(0xf5))[0x1];f[av(0xe0)]({'amiId':g['ID'],'desc':h[av(0x119)],'date':m});}else try{j(d['next'](k));}catch(m){g(m);}}function i(k){const aw=a4d;if(aw(0x127)!=='ixzWe')try{i(j[aw(0xc5)](k));}catch(m){m(m);}else try{j(d[aw(0xea)](k));}catch(m){g(m);}}function j(k){const ax=a4d;k[ax(0xb7)]?f(k[ax(0xc4)]):e(k['value'])[ax(0xec)](h,i);}j((d=d[ay(0xe7)](a,b||[]))[ay(0xc5)]());});};import a4F from'./aws.command.js';import{execSync}from'child_process';import a4G from'path';import a4H from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4az(0xf7)]({'name':a4az(0xcd),'aliases':['ci'],'usage':a4az(0x10a),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4az(0x13c)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aA=a4d;if(aA(0x13f)!==aA(0xff))try{if(aA(0x114)!=='LSBDb')f=g['amiId'],h[aA(0xfd)]('Setting\x20AMI\x20ID\x20to\x20'+i+aA(0x102)+j[aA(0x142)]);else{const d=this[aA(0xd6)][aA(0x13a)](),f=new AWS(),{appName:g}=d,h=this[aA(0xd6)][aA(0xd8)](b[aA(0xbb)]),i=this['fsi'][aA(0x136)](h);let j=g+'-'+h,k=(yield Actions[aA(0xc8)](aA(0x137)+j+']\x20'))||j,l='',m='',n='',o='',p='',q='',r='';const s=yield Actions[aA(0xb9)](aA(0x118));let t='';s&&(aA(0x139)!==aA(0xb8)?t=yield f['createKeyPair']({'env':h}):d(e[aA(0xc5)](f)));try{Log[aA(0xe4)](aA(0xbf));let z=t?t:k,A=f[aA(0x12c)]({'suggestion':z}),B=(yield Actions[aA(0xc8)](aA(0x110)))||'-1';if(parseInt(B)<0x0){if(aA(0x105)!==aA(0xdb)){Log['error'](aA(0xe5)),Log[aA(0xe4)](aA(0x138));return;}else e=f['name'],g[aA(0xfd)](aA(0x132)+h);}A===null||A===void 0x0?void 0x0:A['forEach'](function(D){const aB=aA;parseInt(B)===D['id']&&(l=D[aB(0x10e)],Log[aB(0xfd)](aB(0x132)+l));});}catch(D){Log[aA(0xc7)](D);}m=yield f[aA(0xbc)]();let u=yield Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?'),v;if(u){let E=m===''?f[aA(0xbc)]():m;v=(yield Actions[aA(0xc8)](aA(0xe6)+k+']'))||k;let F=(yield Actions[aA(0xc8)](aA(0xe9)))||'22,80,443',G=F[aA(0xf0)](',');f[aA(0xe2)]({'description':aA(0x117),'name':v,'vpcId':E,'sgPorts':G});}v=k;try{if('XNNGM'!==aA(0x10f)){let H=yield f[aA(0xc9)](v),I=(yield Actions[aA(0xc8)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';H[aA(0x100)](function(J){const aC=aA;J['id']===parseInt(I)&&(n=J[aC(0xc3)],Log[aC(0xfd)](aC(0x12f)+n+'\x0a'));});if(n==='')throw Log['error'](aA(0x111));}else h(i)===j['id']&&(o=p['name'],q[aA(0xfd)](aA(0x132)+r));}catch(K){if(aA(0x141)===aA(0xde)){c[aA(0xc7)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),d[aA(0xe4)](aA(0x138));return;}else Log[aA(0xc7)](K);}try{if(aA(0x12b)===aA(0x12b)){let M=0x7e6;Log['notice']('**\x20Available\x20AMIs\x20**');let N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+aA(0xdf))['toString'](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S,T){const aD=aA;if(S[aD(0xed)]===aD(0x128)){if(aD(0xd0)!==aD(0xd0))c[aD(0xc7)](d);else{let V=S[aD(0x119)][aD(0xf0)]('build\x20on\x20')[0x1];P[aD(0xe0)]({'amiId':S['ID'],'desc':S['Desc'],'date':V});}}}),P['sort'](function(S,T){const aE=aA;if(aE(0xd9)==='PXASk')return new Date(T[aE(0x11b)])[aE(0x113)]()-new Date(S[aE(0x11b)])[aE(0x113)]();else h[aE(0xb7)]?i(j['value']):k(l[aE(0xc4)])[aE(0xec)](m,n);}),P[aA(0x100)](function(S,T){const aF=aA;Q[aF(0xe0)]({'id':T,'amiId':S[aF(0x10d)],'desc':S[aF(0x142)]});}),Q[aA(0x100)](function(S){const aG=aA;console[aG(0x104)]('ID:\x20'+S['id']+aG(0x12d)+S['amiId']+'\x20DESCRIPTION:\x20'+S[aG(0x142)]);});let R=(yield Actions[aA(0xc8)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';Q[aA(0x100)](function(S){const aH=aA;aH(0x135)!==aH(0xd5)?S['id']===parseInt(R)&&(o=S[aH(0x10d)],Log[aH(0xfd)](aH(0x125)+o+'\x20:\x20'+S[aH(0x142)])):b['notice'](aH(0xd2));});if(o==='')throw Log['error'](aA(0x111));}else{const T=g?function(){const aI=aA;if(T){const U=q[aI(0xe7)](r,arguments);return s=null,U;}}:function(){};return l=![],T;}}catch(T){Log['error'](T);}try{Log[aA(0xe4)](aA(0x122));let U=execSync(aA(0x13b))[aA(0xcb)](),V=JSON[aA(0x134)](U),W=[];V['forEach'](function(Y,Z){const aJ=aA;W[aJ(0xe0)]({'id':Z,'cidr':Y['cider'],'az':Y['az'],'subnetId':Y['subnetId']});}),W[aA(0x100)](function(Y){const aK=aA;aK(0xd7)!==aK(0xd7)?c[aK(0xc7)](d):console[aK(0x104)](aK(0x123)+Y['id']+'\x20CIDR:\x20'+Y[aK(0xef)]+aK(0xcc)+Y['az']+'\x20SUBNETID:\x20'+Y['subnetId']);});let X=(yield Actions['ask'](aA(0xba)))||'0';W[aA(0x100)](function(Y){const aL=aA;Y['id']===parseInt(X)&&(q=Y[aL(0x112)],Log['success'](aL(0x107)+q));});if(q===''){if('DuGnb'!==aA(0x11d))throw Log[aA(0xc7)](aA(0x111));else return c[aA(0xcb)]()[aA(0xf1)](aA(0x124))[aA(0xcb)]()[aA(0x103)](d)['search']('(((.+)+)+)+$');}}catch(Z){aA(0xf4)!==aA(0xf4)?c['error'](d):Log[aA(0xc7)](Z);}let w=aA(0x130);try{if(aA(0x11f)===aA(0x11f)){let a1=(yield Actions[aA(0xc8)](aA(0x12e)))||aA(0x130),a2=a1['split'](':')[0x0],a3=a1[aA(0xf0)](':')[0x1];typeof parseInt(a2)===aA(0x11e)&&typeof parseInt(a3)===aA(0x11e)&&(w=[a2,a3]['join'](':'),Log[aA(0xfd)](aA(0x12a)+w));}else e=f[aA(0x112)],g[aA(0xfd)](aA(0x107)+h);}catch(a5){aA(0x131)===aA(0x131)?Log[aA(0xc7)](a5):(f=[g,h][aA(0x101)](':'),i[aA(0xfd)](aA(0x12a)+j));}try{if(aA(0x10c)===aA(0x10c)){let a7=(yield Actions['ask'](aA(0x143)))||aA(0x133);typeof a7===aA(0xdd)&&(aA(0xf3)!=='fBNNq'?p=a7:(e[aA(0x104)](f),g[aA(0xc7)](h)));}else c(d);}catch(aa){Log[aA(0xc7)](aa);}let x;try{if(aA(0xfb)==='pzpHT')return f instanceof g?h:new i(function(ac){ac(k);});else{let ac=yield Actions[aA(0xb9)](aA(0xfc),![]);if(ac){if(aA(0xbe)!==aA(0xda)){x=a4G[aA(0x101)](i,aA(0xe1)),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+x),yield this['fsi'][aA(0x115)]({'filePath':x,'data':''});let ad=yield Actions[aA(0xb9)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?');}else f[aA(0xe0)]({'id':g,'cidr':h['cider'],'az':i['az'],'subnetId':j[aA(0x112)]});}}}catch(af){aA(0xc0)===aA(0x13e)?h['id']===i(j)&&(o=p[aA(0x112)],q[aA(0xfd)](aA(0x107)+r)):Log[aA(0xc7)](af);}try{let ah=JSON['parse'](execSync(aA(0xca)+q+aA(0x13d))[aA(0xcb)]())[0x0]['subnet'];Log[aA(0xe4)](aA(0x144)+o),Log[aA(0xe4)](aA(0x108)+w),Log[aA(0xe4)](aA(0xc2)+p),Log['notice'](aA(0x11c)+l),Log[aA(0xe4)](aA(0x116)+n),Log[aA(0xe4)]('Subnet:\x20'+ah);if(x){if(aA(0xe3)==='zVrrE'){Log['notice'](aA(0x120)+x);const aj=yield a4H['readFileSync'](x);Log[aA(0xe4)](aj);}else c[aA(0xc7)](d);}let ai=yield Actions[aA(0xb9)](aA(0xbd));if(ai){let al=f[aA(0xf2)](Object[aA(0xfa)]({'imageId':o,'count':w,'type':p,'key':l,'sgIds':n,'subnet':q,'tags':aA(0xeb)+h+'},\x20{Key=Name,Value='+k+'}]\x22'},x&&{'userData':x}));al&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[aA(0xfe)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else Log[aA(0xe4)](aA(0xd2));}catch(am){'zqicu'==='CvkcX'?c=d:(console[aA(0x104)](am),Log[aA(0xc7)](am));}}}catch(ao){if('JBgGr'!==aA(0x10b)){if(ao){const aq=i[aA(0xe7)](j,arguments);return k=null,aq;}}else console[aA(0xc7)](ao),process[aA(0xd1)](0x0);}else i['id']===j(k)&&(q=r[aA(0x10d)],s[aA(0xfd)](aA(0x125)+t+aA(0x102)+u[aA(0x142)]));});},a4F);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5B=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=-parseInt(y(0x7e))/0x1+-parseInt(y(0x85))/0x2*(parseInt(y(0x8d))/0x3)+parseInt(y(0x82))/0x4*(-parseInt(y(0x81))/0x5)+parseInt(y(0x7d))/0x6+parseInt(y(0x8b))/0x7*(parseInt(y(0x99))/0x8)+parseInt(y(0x96))/0x9*(-parseInt(y(0x83))/0xa)+parseInt(y(0x84))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x5ddf2));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(z(0x92)===z(0x92)){if(c){const e=c[z(0x98)](b,arguments);return c=null,e;}}else d(e[z(0x9e)](f));}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0x80)]()[A(0x7c)](A(0x91))[A(0x80)]()[A(0x8a)](a5a)['search'](A(0x91));});a5a();function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x7c;let f=c[d];return f;},a5d(a,b);}var __awaiter=this&&this[a5B(0x90)]||function(a,b,c,d){function e(f){const C=a5d;if(C(0x97)===C(0x97))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const G=a5d;function h(k){const D=a5d;if(D(0x8e)===D(0x87))return f instanceof g?h:new i(function(m){m(k);});else try{D(0x88)===D(0x88)?j(d[D(0x93)](k)):c(d);}catch(n){g(n);}}function i(k){const E=a5d;if(E(0xa0)==='PmHdq')try{const m=new i(),n=this[E(0x95)][E(0x86)](j['env']);m[E(0x9c)]({'env':n});}catch(r){m[E(0x9b)](r),n[E(0x9f)](0x0);}else try{j(d[E(0x9e)](k));}catch(m){g(m);}}function j(k){const F=a5d;k[F(0x8c)]?f(k[F(0x9a)]):e(k[F(0x9a)])['then'](h,i);}j((d=d[G(0x98)](a,b||[]))[G(0x93)]());});};import a5x from'./aws.command.js';function a5c(){const I=['env','toString','695650ACDpHC','16TjKrOo','147850CfjRLs','11240933uJplXg','134faclzY','getConfigFromShorthand','izFKn','CTfSb','create','constructor','5211122OoRbuG','done','28629tPAbKn','HCVlT','help','__awaiter','(((.+)+)+)+$','fBPch','next','maka\x20aws\x20create-key-pair','fsi','54nEMrzO','NRjAA','apply','8mtAtzM','value','error','createKeyPair','ckp','throw','exit','hqmug','search','770130MaqFZb','225595soWXqU'];a5c=function(){return I;};return a5c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5B(0x89)]({'name':'create-key-pair','aliases':[a5B(0x9d)],'usage':a5B(0x94),'mustBeInMakaProject':!![],'requiredOpts':[a5B(0x7f)],'validOpts':[a5B(0x8f)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a5d;try{const c=new AWS(),d=this[H(0x95)][H(0x86)](b[H(0x7f)]);c[H(0x9c)]({'env':d});}catch(f){console[H(0x9b)](f),process['exit'](0x0);}});},a5x);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0x159))/0x1*(parseInt(v(0x157))/0x2)+parseInt(v(0x142))/0x3+parseInt(v(0x165))/0x4*(parseInt(v(0x15e))/0x5)+parseInt(v(0x16e))/0x6*(parseInt(v(0x147))/0x7)+parseInt(v(0x161))/0x8*(parseInt(v(0x162))/0x9)+-parseInt(v(0x13c))/0xa*(parseInt(v(0x151))/0xb)+-parseInt(v(0x16a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe70a2));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if('QJdfZ'===w(0x158)){if(c){if(w(0x155)!=='tymhw')d(e[w(0x14b)](f));else{const f=c[w(0x143)](b,arguments);return c=null,f;}}}else c(d);}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0x150)]()['search'](x(0x15a))['toString']()[x(0x149)](a6a)[x(0x15d)](x(0x15a));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x13b;let f=c[d];return f;},a6d(a,b);}var __awaiter=this&&this[a6y(0x154)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a6d;function h(k){const z=a6d;try{if('pKzPZ'===z(0x16f))j(d[z(0x14b)](k));else{if(e){const m=i[z(0x143)](j,arguments);return k=null,m;}}}catch(m){if(z(0x13d)!==z(0x15c))g(m);else return c[z(0x150)]()[z(0x15d)]('(((.+)+)+)+$')[z(0x150)]()['constructor'](d)[z(0x15d)](z(0x15a));}}function i(k){const A=a6d;try{j(d['throw'](k));}catch(l){if('NaJnJ'!==A(0x152))try{i(j[A(0x14b)](k));}catch(o){m(o);}else g(l);}}function j(k){const B=a6d;if('FiXKv'!==B(0x145))try{i(j[B(0x166)](k));}catch(m){m(m);}else k[B(0x170)]?f(k[B(0x13b)]):e(k['value'])[B(0x14a)](h,i);}j((d=d[C(0x143)](a,b||[]))['next']());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a6c(){const F=['Open\x20port\x20443\x20for\x20SSL?','__awaiter','tymhw','ask','275870lgxvYq','QJdfZ','13iepZQL','(((.+)+)+)+$','List\x20is\x20not\x20all\x20numbers','oobrL','search','86320pgAGPM','confirm','create','984PNpxjU','71739TAfgEy','create-security-group','csg','328pRDJBp','throw','error','match','TAwyI','14018640JvWQsB','ec2createSG','Security\x20Group\x20Name:\x20[','fsi','21636kJVPfK','pKzPZ','done','value','703790zRvihO','qaoDi','AsAqX','SkVJI','UXoGd','immLA','4986261dwDmhJ','apply','chooseVPC','FiXKv','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','1484ZBJhTu','\x22Web\x20App\x22','constructor','then','next','ssl','name','getProjectConfig','help','toString','143vPqKaZ','NaJnJ'];a6c=function(){return F;};return a6c();}import{Log}from'../../tools/log/log.class.js';Command[a6y(0x160)]({'name':a6y(0x163),'aliases':[a6y(0x164)],'usage':'maka\x20aws\x20create-security-group','validOpts':[a6y(0x14f)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a6d;if('inPkn'!=='hjSpQ')try{if(D(0x13f)!==D(0x169)){const c=new AWS(),d=this[D(0x16d)][D(0x14e)](),{appName:f}=d;let g=yield c[D(0x144)](),h=![];!b[D(0x14c)]&&(D(0x13e)==='AsAqX'?h=yield Actions[D(0x15f)](D(0x153)):c(d));let i=h?'-ssl':'',j=b[D(0x14d)]?b['name']:''+f+i,k=(yield Actions[D(0x156)](D(0x16c)+j+']'))||j,l=(yield Actions['ask'](D(0x146)))||'22,80,443',m=l['split'](',');m['forEach'](o=>{const E=D;if(E(0x141)!==E(0x141))d(e[E(0x166)](f));else{if(!o[E(0x168)](/^\d+$/)){if('UXoGd'!==E(0x140))c(d);else throw E(0x15b);}}}),c[D(0x16b)]({'description':D(0x148),'name':k,'vpcId':g,'sgPorts':m});}else{const p=g?function(){if(p){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}catch(p){Log[D(0x167)](p),process['exit'](0x1);}else h[D(0x170)]?i(j[D(0x13b)]):k(l[D(0x13b)])[D(0x14a)](m,n);});},a6u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a7c(){var G=['3933xsAMXr','477678iBOSgG','value','501256FqOplF','ysaIi','apply','maka\x20aws\x20describe-instances','WcRen','then','940gPrpbU','397170HeDfmx','RDVrX','create','14NMyicj','error','akSXm','6ZAtnwd','toString','ec2describeInstances','__awaiter','gRzCl','describe-instances','throw','262895dtDznD','done','constructor','search','VcuKe','next','(((.+)+)+)+$','1169888LswtWx','235326cxvhPL','exit','help'];a7c=function(){return G;};return a7c();}var a7z=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0x1cb))/0x1+-parseInt(v(0x1b6))/0x2+parseInt(v(0x1ad))/0x3+parseInt(v(0x1af))/0x4+parseInt(v(0x1c3))/0x5*(parseInt(v(0x1bc))/0x6)+-parseInt(v(0x1b9))/0x7*(-parseInt(v(0x1ca))/0x8)+-parseInt(v(0x1ac))/0x9*(parseInt(v(0x1b5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x25bea));var a7b=(function(){var a=!![];return function(b,c){var w=a7d;if(w(0x1c7)!==w(0x1c7))d['error'](e),f[w(0x1aa)](0x0);else{var d=a?function(){var x=w;if(c){if(x(0x1b3)!==x(0x1b3)){if(e){var h=i[x(0x1b1)](j,arguments);return k=null,h;}}else{var f=c['apply'](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}};}()),a7a=a7b(this,function(){var y=a7d;return a7a[y(0x1bd)]()[y(0x1c6)](y(0x1c9))[y(0x1bd)]()[y(0x1c5)](a7a)[y(0x1c6)](y(0x1c9));});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x1aa;var f=c[d];return f;},a7d(a,b);}a7a();var __awaiter=this&&this[a7z(0x1bf)]||function(a,b,c,d){function e(f){var A=a7d;if(A(0x1bb)!==A(0x1bb))d(e['throw'](f));else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){var E=a7d;function h(k){var B=a7d;try{if(B(0x1c0)!==B(0x1c0))try{i(j[B(0x1c8)](k));}catch(m){m(m);}else j(d[B(0x1c8)](k));}catch(m){if(B(0x1b7)===B(0x1b0))return f instanceof g?h:new i(function(o){o(k);});else g(m);}}function i(k){var C=a7d;try{j(d[C(0x1c2)](k));}catch(l){g(l);}}function j(k){var D=a7d;k[D(0x1c4)]?f(k[D(0x1ae)]):e(k[D(0x1ae)])[D(0x1b4)](h,i);}j((d=d[E(0x1b1)](a,b||[]))[E(0x1c8)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7z(0x1b8)]({'name':a7z(0x1c1),'aliases':['di'],'usage':a7z(0x1b2),'validOpts':[a7z(0x1ab)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a7d;try{const a=new AWS();a[F(0x1be)]();}catch(b){console[F(0x1ba)](b),process[F(0x1aa)](0x0);}});},a7u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a8y=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d
|
|
1
|
+
var a8y=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=-parseInt(v(0xab))/0x1+-parseInt(v(0xaf))/0x2*(-parseInt(v(0xa7))/0x3)+-parseInt(v(0xa3))/0x4+parseInt(v(0xa2))/0x5+-parseInt(v(0xa4))/0x6*(parseInt(v(0x98))/0x7)+-parseInt(v(0x9a))/0x8*(parseInt(v(0x9d))/0x9)+parseInt(v(0x94))/0xa*(parseInt(v(0xa9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x94f0f));var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(w(0xb1)!=='tMoYp'){if(c){var e=c[w(0x9f)](b,arguments);return c=null,e;}}else h[w(0x93)]?i(j[w(0xac)]):k(l['value'])[w(0x95)](m,n);}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0xb2)]()[x(0x99)](x(0xa5))[x(0xb2)]()[x(0xaa)](a8a)['search'](x(0xa5));});a8a();var __awaiter=this&&this[a8y(0xb3)]||function(a,b,c,d){function e(f){var z=a8d;if('yPWDc'===z(0x9e))return f instanceof c?f:new c(function(g){g(f);});else d(e[z(0x96)](f));}return new(c||(c=Promise))(function(f,g){var D=a8d;function h(k){var A=a8d;if(A(0xb0)!==A(0xb0))try{i(j[A(0x92)](k));}catch(m){m(m);}else try{j(d[A(0x92)](k));}catch(m){if('hPdUk'!=='hPdUk')return f instanceof g?h:new i(function(o){o(k);});else g(m);}}function i(k){var B=a8d;try{B(0x9b)!==B(0xa8)?j(d['throw'](k)):c(d);}catch(m){g(m);}}function j(k){var C=a8d;k[C(0x93)]?f(k[C(0xac)]):e(k[C(0xac)])[C(0x95)](h,i);}j((d=d[D(0x9f)](a,b||[]))['next']());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x92;var f=c[d];return f;},a8d(a,b);}function a8c(){var F=['30nlwjCc','(((.+)+)+)+$','exit','1341UuJsqU','nqPIA','2783gBvMKi','constructor','721319CaxzTe','value','create','ec2describeKeys','3582xxQzyo','PhSqh','nWQAF','toString','__awaiter','next','done','61430MxhEWr','then','throw','maka\x20aws\x20describe-key-pairs','205415IioPPV','search','1738696jCWsMo','beddb','describe-key-pairs','18UGVxAz','yPWDc','apply','help','dkp','3490640WXeKWJ','4560412mZyGjN'];a8c=function(){return F;};return a8c();}Command[a8y(0xad)]({'name':a8y(0x9c),'aliases':[a8y(0xa1)],'usage':a8y(0x97),'validOpts':[a8y(0xa0)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;try{const a=new AWS();a[E(0xae)]();}catch(b){console['error'](b),process[E(0xa6)](0x0);}});},a8u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9x=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x1a9))/0x1+-parseInt(v(0x19d))/0x2+-parseInt(v(0x194))/0x3+-parseInt(v(0x195))/0x4+parseInt(v(0x1b8))/0x5*(parseInt(v(0x193))/0x6)+-parseInt(v(0x1a1))/0x7+parseInt(v(0x199))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x33671));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const w=a9d;return a9a[w(0x1b5)]()[w(0x1b6)](w(0x19f))['toString']()[w(0x19e)](a9a)['search'](w(0x19f));});a9a();var __awaiter=this&&this[a9x(0x1a6)]||function(a,b,c,d){function e(f){const y=a9d;if(y(0x196)===y(0x1ab))try{i(j[y(0x1a0)](k));}catch(h){m(h);}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const C=a9d;function h(k){const z=a9d;if(z(0x1a3)===z(0x1a3))try{j(d['next'](k));}catch(l){g(l);}else{const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}function i(k){const A=a9d;try{j(d[A(0x1a0)](k));}catch(l){g(l);}}function j(k){const B=a9d;B(0x1b3)===B(0x1b3)?k[B(0x1ac)]?f(k[B(0x1ae)]):e(k['value'])[B(0x198)](h,i):d(e[B(0x1a8)](f));}j((d=d['apply'](a,b||[]))[C(0x1a8)]());});};function a9c(){const F=['Deleting\x20a\x20','Deleted\x20','__awaiter','ogUzw','next','228621vfksxM','lWSnZ','AWiNh','done','DhKrr','value','create','Not\x20deleting\x20secuirty\x20group','delete-security-group','maka\x20aws\x20delete-sg','TpRYr','error','toString','search','exit','1393205FSnGpS','deleteSecurityGroup','listSecurityGroups','dsg','ask','6lJJTaa','1249344ZaGXxo','943952RJEDIu','ndVnF','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','then','8030160ZulLrV','success','sgId','forEach','293638pTkVJu','constructor','(((.+)+)+)+$','throw','307930pzGSbC','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','BhAvN'];a9c=function(){return F;};return a9c();}import a9u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x18f;let f=c[d];return f;},a9d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a9x(0x1af)]({'name':a9x(0x1b1),'aliases':[a9x(0x191)],'usage':a9x(0x1b2),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a9d;try{const a=new AWS(),b=yield a[D(0x190)]();let c,d=yield Actions[D(0x192)](D(0x197));b[D(0x19c)](function(g){const E=D;if(g['id']===parseInt(d)){if(E(0x1ad)==='DhKrr')c=g[E(0x19b)];else throw b[E(0x1b4)](E(0x1a2));}});if(!c){if(D(0x1aa)===D(0x1a7))b[D(0x1b7)](0x1);else throw Log['error'](D(0x1a2));}const f=yield Actions['confirm'](D(0x1a4)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a[D(0x18f)](c),Log[D(0x19a)](D(0x1a5)+c)):Log[D(0x1b4)](D(0x1b0)),process[D(0x1b7)](0x0);}catch(h){process[D(0x1b7)](0x1);}});},a9u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10z=a10d;(function(a,b){const v=a10d,c=a();while(!![]){try{const d=parseInt(v(0x1f7))/0x1*(parseInt(v(0x1f1))/0x2)+-parseInt(v(0x1fd))/0x3+parseInt(v(0x1fe))/0x4+parseInt(v(0x1fc))/0x5*(parseInt(v(0x1e8))/0x6)+parseInt(v(0x1f3))/0x7+parseInt(v(0x1e3))/0x8+-parseInt(v(0x1eb))/0x9*(parseInt(v(0x1e1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x95281));const a10b=(function(){let a=!![];return function(b,c){const w=a10d;if(w(0x1db)!=='OElrr')b[w(0x1ea)](w(0x1ed));else{const e=a?function(){const x=w;if(c){const f=c[x(0x205)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a10a=a10b(this,function(){const y=a10d;return a10a[y(0x20a)]()[y(0x1de)](y(0x200))['toString']()[y(0x1e5)](a10a)[y(0x1de)](y(0x200));});a10a();function a10c(){const G=['aYsUZ','djaqs','apply','done','ec2rebootInstance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','\x20is\x20still\x20running.','toString','xYdSr','OElrr','__awaiter','fIqvs','search','create','BgyAh','17542310MgdOLa','then','1007872chngca','mwFaX','constructor','name','value','3180gfdGWg','SdDUt','error','9xLkyGe','exit','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws\x20reboot-instance','status','\x20Ready?','3402OledvT','throw','6031732qEIdvN','rbi','ohLVL','iQFoX','201inzpIp','vayqp','next','TDKuU','cXtgM','160xaSaZB','473238bmfchh','4705604ivKmRc','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','(((.+)+)+)+$','HWtgI','reboot-instance'];a10c=function(){return G;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1db;let f=c[d];return f;},a10d(a,b);}var __awaiter=this&&this[a10z(0x1dc)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a10d;A(0x1fb)!=='sVCug'?g(f):c(d);});}return new(c||(c=Promise))(function(f,g){const E=a10d;function h(k){const B=a10d;try{B(0x1fa)===B(0x1e0)?d(e[B(0x1f2)](f)):j(d[B(0x1f9)](k));}catch(m){if(B(0x204)!==B(0x20b))g(m);else return c[B(0x20a)]()[B(0x1de)]('(((.+)+)+)+$')[B(0x20a)]()['constructor'](d)[B(0x1de)](B(0x200));}}function i(k){const C=a10d;try{j(d[C(0x1f2)](k));}catch(l){if(C(0x1f5)!==C(0x1dd))g(l);else try{i(j[C(0x1f9)](k));}catch(o){m(o);}}}function j(k){const D=a10d;if(D(0x201)!=='PUIbd')k['done']?f(k[D(0x1e7)]):e(k['value'])[D(0x1e2)](h,i);else{if(e){const m=i[D(0x205)](j,arguments);return k=null,m;}}}j((d=d[E(0x205)](a,b||[]))[E(0x1f9)]());});};import a10u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10z(0x1df)]({'name':a10z(0x202),'aliases':[a10z(0x1f4)],'usage':a10z(0x1ee),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a10d;try{if(F(0x1e4)===F(0x1e4)){const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[F(0x1ef)])==='running'){if(F(0x1e9)!=='SdDUt')d['error'](e),f[F(0x1ec)](0x0);else{let d=yield Actions['confirm'](F(0x208)+b['name']+F(0x1f0));d?a[F(0x207)]({'instanceId':b['instanceId']}):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[F(0x1e6)]+F(0x209));}}else F(0x1f6)===F(0x1f8)?c(d):Log[F(0x1ea)](F(0x1ed));}else h[F(0x206)]?i(j[F(0x1e7)]):k(l[F(0x1e7)])[F(0x1e2)](m,n);}catch(h){F(0x203)==='eYZTR'?c[F(0x1ea)](F(0x1ff)+d[F(0x1e6)]+'\x20is\x20still\x20running.'):(console[F(0x1ea)](h),process['exit'](0x0));}});},a10u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(
|
|
1
|
+
const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x168))/0x1*(parseInt(v(0x15e))/0x2)+parseInt(v(0x16b))/0x3*(parseInt(v(0x16e))/0x4)+-parseInt(v(0x14b))/0x5*(-parseInt(v(0x16a))/0x6)+-parseInt(v(0x166))/0x7*(-parseInt(v(0x152))/0x8)+parseInt(v(0x14c))/0x9+parseInt(v(0x163))/0xa+-parseInt(v(0x15b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xddd73));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a['toString']()['search']('(((.+)+)+)+$')[x(0x15f)]()[x(0x149)](a11a)[x(0x150)](x(0x155));});a11a();var __awaiter=this&&this[a11y(0x162)]||function(a,b,c,d){function e(f){const z=a11d;if(z(0x15c)!==z(0x16f))return f instanceof c?f:new c(function(g){const A=z;A(0x160)==='edQLZ'?f['id']===g(h)&&(k=l[A(0x16d)]):g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const E=a11d;function h(k){const B=a11d;if('xobLL'!==B(0x158))throw b[B(0x164)](B(0x15d));else try{if(B(0x14d)==='BEUeq'){const n=d[B(0x157)](e,arguments);return f=null,n;}else j(d[B(0x167)](k));}catch(n){g(n);}}function i(k){const C=a11d;if(C(0x170)==='PoXUN')try{'sMwXr'===C(0x14e)?b[C(0x161)](0x1):j(d['throw'](k));}catch(m){g(m);}else d(e[C(0x159)](f));}function j(k){const D=a11d;k['done']?f(k[D(0x169)]):e(k['value'])[D(0x153)](h,i);}j((d=d['apply'](a,b||[]))[E(0x167)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const H=['xobLL','throw','remove-key-pair','42025038knhuUW','CnZRi','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','16PdpCMn','toString','QbEfv','exit','__awaiter','2907970OtvMUX','error','deleteKeyPair','1246xTPtYo','next','91202BtCebF','value','1368318phwZbF','2317398dAxEzx','confirm','name','8JgKNLV','HOQcj','PoXUN','ask','ec2describeKeys','create','constructor','Not\x20deleting\x20keypair','30mNEbpD','1566504nYLRyy','ctvSB','dfgZP','dIJLA','search','GHahz','27928YnllQr','then','done','(((.+)+)+)+$','Deleting\x20a\x20','apply'];a11c=function(){return H;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x146;let f=c[d];return f;},a11d(a,b);}Command[a11y(0x148)]({'name':a11y(0x15a),'aliases':['rkp'],'usage':'maka\x20aws\x20remove-key-pair','validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a11d;if(F(0x14f)===F(0x14f))try{const a=new AWS();let b=yield a[F(0x147)](),c,d=yield Actions[F(0x146)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b===null||b===void 0x0?void 0x0:b['forEach'](function(g){const G=F;'GHahz'===G(0x151)?g['id']===parseInt(d)&&(c=g['name']):h[G(0x154)]?i(j[G(0x169)]):k(l[G(0x169)])['then'](m,n);});if(!c)throw Log[F(0x164)](F(0x15d));const f=yield Actions[F(0x16c)](F(0x156)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a[F(0x165)](c),Log['success']('Deleted\x20'+c)):Log['error'](F(0x14a)),process[F(0x161)](0x0);}catch(g){process[F(0x161)](0x1);}else return f instanceof g?h:new i(function(m){m(k);});});},a11u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12O=a12d;(function(a,b){const F=a12d,c=a();while(!![]){try{const d=-parseInt(F(0x13a))/0x1*(-parseInt(F(0x135))/0x2)+-parseInt(F(0x130))/0x3+parseInt(F(0x148))/0x4*(parseInt(F(0x13d))/0x5)+parseInt(F(0x143))/0x6+-parseInt(F(0x12a))/0x7+-parseInt(F(0x11c))/0x8*(parseInt(F(0x117))/0x9)+parseInt(F(0x128))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x99c9d));function a12c(){const Q=['success','error','apply','parse','899837pUPiWT','throw','cat\x20','1950YMyybU','KGPFF','\x0aSaved\x20host\x20','HfMZh','done','env','4340712BeOsEU','sNCMl','join','sep','getConfigPath','6988ZbOSXc','then','private','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','key-name','public','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','publicIp','18obvXlX','maka\x20aws\x20set-host','writeFileSync','\x20IP\x20to\x20','toString','1561328KvzIPJ','set-host','ssh.json','host','privateIp','fsi','next','TtPnD','value','brGxg','chooseInstance','(((.+)+)+)+$','4207920cuGNXX','NKmve','3467604VHwWru','readFileSync','sth','constructor','search','exit','3629370JqKmvr','bwpgk','help','scukG','utf8','2KEamZo'];a12c=function(){return Q;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const G=a12d;if('scukG'!==G(0x133)){const e=g?function(){if(e){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],e;}else{const e=a?function(){const H=G;if(c){if(H(0x129)!=='NKmve')d[H(0x137)](e),f[H(0x12f)](0x0);else{const g=c[H(0x138)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a12a=a12b(this,function(){const I=a12d;return a12a[I(0x11b)]()[I(0x12e)](I(0x127))[I(0x11b)]()[I(0x12d)](a12a)[I(0x12e)](I(0x127));});a12a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const J=a12d;if(J(0x13e)===J(0x140))e['host']=f===null||g===void 0x0?void 0x0:h[J(0x120)];else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const N=a12d;function h(k){const K=a12d;try{j(d[K(0x122)](k));}catch(l){g(l);}}function i(k){const L=a12d;try{if(L(0x125)==='czHZi'){const m=d[L(0x138)](e,arguments);return f=null,m;}else j(d['throw'](k));}catch(m){g(m);}}function j(k){const M=a12d;if(M(0x131)!=='bwpgk')return c[M(0x11b)]()[M(0x12e)](M(0x127))[M(0x11b)]()[M(0x12d)](d)[M(0x12e)](M(0x127));else k[M(0x141)]?f(k[M(0x124)]):e(k[M(0x124)])[M(0x149)](h,i);}j((d=d[N(0x138)](a,b||[]))['next']());});};function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x111;let f=c[d];return f;},a12d(a,b);}import a12C from'path';import a12D from'fs';import{execSync}from'child_process';import a12E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12O(0x11d),'aliases':[a12O(0x12c)],'usage':a12O(0x118),'mustBeInMakaProject':!![],'requiredOpts':[a12O(0x142)],'validOpts':[a12O(0x132),a12O(0x113)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a12d;try{if('sCPrS'!=='sCPrS')try{i(j[P(0x13b)](k));}catch(d){m(d);}else{const d=new AWS(),f=this[P(0x121)][P(0x147)](b[P(0x142)]);let g=yield d[P(0x126)](),h=JSON[P(0x139)](a12D[P(0x12b)](a12C[P(0x145)](f,P(0x11e)),P(0x134))),i=(yield Actions['ask'](P(0x115)))||P(0x114);if(i){if(i===P(0x114)||i===P(0x111)){if('TtPnD'!==P(0x123))d(e[P(0x122)](f));else{if(i===P(0x114))h['host']=g===null||g===void 0x0?void 0x0:g[P(0x116)];else i===P(0x111)&&(h[P(0x11f)]=g===null||g===void 0x0?void 0x0:g[P(0x120)]);}}else throw P(0x112);}else h[P(0x11f)]=g===null||g===void 0x0?void 0x0:g[P(0x120)];a12D[P(0x119)](a12C['join'](f,P(0x11e)),JSON['stringify'](h,null,0x2)),execSync(P(0x13c)+a12C[P(0x145)](f,P(0x11e)),{'stdio':'inherit'}),Log[P(0x136)](P(0x13f)+i+P(0x11a)+f+a12C[P(0x146)]+P(0x11e));}}catch(k){P(0x144)===P(0x144)?(console[P(0x137)](k),process[P(0x12f)](0x0)):c(d);}});},a12E);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13D=a13d;(function(a,b){const v=a13d,c=a();while(!![]){try{const d=-parseInt(v(0x1bf))/0x1+-parseInt(v(0x1bc))/0x2+-parseInt(v(0x1b6))/0x3+-parseInt(v(0x1ca))/0x4+parseInt(v(0x1b5))/0x5*(parseInt(v(0x1a9))/0x6)+-parseInt(v(0x1cb))/0x7+parseInt(v(0x1af))/0x8*(parseInt(v(0x1c0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x1f570));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a13d;if(w(0x1c5)!=='QQxQL'){if(c){if(w(0x1c6)===w(0x1b1))c(d);else{const f=c[w(0x1b8)](b,arguments);return c=null,f;}}}else h[w(0x1b3)]?i(j['value']):k(l[w(0x1c8)])['then'](m,n);}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const x=a13d;return a13a[x(0x1b7)]()[x(0x1c4)](x(0x1ad))['toString']()[x(0x1cc)](a13a)['search'](x(0x1ad));});a13a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a13d;function h(k){const y=a13d;if(y(0x1c2)!==y(0x1c9))try{if(y(0x1bd)===y(0x1c1)){const n=g?function(){const z=y;if(n){const u=q[z(0x1b8)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d['next'](k));}catch(m){g(m);}else c(d);}function i(k){const A=a13d;try{j(d['throw'](k));}catch(l){A(0x1cd)!==A(0x1cd)?c[A(0x1be)]({'instanceId':d[A(0x1aa)]}):g(l);}}function j(k){const B=a13d;if(B(0x1b0)!==B(0x1b0)){const m=d['apply'](e,arguments);return f=null,m;}else k['done']?f(k[B(0x1c8)]):e(k[B(0x1c8)])[B(0x1b2)](h,i);}j((d=d[C(0x1b8)](a,b||[]))['next']());});};import a13u from'./aws.command.js';import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13D(0x1ce)]({'name':a13D(0x1d1),'aliases':['ti'],'usage':a13D(0x1ba),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a13d;try{if('VWesI'!==E(0x1c3))b[E(0x1ae)](E(0x1bb));else{const b=new AWS();let c=yield b[E(0x1d2)]();if((c===null||c===void 0x0?void 0x0:c[E(0x1a6)])===E(0x1ab)){let d=yield Actions[E(0x1a7)](E(0x1b9)+c[E(0x1ac)]+E(0x1d0));d?E(0x1a5)!==E(0x1cf)?b['ec2terminateInstance']({'instanceId':c[E(0x1aa)]}):d(e[E(0x1b4)](f)):Log['error'](E(0x1c7)+c[E(0x1ac)]+E(0x1a8));}else Log[E(0x1ae)](E(0x1bb));}}catch(g){console[E(0x1ae)](g),process['exit'](0x0);}});},a13u);function a13c(){const F=['throw','6670MledNV','571350ddosSE','toString','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','maka\x20aws\x20terminate-instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','500034LbQnmf','Nburc','ec2terminateInstance','145269lVndmm','36jERzkf','iyuEC','PLdOH','VWesI','search','cKhsj','ZDlCu','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','value','Kmbwy','687476tgqkRt','466949juXOZw','constructor','oNtNS','create','FniWC','\x20Ready?','terminate-instance','chooseInstance','nAZsg','status','confirm','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','480cWSXis','instanceId','running','name','(((.+)+)+)+$','error','1691920hNhlwS','wefHV','ccubE','then','done'];a13c=function(){return F;};return a13c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a14d,c=a();while(!![]){try{var d=parseInt(u(
|
|
1
|
+
(function(a,b){var u=a14d,c=a();while(!![]){try{var d=parseInt(u(0x1b8))/0x1*(parseInt(u(0x1b4))/0x2)+-parseInt(u(0x1b5))/0x3*(-parseInt(u(0x1c0))/0x4)+parseInt(u(0x1bb))/0x5*(parseInt(u(0x1c3))/0x6)+-parseInt(u(0x1c1))/0x7+-parseInt(u(0x1b6))/0x8*(parseInt(u(0x1b3))/0x9)+parseInt(u(0x1be))/0xa*(-parseInt(u(0x1c2))/0xb)+parseInt(u(0x1b9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x1a5d2));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a14d;if(c){var e=c[v(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var w=a14d;return a14a['toString']()['search'](w(0x1bd))[w(0x1ba)]()[w(0x1bf)](a14a)[w(0x1bc)]('(((.+)+)+)+$');});function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x1b3;var f=c[d];return f;},a14d(a,b);}a14a();import'./build.js';import'./docker.sub.cmd.js';function a14c(){var x=['apply','132vWsqdn','1127700nPrBrC','toString','521620LjQLiO','search','(((.+)+)+)+$','1320WFPkEd','constructor','540788VnQJlK','1450918uFRZRt','1309aeIujI','6hSqAfz','18ORBaQk','164WMfcqX','3rPrJzB','53408CfPTUy'];a14c=function(){return x;};return a14c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15B=a15d;(function(a,b){const x=a15d,c=a();while(!![]){try{const d=parseInt(x(0x1b1))/0x1*(parseInt(x(0x1ba))/0x2)+-parseInt(x(0x1c5))/0x3+parseInt(x(0x1ae))/0x4+parseInt(x(0x1d6))/0x5+parseInt(x(0x1e1))/0x6+parseInt(x(0x1bb))/0x7+parseInt(x(0x1b8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x62119));const a15b=(function(){let a=!![];return function(b,c){const y=a15d;if(y(0x1c1)!==y(0x1c1))d[y(0x1b4)](e),f[y(0x1d0)](0x0);else{const e=a?function(){const z=y;if(c){const f=c[z(0x1df)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a15a=a15b(this,function(){const A=a15d;return a15a[A(0x1b6)]()[A(0x1d9)]('(((.+)+)+)+$')[A(0x1b6)]()[A(0x1e7)](a15a)[A(0x1d9)]('(((.+)+)+)+$');});a15a();var __awaiter=this&&this[a15B(0x1de)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const C=a15d;C(0x1d7)!==C(0x1e6)?g(f):c['splice'](d,0x2);});}return new(c||(c=Promise))(function(f,g){const G=a15d;function h(k){const D=a15d;try{if(D(0x1b0)!==D(0x1e5))j(d['next'](k));else{const m=d['apply'](e,arguments);return f=null,m;}}catch(m){g(m);}}function i(k){const E=a15d;if(E(0x1bf)!==E(0x1c4))try{if('vEaDc'==='wHUCg')return c[E(0x1b6)]()[E(0x1d9)](E(0x1cf))[E(0x1b6)]()[E(0x1e7)](d)[E(0x1d9)](E(0x1cf));else j(d[E(0x1d3)](k));}catch(m){g(m);}else d===E(0x1ad)&&g[E(0x1c7)](h,0x2);}function j(k){const F=a15d;k[F(0x1d8)]?f(k['value']):e(k['value'])[F(0x1ca)](h,i);}j((d=d[G(0x1df)](a,b||[]))[G(0x1c0)]());});};function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a15d(a,b);}import a15u from'path';import a15v from'fs';import a15w from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a15c(){const K=['constructor','concat','existsSync','join','--force','74024AWjdsn',').\x20Update?','sIAXH','51uvpWYj','argv','app.tar.gz','error','This\x20project\x27s\x20meteor\x20version\x20(','toString','getGlobalMeteorVersion','1495496takMkF','slice','16422hWLyme','2248757rjVAen','create','MVror','forEach','XcOml','next','KeDsZ','force','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','rQTXt','2208162LLHZvL','build','splice',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','bqyCw','then','maka\x20build','TYRdD','runSubCommand','confirm','(((.+)+)+)+$','exit','invokeMeteorCommand','debug','throw','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','getProjectMeteorVersion','111995CESYGf','bUeYD','done','search','fsi','maka\x20build:docker','DfjUN','Aborted.','__awaiter','apply','maka\x20build\x20[--force]','1019334sbqbMs','findSubCommand','utzBF','pathFromProject','PkYhN','wLOxd'];a15c=function(){return K;};return a15c();}const BuildCommand=Command[a15B(0x1bc)]({'name':a15B(0x1c6),'usage':a15B(0x1e0),'validOpts':[a15B(0x1c2),a15B(0x1d2)],'description':a15B(0x1c3),'mustBeInMakaProject':!![],'examples':[a15B(0x1cb),a15B(0x1db)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a15d;try{let c=a[0x0],d=this[H(0x1e2)](c);if(d)'bqyCw'!==H(0x1c9)?d(e[H(0x1d3)](f)):this[H(0x1cd)](c,a,b);else{if(H(0x1dc)===H(0x1dc)){let g=b[H(0x1c2)];if(!g){const j=this[H(0x1da)][H(0x1b7)](),k=this[H(0x1da)][H(0x1d5)](),l=a15w['gt'](j,k);if(l){if('ISnnR'===H(0x1bd))throw b['error']('Aborted.');else{const n=yield Actions[H(0x1ce)](H(0x1b5)+k+H(0x1c8)+j+H(0x1af));n&&this[H(0x1da)][H(0x1d1)]('update',['--release',j]);}}}let h=[this[H(0x1da)][H(0x1e4)]({'pathParts':[H(0x1c6)]})][H(0x1e8)](process[H(0x1b2)][H(0x1b9)](0x3)),i=a15u[H(0x1ea)](this[H(0x1da)][H(0x1e4)]({}),H(0x1c6),H(0x1b3));if(a15v[H(0x1e9)](i)){let o=g!==null&&g!==void 0x0?g:yield Actions[H(0x1ce)](H(0x1d4));if(!o)throw Log[H(0x1b4)](H(0x1dd));}h[H(0x1be)]((p,q)=>{const I=H;p==='--force'&&(I(0x1cc)===I(0x1cc)?h[I(0x1c7)](q,0x2):c(d));}),this[H(0x1da)]['invokeMeteorCommand'](H(0x1c6),h);}else this['runSubCommand'](d,e,f);}}catch(q){if(H(0x1e3)==='utzBF')console[H(0x1b4)](q),process[H(0x1d0)](0x0);else{const s=g?function(){const J=H;if(s){const u=q[J(0x1df)](r,arguments);return s=null,u;}}:function(){};return l=![],s;}}});});export default BuildCommand;
|