@maka/maka-cli 4.2.29 → 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
|
-
function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xcb;let f=c[d];return f;},a0d(a,b);}const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0xdc))/0x1*(parseInt(N(0x134))/0x2)+-parseInt(N(0x148))/0x3+-parseInt(N(0xd8))/0x4+parseInt(N(0xcb))/0x5+parseInt(N(0x10c))/0x6*(-parseInt(N(0x14c))/0x7)+-parseInt(N(0x12a))/0x8*(parseInt(N(0x142))/0x9)+-parseInt(N(0x137))/0xa*(-parseInt(N(0x120))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x96071));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){const e=c[O(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x10d)]()['search'](P(0xf1))[P(0x10d)]()[P(0x157)](a0a)['search'](P(0xf1));});function a0c(){const ai=['msXjm','xRfWb','IBgMk','usage','runSubCommand','splice','itPPX','Command.create\x20requires\x20a\x20handler\x20function!','trialExpirationDate','notice','win32','proCommands','PwNmR','FzuYN','.meteor','147834xuXLYc','toString','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','find','assign','includes','value','addCommand','odxPo','findProjectDirectory','forEach','split','Missing\x20required\x20options\x20','gHDdh','invoke','BetRt','parent','CRFvR','aliases','hmhvv','9141lvIRTl','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Trial\x20License\x20Expires:\x20','singleLicense','number','SYhqm','DMnYC','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','CsGKE','tableList','8iNfeyk','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','keys','Too\x20few\x20options','dkbTe','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','findSubCommand','deploy','pBdHW','findCommand','2fweLWt','next','maxOptsLength','55270koCwKl','error','apply','done','Invalid\x20options:\x20','YyhPH','BIQNt','To\x20use\x20this\x20command,\x20\x22','concat','Sub\x20Commands:','platform','8617293iMZApp','validateMakaSubscription','UJEfT','Too\x20many\x20options','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','function','3179898CaHlGp','minArgLength','existsSync','_commands','252yIMVnN','_handler','Local','rwmSS','search','bright','No\x20aliases','JmUqv','BCFbF','options','To\x20use\x20these\x20pro\x20flags,\x20\x22','constructor','There\x20is\x20no\x20Meteor\x20application\x20here','No\x20description\x20provided.','murder','Command\x20requires\x20a\x20handler\x20function','2469890oTOmny','minOptsLength','Alias','disableAuthCheck','WWGYx','name','exit','Description','validateMeteorInstall','WXubQ','pyQdy','JTfdH','domainLicense','3074592FAZjGe','tkcvQ','match','hGfqY','799307lsGNDV','UKdQt','examples','eWRjK','then','NxkcK','roles','description','Command\x20requires\x20a\x20name','trialActive','No\x20usage\x20provided.','getPro','qaoyC','call','Command.create\x20requires\x20some\x20options!','length','throw','pwQMi','eDVwm','bGGTb','OXpFU','(((.+)+)+)+$','validateMakaProject','join','AppData','push','fsi','__awaiter','rOtju','help','validateParams','Name','run'];a0c=function(){return ai;};return a0c();}a0a();var __awaiter=this&&this[a0Q(0xf7)]||function(a,b,c,d){function e(f){const R=a0d;if('TLHZI'!=='TLHZI')throw new b(R(0xe4));else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;try{j(d[S(0x135)](k));}catch(l){if(S(0xdf)!==S(0xdf))return this[S(0x155)][S(0x100)]||'No\x20usage\x20provided.';else g(l);}}function i(k){const T=a0d;try{j(d[T(0xec)](k));}catch(l){g(l);}}function j(k){const U=a0d;k[U(0x13a)]?f(k['value']):e(k[U(0x112)])[U(0xe0)](h,i);}j((d=d[V(0x139)](a,b||[]))[V(0x135)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J['homedir']();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=a0Q;super();if(!a)throw new Error(W(0x127));if(!a[W(0xd0)]){if(W(0xd4)!==W(0xd5))throw new Error(W(0xe4));else{const d=this[W(0xf6)][W(0x115)]();return d!==![]?!![]:![];}}if(typeof b!==W(0x147))throw new Error(W(0x15b));this[W(0x155)]=Object[W(0x110)]({},a),this[W(0xd0)]=this['options']['name'],this[W(0x14b)]=[],this['_handler']=b['bind'](this);}static['create'](a,b,c){const X=a0Q;var d;if(!a)throw new Error(X(0xea));if(typeof b!==X(0x147))throw new Error(X(0x104));let e=new Command(a,b);return c=c||a0M,Object[X(0x110)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x155)])===null||d===void 0x0?void 0x0:d[X(0xd0)]}),c[X(0x113)](e),e;}[a0Q(0xda)](a){const Y=a0Q;let b=[this['name']][Y(0x13f)](this[Y(0x155)]['aliases']||[]);if(this[Y(0x11c)]){if(Y(0xdd)==='UKdQt')b['push'](this[Y(0x11c)]);else{c[Y(0x138)](Y(0x12d));throw new d();}}return b['includes'](a);}[a0Q(0x113)](a){const Z=a0Q;if(!(a instanceof Command)){if('NxkcK'!==Z(0xe1)){const c=this[Z(0xd3)]();if(!c)throw new c();}else throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');}this[Z(0x14b)][Z(0xf5)](a);}[a0Q(0xf2)](){const a0=a0Q,a=this[a0(0xf6)][a0(0x115)]();return a!==![]?!![]:![];}[a0Q(0xd3)](){const a1=a0Q;let a=a0I[a1(0xf3)](homeDir,'.meteor');const b=process[a1(0x141)]===a1(0x107);if(b){if(a1(0x14f)!==a1(0x14f))return c[a1(0x10d)]()[a1(0x150)](a1(0xf1))['toString']()[a1(0x157)](d)[a1(0x150)](a1(0xf1));else{a=a0I[a1(0xf3)](homeDir,a1(0xf4),a1(0x14e),a1(0x10b));if(!a0K['existsSync'](a)){if('xRfWb'===a1(0xfe))return![];else throw new b();}}}else{if(a1(0x12e)===a1(0x12e)){if(!a0K[a1(0x14a)](a))return![];}else{d[a1(0x138)](a1(0x118)+e[a1(0xf3)](',\x20'));throw new f();}}return!![];}[a0Q(0x143)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if('WmatB'===a2(0x128))return this[a2(0x14b)][a2(0x10f)](f=>f[a2(0xda)](c));else try{if('odxPo'!==a2(0x114))f[a2(0x100)](g,h,i),j[a2(0x106)](a2(0x140)),this['tableList'](this['_commands']);else{const f=this[a2(0x133)](a[0x0]);if(f){const g=(f===null||f===void 0x0?void 0x0:f[a2(0xd0)])||a[0x0],h=(f===null||f===void 0x0?void 0x0:f['parent'])||'',i=f===null||f===void 0x0?void 0x0:f[a2(0x155)];if(i[a2(0xce)]){if(a2(0xf8)!==a2(0xff))return;else{c['error']('Too\x20many\x20arguments');throw new d();}}const j=a[0x0],k=Object[a2(0x12c)](b),l=yield this[a2(0xf6)]['getPro']();!l&&('CImnD'!==a2(0x125)?(Log['error'](a2(0x10e)),process[a2(0xd1)](0x1)):(f['push']('help'),g['forEach'](r=>{const a3=a2;if(!k[a3(0x111)](r)){n[a3(0x138)](a3(0x13b)+r);throw new o();}})));const m=(l===null||l===void 0x0?void 0x0:l[a2(0x108)][a2(0x111)](g))||(l===null||l===void 0x0?void 0x0:l[a2(0x108)][a2(0x111)](h)),n=(l===null||l===void 0x0?void 0x0:l[a2(0xe2)][a2(0x111)](a2(0x123)))||(l===null||l===void 0x0?void 0x0:l['roles'][a2(0x111)](a2(0xd7))),o=!n&&!(l===null||l===void 0x0?void 0x0:l[a2(0xe5)]);if(m&&o)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(k[a2(0xeb)]>0x0){const r=l===null||l===void 0x0?void 0x0:l['proFlags']['filter'](s=>k['includes'](s));if(r&&r[a2(0xeb)]>0x0&&o)throw a2(0x156)+(r===null||r===void 0x0?void 0x0:r['join'](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(j===a2(0x131)){const s=yield this[a2(0xf6)][a2(0xe7)](),t=s===null||s===void 0x0?void 0x0:s['proCommands']['includes'](a[0x0]+'\x20'+a[0x1]);if(t&&o)throw a2(0x13e)+a[0x0]+a2(0x12b);}(l===null||l===void 0x0?void 0x0:l[a2(0xe5)])&&!n&&Log[a2(0x106)](a2(0x122)+l[a2(0x105)]['split']('T')[0x0]);}}}catch(u){if(a2(0x11f)===a2(0xee))b[a2(0xd1)](0x1);else throw u;}});}[a0Q(0xfa)](a,b,c){const a4=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x12c)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a4(0xeb)])>0x0){if(g[a4(0xeb)]===0x0){Log[a4(0x138)](a4(0x118)+requiredOpts[a4(0xf3)](',\x20'));throw new UsageError();}requiredOpts[a4(0x116)](h=>{const a5=a4;if(!g[a5(0x111)](h)){Log['error']('Missing\x20required\x20option:\x20'+h);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0){if(a4(0xef)!==a4(0x119))validOpts[a4(0xf5)](a4(0xf9)),g[a4(0x116)](h=>{const a6=a4;if(a6(0x103)===a6(0xfd))e[a6(0xf5)]([f['name'],g['aliases'](),h[a6(0xe3)]()]);else{if(!validOpts[a6(0x111)](h)){Log[a6(0x138)](a6(0x13b)+h);throw new UsageError();}}});else throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a4(0x12b);}}[a0Q(0xfc)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;if('qaoyC'===a7(0xe8))try{a=a||[],b=b||{};try{yield this['validateMakaSubscription'](a,b);}catch(c){Log[a7(0x138)](c),process[a7(0xd1)](0x0);}yield this['invoke'](a,b);}catch(d){'JTfdH'!==a7(0xd6)?c(d):process[a7(0xd1)](0x1);}else{if(!(e instanceof f))throw new i('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][a7(0xf5)](h);}});}[a0Q(0x11a)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d,{usage:usage='',description:description='',examples:examples=[],isRoot:isRoot=![]}=this[a8(0x155)];try{if(!isRoot){if('CRFvR'===a8(0x11d)){const c=(a[0x0]===_prevCmd||a[a8(0xeb)]===0x0)&&this[a8(0x14b)][a8(0xeb)]>=0x0;if(c&&b[a8(0xf9)]){if('HqHhD'!=='HqHhD')throw a8(0x156)+(d===null||e===void 0x0?void 0x0:f[a8(0xf3)](',\x20'))+a8(0x12b);else{if(this[a8(0x14b)][a8(0xeb)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}}if(!b['help']){if(a8(0x126)!==a8(0x126))c[a8(0x106)](a8(0x122)+d[a8(0x105)][a8(0x117)]('T')[0x0]);else{if(this[a8(0x155)]['mustBeInMakaProject']){const g=this[a8(0xf2)]();if(!g)throw new MustBeInProjectError();}if(this[a8(0x155)]['mustHaveMeteorInstalled']){const h=this['validateMeteorInstall']();if(!h)throw new NoMeteorFoundError();}if(typeof this[a8(0x155)][a8(0x149)]==='number'){if(a[a8(0xeb)]<this[a8(0x155)]['minArgLength']){if(a8(0x10a)===a8(0x10a)){Log[a8(0x138)]('Too\x20few\x20arguments');throw new UsageError();}else{const j=d[a8(0x139)](e,arguments);return f=null,j;}}}if(typeof this[a8(0x155)]['maxArgLength']===a8(0x124)){if(a['length']>=this[a8(0x155)]['maxArgLength']){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options']['minOptsLength']==='number'){if(Object[a8(0x12c)](b)[a8(0xeb)]<this[a8(0x155)][a8(0xcc)]){Log['error'](a8(0x12d));throw new UsageError();}}if(typeof this[a8(0x155)][a8(0x136)]===a8(0x124)){if(Object[a8(0x12c)](b)[a8(0xeb)]>=this[a8(0x155)]['maxOptsLength']){Log[a8(0x138)](a8(0x145));throw new UsageError();}}}}}else throw b;}this[a8(0xfa)](a,b,this[a8(0x155)]),_prevCmd=a[0x0],yield this[a8(0x14d)][a8(0xe9)](this,a,b);}catch(k){if(k instanceof UsageError)Log[a8(0x100)](description,examples,usage);else{if(k instanceof UsageErrorWithSubs){if(a8(0xcf)===a8(0x109))throw'Command\x20not\x20found';else Log['usage'](description,examples,usage),Log['notice'](a8(0x140)),this[a8(0x129)](this[a8(0x14b)]);}else{if(k instanceof MustBeInProjectError)a8(0xd9)!==a8(0xed)?(Log[a8(0x138)](a8(0x146)),Log[a8(0x100)](description,examples,usage)):(g['error'](a8(0x12f)),h[a8(0x106)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),i[a8(0x100)](j,k,l));else{if(k instanceof NoMeteorFoundError)Log[a8(0x138)](a8(0x12f)),Log[a8(0x106)](a8(0x121)),Log['usage'](description,examples,usage);else{if(k instanceof NoMeteorAppFoundError){if(a8(0x13d)!==a8(0x154))Log[a8(0x138)](a8(0x158)),Log['usage'](description,examples,usage);else throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a8(0x12b);}else throw k;}}}}process[a8(0xd1)](0x1);}});}[a0Q(0x129)](a){const a9=a0Q,b=new a0L({});b[a9(0xf5)]([a9(0xfb),a9(0xcd),a9(0xd2)]),a['sort']()['forEach'](c=>{const aa=a9;if(c[aa(0xd0)]!==aa(0x15a)&&c[aa(0xd0)]!=='game'){if(aa(0x132)!==aa(0x144))b[aa(0xf5)]([c[aa(0xd0)],c[aa(0x11e)](),c['description']()]);else{if(e['keys'](f)['length']>=this[aa(0x155)][aa(0x136)]){i[aa(0x138)]('Too\x20many\x20options');throw new j();}}}}),Log[a9(0x151)](b['toString']());}[a0Q(0x133)](a){const ab=a0Q;return this[ab(0x14b)][ab(0x10f)](b=>b['match'](a));}[a0Q(0x130)](a){const ac=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ac(0x117)](':');if(b)return a=b[0x0],this[ac(0x133)](a);else{if(ac(0xf0)===ac(0xf0))return;else{if(e['keys'](f)['length']<this[ac(0x155)][ac(0xcc)]){i['error']('Too\x20few\x20options');throw new j();}}}}[a0Q(0x101)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;try{if(ad(0xdb)==='fCddW')e[ad(0x100)](f,g,h);else{let f=a[ad(0x117)](':');a=f[0x0];let g=f[0x1];if(g){if(ad(0x153)!=='JmUqv')return this[ad(0x155)]['aliases']||ad(0x152);else b[ad(0x102)](0x0,0x0,g);}let h=this[ad(0x133)](a);if(h){if(ad(0x13c)!==ad(0x11b))yield h['run'](b,c);else{d[ad(0x138)]('Missing\x20required\x20option:\x20'+e);throw new f();}}else throw'Command\x20not\x20found';}}catch(k){throw Log[ad(0x138)](k);}});}[a0Q(0xe3)](){const ae=a0Q;return this[ae(0x155)][ae(0xe3)]||ae(0x159);}[a0Q(0x100)](){const af=a0Q;return this[af(0x155)][af(0x100)]||af(0xe6);}['examples'](){const ag=a0Q;return this[ag(0x155)][ag(0xde)]||[];}[a0Q(0x11e)](){const ah=a0Q;return this[ah(0x155)][ah(0x11e)]||'No\x20aliases';}}
|
|
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
|
-
(function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(
|
|
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
|
-
|
|
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
|
-
const
|
|
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 a4ap=a4d;(function(a,b){const ah=a4d,c=a();while(!![]){try{const d=-parseInt(ah(0x1a0))/0x1+-parseInt(ah(0x184))/0x2*(parseInt(ah(0x18c))/0x3)+parseInt(ah(0x18e))/0x4*(parseInt(ah(0x16d))/0x5)+-parseInt(ah(0x189))/0x6*(-parseInt(ah(0x181))/0x7)+-parseInt(ah(0x190))/0x8*(-parseInt(ah(0x17b))/0x9)+-parseInt(ah(0x199))/0xa*(-parseInt(ah(0x19f))/0xb)+parseInt(ah(0x1a7))/0xc*(parseInt(ah(0x153))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x5b7fd));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ai=a4d;if(c){const e=c[ai(0x164)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const aj=a4d;return a4a[aj(0x196)]()['search']('(((.+)+)+)+$')[aj(0x196)]()[aj(0x15b)](a4a)['search']('(((.+)+)+)+$');});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x13b;let f=c[d];return f;},a4d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const ak=a4d;ak(0x13c)!=='MhSKk'?g(f):(f=[g,h]['join'](':'),i[ak(0x140)](ak(0x147)+j));});}return new(c||(c=Promise))(function(f,g){const ao=a4d;function h(k){const al=a4d;if('Tpild'!==al(0x19c))try{j(d['next'](k));}catch(l){g(l);}else d(e['throw'](f));}function i(k){const am=a4d;if('inCCQ'!==am(0x1b8))f['push']({'id':g,'cidr':h[am(0x156)],'az':i['az'],'subnetId':j[am(0x13f)]});else try{am(0x168)!=='mNadV'?j(d[am(0x144)](k)):c(d);}catch(n){g(n);}}function j(k){const an=a4d;k['done']?f(k[an(0x161)]):e(k[an(0x161)])[an(0x1b2)](h,i);}j((d=d[ao(0x164)](a,b||[]))[ao(0x18a)]());});};import a4F from'./aws.command.js';import{execSync}from'child_process';function a4c(){const aB=['HUhAO','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','confirm','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','StrTb','128120oLhlvU','amiId','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','cidr','ZaVMx','join','Instance\x20Count:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','getProjectConfig','}]\x22','string','HhGAA','ask','CtFsF','9XJMOJh','createKeyPair','date','Security\x20Group:\x20','Security\x20Group\x20Name:\x20[','t3.micro','2219nhTdIH','**\x20Available\x20Subnets\x20**','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','1409986kVEWWE','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Key-Pair:\x20','ID:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','12882TiFGpE','next','\x20CIDR:\x20','3SSrxOT','error','16SuPWOJ','},\x20{Key=Name,Value=','4976176zebtsp','Desc','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','\x20AZONE:\x20','1:1','fsi','toString','sort','number','29210DBfejS','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','sOQOJ','Setting\x20AMI\x20ID\x20to\x20','IhLQG','880KMxxFK','745390BSvBPA','**\x20Available\x20key-pairs\x20**','build\x20on\x20','bright','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','IyHEm','*\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','9852vuHlrS','amazon','getConfigFromShorthand','env','desc','ndZeW','alias','fYzCk','QIHmY','ec2describeKeys','**\x20Available\x20AMIs\x20**','then','forEach','AQgjX','TdLsC','parse','chooseVPC','inCCQ','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','\x22Web\x20App\x22','exit','maka\x20aws:create-instance','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=*','ZWqcS','PSfhj','getTime','LnxiW','ubQYX','azinI','create-instance','22,80,443','subnetId','success','tFHqw','nWKwe','subnet','throw','readFileSync','help','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','ec2create','Please\x20choose\x20a\x20key\x20to\x20use:\x20','push','ec2createSG','User\x20Data:','Setting\x20the\x20key-pair\x20to:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','\x20SUBNETID:\x20','Setting\x20SG\x20ID\x20to:\x20','Setting\x20Subnet\x20ID\x20to\x20','2951SzrOeh','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','name','cider','split','GyZLJ','\x20AMIID:\x20','assign','constructor','wgyZx','gxZex','dTdtL','notice','IBOkF','value','log','Subnet:\x20','apply','\x20:\x20','ByAbl','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22'];a4c=function(){return aB;};return a4c();}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['create']({'name':a4ap(0x13d),'aliases':['ci'],'usage':a4ap(0x1bc),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ap(0x1aa)],'validOpts':[a4ap(0x146)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a4d;try{const c=this[aq(0x195)][aq(0x175)](),d=new AWS(),{appName:f}=c,g=this[aq(0x195)][aq(0x1a9)](b[aq(0x1aa)]),h=this[aq(0x195)]['getConfigPath'](g);let i=f+'-'+g,j=(yield Actions[aq(0x179)]('EC2\x20Name:\x20['+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions[aq(0x16a)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let s='';r&&(s=yield d[aq(0x17c)]({'env':g}));try{Log[aq(0x15f)](aq(0x1a1));let x=s?s:j,y=d[aq(0x1b0)]({'suggestion':x}),z=(yield Actions[aq(0x179)](aq(0x149)))||'-1';if(parseInt(z)<0x0){if(aq(0x1af)!==aq(0x1be)){Log[aq(0x18d)](aq(0x192)),Log[aq(0x15f)]('No\x20instance\x20has\x20been\x20created.');return;}else c[aq(0x140)](aq(0x19b)),d[aq(0x1a3)](aq(0x1a4));}y===null||y===void 0x0?void 0x0:y[aq(0x1b3)](function(B){const ar=aq;if(ar(0x1c1)==='CkbPH')d(e[ar(0x18a)](f));else{if(parseInt(z)===B['id']){if(ar(0x17a)===ar(0x16c)){c[ar(0x18d)](ar(0x192)),d['notice']('No\x20instance\x20has\x20been\x20created.');return;}else k=B['name'],Log[ar(0x140)]('Setting\x20the\x20key-pair\x20to:\x20'+k);}}});}catch(B){Log['error'](B);}l=yield d[aq(0x1b7)]();let t=yield Actions[aq(0x16a)](aq(0x14e)),u;if(t){let C=l===''?d[aq(0x1b7)]():l;u=(yield Actions[aq(0x179)](aq(0x17f)+j+']'))||j;let D=(yield Actions[aq(0x179)](aq(0x16f)))||aq(0x13e),E=D[aq(0x157)](',');d[aq(0x14b)]({'description':aq(0x1ba),'name':u,'vpcId':C,'sgPorts':E});}u=j;try{let F=yield d['listSecurityGroups'](u),G=(yield Actions[aq(0x179)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';F[aq(0x1b3)](function(H){const as=aq;if('QSlOs'!==as(0x15c))H['id']===parseInt(G)&&(as(0x178)!==as(0x160)?(m=H['sgId'],Log[as(0x140)](as(0x151)+m+'\x0a')):(e[as(0x162)](f),g[as(0x18d)](h)));else try{i(j['next'](k));}catch(K){m(K);}});if(m==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(H){Log['error'](H);}try{if(aq(0x1b4)!==aq(0x1b4)){let J=o[aq(0x148)](p[aq(0x15a)]({'imageId':q,'count':r,'type':s,'key':t,'sgIds':u,'subnet':v,'tags':aq(0x14f)+w+aq(0x18f)+x+aq(0x176)},y&&{'userData':z}));J&&(C['success'](aq(0x19b)),D['bright'](aq(0x1a4)));}else{let J=0x7e6;Log[aq(0x15f)](aq(0x1b1));let K=execSync(aq(0x1bd)+J+aq(0x1a6))['toString'](),L=JSON['parse'](K),M=[],N=[];L[aq(0x1b3)](function(P,Q){const at=aq;if(at(0x19e)!==at(0x19e))f=g[at(0x16e)],h[at(0x140)](at(0x19d)+i+'\x20:\x20'+j['desc']);else{if(P[at(0x1ad)]===at(0x1a8)){let S=P[at(0x191)][at(0x157)]('build\x20on\x20')[0x1];M[at(0x14a)]({'amiId':P['ID'],'desc':P[at(0x191)],'date':S});}}}),M[aq(0x197)](function(P,Q){const au=aq;if(au(0x142)!==au(0x142))e[au(0x14a)]({'id':f,'amiId':g[au(0x16e)],'desc':h[au(0x1ab)]});else return new Date(Q[au(0x17d)])['getTime']()-new Date(P[au(0x17d)])[au(0x1c0)]();}),M['forEach'](function(P,Q){const av=aq;if(av(0x166)!==av(0x171))N['push']({'id':Q,'amiId':P['amiId'],'desc':P['desc']});else throw b[av(0x18d)](av(0x185));}),N[aq(0x1b3)](function(P){const aw=aq;console[aw(0x162)](aw(0x187)+P['id']+aw(0x159)+P['amiId']+'\x20DESCRIPTION:\x20'+P[aw(0x1ab)]);});let O=(yield Actions[aq(0x179)](aq(0x16b)))||'0';N[aq(0x1b3)](function(P){const ax=aq;P['id']===parseInt(O)&&(n=P[ax(0x16e)],Log[ax(0x140)](ax(0x19d)+n+ax(0x165)+P[ax(0x1ab)]));});if(n===''){if('YNONG'!=='mnmai')throw Log['error'](aq(0x185));else return new e(f[aq(0x17d)])['getTime']()-new g(h[aq(0x17d)])[aq(0x1c0)]();}}}catch(Q){aq(0x141)!=='tFHqw'?c[aq(0x18d)](d):Log[aq(0x18d)](Q);}try{Log[aq(0x15f)](aq(0x182));let S=execSync(aq(0x174))[aq(0x196)](),T=JSON[aq(0x1b6)](S),U=[];T['forEach'](function(W,X){const ay=aq;U[ay(0x14a)]({'id':X,'cidr':W[ay(0x156)],'az':W['az'],'subnetId':W['subnetId']});}),U[aq(0x1b3)](function(W){const az=aq;console[az(0x162)](az(0x187)+W['id']+az(0x18b)+W[az(0x170)]+az(0x193)+W['az']+az(0x150)+W[az(0x13f)]);});let V=(yield Actions[aq(0x179)](aq(0x183)))||'0';U['forEach'](function(W){const aA=aq;aA(0x15e)!==aA(0x15d)?W['id']===parseInt(V)&&(p=W[aA(0x13f)],Log[aA(0x140)](aA(0x152)+p)):h(i)===j['id']&&(o=p[aA(0x155)],q[aA(0x140)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});if(p==='')throw Log[aq(0x18d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(W){Log['error'](W);}let v=aq(0x194);try{if(aq(0x1ae)===aq(0x1a5))i['id']===j(k)&&(q=r[aq(0x16e)],s['success']('Setting\x20AMI\x20ID\x20to\x20'+t+aq(0x165)+u[aq(0x1ab)]));else{let Y=(yield Actions['ask'](aq(0x154)))||aq(0x194),Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===aq(0x198)&&typeof parseInt(a0)===aq(0x198)&&(v=[Z,a0]['join'](':'),Log[aq(0x140)](aq(0x147)+v));}}catch(a1){Log[aq(0x18d)](a1);}try{if(aq(0x158)==='GyZLJ'){let a2=(yield Actions[aq(0x179)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'))||aq(0x180);typeof a2===aq(0x177)&&(o=a2);}else e=f[aq(0x13f)],g[aq(0x140)](aq(0x152)+h);}catch(a4){aq(0x13b)===aq(0x1bf)?c[aq(0x18d)](d):Log[aq(0x18d)](a4);}let w;try{let a6=yield Actions[aq(0x16a)](aq(0x188),![]);if(a6){if(aq(0x1b5)!=='TdLsC'){let a8=e[aq(0x191)][aq(0x157)](aq(0x1a2))[0x1];f[aq(0x14a)]({'amiId':g['ID'],'desc':h[aq(0x191)],'date':a8});}else{w=a4G[aq(0x172)](h,'user-data'),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+w),yield this[aq(0x195)]['createFile']({'filePath':w,'data':''});let a8=yield Actions[aq(0x16a)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?');}}}catch(a9){Log[aq(0x18d)](a9);}try{let aa=JSON['parse'](execSync(aq(0x19a)+p+aq(0x167))[aq(0x196)]())[0x0][aq(0x143)];Log[aq(0x15f)]('ImageID:'+n),Log[aq(0x15f)](aq(0x173)+v),Log['notice']('Instace\x20Type:\x20'+o),Log[aq(0x15f)](aq(0x186)+k),Log['notice'](aq(0x17e)+m),Log[aq(0x15f)](aq(0x163)+aa);if(w){Log[aq(0x15f)](aq(0x14c)+w);const ac=yield a4H[aq(0x145)](w);Log[aq(0x15f)](ac);}let ab=yield Actions[aq(0x16a)](aq(0x1b9));if(ab){let ad=d[aq(0x148)](Object['assign']({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':'\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value='+g+aq(0x18f)+j+aq(0x176)},w&&{'userData':w}));ad&&(Log['success'](aq(0x19b)),Log[aq(0x1a3)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else Log[aq(0x15f)](aq(0x169));}catch(ae){aq(0x1ac)===aq(0x1ac)?(console[aq(0x162)](ae),Log['error'](ae)):(ae=f[aq(0x155)],g[aq(0x140)](aq(0x14d)+h));}}catch(ag){console[aq(0x18d)](ag),process[aq(0x1bb)](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
|
-
|
|
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
|
-
|
|
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
|
-
function a7c(){var G=['
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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;
|