@maka/maka-cli 4.2.26 → 4.2.27
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.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/generators/services/_index.js +1 -1
- package/dist/generators/services/openssl.js +1 -1
- package/dist/generators/services/translation.js +1 -1
- package/dist/maka.js +1 -1
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/dist/command.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x142))/0x1*(parseInt(N(0x161))/0x2)+parseInt(N(0x12e))/0x3+parseInt(N(0x10d))/0x4*(parseInt(N(0x109))/0x5)+-parseInt(N(0x15f))/0x6+-parseInt(N(0xfc))/0x7*(-parseInt(N(0x134))/0x8)+-parseInt(N(0x13a))/0x9+-parseInt(N(0xdb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xddc38));function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd2;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if(O(0x16b)!==O(0x16b)){c['error']('Too\x20many\x20arguments');throw new d();}else{const e=a?function(){const P=O;if(P(0x13f)!=='TbXEl')e[P(0x15e)]([f[P(0x136)],g['aliases'](),h[P(0xd4)]()]);else{if(c){const g=c[P(0xf1)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a0a=a0b(this,function(){const Q=a0d;return a0a['toString']()['search'](Q(0x140))[Q(0xd9)]()[Q(0x122)](a0a)[Q(0xee)](Q(0x140));});a0a();var __awaiter=this&&this[a0R(0xec)]||function(a,b,c,d){function e(f){const S=a0d;if(S(0x12d)!==S(0x102))return f instanceof c?f:new c(function(g){g(f);});else{let h=[this[S(0x136)]][S(0x10c)](this[S(0x160)][S(0x14a)]||[]);return this[S(0x149)]&&h[S(0x15e)](this[S(0x149)]),h[S(0x157)](b);}}return new(c||(c=Promise))(function(f,g){const X=a0d;function h(k){const T=a0d;try{j(d[T(0x111)](k));}catch(l){g(l);}}function i(k){const U=a0d;if(U(0x107)!==U(0x126))try{j(d['throw'](k));}catch(l){g(l);}else{const n=new d({});n[U(0x15e)]([U(0x166),U(0x14e),U(0x11e)]),e[U(0x168)]()[U(0x131)](o=>{const V=U;o[V(0x136)]!==V(0x117)&&o['name']!==V(0x138)&&n[V(0x15e)]([o[V(0x136)],o[V(0x14a)](),o[V(0xd4)]()]);}),f[U(0x14f)](n[U(0xd9)]());}}function j(k){const W=a0d;if('jOONL'!==W(0x130))k[W(0xd8)]?f(k['value']):e(k[W(0x172)])['then'](h,i);else return d=e[0x0],this[W(0x103)](f);}j((d=d[X(0xf1)](a,b||[]))['next']());});};import a0I from'path';function a0c(){const aj=['16VpMUue','proCommands','name','No\x20aliases','game','zeTyN','9612396dqVpGM','notice','keys','Command.create\x20requires\x20some\x20options!','jAzLt','TbXEl','(((.+)+)+)+$','Commands:','960955zNFJiD','kDeQK','Invalid\x20options:\x20','homedir','mustBeInMakaProject','dFjEQ','There\x20is\x20no\x20Meteor\x20application\x20here','parent','aliases','length','IUvDs','getPro','Alias','bright','call','HaZtf','singleLicense','DWcYv','KbkOS','NWpZn','domainLicense','includes','trialActive','Missing\x20required\x20options\x20','YcQbd','validateMeteorInstall','then','UnzKP','push','441108ZKRONe','options','2VJbTaq','dyOED','cbVQe','IMaFn','jNOGQ','Name','trialExpirationDate','sort','create','disableAuthCheck','EyHrF','usage','Trial\x20License\x20Expires:\x20','GpaOX','BKtOE','deploy','splice','value','aLEuj','Command.create\x20requires\x20a\x20handler\x20function!','throw','description','error','maxOptsLength','Too\x20many\x20options','done','toString','To\x20use\x20these\x20pro\x20flags,\x20\x22','3017050mvjcKy','TvwrH','validateParams','mustHaveMeteorInstalled','proFlags','NDqBP','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','RtZrC','RTfDy','run','roles','assign','HjawP','addCommand\x20requires\x20a\x20Command\x20instance','Local','gtHBf','Command\x20not\x20found','__awaiter','No\x20description\x20provided.','search','UBNMr','fsi','apply','invoke','minArgLength','FUOFF','exit','validateMakaSubscription','udBow','szkVC','minOptsLength','To\x20use\x20this\x20command,\x20\x22','yhbPG','2485658VXDXrq','match','platform','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','FNMct','Too\x20few\x20options','CXofC','findCommand','LwrvQ','gjAJm','Too\x20many\x20arguments','tJrTa','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','7931395tDAmWh','IkSVx','PHuTq','concat','4nOQmyA','split','existsSync','maxArgLength','next','tableList','.meteor','No\x20usage\x20provided.','runSubCommand','_handler','murder','ymIFi','findSubCommand','Too\x20few\x20arguments','help','yvYos','validateMakaProject','Description','EEKkg','Missing\x20required\x20option:\x20','join','constructor','_commands','number','BuEpM','iNYzM','find','filter','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','findProjectDirectory','bOWzU','AppData','hPPVF','3048297TEVukV','function','efKbd','forEach','examples','yTniW'];a0c=function(){return aj;};return a0c();}import a0J from'os';import a0K from'fs';const homeDir=a0J[a0R(0x145)]();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,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const Y=a0R;super();if(!a){if(Y(0x164)!==Y(0x100))throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');else{const d=g?function(){const Z=Y;if(d){const u=q[Z(0xf1)](r,arguments);return s=null,u;}}:function(){};return l=![],d;}}if(!a[Y(0x136)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==Y(0x12f))throw new Error('Command\x20requires\x20a\x20handler\x20function');this['options']=Object[Y(0xe6)]({},a),this[Y(0x136)]=this[Y(0x160)][Y(0x136)],this['_commands']=[],this[Y(0x116)]=b['bind'](this);}static[a0R(0x169)](a,b,c){const a0=a0R;var d;if(!a)throw new Error(a0(0x13d));if(typeof b!==a0(0x12f))throw new Error(a0(0xd2));let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[a0(0x160)])===null||d===void 0x0?void 0x0:d[a0(0x136)]}),c['addCommand'](e),e;}[a0R(0xfd)](a){const a1=a0R;let b=[this['name']][a1(0x10c)](this[a1(0x160)][a1(0x14a)]||[]);return this[a1(0x149)]&&b[a1(0x15e)](this['parent']),b[a1(0x157)](a);}['addCommand'](a){const a2=a0R;if(!(a instanceof Command)){if(a2(0x104)===a2(0x104))throw new Error(a2(0xe8));else return this['options'][a2(0x14a)]||a2(0x137);}this[a2(0x123)][a2(0x15e)](a);}[a0R(0x11d)](){const a3=a0R,a=this[a3(0xf0)][a3(0x12a)]();return a!==![]?!![]:![];}[a0R(0x15b)](){const a4=a0R;let a=a0I[a4(0x121)](homeDir,'.meteor');const b=process[a4(0xfe)]==='win32';if(b){if(a4(0x11c)!==a4(0x11c))try{i(j[a4(0xd3)](k));}catch(d){m(d);}else{a=a0I[a4(0x121)](homeDir,'AppData','Local',a4(0x113));if(!a0K[a4(0x10f)](a)){if(a4(0xf7)!==a4(0xf4))return![];else{if(d['length']>=this['options'][a4(0x110)]){g['error'](a4(0x106));throw new h();}}}}}else{if(a4(0xfb)!=='jgsVr'){if(!a0K[a4(0x10f)](a))return![];}else{if(e[a4(0x13c)](f)[a4(0x14b)]<this[a4(0x160)]['minOptsLength']){i[a4(0xd5)]('Too\x20few\x20options');throw new j();}}}return!![];}[a0R(0xf6)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a5=a0d;if(a5(0x173)===a5(0x153))c[a5(0x13b)](a5(0x141)),this[a5(0x112)](this[a5(0x123)]),d['exit'](0x0);else try{if('TvwrH'===a5(0xdc)){const d=this[a5(0x103)](a[0x0]);if(d){if(a5(0x12b)!==a5(0x12b)){if(e[a5(0x13c)](f)[a5(0x14b)]>=this['options'][a5(0xd6)]){i[a5(0xd5)](a5(0xd7));throw new j();}}else{const g=(d===null||d===void 0x0?void 0x0:d[a5(0x136)])||a[0x0],h=(d===null||d===void 0x0?void 0x0:d[a5(0x149)])||'',i=d===null||d===void 0x0?void 0x0:d[a5(0x160)];if(i[a5(0x16a)])return;const j=a[0x0],k=Object[a5(0x13c)](b),l=yield this['fsi'][a5(0x14d)]();!l&&(Log[a5(0xd5)](a5(0x129)),process[a5(0xf5)](0x1));const m=(l===null||l===void 0x0?void 0x0:l['proCommands'][a5(0x157)](g))||(l===null||l===void 0x0?void 0x0:l[a5(0x135)][a5(0x157)](h)),n=(l===null||l===void 0x0?void 0x0:l[a5(0xe5)][a5(0x157)](a5(0x152)))||(l===null||l===void 0x0?void 0x0:l[a5(0xe5)][a5(0x157)](a5(0x156))),o=!n&&!(l===null||l===void 0x0?void 0x0:l['trialActive']);if(m&&o){if(a5(0x15d)!==a5(0x15d))return;else throw a5(0xfa)+a[0x0]+a5(0xe1);}if(k['length']>0x0){const q=l===null||l===void 0x0?void 0x0:l['proFlags']['filter'](r=>k['includes'](r));if(q&&q[a5(0x14b)]>0x0&&o){if(a5(0xe3)===a5(0xe3))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(q===null||q===void 0x0?void 0x0:q[a5(0x121)](',\x20'))+a5(0xe1);else throw a5(0xeb);}}if(j===a5(0x170)){if(a5(0x147)!==a5(0x165)){const s=yield this['fsi'][a5(0x14d)](),t=s===null||s===void 0x0?void 0x0:s[a5(0x135)][a5(0x157)](a[0x0]+'\x20'+a[0x1]);if(t&&o)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a5(0xe1);}else c(d);}(l===null||l===void 0x0?void 0x0:l[a5(0x158)])&&!n&&Log[a5(0x13b)](a5(0x16d)+l[a5(0x167)][a5(0x10e)]('T')[0x0]);}}}else{c[a5(0xd5)](a5(0x101));throw new d();}}catch(w){if(a5(0x162)==='eYAfe')return;else throw w;}});}[a0R(0xdd)](a,b,c){const a6=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a6(0x13c)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a6(0x14b)])>0x0){if(a6(0x15a)!=='xjROz'){if(g[a6(0x14b)]===0x0){if(a6(0x16f)===a6(0x16f)){Log[a6(0xd5)](a6(0x159)+requiredOpts[a6(0x121)](',\x20'));throw new UsageError();}else{const i=this['validateMakaProject']();if(!i)throw new c();}}requiredOpts[a6(0x131)](i=>{const a7=a6;if(!g[a7(0x157)](i)){Log[a7(0xd5)](a7(0x120)+i);throw new UsageError();}});}else throw new b(a6(0x13d));}validOpts=validOpts[a6(0x10c)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a6(0x14b)])>0x0&&(validOpts[a6(0x15e)](a6(0x11b)),g['forEach'](j=>{const a8=a6;if(!validOpts[a8(0x157)](j)){Log['error'](a8(0x144)+j);throw new UsageError();}}));}[a0R(0xe4)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d;try{if('zZjqY'==='zZjqY'){a=a||[],b=b||{};try{yield this[a9(0xf6)](a,b);}catch(c){Log[a9(0xd5)](c),process[a9(0xf5)](0x0);}yield this['invoke'](a,b);}else try{i(j[a9(0x111)](k));}catch(f){m(f);}}catch(f){a9(0xe7)!==a9(0xe7)?c[a9(0x171)](0x0,0x0,d):process[a9(0xf5)](0x1);}});}[a0R(0xf2)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aa=a0d,{usage:usage='',description:description='',examples:examples=[]}=this['options'];this['validateParams'](a,b,this[aa(0x160)]);try{if(aa(0x154)==='JsrZM'){c['error'](aa(0xd7));throw new d();}else{(a[0x0]===_prevCmd||a[aa(0x14b)]===0x0)&&(this[aa(0x123)][aa(0x14b)]>0x0&&b[aa(0x11b)])&&(Log[aa(0x13b)]('Commands:'),this[aa(0x112)](this[aa(0x123)]),process['exit'](0x0));if(!b[aa(0x11b)]){if(aa(0x155)===aa(0xe0))c(d);else{if(this[aa(0x160)][aa(0x146)]){const f=this[aa(0x11d)]();if(!f)throw new MustBeInProjectError();}if(this['options'][aa(0xde)]){if(aa(0x13e)===aa(0x163))h[aa(0xd8)]?i(j[aa(0x172)]):k(l[aa(0x172)])[aa(0x15c)](m,n);else{const h=this[aa(0x15b)]();if(!h){if(aa(0xef)===aa(0x11f))c[aa(0xd5)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),d[aa(0xf5)](0x1);else throw new NoMeteorFoundError();}}}if(typeof this[aa(0x160)]['minArgLength']===aa(0x124)){if(a['length']<this[aa(0x160)][aa(0xf3)]){if('dJwMW'===aa(0x139))return this[aa(0x160)]['description']||aa(0xed);else{Log['error'](aa(0x11a));throw new UsageError();}}}if(typeof this[aa(0x160)][aa(0x110)]===aa(0x124)){if(aa(0x14c)===aa(0x14c)){if(a[aa(0x14b)]>=this[aa(0x160)][aa(0x110)]){if(aa(0xf8)!==aa(0xf8))throw aa(0xfa)+b[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';else{Log[aa(0xd5)](aa(0x106));throw new UsageError();}}}else d[aa(0xd5)](e),f['exit'](0x0);}if(typeof this['options']['minOptsLength']===aa(0x124)){if(aa(0xe2)!==aa(0xe2)){const n=this[aa(0x15b)]();if(!n)throw new c();}else{if(Object['keys'](b)[aa(0x14b)]<this[aa(0x160)][aa(0xf9)]){Log['error'](aa(0x101));throw new UsageError();}}}if(typeof this['options'][aa(0xd6)]==='number'){if(aa(0x133)===aa(0x133)){if(Object[aa(0x13c)](b)[aa(0x14b)]>=this[aa(0x160)][aa(0xd6)]){if(aa(0x105)!=='gjAJm')d(e[aa(0x111)](f));else{Log['error'](aa(0xd7));throw new UsageError();}}}else return this['_commands'][aa(0x127)](p=>p[aa(0xfd)](c));}}}_prevCmd=a[0x0],yield this[aa(0x116)][aa(0x150)](this,a,b);}}catch(p){if(aa(0x125)!=='VvcfA'){if(p instanceof UsageError){if(aa(0x151)===aa(0x151))Log['usage'](description,examples,usage);else{const r=f===null||g===void 0x0?void 0x0:h[aa(0xdf)][aa(0x128)](s=>r['includes'](s));if(r&&r[aa(0x14b)]>0x0&&j)throw aa(0xda)+(r===null||r===void 0x0?void 0x0:r[aa(0x121)](',\x20'))+aa(0xe1);}}else{if(p instanceof MustBeInProjectError)Log[aa(0xd5)](aa(0xff)),Log[aa(0x16c)](description,examples,usage);else{if(p instanceof NoMeteorFoundError)Log[aa(0xd5)](aa(0x108)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),Log[aa(0x16c)](description,examples,usage);else{if(p instanceof NoMeteorAppFoundError)Log['error'](aa(0x148)),Log[aa(0x16c)](description,examples,usage);else{if('ymIFi'===aa(0x118))throw p;else{f=g[aa(0x121)](h,aa(0x12c),aa(0xe9),aa(0x113));if(!i['existsSync'](j))return![];}}}}}process[aa(0xf5)](0x1);}else{if(!f[aa(0x157)](g)){k[aa(0xd5)](aa(0x144)+l);throw new m();}}}});}[a0R(0x112)](a){const ab=a0R,b=new a0L({});b[ab(0x15e)](['Name',ab(0x14e),'Description']),a['sort']()[ab(0x131)](c=>{const ac=ab;if('bnnOx'!=='bnnOx')g[ac(0xd5)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),h[ac(0x13b)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),i['usage'](j,k,l);else{if(c[ac(0x136)]!=='murder'&&c['name']!==ac(0x138)){if(ac(0x16e)===ac(0x16e))b[ac(0x15e)]([c[ac(0x136)],c[ac(0x14a)](),c[ac(0xd4)]()]);else return f instanceof g?h:new i(function(m){m(k);});}}}),Log[ab(0x14f)](b['toString']());}[a0R(0x103)](a){const ad=a0R;return this['_commands'][ad(0x127)](b=>b[ad(0xfd)](a));}[a0R(0x119)](a){const ae=a0R;let b=a===null||a===void 0x0?void 0x0:a[ae(0x10e)](':');if(b)return a=b[0x0],this[ae(0x103)](a);else{if('UJJdZ'!==ae(0x10a))return;else throw new b();}}[a0R(0x115)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const af=a0d;try{let d=a[af(0x10e)](':');a=d[0x0];let f=d[0x1];if(f){if(af(0x143)===af(0x143))b[af(0x171)](0x0,0x0,f);else return this[af(0x160)][af(0x16c)]||af(0x114);}let g=this['findCommand'](a);if(g)'TvMhZ'==='yjIei'?b[af(0x15e)](this['parent']):yield g[af(0xe4)](b,c);else{if(af(0x10b)!==af(0x10b))f[af(0xd5)](af(0xff)),g[af(0x16c)](h,i,j);else throw af(0xeb);}}catch(k){if(af(0xea)===af(0xea))throw Log['error'](k);else{if(!f[af(0x157)](g)){k[af(0xd5)](af(0x120)+l);throw new m();}}}});}[a0R(0xd4)](){const ag=a0R;return this[ag(0x160)][ag(0xd4)]||ag(0xed);}[a0R(0x16c)](){return this['options']['usage']||'No\x20usage\x20provided.';}[a0R(0x132)](){const ah=a0R;return this[ah(0x160)][ah(0x132)]||[];}[a0R(0x14a)](){const ai=a0R;return this[ai(0x160)][ai(0x14a)]||ai(0x137);}}
|
|
1
|
+
const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x123))/0x1*(parseInt(N(0x11d))/0x2)+-parseInt(N(0x136))/0x3+-parseInt(N(0x14f))/0x4*(parseInt(N(0x187))/0x5)+-parseInt(N(0x15d))/0x6+parseInt(N(0x18f))/0x7+-parseInt(N(0x189))/0x8*(-parseInt(N(0x142))/0x9)+parseInt(N(0x10a))/0xa*(parseInt(N(0x18a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x248fd));function a0c(){const ah=['run','sort','platform','splice','proCommands','Please\x20run\x20\x22maka\x20install\x20meteor\x22','AppData','validateMakaSubscription','apply','dGWGA','cxkGc','call','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','fsi','Command.create\x20requires\x20some\x20options!','addCommand\x20requires\x20a\x20Command\x20instance','game','parent','trialActive','aliases','push','__awaiter','win32','1695PmwHAF','name','24EKQklb','22PDaAEw','cnTag','homedir','ckaKm','Command.create\x20requires\x20a\x20handler\x20function!','1509361zgVAEj','split','VkPCj','prsxu','_commands','Too\x20many\x20options','number','_handler','singleLicense','value','(((.+)+)+)+$','1691980XweYOo','YaThE','pHqjR','existsSync','rPXsf','getPro','Missing\x20required\x20option:\x20','Description','forEach','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','options','murder','maxArgLength','deploy','filter','bind','ILUTG','mustHaveMeteorInstalled','GjYLx','10Eimopp','Trial\x20License\x20Expires:\x20','ENCjq','RyzTH','kuqpO','create','39989oWfQuo','minOptsLength','findSubCommand','Command\x20not\x20found','To\x20use\x20this\x20command,\x20\x22','mustBeInMakaProject','runSubCommand','Missing\x20required\x20options\x20','addCommand','description','MVBJh','find','match','keys','FXHBT','Invalid\x20options:\x20','pbENe','findProjectDirectory','usage','81177nOgRFr','TBfxc','validateMakaProject','minArgLength','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','rtZFm','mwFYo','Command\x20requires\x20a\x20handler\x20function','bjuLS','Too\x20many\x20arguments','owhow','616887XExNeT','jSWRe','domainLicense','Awkoy','BlsIp','throw','Too\x20few\x20options','.meteor','toString','constructor','includes','then','tableList','3032cQctts','findCommand','disableAuthCheck','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','validateParams','error','concat','exit','HbDhd','roles','oCmsy','maxOptsLength','help','search','755550JvKcVt','done','proFlags','TzgRS','MKKfg','invoke','join','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','citzL','length','To\x20use\x20these\x20pro\x20flags,\x20\x22','No\x20aliases','kzwGa','assign','validateMeteorInstall','notice','uuKcH','Wnakp','examples'];a0c=function(){return ah;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){if('pnikI'!==O(0x159)){const e=c[O(0x178)](b,arguments);return c=null,e;}else{if(i[O(0x166)]===0x0){q[O(0x154)](O(0x12a)+r[O(0x163)](',\x20'));throw new s();}m[O(0x112)](z=>{const P=O;if(!t[P(0x14c)](z)){w[P(0x154)]('Missing\x20required\x20option:\x20'+z);throw new x();}});}}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const Q=a0d;return a0a[Q(0x14a)]()[Q(0x15c)]('(((.+)+)+)+$')['toString']()[Q(0x14b)](a0a)['search'](Q(0x109));});a0a();var __awaiter=this&&this[a0R(0x185)]||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 U=a0d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const S=a0d;try{j(d[S(0x147)](k));}catch(l){g(l);}}function j(k){const T=a0d;k[T(0x15e)]?f(k[T(0x198)]):e(k['value'])[T(0x14d)](h,i);}j((d=d[U(0x178)](a,b||[]))['next']());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0R(0x18c)]();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,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x109;let f=c[d];return f;},a0d(a,b);}let _prevCmd='';export class Command extends Tool{constructor(a,b){const V=a0R;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[V(0x188)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!=='function'){if(V(0x11a)!=='FQTpI')throw new Error(V(0x13e));else g['name']!=='murder'&&h[V(0x188)]!==V(0x180)&&m['push']([n[V(0x188)],o['aliases'](),p[V(0x12c)]()]);}this[V(0x114)]=Object[V(0x16a)]({},a),this[V(0x188)]=this[V(0x114)]['name'],this[V(0x193)]=[],this[V(0x196)]=b[V(0x119)](this);}static[a0R(0x122)](a,b,c){const W=a0R;var d;if(!a)throw new Error(W(0x17e));if(typeof b!=='function'){if(W(0x169)!==W(0x11f))throw new Error(W(0x18e));else{d[W(0x154)](W(0x110)+e);throw new f();}}let e=new Command(a,b);return c=c||a0M,Object[W(0x16a)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c['options'])===null||d===void 0x0?void 0x0:d[W(0x188)]}),c[W(0x12b)](e),e;}[a0R(0x12f)](a){const X=a0R;let b=[this[X(0x188)]][X(0x155)](this[X(0x114)][X(0x183)]||[]);return this['parent']&&b['push'](this['parent']),b[X(0x14c)](a);}[a0R(0x12b)](a){const Y=a0R;if(!(a instanceof Command)){if(Y(0x143)==='jSWRe')throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');else throw Y(0x126);}this['_commands'][Y(0x184)](a);}[a0R(0x138)](){const Z=a0R,a=this['fsi'][Z(0x134)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const a0=a0R;let a=a0I[a0(0x163)](homeDir,'.meteor');const b=process[a0(0x172)]===a0(0x186);if(b){if('DIXTU'!==a0(0x141)){a=a0I[a0(0x163)](homeDir,a0(0x176),'Local',a0(0x149));if(!a0K['existsSync'](a)){if('XYGwy'!=='XYGwy'){if(!f['includes'](g)){k['error'](a0(0x110)+l);throw new m();}}else return![];}}else{const e=g?function(){const a1=a0;if(e){const u=q[a1(0x178)](r,arguments);return s=null,u;}}:function(){};return l=![],e;}}else{if('HbDhd'===a0(0x157)){if(!a0K[a0(0x10d)](a))return![];}else throw b;}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if(a2(0x179)!==a2(0x179))return this[a2(0x114)][a2(0x16f)]||[];else try{const d=this[a2(0x150)](a[0x0]);if(d){const f=(d===null||d===void 0x0?void 0x0:d[a2(0x188)])||a[0x0],g=(d===null||d===void 0x0?void 0x0:d[a2(0x181)])||'',h=d===null||d===void 0x0?void 0x0:d[a2(0x114)];if(h[a2(0x151)])return;const i=a[0x0],j=Object[a2(0x130)](b),k=yield this['fsi'][a2(0x10f)]();if(!k){if('Wukqv'===a2(0x133)){if(d[a2(0x166)]>=this['options']['maxArgLength']){g['error']('Too\x20many\x20arguments');throw new h();}}else Log[a2(0x154)](a2(0x152)),process[a2(0x156)](0x1);}const l=(k===null||k===void 0x0?void 0x0:k[a2(0x174)][a2(0x14c)](f))||(k===null||k===void 0x0?void 0x0:k[a2(0x174)][a2(0x14c)](g)),m=(k===null||k===void 0x0?void 0x0:k[a2(0x158)][a2(0x14c)](a2(0x197)))||(k===null||k===void 0x0?void 0x0:k[a2(0x158)][a2(0x14c)](a2(0x144))),n=!m&&!(k===null||k===void 0x0?void 0x0:k['trialActive']);if(l&&n){if(a2(0x13f)!==a2(0x145))throw a2(0x127)+a[0x0]+a2(0x113);else{d[a2(0x154)](a2(0x12a)+e[a2(0x163)](',\x20'));throw new f();}}if(j[a2(0x166)]>0x0){const q=k===null||k===void 0x0?void 0x0:k[a2(0x15f)][a2(0x118)](r=>j[a2(0x14c)](r));if(q&&q[a2(0x166)]>0x0&&n)throw a2(0x167)+(q===null||q===void 0x0?void 0x0:q[a2(0x163)](',\x20'))+a2(0x113);}if(i===a2(0x117)){if(a2(0x137)!==a2(0x137))try{i(j[a2(0x147)](k));}catch(s){m(s);}else{const s=yield this[a2(0x17d)][a2(0x10f)](),t=s===null||s===void 0x0?void 0x0:s[a2(0x174)][a2(0x14c)](a[0x0]+'\x20'+a[0x1]);if(t&&n)throw a2(0x127)+a[0x0]+a2(0x113);}}if((k===null||k===void 0x0?void 0x0:k[a2(0x182)])&&!m){if('pHqjR'===a2(0x10c))Log[a2(0x16c)](a2(0x11e)+k['trialExpirationDate'][a2(0x190)]('T')[0x0]);else{const v=this[a2(0x17d)][a2(0x134)]();return v!==![]?!![]:![];}}}}catch(v){throw v;}});}[a0R(0x153)](a,b,c){const a3=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a3(0x130)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts['length'])>0x0){if('zpjFZ'!==a3(0x160)){if(g[a3(0x166)]===0x0){Log[a3(0x154)](a3(0x12a)+requiredOpts['join'](',\x20'));throw new UsageError();}requiredOpts[a3(0x112)](h=>{const a4=a3;if(!g[a4(0x14c)](h)){if('TqDmq'==='UIKYm'){if(!f['includes'](g)){k['error'](a4(0x132)+l);throw new m();}}else{Log[a4(0x154)](a4(0x110)+h);throw new UsageError();}}});}else{d[a3(0x154)](a3(0x132)+e);throw new f();}}validOpts=validOpts['concat'](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a3(0x166)])>0x0&&(validOpts[a3(0x184)](a3(0x15b)),g[a3(0x112)](i=>{const a5=a3;if(!validOpts[a5(0x14c)](i)){Log[a5(0x154)](a5(0x132)+i);throw new UsageError();}}));}[a0R(0x170)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a0d;try{if('mqvPG'!==a6(0x146)){a=a||[],b=b||{};try{if(a6(0x17a)!=='SReFJ')yield this[a6(0x177)](a,b);else throw b;}catch(d){Log[a6(0x154)](d),process[a6(0x156)](0x0);}yield this[a6(0x162)](a,b);}else throw new b(a6(0x17f));}catch(g){if('VKBEn'===a6(0x165))throw new b();else process['exit'](0x1);}});}['invoke'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;if(a7(0x131)!=='FXHBT')d[a7(0x154)](e),f[a7(0x156)](0x0);else{const {usage:usage='',description:description='',examples:examples=[]}=this[a7(0x114)];this[a7(0x153)](a,b,this[a7(0x114)]);try{if('YBaqF'===a7(0x10e)){if(!c['existsSync'](d))return![];}else{(a[0x0]===_prevCmd||a[a7(0x166)]===0x0)&&(this[a7(0x193)][a7(0x166)]>0x0&&b[a7(0x15b)])&&(Log[a7(0x16c)]('Commands:'),this[a7(0x14e)](this[a7(0x193)]),process['exit'](0x0));if(!b['help']){if(this[a7(0x114)][a7(0x128)]){if(a7(0x10b)===a7(0x10b)){const f=this[a7(0x138)]();if(!f){if('ckaKm'!==a7(0x18d)){let h=f===null||g===void 0x0?void 0x0:h[a7(0x190)](':');if(h)return k=h[0x0],this[a7(0x150)](l);else return;}else throw new MustBeInProjectError();}}else{if(e[a7(0x130)](f)[a7(0x166)]<this['options'][a7(0x124)]){i['error'](a7(0x148));throw new j();}}}if(this[a7(0x114)][a7(0x11b)]){const i=this[a7(0x16b)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[a7(0x114)][a7(0x139)]===a7(0x195)){if(a[a7(0x166)]<this[a7(0x114)][a7(0x139)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[a7(0x114)][a7(0x116)]===a7(0x195)){if(a7(0x120)===a7(0x120)){if(a[a7(0x166)]>=this[a7(0x114)][a7(0x116)]){Log[a7(0x154)](a7(0x140));throw new UsageError();}}else{if(e[a7(0x130)](f)['length']>=this[a7(0x114)][a7(0x15a)]){i['error'](a7(0x194));throw new j();}}}if(typeof this['options'][a7(0x124)]===a7(0x195)){if(Object['keys'](b)['length']<this['options'][a7(0x124)]){Log[a7(0x154)](a7(0x148));throw new UsageError();}}if(typeof this[a7(0x114)][a7(0x15a)]===a7(0x195)){if(a7(0x16d)===a7(0x161))throw new b(a7(0x13b));else{if(Object[a7(0x130)](b)[a7(0x166)]>=this[a7(0x114)][a7(0x15a)]){Log[a7(0x154)](a7(0x194));throw new UsageError();}}}}_prevCmd=a[0x0],yield this[a7(0x196)][a7(0x17b)](this,a,b);}}catch(l){if(a7(0x121)!==a7(0x121))return![];else{if(l instanceof UsageError)Log[a7(0x135)](description,examples,usage);else{if(l instanceof MustBeInProjectError)Log[a7(0x154)](a7(0x164)),Log['usage'](description,examples,usage);else{if(l instanceof NoMeteorFoundError){if('prsxu'===a7(0x192))Log[a7(0x154)](a7(0x17c)),Log['notice'](a7(0x175)),Log['usage'](description,examples,usage);else throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||l===void 0x0?void 0x0:f[a7(0x163)](',\x20'))+a7(0x113);}else{if(l instanceof NoMeteorAppFoundError)Log[a7(0x154)](a7(0x13a)),Log['usage'](description,examples,usage);else throw l;}}}process[a7(0x156)](0x1);}}}});}[a0R(0x14e)](a){const a8=a0R,b=new a0L({});b[a8(0x184)](['Name','Alias',a8(0x111)]),a[a8(0x171)]()[a8(0x112)](c=>{const a9=a8;c[a9(0x188)]!==a9(0x115)&&c[a9(0x188)]!==a9(0x180)&&(a9(0x191)!==a9(0x13c)?b[a9(0x184)]([c[a9(0x188)],c[a9(0x183)](),c[a9(0x12c)]()]):(f[a9(0x184)](a9(0x15b)),g[a9(0x112)](q=>{const aa=a9;if(!k[aa(0x14c)](q)){n[aa(0x154)](aa(0x132)+q);throw new o();}})));}),Log['bright'](b[a8(0x14a)]());}['findCommand'](a){const ab=a0R;return this[ab(0x193)][ab(0x12e)](b=>b['match'](a));}[a0R(0x125)](a){let b=a===null||a===void 0x0?void 0x0:a['split'](':');if(b)return a=b[0x0],this['findCommand'](a);else return;}[a0R(0x129)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ac=a0d;if(ac(0x12d)!==ac(0x12d))b[ac(0x156)](0x1);else try{if(ac(0x13d)!==ac(0x13d))return d=e[0x0],this[ac(0x150)](f);else{let g=a[ac(0x190)](':');a=g[0x0];let h=g[0x1];h&&b[ac(0x173)](0x0,0x0,h);let i=this[ac(0x150)](a);if(i)yield i[ac(0x170)](b,c);else{if(ac(0x18b)!==ac(0x11c))throw'Command\x20not\x20found';else return f instanceof g?h:new i(function(m){m(k);});}}}catch(k){if('Wnakp'===ac(0x16e))throw Log[ac(0x154)](k);else c['splice'](0x0,0x0,d);}});}['description'](){const ad=a0R;return this[ad(0x114)][ad(0x12c)]||'No\x20description\x20provided.';}[a0R(0x135)](){const ae=a0R;return this[ae(0x114)][ae(0x135)]||'No\x20usage\x20provided.';}['examples'](){const af=a0R;return this[af(0x114)][af(0x16f)]||[];}[a0R(0x183)](){const ag=a0R;return this[ag(0x114)]['aliases']||ag(0x168);}}
|
package/dist/commands/_index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x13f))/0x1*(parseInt(u(0x13e))/0x2)+parseInt(u(0x140))/0x3+-parseInt(u(0x146))/0x4+-parseInt(u(0x143))/0x5+parseInt(u(0x142))/0x6+parseInt(u(0x147))/0x7+-parseInt(u(0x13c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xd6b2d));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0x145)]()[w(0x141)](w(0x144))['toString']()['constructor'](a1a)['search'](w(0x144));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_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';function a1c(){var x=['7536956tFsIQh','2786440DMjNCx','apply','486584nxBBTJ','7WYAFKD','442722ipAzJw','search','1164588atLNps','1957575cLHzEG','(((.+)+)+)+$','toString','6008796FKwOqy'];a1c=function(){return x;};return a1c();}import'./run.js';import'./ssh.js';import'./ssl.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x13c;var f=c[d];return f;},a1d(a,b);}import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a2d,c=a();while(!![]){try{var d=-parseInt(u(
|
|
1
|
+
(function(a,b){var u=a2d,c=a();while(!![]){try{var d=-parseInt(u(0x9b))/0x1+-parseInt(u(0x9e))/0x2+parseInt(u(0x99))/0x3*(-parseInt(u(0x9c))/0x4)+-parseInt(u(0x9a))/0x5+parseInt(u(0x96))/0x6+parseInt(u(0x9f))/0x7+-parseInt(u(0x98))/0x8*(-parseInt(u(0x95))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe3ea8));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var v=a2d;return a2a[v(0xa0)]()[v(0x97)](v(0x94))[v(0xa0)]()[v(0x9d)](a2a)[v(0x97)](v(0x94));});function a2c(){var w=['(((.+)+)+)+$','9CZqofn','1978776rOyWYp','search','16724632xiZkGD','124911PvAXKO','2126425GLrcgN','412037ayHhwO','108MGpRpa','constructor','2210680MDGZkw','11060210ZpzMkq','toString'];a2c=function(){return w;};return a2c();}function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x94;var f=c[d];return f;},a2d(a,b);}a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';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 a3z=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(
|
|
1
|
+
const a3z=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0x169))/0x1*(parseInt(w(0x15b))/0x2)+parseInt(w(0x167))/0x3*(parseInt(w(0x166))/0x4)+-parseInt(w(0x159))/0x5+parseInt(w(0x15a))/0x6*(parseInt(w(0x16c))/0x7)+-parseInt(w(0x174))/0x8*(-parseInt(w(0x157))/0x9)+parseInt(w(0x15c))/0xa+-parseInt(w(0x173))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xd694f));function a3c(){const G=['value','(((.+)+)+)+$','__awaiter','9lTZEiB','aws','3222835DaZeey','551802qfwizR','4306CcQAtP','13005850pPBljJ','maka\x20aws\x20<command>','ItNzp','YjPlN','AKOVX','search','done','sdJYn','constructor','runSubCommand','1453516awBmls','12WwffZx','maka\x20aws:di','518iAeluQ','apply','toString','28KvvgyL','then','next','create','maka\x20aws:describe-instance','findSubCommand','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','8325086iXPinv','2188840qahbva'];a3c=function(){return G;};return a3c();}const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if(c){const e=c[x(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a[y(0x16b)]()[y(0x161)](y(0x155))[y(0x16b)]()[y(0x164)](a3a)[y(0x161)](y(0x155));});a3a();var __awaiter=this&&this[a3z(0x156)]||function(a,b,c,d){function e(f){const A=a3d;if(A(0x15e)!=='ItNzp'){const h=g?function(){const B=A;if(h){const u=q[B(0x16a)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const C=a3d;try{if('DLGZJ'===C(0x163)){const m=d[C(0x16a)](e,arguments);return f=null,m;}else j(d['next'](k));}catch(m){'hWZRa'!==C(0x160)?g(m):c(d);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const D=a3d;k[D(0x162)]?f(k['value']):e(k[D(0x154)])[D(0x16d)](h,i);}j((d=d[E(0x16a)](a,b||[]))[E(0x16e)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3z(0x16f)]({'name':a3z(0x158),'usage':a3z(0x15d),'minArgLength':0x1,'description':a3z(0x172),'examples':[a3z(0x170),a3z(0x168)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if(F(0x15f)===F(0x15f))try{let c=a[0x0],d=this[F(0x171)](c);d&&this[F(0x165)](c,a,b);}catch(f){console['error'](f),process['exit'](0x0);}else c(d);});});function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x154;let f=c[d];return f;},a3d(a,b);}export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4am=a4d;(function(a,b){const ai=a4d,c=a();while(!![]){try{const d=parseInt(ai(0x1fd))/0x1+parseInt(ai(0x214))/0x2+parseInt(ai(0x20a))/0x3*(-parseInt(ai(0x22a))/0x4)+parseInt(ai(0x22e))/0x5*(parseInt(ai(0x25e))/0x6)+-parseInt(ai(0x210))/0x7*(-parseInt(ai(0x24f))/0x8)+-parseInt(ai(0x227))/0x9+-parseInt(ai(0x251))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x3dddf));const a4b=(function(){let a=!![];return function(b,c){const aj=a4d;if(aj(0x238)!=='SKdCd'){const d=a?function(){const ak=aj;if(c){const e=c[ak(0x22b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else{const f=d['apply'](e,arguments);return f=null,f;}};}()),a4a=a4b(this,function(){const al=a4d;return a4a[al(0x254)]()[al(0x243)](al(0x258))[al(0x254)]()[al(0x25a)](a4a)[al(0x243)](al(0x258));});a4a();var __awaiter=this&&this[a4am(0x220)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const an=a4d;if(an(0x20b)==='YQNCC')g(f);else{if(e){const i=i['apply'](j,arguments);return k=null,i;}}});}return new(c||(c=Promise))(function(f,g){const ar=a4d;function h(k){const ao=a4d;try{j(d[ao(0x209)](k));}catch(l){g(l);}}function i(k){const ap=a4d;if(ap(0x20f)!=='zgRkj')i['id']===j(k)&&(q=r['amiId'],s[ap(0x232)]('Setting\x20AMI\x20ID\x20to\x20'+t+ap(0x1f1)+u['desc']));else try{j(d[ap(0x1f9)](k));}catch(m){g(m);}}function j(k){const aq=a4d;k[aq(0x1e3)]?f(k[aq(0x1f2)]):e(k[aq(0x1f2)])[aq(0x235)](h,i);}j((d=d[ar(0x22b)](a,b||[]))[ar(0x209)]());});};import a4F from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a4d(a,b);}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';function a4c(){const aD=['join','jJASI','cider','desc','t3.micro','done','parse','cPxRF','Setting\x20SG\x20ID\x20to:\x20','alias','Buypt','\x20CIDR:\x20','EC2\x20Name:\x20[','**\x20Available\x20AMIs\x20**','VTsSb','amiId','RFxHt','date','amazon','\x20:\x20','value','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','\x20AMIID:\x20','1:1','name','kfijA','throw','IPozD','ImageID:','exit','473344wkwQJI','push','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','itWkJ','awaRb','ID:\x20','Setting\x20Subnet\x20ID\x20to\x20','\x20SUBNETID:\x20','NPAkr','ec2describeKeys','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','next','812271IKlakE','YQNCC','getProjectConfig','ask','getConfigFromShorthand','zgRkj','1099CnKZzp','HQodi','Open\x20port\x20443\x20for\x20SSL?','Would\x20you\x20like\x20to\x20include\x20user\x20data?','21862dDncGt','User\x20Data:','Setting\x20AMI\x20ID\x20to\x20','vOpcj','createKeyPair','sgId','assign','forEach','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getTime','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','cidr','__awaiter','chooseVPC','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','uUGXf','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=*','1464831MXMxdm','yJrGI','Subnet:\x20','4yyMqAz','apply','confirm','\x20DESCRIPTION:\x20','955ntUwFk','subnet','No\x20instance\x20has\x20been\x20created.','number','success','EzKmd','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','then','VOIdG','split','CKTxH','UybJu','Instance\x20Count:\x20','help','create-instance','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Desc','\x22Web\x20App\x22','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','search','sUSzg','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','ec2createSG','},\x20{Key=Name,Value=','YqNZe','Key-Pair:\x20','build\x20on\x20','listSecurityGroups','log','}]\x22','9640OeYlhm','env','1093500vixqak','Security\x20Group:\x20','createFile','toString','NKcfp','Setting\x20the\x20key-pair\x20to:\x20','subnetId','(((.+)+)+)+$','sort','constructor','user-data','Security\x20Group\x20Name:\x20[','LKOAr','3858vxhVVs','error','GZgJq','ureIb','readFileSync','fsi'];a4c=function(){return aD;};return a4c();}Command['create']({'name':a4am(0x23c),'aliases':['ci'],'usage':'maka\x20aws:create-instance','description':'','mustBeInMakaProject':!![],'requiredOpts':[a4am(0x250)],'validOpts':[a4am(0x23b)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const as=a4d;try{const c=this[as(0x263)][as(0x20c)](),d=new AWS(),{appName:f}=c,g=this[as(0x263)][as(0x20e)](b[as(0x250)]),h=this[as(0x263)]['getConfigPath'](g);let i=f+'-'+g,j=(yield Actions[as(0x20d)](as(0x1ea)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions['confirm'](as(0x234));let s='';r&&(s=yield d[as(0x218)]({'env':g}));try{if(as(0x205)!==as(0x25d)){Log[as(0x207)]('**\x20Available\x20key-pairs\x20**');let x=s?s:j,y=d[as(0x206)]({'suggestion':x}),z=(yield Actions[as(0x20d)](as(0x23f)))||'-1';if(parseInt(z)<0x0){if('jJASI'!==as(0x265))e['push']({'id':f,'amiId':g[as(0x1ed)],'desc':h[as(0x1e1)]});else{Log[as(0x25f)]('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'),Log[as(0x207)]('No\x20instance\x20has\x20been\x20created.');return;}}y===null||y===void 0x0?void 0x0:y['forEach'](function(B){const at=as;'xBMgh'===at(0x260)?c(d):parseInt(z)===B['id']&&(at(0x1ee)==='RFxHt'?(k=B[at(0x1f7)],Log[at(0x232)](at(0x256)+k)):h(i)===j['id']&&(o=p[at(0x1f7)],q[at(0x232)](at(0x256)+r)));});}else return f instanceof g?h:new i(function(C){C(k);});}catch(C){Log[as(0x25f)](C);}l=yield d[as(0x221)]();let t=yield Actions[as(0x22c)](as(0x245)),u;if(t){let D=l===''?d[as(0x221)]():l,E=yield Actions[as(0x22c)](as(0x212));u=(yield Actions[as(0x20d)](as(0x25c)+j+']'))||j,d[as(0x247)]({'description':as(0x241),'name':u,'vpcId':D,'ssl':E});}u=j;try{if(as(0x225)===as(0x225)){let F=yield d[as(0x24c)](u),G=(yield Actions[as(0x20d)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';F[as(0x21b)](function(H){const au=as;au(0x261)==='ureIb'?H['id']===parseInt(G)&&(m=H['sgId'],Log[au(0x232)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a')):(f=g[au(0x1ed)],h[au(0x232)](au(0x216)+i+au(0x1f1)+j[au(0x1e1)]));});if(m==='')throw Log[as(0x25f)](as(0x222));}else throw b[as(0x25f)](as(0x222));}catch(I){if(as(0x1e8)!==as(0x255))Log['error'](I);else try{i(j['throw'](k));}catch(K){m(K);}}try{let K=0x7e6;Log[as(0x207)](as(0x1eb));let L=execSync(as(0x226)+K+as(0x1f4))['toString'](),M=JSON[as(0x1e4)](L),N=[],O=[];M['forEach'](function(Q,R){const av=as;if(av(0x233)!==av(0x236)){if(Q[av(0x1e7)]===av(0x1f0)){let S=Q[av(0x240)][av(0x237)](av(0x24b))[0x1];N[av(0x1fe)]({'amiId':Q['ID'],'desc':Q[av(0x240)],'date':S});}}else c(d);}),N[as(0x259)](function(Q,R){const aw=as;return new Date(R[aw(0x1ef)])[aw(0x21d)]()-new Date(Q[aw(0x1ef)])[aw(0x21d)]();}),N[as(0x21b)](function(Q,R){const ax=as;O[ax(0x1fe)]({'id':R,'amiId':Q[ax(0x1ed)],'desc':Q[ax(0x1e1)]});}),O[as(0x21b)](function(Q){const ay=as;console[ay(0x24d)](ay(0x202)+Q['id']+ay(0x1f5)+Q[ay(0x1ed)]+ay(0x22d)+Q['desc']);});let P=(yield Actions[as(0x20d)](as(0x21c)))||'0';O[as(0x21b)](function(Q){const az=as;Q['id']===parseInt(P)&&(az(0x249)!=='QAMpa'?(n=Q[az(0x1ed)],Log[az(0x232)](az(0x216)+n+az(0x1f1)+Q[az(0x1e1)])):c['error'](d));});if(n==='')throw Log[as(0x25f)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(Q){Log[as(0x25f)](Q);}try{Log[as(0x207)]('**\x20Available\x20Subnets\x20**');let R=execSync(as(0x223))['toString'](),S=JSON[as(0x1e4)](R),T=[];S[as(0x21b)](function(V,W){const aA=as;T[aA(0x1fe)]({'id':W,'cidr':V[aA(0x266)],'az':V['az'],'subnetId':V[aA(0x257)]});}),T[as(0x21b)](function(V){const aB=as;aB(0x1ec)!==aB(0x1ec)?h[aB(0x1e3)]?i(j['value']):k(l['value'])[aB(0x235)](m,n):console[aB(0x24d)](aB(0x202)+V['id']+aB(0x1e9)+V[aB(0x21f)]+'\x20AZONE:\x20'+V['az']+aB(0x204)+V[aB(0x257)]);});let U=(yield Actions[as(0x20d)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';T[as(0x21b)](function(V){const aC=as;V['id']===parseInt(U)&&(p=V[aC(0x257)],Log[aC(0x232)](aC(0x203)+p));});if(p==='')throw Log[as(0x25f)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(V){Log[as(0x25f)](V);}let v=as(0x1f6);try{let W=(yield Actions['ask'](as(0x1f3)))||as(0x1f6),X=W['split'](':')[0x0],Y=W[as(0x237)](':')[0x1];typeof parseInt(X)==='number'&&typeof parseInt(Y)===as(0x231)&&(v=[X,Y][as(0x264)](':'),Log[as(0x232)](as(0x1ff)+v));}catch(Z){if(as(0x244)===as(0x244))Log['error'](Z);else{c[as(0x25f)](as(0x208)),d[as(0x207)](as(0x230));return;}}try{if(as(0x201)===as(0x200))d(e[as(0x1f9)](f));else{let a2=(yield Actions['ask']('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'))||as(0x1e2);typeof a2==='string'&&(as(0x228)==='yJrGI'?o=a2:(e=f[as(0x219)],g[as(0x232)]('Setting\x20SG\x20ID\x20to:\x20'+h+'\x0a')));}}catch(a4){Log[as(0x25f)](a4);}let w;try{let a5=yield Actions[as(0x22c)](as(0x213),![]);if(a5){w=a4G[as(0x264)](h,as(0x25b)),Log[as(0x207)]('Creating\x20user\x20data\x20file\x20in\x20'+w),yield this['fsi'][as(0x253)]({'filePath':w,'data':''});let a6=yield Actions[as(0x22c)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?');}}catch(a7){Log[as(0x25f)](a7);}try{let a8=JSON[as(0x1e4)](execSync(as(0x21e)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[as(0x254)]())[0x0][as(0x22f)];Log['notice'](as(0x1fb)+n),Log['notice'](as(0x23a)+v),Log[as(0x207)]('Instace\x20Type:\x20'+o),Log['notice'](as(0x24a)+k),Log[as(0x207)](as(0x252)+m),Log[as(0x207)](as(0x229)+a8);if(w){Log[as(0x207)](as(0x215)+w);const aa=yield a4H[as(0x262)](w);Log[as(0x207)](aa);}let a9=yield Actions['confirm'](as(0x242));if(a9){if(as(0x1fa)!==as(0x211)){let ab=d['ec2create'](Object[as(0x21a)]({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':as(0x246)+g+as(0x248)+j+as(0x24e)},w&&{'userData':w}));ab&&(as(0x239)===as(0x1e5)?c[as(0x25f)](d):(Log[as(0x232)](as(0x23d)),Log['bright'](as(0x23e))));}else f=[g,h]['join'](':'),i['success']('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+j);}else as(0x1f8)===as(0x1f8)?Log[as(0x207)](as(0x224)):h['id']===i(j)&&(o=p[as(0x219)],q[as(0x232)](as(0x1e6)+r+'\x0a'));}catch(af){'UyPdb'!==as(0x217)?(console[as(0x24d)](af),Log[as(0x25f)](af)):(af=f[as(0x257)],g[as(0x232)](as(0x203)+h));}}catch(ah){console[as(0x25f)](ah),process[as(0x1fc)](0x0);}});},a4F);
|
|
1
|
+
const a4ao=a4d;(function(a,b){const al=a4d,c=a();while(!![]){try{const d=parseInt(al(0x20d))/0x1*(parseInt(al(0x227))/0x2)+-parseInt(al(0x23c))/0x3+parseInt(al(0x245))/0x4*(-parseInt(al(0x1f8))/0x5)+parseInt(al(0x239))/0x6+parseInt(al(0x22b))/0x7+parseInt(al(0x206))/0x8+-parseInt(al(0x203))/0x9*(parseInt(al(0x202))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x33bbc));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const am=a4d;if(c){const e=c[am(0x23b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const an=a4d;return a4a[an(0x1fe)]()['search'](an(0x218))[an(0x1fe)]()[an(0x260)](a4a)[an(0x228)](an(0x218));});a4a();function a4c(){const aF=['Setting\x20the\x20number\x20of\x20instances\x20to:\x20','yYhfM','done','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','throw','readFileSync','tYZYU','value','1094850FyBoEo','subnet','apply','1223517fvyycP','amazon','name','Setting\x20Subnet\x20ID\x20to\x20','Kvjpk','22,80,443','gpJAX','join','cider','4qLRzAI','bORuc','ImageID:','notice','bright','EC2\x20Name:\x20[','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','user-data','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','tPImQ','Jnuuz','Ivyzg','ec2describeKeys','\x20AZONE:\x20','next','getTime','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','error','kKjvD','create','\x20CIDR:\x20','getConfigFromShorthand','alias','ckShk','},\x20{Key=Name,Value=','parse','build\x20on\x20','constructor','help','Instace\x20Type:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','exit','listSecurityGroups','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','iaHve','\x20SUBNETID:\x20','env','cidr','Setting\x20the\x20key-pair\x20to:\x20','subnetId','desc','hCysS','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','maka\x20aws:create-instance','fsi','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Key-Pair:\x20','NoEdU','push','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Security\x20Group\x20Name:\x20[','confirm','36155LsBcYf','User\x20Data:','QdMnI','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','VtfEP','assign','toString','getConfigPath','success','Desc','76350eBuYmk','9REOTcV','createFile','ndDgi','371176sqhpGs','then','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Setting\x20SG\x20ID\x20to:\x20','forEach','134077rPpFkR','ask','LnOPY','No\x20instance\x20has\x20been\x20created.','Subnet:\x20','Security\x20Group:\x20','amiId','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','__awaiter','create-instance','*\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','(((.+)+)+)+$','chooseVPC','t3.micro','log','sgId','ec2createSG','**\x20Available\x20Subnets\x20**','YtuMZ','split','sort','**\x20Available\x20AMIs\x20**','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','number','Yfqiz','1:1','2tasIRG','search','string','createKeyPair','1901592AqUqxA','date','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','}]\x22','Would\x20you\x20like\x20to\x20include\x20user\x20data?','getProjectConfig'];a4c=function(){return aF;};return a4c();}var __awaiter=this&&this[a4ao(0x215)]||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 as=a4d;function h(k){const ap=a4d;try{j(d[ap(0x253)](k));}catch(l){g(l);}}function i(k){const aq=a4d;try{j(d[aq(0x235)](k));}catch(l){aq(0x237)!=='EEjHj'?g(l):(c[aq(0x200)](aq(0x24b)),d[aq(0x249)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}}function j(k){const ar=a4d;k[ar(0x233)]?f(k[ar(0x238)]):e(k[ar(0x238)])[ar(0x207)](h,i);}j((d=d[as(0x23b)](a,b||[]))[as(0x253)]());});};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';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1e9;let f=c[d];return f;},a4d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4ao(0x258)]({'name':a4ao(0x216),'aliases':['ci'],'usage':a4ao(0x1ef),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ao(0x26a)],'validOpts':[a4ao(0x261)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const at=a4d;if('xMwIf'==='xMwIf')try{const c=this['fsi'][at(0x230)](),d=new AWS(),{appName:f}=c,g=this['fsi'][at(0x25a)](b[at(0x26a)]),h=this[at(0x1f0)][at(0x1ff)](g);let i=f+'-'+g,j=(yield Actions['ask'](at(0x24a)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions['confirm'](at(0x1f1));let s='';r&&(s=yield d[at(0x22a)]({'env':g}));try{if('YtuMZ'===at(0x21f)){Log[at(0x248)]('**\x20Available\x20key-pairs\x20**');let x=s?s:j,y=d[at(0x251)]({'suggestion':x}),z=(yield Actions[at(0x20e)](at(0x1f5)))||'-1';if(parseInt(z)<0x0){Log[at(0x256)](at(0x24d)),Log[at(0x248)](at(0x210));return;}y===null||y===void 0x0?void 0x0:y['forEach'](function(A){const au=at;au(0x20f)!==au(0x225)?parseInt(z)===A['id']&&(au(0x25c)!==au(0x25c)?h(i)===j['id']&&(o=p[au(0x23e)],q[au(0x200)]('Setting\x20the\x20key-pair\x20to:\x20'+r)):(k=A['name'],Log[au(0x200)](au(0x1ea)+k))):c[au(0x256)](d);});}else try{i(j[at(0x253)](k));}catch(B){m(B);}}catch(B){at(0x242)!==at(0x242)?(B=f[at(0x21c)],g[at(0x200)](at(0x20b)+h+'\x0a')):Log[at(0x256)](B);}l=yield d[at(0x219)]();let t=yield Actions[at(0x1f7)](at(0x223)),u;if(t){if(at(0x240)===at(0x240)){let D=l===''?d['chooseVPC']():l;u=(yield Actions[at(0x20e)](at(0x1f6)+j+']'))||j;let E=(yield Actions['ask'](at(0x266)))||at(0x241),F=E[at(0x220)](',');d[at(0x21d)]({'description':'\x22Web\x20App\x22','name':u,'vpcId':D,'sgPorts':F});}else c[at(0x256)](d);}u=j;try{let H=yield d[at(0x265)](u),I=(yield Actions[at(0x20e)](at(0x255)))||'0';H['forEach'](function(J){const av=at;av(0x246)===av(0x246)?J['id']===parseInt(I)&&(av(0x24f)!==av(0x24f)?h['id']===i(j)&&(o=p[av(0x1eb)],q[av(0x200)](av(0x23f)+r)):(m=J[av(0x21c)],Log[av(0x200)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'))):f[av(0x21b)]('ID:\x20'+g['id']+av(0x259)+h[av(0x1e9)]+'\x20AZONE:\x20'+i['az']+av(0x269)+j[av(0x1eb)]);});if(m===''){if('rpmgf'==='rpmgf')throw Log[at(0x256)](at(0x209));else{const K=g?function(){const aw=at;if(K){const L=q[aw(0x23b)](r,arguments);return s=null,L;}}:function(){};return l=![],K;}}}catch(K){Log['error'](K);}try{let L=0x7e6;Log[at(0x248)](at(0x222));let M=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=*'+L+at(0x217))['toString'](),N=JSON[at(0x25e)](M),O=[],P=[];N[at(0x20c)](function(R,S){const ax=at;if(ax(0x250)!==ax(0x250)){if(f[ax(0x25b)]==='amazon'){let U=k[ax(0x201)][ax(0x220)](ax(0x25f))[0x1];l[ax(0x1f4)]({'amiId':m['ID'],'desc':n[ax(0x201)],'date':U});}}else{if(R[ax(0x25b)]===ax(0x23d)){let U=R[ax(0x201)][ax(0x220)](ax(0x25f))[0x1];O[ax(0x1f4)]({'amiId':R['ID'],'desc':R['Desc'],'date':U});}}}),O[at(0x221)](function(R,S){const ay=at;return new Date(S[ay(0x22c)])[ay(0x254)]()-new Date(R[ay(0x22c)])[ay(0x254)]();}),O['forEach'](function(R,S){const az=at;P[az(0x1f4)]({'id':S,'amiId':R[az(0x213)],'desc':R[az(0x1ec)]});}),P[at(0x20c)](function(R){const aA=at;console[aA(0x21b)]('ID:\x20'+R['id']+'\x20AMIID:\x20'+R[aA(0x213)]+'\x20DESCRIPTION:\x20'+R['desc']);});let Q=(yield Actions[at(0x20e)](at(0x1fb)))||'0';P[at(0x20c)](function(R){const aB=at;R['id']===parseInt(Q)&&('yBAbL'!=='tJixP'?(n=R[aB(0x213)],Log[aB(0x200)]('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+R['desc'])):c=d);});if(n==='')throw Log[at(0x256)](at(0x209));}catch(R){if('tPImQ'===at(0x24e))Log['error'](R);else throw b['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}try{Log[at(0x248)](at(0x21e));let T=execSync(at(0x208))[at(0x1fe)](),U=JSON[at(0x25e)](T),V=[];U[at(0x20c)](function(X,Y){const aC=at;if('jmmiD'!=='jmmiD'){c[aC(0x256)](aC(0x24d)),d['notice'](aC(0x210));return;}else V[aC(0x1f4)]({'id':Y,'cidr':X[aC(0x244)],'az':X['az'],'subnetId':X[aC(0x1eb)]});}),V[at(0x20c)](function(X){const aD=at;console['log']('ID:\x20'+X['id']+aD(0x259)+X['cidr']+aD(0x252)+X['az']+'\x20SUBNETID:\x20'+X[aD(0x1eb)]);});let W=(yield Actions[at(0x20e)](at(0x263)))||'0';V['forEach'](function(X){const aE=at;'QdMnI'===aE(0x1fa)?X['id']===parseInt(W)&&(p=X[aE(0x1eb)],Log[aE(0x200)](aE(0x23f)+p)):(f=[g,h][aE(0x243)](':'),i[aE(0x200)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+j));});if(p==='')throw Log[at(0x256)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[at(0x256)](X);}let v=at(0x226);try{let Y=(yield Actions[at(0x20e)](at(0x22d)))||at(0x226),Z=Y[at(0x220)](':')[0x0],a0=Y[at(0x220)](':')[0x1];if(typeof parseInt(Z)==='number'&&typeof parseInt(a0)===at(0x224)){if(at(0x1ed)==='hCysS')v=[Z,a0][at(0x243)](':'),Log[at(0x200)](at(0x231)+v);else return f instanceof g?h:new i(function(a2){a2(k);});}}catch(a2){at(0x232)!==at(0x232)?b[at(0x248)](at(0x1ee)):Log[at(0x256)](a2);}try{let a4=(yield Actions['ask'](at(0x267)))||at(0x21a);typeof a4===at(0x229)&&(at(0x1fc)!==at(0x1fc)?c['error'](d):o=a4);}catch(a6){Log[at(0x256)](a6);}let w;try{let a7=yield Actions[at(0x1f7)](at(0x22f),![]);if(a7){w=a4G[at(0x243)](h,at(0x24c)),Log[at(0x248)]('Creating\x20user\x20data\x20file\x20in\x20'+w),yield this[at(0x1f0)][at(0x204)]({'filePath':w,'data':''});let a8=yield Actions[at(0x1f7)](at(0x214));}}catch(a9){Log[at(0x256)](a9);}try{if('XvJZZ'!==at(0x268)){let aa=JSON[at(0x25e)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+at(0x234))[at(0x1fe)]())[0x0][at(0x23a)];Log[at(0x248)](at(0x247)+n),Log[at(0x248)]('Instance\x20Count:\x20'+v),Log['notice'](at(0x262)+o),Log[at(0x248)](at(0x1f2)+k),Log['notice'](at(0x212)+m),Log['notice'](at(0x211)+aa);if(w){if(at(0x1f3)!==at(0x1f3))throw b[at(0x256)](at(0x209));else{Log['notice'](at(0x1f9)+w);const ad=yield a4H[at(0x236)](w);Log[at(0x248)](ad);}}let ab=yield Actions[at(0x1f7)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(ab){let ae=d['ec2create'](Object[at(0x1fd)]({'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+at(0x25d)+j+at(0x22e)},w&&{'userData':w}));ae&&(at(0x257)!==at(0x205)?(Log[at(0x200)](at(0x24b)),Log[at(0x249)](at(0x20a))):(d[at(0x256)](e),f[at(0x264)](0x0)));}else Log['notice'](at(0x1ee));}else e[at(0x1f4)]({'id':f,'amiId':g['amiId'],'desc':h[at(0x1ec)]});}catch(ah){console[at(0x21b)](ah),Log[at(0x256)](ah);}}catch(ai){console[at(0x256)](ai),process[at(0x264)](0x0);}else{if(e){const ak=i[at(0x23b)](j,arguments);return k=null,ak;}}});},a4F);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5B=a5d;function a5c(){const J=['iITik','create-key-pair','10SFiiKI','ckp','27IGKFMz','fsi','error','1956axxWoF','3179892JiUTqg','createKeyPair','140PqiPxj','9065023JetXKI','QRVti','wbRZY','then','next','value','getConfigFromShorthand','apply','create','fFIjk','265602ghSQEU','throw','help','15085XqYuva','search','6MwuJUt','4681143fYtZkW','2357584vIBuUO','(((.+)+)+)+$','toString','FdJIz','exit','env','yeitE','475736VnjEqi','__awaiter','SeSQt'];a5c=function(){return J;};return a5c();}(function(a,b){const y=a5d,c=a();while(!![]){try{const d=parseInt(y(0x15b))/0x1*(parseInt(y(0x164))/0x2)+-parseInt(y(0x15c))/0x3+parseInt(y(0x148))/0x4*(parseInt(y(0x159))/0x5)+parseInt(y(0x156))/0x6*(parseInt(y(0x14b))/0x7)+parseInt(y(0x15d))/0x8*(-parseInt(y(0x16b))/0x9)+-parseInt(y(0x169))/0xa*(parseInt(y(0x14c))/0xb)+parseInt(y(0x149))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xbf79c));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(c){const e=c[z(0x153)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0x15f)]()[A(0x15a)](A(0x15e))[A(0x15f)]()['constructor'](a5a)[A(0x15a)](A(0x15e));});a5a();var __awaiter=this&&this[a5B(0x165)]||function(a,b,c,d){function e(f){const C=a5d;if(C(0x14e)===C(0x14e))return f instanceof c?f:new c(function(g){const D=C;if(D(0x166)===D(0x166))g(f);else{const i=new c(),j=this[D(0x16c)][D(0x152)](d[D(0x162)]);i[D(0x14a)]({'env':j});}});else try{i(j[C(0x157)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const H=a5d;function h(k){const E=a5d;if(E(0x163)===E(0x163))try{j(d[E(0x150)](k));}catch(l){g(l);}else{if(e){const n=i['apply'](j,arguments);return k=null,n;}}}function i(k){const F=a5d;try{F(0x160)===F(0x160)?j(d['throw'](k)):c(d);}catch(m){'fFIjk'===F(0x155)?g(m):(d['error'](m),f[F(0x161)](0x0));}}function j(k){const G=a5d;'QRVti'!==G(0x14d)?d(e[G(0x150)](f)):k['done']?f(k[G(0x151)]):e(k[G(0x151)])[G(0x14f)](h,i);}j((d=d[H(0x153)](a,b||[]))['next']());});};import a5x from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x147;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5B(0x154)]({'name':a5B(0x168),'aliases':[a5B(0x16a)],'usage':'maka\x20aws\x20create-key-pair','mustBeInMakaProject':!![],'requiredOpts':[a5B(0x162)],'validOpts':[a5B(0x158)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a5d;try{const c=new AWS(),d=this['fsi']['getConfigFromShorthand'](b[I(0x162)]);c[I(0x14a)]({'env':d});}catch(f){I(0x167)!=='oWftt'?(console[I(0x147)](f),process[I(0x161)](0x0)):d(f['throw'](f));}});},a5x);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=parseInt(v(0x12a))/0x1+-parseInt(v(0x150))/0x2+parseInt(v(0x14e))/0x3+parseInt(v(0x144))/0x4+-parseInt(v(0x138))/0x5*(-parseInt(v(0x125))/0x6)+-parseInt(v(0x14b))/0x7*(-parseInt(v(0x127))/0x8)+-parseInt(v(0x13b))/0x9*(parseInt(v(0x140))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x4bd66));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if('IcxwL'===w(0x146))c(d);else{if(c){const f=c[w(0x136)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a['toString']()[x(0x129)](x(0x12b))['toString']()[x(0x139)](a6a)[x(0x129)](x(0x12b));});a6a();var __awaiter=this&&this[a6y(0x141)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a6d;'ESkzf'!==z(0x135)?d(e[z(0x12c)](f)):g(f);});}return new(c||(c=Promise))(function(f,g){const D=a6d;function h(k){const A=a6d;try{j(d[A(0x12c)](k));}catch(l){g(l);}}function i(k){const B=a6d;try{if(B(0x132)!=='nMLso')try{i(j[B(0x12c)](k));}catch(m){m(m);}else j(d[B(0x13f)](k));}catch(m){if(B(0x14f)!=='KvIzt')return c[B(0x143)]()['search'](B(0x12b))[B(0x143)]()[B(0x139)](d)['search'](B(0x12b));else g(m);}}function j(k){const C=a6d;if(C(0x13d)===C(0x13d))k[C(0x151)]?f(k[C(0x133)]):e(k[C(0x133)])[C(0x147)](h,i);else try{i(j['throw'](k));}catch(m){m(m);}}j((d=d[D(0x136)](a,b||[]))['next']());});};function a6c(){const G=['constructor','-ssl','9CUuViI','chooseVPC','bixcd','tJguZ','throw','5145020ewMkiY','__awaiter','exit','toString','672568SRUuUH','ssl','mIqFX','then','fsi','nfBqc','error','119eylgpS','jRYrv','List\x20is\x20not\x20all\x20numbers','955362KxnwZn','KvIzt','748300dsyEJU','done','csg','ask','324IpgigG','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','173992BvSAvA','\x22Web\x20App\x22','search','88019ARgDmt','(((.+)+)+)+$','next','forEach','Open\x20port\x20443\x20for\x20SSL?','confirm','help','create','nMLso','value','getProjectConfig','ESkzf','apply','name','23605yHvlOE'];a6c=function(){return G;};return a6c();}import a6u from'./aws.command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x123;let f=c[d];return f;},a6d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6y(0x131)]({'name':'create-security-group','aliases':[a6y(0x123)],'usage':'maka\x20aws\x20create-security-group','validOpts':[a6y(0x130)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a6d;if(E(0x149)===E(0x149))try{if('tJguZ'===E(0x13e)){const c=new AWS(),d=this[E(0x148)][E(0x134)](),{appName:f}=d;let g=yield c[E(0x13c)](),h=![];!b[E(0x145)]&&(h=yield Actions[E(0x12f)](E(0x12e)));let i=h?E(0x13a):'',j=b[E(0x137)]?b['name']:''+f+i,k=(yield Actions[E(0x124)]('Security\x20Group\x20Name:\x20['+j+']'))||j,l=(yield Actions['ask'](E(0x126)))||'22,80,443',m=l['split'](',');m[E(0x12d)](n=>{const F=E;if(!n['match'](/^\d+$/))throw F(0x14d);}),c['ec2createSG']({'description':E(0x128),'name':k,'vpcId':g,'sgPorts':m});}else c(d);}catch(o){if(E(0x14c)==='jRYrv')Log[E(0x14a)](o),process[E(0x142)](0x1);else throw E(0x14d);}else h['done']?i(j['value']):k(l[E(0x133)])[E(0x147)](m,n);});},a6u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a7z=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x161))/0x1*(-parseInt(v(0x159))/0x2)+parseInt(v(0x160))/0x3*(-parseInt(v(0x166))/0x4)+-parseInt(v(0x14a))/0x5*(parseInt(v(0x148))/0x6)+parseInt(v(0x154))/0x7+parseInt(v(0x14f))/0x8+parseInt(v(0x15e))/0x9*(-parseInt(v(0x168))/0xa)+-parseInt(v(0x157))/0xb*(-parseInt(v(0x15d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9a695));var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(w(0x167)===w(0x167)){if(c){var e=c[w(0x14c)](b,arguments);return c=null,e;}}else return e(this,void 0x0,void 0x0,function*(){var x=w;try{const s=new l();s[x(0x165)]();}catch(t){o[x(0x153)](t),p[x(0x15a)](0x0);}});}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var y=a7d;return a7a[y(0x156)]()[y(0x158)]('(((.+)+)+)+$')[y(0x156)]()[y(0x150)](a7a)[y(0x158)](y(0x151));});a7a();function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x148;var f=c[d];return f;},a7d(a,b);}var __awaiter=this&&this[a7z(0x15c)]||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){function h(k){var A=a7d;try{if(A(0x14e)===A(0x169)){const m=new b();m[A(0x165)]();}else j(d[A(0x149)](k));}catch(m){A(0x15b)!==A(0x15b)?c(d):g(m);}}function i(k){var B=a7d;try{j(d[B(0x14d)](k));}catch(l){B(0x14b)==='eGxpM'?c(d):g(l);}}function j(k){var C=a7d;C(0x16a)===C(0x163)?d(e['throw'](f)):k['done']?f(k[C(0x162)]):e(k[C(0x162)])[C(0x152)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7z(0x164)]({'name':a7z(0x16b),'aliases':['di'],'usage':a7z(0x15f),'validOpts':[a7z(0x155)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a7d;try{const a=new AWS();a[D(0x165)]();}catch(b){console[D(0x153)](b),process[D(0x15a)](0x0);}});},a7u);function a7c(){var E=['__awaiter','49931292aQQfCV','70281ZDaOyZ','maka\x20aws\x20describe-instances','3542631iILJEk','54186ZeXkFQ','value','JgYta','create','ec2describeInstances','4uJZKze','qHGrS','970WPQIDI','ADAYr','TNyNk','describe-instances','222BqgBWr','next','161635lKTFcG','YFnrJ','apply','throw','YsmRx','109752BTFMZz','constructor','(((.+)+)+)+$','then','error','3593940MHMmai','help','toString','11oLnuYY','search','34dNUvMg','exit','kDEKu'];a7c=function(){return E;};return a7c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8y=a8d;function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0xfb;var f=c[d];return f;},a8d(a,b);}(function(a,b){var v=a8d,c=a();while(!![]){try{var d=-parseInt(v(0xfd))/0x1*(-parseInt(v(0x100))/0x2)+parseInt(v(0x119))/0x3*(-parseInt(v(0x116))/0x4)+parseInt(v(0xff))/0x5*(-parseInt(v(0x10a))/0x6)+parseInt(v(0xfc))/0x7*(parseInt(v(0x105))/0x8)+-parseInt(v(0x10f))/0x9+parseInt(v(0x112))/0xa+-parseInt(v(0xfb))/0xb*(-parseInt(v(0x101))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x4613f));function a8c(){var F=['apply','dkp','21OJGNyG','__awaiter','ASzGY','avaiz','syHyD','then','throw','88opdelf','91kOKyoO','86OpWqhl','nnfdh','125xbMwVn','4154wYQnBo','1473096iLZfsx','ec2describeKeys','IZhQL','describe-key-pairs','155576TGtoVr','help','create','next','value','123474NIWbJb','maka\x20aws\x20describe-key-pairs','error','done','(((.+)+)+)+$','1765530nAHBYz','NomBl','hcSxL','438280GzdXuQ','exit','NwUVw','toString','262652vTGnTv'];a8c=function(){return F;};return a8c();}var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(c){var e=c[w(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a['toString']()['search'](x(0x10e))[x(0x115)]()['constructor'](a8a)['search'](x(0x10e));});a8a();var __awaiter=this&&this[a8y(0x11a)]||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){var D=a8d;function h(k){var z=a8d;if(z(0x110)===z(0x111)){var n=g?function(){var A=z;if(n){var u=q[A(0x117)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else try{j(d[z(0x108)](k));}catch(m){g(m);}}function i(k){var B=a8d;try{B(0x103)==='IZhQL'?j(d[B(0x11f)](k)):c(d);}catch(m){B(0x11c)===B(0x11b)?(d[B(0x10c)](m),f['exit'](0x0)):g(m);}}function j(k){var C=a8d;if('WxUGX'==='RYtnk'){var m=d['apply'](e,arguments);return f=null,m;}else k[C(0x10d)]?f(k[C(0x109)]):e(k[C(0x109)])[C(0x11e)](h,i);}j((d=d[D(0x117)](a,b||[]))[D(0x108)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8y(0x107)]({'name':a8y(0x104),'aliases':[a8y(0x118)],'usage':a8y(0x10b),'validOpts':[a8y(0x106)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;if(E(0x11d)!==E(0xfe))try{const a=new AWS();a[E(0x102)]();}catch(b){if('gCmJm'===E(0x114))try{const d=new g();d['ec2describeKeys']();}catch(f){j[E(0x10c)](f),k[E(0x113)](0x0);}else console[E(0x10c)](b),process[E(0x113)](0x0);}else c(d);});},a8u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9y=a9d;function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x90;let f=c[d];return f;},a9d(a,b);}(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0xbc))/0x1+parseInt(v(0xa3))/0x2+parseInt(v(0xa5))/0x3*(-parseInt(v(0xb9))/0x4)+parseInt(v(0x9f))/0x5*(parseInt(v(0xa1))/0x6)+parseInt(v(0x96))/0x7+-parseInt(v(0xbb))/0x8+-parseInt(v(0xb0))/0x9*(-parseInt(v(0x99))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x2e40e));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a9d;if(c){if(w(0x9b)!=='TIdnD'){const e=c[w(0xb6)](b,arguments);return c=null,e;}else e[w(0xac)](f),g[w(0x90)](w(0xb4)+h);}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const x=a9d;return a9a[x(0xba)]()['search']('(((.+)+)+)+$')['toString']()[x(0x97)](a9a)[x(0x9a)](x(0xaf));});a9a();var __awaiter=this&&this[a9y(0xab)]||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 D=a9d;function h(k){const z=a9d;if(z(0x92)!=='XzTRj')try{j(d[z(0x98)](k));}catch(l){g(l);}else b['exit'](0x1);}function i(k){const A=a9d;if(A(0xbe)===A(0xbe))try{j(d[A(0xae)](k));}catch(l){A(0x91)!==A(0x91)?c=d[A(0xa7)]:g(l);}else b['error'](A(0xb1));}function j(k){const B=a9d;if(B(0xa8)===B(0xa8))k[B(0xa2)]?f(k['value']):e(k[B(0x9e)])[B(0x93)](h,i);else{const n=g?function(){const C=B;if(n){const u=q[C(0xb6)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}j((d=d[D(0xb6)](a,b||[]))[D(0x98)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';function a9c(){const G=['help','throw','(((.+)+)+)+$','255330tkYpAz','Not\x20deleting\x20secuirty\x20group','delete-security-group','Deleting\x20a\x20','Deleted\x20','listSecurityGroups','apply','OyurC','exit','700SBhmsn','toString','2957520dtOdwV','222027KrBewW','forEach','jSByc','success','rDnjL','gDoGR','then','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','zkLrn','1467067XcWtSg','constructor','next','80WzsHtK','search','UIyQk','maka\x20aws\x20delete-sg','BcGDY','value','25UnUKRM','RSbMs','150546NBLkSV','done','653600QmLNqL','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','1845YgnJTE','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','sgId','NTppM','GxbZF','create','__awaiter','deleteSecurityGroup'];a9c=function(){return G;};return a9c();}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[a9y(0xaa)]({'name':a9y(0xb2),'aliases':['dsg'],'usage':a9y(0x9c),'validOpts':[a9y(0xad)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a9d;if('BcGDY'!==E(0x9d))d(e['throw'](f));else try{const b=new AWS(),c=yield b[E(0xb5)]();let d,f=yield Actions['ask'](E(0xa6));c[E(0xbd)](function(h){const F=E;h['id']===parseInt(f)&&(F(0xb7)!==F(0xb7)?c(d):d=h['sgId']);});if(!d){if('IXZsK'===E(0xa9))f['id']===g(h)&&(k=l[E(0xa7)]);else throw Log['error'](E(0x94));}const g=yield Actions['confirm'](E(0xb3)+d+E(0xa4),![]);g?(b[E(0xac)](d),Log[E(0x90)]('Deleted\x20'+d)):E(0x95)!==E(0xa0)?Log['error'](E(0xb1)):c(d),process[E(0xb8)](0x0);}catch(j){process['exit'](0x1);}});},a9u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10E=a10d;(function(a,b){const v=a10d,c=a();while(!![]){try{const d
|
|
1
|
+
const a10E=a10d;(function(a,b){const v=a10d,c=a();while(!![]){try{const d=-parseInt(v(0x15e))/0x1+parseInt(v(0x175))/0x2*(-parseInt(v(0x158))/0x3)+-parseInt(v(0x170))/0x4*(-parseInt(v(0x157))/0x5)+-parseInt(v(0x15d))/0x6*(-parseInt(v(0x179))/0x7)+parseInt(v(0x162))/0x8*(parseInt(v(0x14b))/0x9)+parseInt(v(0x17b))/0xa*(-parseInt(v(0x16e))/0xb)+parseInt(v(0x16a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x340b9));const a10b=(function(){let a=!![];return function(b,c){const x=a10d;if('wLKgG'!=='PomZz'){const d=a?function(){const w=a10d;if(c){const e=c[w(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else h[x(0x161)]?i(j[x(0x167)]):k(l[x(0x167)])[x(0x14e)](m,n);};}()),a10a=a10b(this,function(){const y=a10d;return a10a[y(0x16d)]()[y(0x163)](y(0x15b))[y(0x16d)]()[y(0x159)](a10a)[y(0x163)](y(0x15b));});a10a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const z=a10d;if(z(0x172)===z(0x166)){const h=d[z(0x152)](e,arguments);return f=null,h;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const D=a10d;function h(k){const A=a10d;try{A(0x176)!=='jrJuT'?j(d[A(0x15a)](k)):c[A(0x165)]({'instanceId':d[A(0x174)]});}catch(m){if('WiXne'!==A(0x14f))try{i(j[A(0x151)](k));}catch(o){m(o);}else g(m);}}function i(k){const B=a10d;if('EGChc'!==B(0x14d))try{j(d[B(0x151)](k));}catch(l){B(0x15f)!==B(0x15f)?c(d):g(l);}else d(e[B(0x15a)](f));}function j(k){const C=a10d;if(C(0x173)==='boVwt')k[C(0x161)]?f(k[C(0x167)]):e(k[C(0x167)])[C(0x14e)](h,i);else try{i(j['next'](k));}catch(m){m(m);}}j((d=d[D(0x152)](a,b||[]))[D(0x15a)]());});};import a10u from'./aws.command.js';function a10c(){const G=['WiXne','aUakz','throw','apply','\x20is\x20still\x20running.','maka\x20aws\x20reboot-instance','rbi','status','8095mYWyGi','3hANejd','constructor','next','(((.+)+)+)+$','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','186UMAmFg','320701cEIOaN','zxEaw','confirm','done','1471504RQQVTz','search','name','ec2rebootInstance','hKSfY','value','oHPIj','aMBau','1744584LQVrxw','reboot-instance','error','toString','11RvTFuI','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','292cCcPIL','jeixV','twSFQ','boVwt','instanceId','274906AKGdCG','FhPyB','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','exit','64743QPzrCc','running','2468330MYcXbs','create','chooseInstance','18tqADFK','help','hAftN','then'];a10c=function(){return G;};return a10c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x14a;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a10E(0x17c)]({'name':a10E(0x16b),'aliases':[a10E(0x155)],'usage':a10E(0x154),'validOpts':[a10E(0x14c)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a10d;if(F(0x150)!=='pvfgU')try{if('jeixV'===F(0x171)){const a=new AWS();let b=yield a[F(0x14a)]();if((b===null||b===void 0x0?void 0x0:b[F(0x156)])===F(0x17a)){if(F(0x168)!==F(0x169)){let c=yield Actions[F(0x160)](F(0x15c)+b[F(0x164)]+'\x20Ready?');c?a['ec2rebootInstance']({'instanceId':b[F(0x174)]}):Log[F(0x16c)](F(0x177)+b['name']+F(0x153));}else{if(e){const f=i[F(0x152)](j,arguments);return k=null,f;}}}else Log[F(0x16c)](F(0x16f));}else c(d);}catch(g){console[F(0x16c)](g),process[F(0x178)](0x0);}else d(e[F(0x151)](f));});},a10u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d
|
|
1
|
+
const a11y=a11d;function a11c(){const F=['27245cGNEtf','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','12okRfxL','599516pOfrfz','search','552944qTXFom','value','(((.+)+)+)+$','1772519EIQTPu','41tZwzbm','deleteKeyPair','confirm','toString','2313VzOQfK','__awaiter','exit','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Not\x20deleting\x20keypair','create','apply','done','remove-key-pair','ask','Please\x20choose\x20a\x20key\x20to\x20delete:','DgDWj','3MkfqTC','12292874hSNBvx','37970ptNlal','next','Deleting\x20a\x20','throw','ec2describeKeys','bKAxU','constructor','success','Deleted\x20','27910xDjXLe','error','name'];a11c=function(){return F;};return a11c();}(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x86))/0x1*(parseInt(v(0x98))/0x2)+-parseInt(v(0x96))/0x3*(parseInt(v(0xa7))/0x4)+-parseInt(v(0xa4))/0x5*(parseInt(v(0xa6))/0x6)+parseInt(v(0xac))/0x7+-parseInt(v(0xa9))/0x8+parseInt(v(0x8a))/0x9*(parseInt(v(0xa1))/0xa)+-parseInt(v(0x97))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x62034));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a['toString']()[x(0xa8)]('(((.+)+)+)+$')[x(0x89)]()[x(0x9e)](a11a)[x(0xa8)](x(0xab));});a11a();var __awaiter=this&&this[a11y(0x8b)]||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=a11d;function h(k){const z=a11d;try{j(d[z(0x99)](k));}catch(l){g(l);}}function i(k){const A=a11d;if(A(0x95)===A(0x95))try{if('QBhAX'==='xGqqf'){const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d[A(0x9b)](k));}catch(m){g(m);}else c(d);}function j(k){const B=a11d;k[B(0x91)]?f(k[B(0xaa)]):e(k[B(0xaa)])['then'](h,i);}j((d=d[C(0x90)](a,b||[]))[C(0x99)]());});};function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x86;let f=c[d];return f;},a11d(a,b);}import a11u 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[a11y(0x8f)]({'name':a11y(0x92),'aliases':['rkp'],'usage':'maka\x20aws\x20remove-key-pair','validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a11d;try{if(D(0x9d)===D(0x9d)){const a=new AWS();let b=yield a[D(0x9c)](),c,d=yield Actions[D(0x93)](D(0x94));b===null||b===void 0x0?void 0x0:b['forEach'](function(g){const E=D;if('nnZIq'!=='BQpQF')g['id']===parseInt(d)&&(c=g[E(0xa3)]);else try{i(j['throw'](k));}catch(i){m(i);}});if(!c)throw Log[D(0xa2)](D(0x8d));const f=yield Actions[D(0x88)](D(0x9a)+c+D(0xa5),![]);f?(a[D(0x87)](c),Log[D(0x9f)](D(0xa0)+c)):Log[D(0xa2)](D(0x8e)),process[D(0x8c)](0x0);}else c(d);}catch(h){process['exit'](0x1);}});},a11u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12I=a12d;(function(a,b){const F=a12d,c=a();while(!![]){try{const d=parseInt(F(0xc2))/0x1+-parseInt(F(0x95))/0x2*(parseInt(F(0xb8))/0x3)+parseInt(F(0xa3))/0x4+-parseInt(F(0xb2))/0x5*(parseInt(F(0xb0))/0x6)+-parseInt(F(0xb5))/0x7+parseInt(F(0xb7))/0x8*(-parseInt(F(0xa0))/0x9)+parseInt(F(0xb9))/0xa*(parseInt(F(0xa7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x20056));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a12d;if(c){if(G(0x99)===G(0x99)){const e=c['apply'](b,arguments);return c=null,e;}else try{i(j[G(0x97)](k));}catch(g){m(g);}}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const H=a12d;return a12a[H(0xae)]()[H(0xbe)](H(0xc5))[H(0xae)]()[H(0xaa)](a12a)[H(0xbe)]('(((.+)+)+)+$');});a12a();var __awaiter=this&&this[a12I(0x9a)]||function(a,b,c,d){function e(f){const J=a12d;if(J(0x9b)==='qGoqi')return f instanceof c?f:new c(function(g){const K=J;K(0xa4)!==K(0x8a)?g(f):(d[K(0xa8)](e),f['exit'](0x0));});else{if(e){const h=i[J(0x8c)](j,arguments);return k=null,h;}}}return new(c||(c=Promise))(function(f,g){const O=a12d;function h(k){const L=a12d;try{L(0x92)!==L(0xbc)?j(d[L(0x9c)](k)):e[L(0x9d)]=f===null||g===void 0x0?void 0x0:h[L(0xb4)];}catch(m){L(0xa2)==='IDIFW'?g(m):c(d);}}function i(k){const M=a12d;if(M(0xaf)==='GQknC')return f instanceof g?h:new i(function(m){m(k);});else try{j(d[M(0x97)](k));}catch(m){g(m);}}function j(k){const N=a12d;if('Xoxua'===N(0x94))k[N(0xa1)]?f(k[N(0x96)]):e(k['value'])[N(0xc7)](h,i);else try{i(j[N(0x9c)](k));}catch(m){m(m);}}j((d=d[O(0x8c)](a,b||[]))[O(0x9c)]());});};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';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x8a;let f=c[d];return f;},a12d(a,b);}function a12c(){const R=['privateIp','publicIp','405153VQFsml','getConfigPath','5888UDcrbu','33036wvhwIv','30egwage','fsi','create','yfJMb','parse','search','sep','maka\x20aws\x20set-host','private','59068scqsbz','npgpx','LXDpP','(((.+)+)+)+$','fRyPF','then','eMLVk','help','apply','BIYkm','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','public','join','writeFileSync','eDJlt','bQDlP','Xoxua','4CYbvSf','value','throw','ask','ppraa','__awaiter','qGoqi','next','host','readFileSync','sth','918xkDVPU','done','IDIFW','503664arXoOM','kjxPq','utf8','cat\x20','551397GKmZQz','error','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','constructor','\x0aSaved\x20host\x20','ssh.json','inherit','toString','qPsDA','17376OLqGZU','env','85fQbXHz'];a12c=function(){return R;};return a12c();}import{Log}from'../../tools/log/log.class.js';Command[a12I(0xbb)]({'name':'set-host','aliases':[a12I(0x9f)],'usage':a12I(0xc0),'mustBeInMakaProject':!![],'requiredOpts':[a12I(0xb1)],'validOpts':[a12I(0x8b),'key-name'],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a12d;try{if(P(0xc6)!==P(0xc4)){const c=new AWS(),d=this[P(0xba)][P(0xb6)](b[P(0xb1)]);let f=yield c['chooseInstance'](),g=JSON[P(0xbd)](a12D[P(0x9e)](a12C['join'](d,P(0xac)),P(0xa5))),h=(yield Actions[P(0x98)](P(0xa9)))||'public';if(h){if(h===P(0x8f)||h==='private'){if(P(0x93)==='bQDlP'){if(h==='public')g[P(0x9d)]=f===null||f===void 0x0?void 0x0:f[P(0xb4)];else h==='private'&&(g[P(0x9d)]=f===null||f===void 0x0?void 0x0:f[P(0xb3)]);}else return c[P(0xae)]()[P(0xbe)]('(((.+)+)+)+$')['toString']()[P(0xaa)](d)[P(0xbe)](P(0xc5));}else{if(P(0x8d)===P(0xc3)){const k=g?function(){const Q=P;if(k){const u=q[Q(0x8c)](r,arguments);return s=null,u;}}:function(){};return l=![],k;}else throw P(0x8e);}}else g[P(0x9d)]=f===null||f===void 0x0?void 0x0:f['privateIp'];a12D[P(0x91)](a12C[P(0x90)](d,P(0xac)),JSON['stringify'](g,null,0x2)),execSync(P(0xa6)+a12C[P(0x90)](d,P(0xac)),{'stdio':P(0xad)}),Log['success'](P(0xab)+h+'\x20IP\x20to\x20'+d+a12C[P(0xbf)]+P(0xac));}else{if(k===P(0x8f))u[P(0x9d)]=v===null||w===void 0x0?void 0x0:x[P(0xb4)];else p===P(0xc1)&&(y['host']=z===null||A===void 0x0?void 0x0:B[P(0xb3)]);}}catch(l){console['error'](l),process['exit'](0x0);}});},a12E);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13z=a13d;(function(a,b){const v=a13d,c=a();while(!![]){try{const d=parseInt(v(0xd0))/0x1*(-parseInt(v(0xf3))/0x2)+-parseInt(v(0xc7))/0x3*(parseInt(v(0xe1))/0x4)+-parseInt(v(0xc9))/0x5*(-parseInt(v(0xdf))/0x6)+parseInt(v(0xee))/0x7*(parseInt(v(0xd7))/0x8)+-parseInt(v(0xe6))/0x9+-parseInt(v(0xed))/0xa*(-parseInt(v(0xd8))/0xb)+-parseInt(v(0xe8))/0xc*(parseInt(v(0xdb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x93a03));const a13b=(function(){let a=!![];return function(b,c){const w=a13d;if(w(0xf4)==='OEPDL'){const d=a?function(){const x=w;if(c){if('rKRka'!==x(0xe9)){const e=c[x(0xe3)](b,arguments);return c=null,e;}else c(d);}}:function(){};return a=![],d;}else{if(e){const f=i[w(0xe3)](j,arguments);return k=null,f;}}};}()),a13a=a13b(this,function(){const y=a13d;return a13a['toString']()['search'](y(0xef))[y(0xd6)]()[y(0xd3)](a13a)[y(0xc6)](y(0xef));});function a13c(){const G=['108AeQFNN','kpKvZ','confirm','Scuon','svPGC','7749060XTdiAs','135317evHLeP','(((.+)+)+)+$','cdXdu','next','throw','8iNCech','OEPDL','exit','ec2terminateInstance','then','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','FPqTe','search','19389AwHHWX','value','62255bSIMoY','\x20Ready?','running','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','UuWgS','error','193311TcbJHP','done','jVpfq','constructor','kfXrL','zUEtf','toString','320wUMTHy','11ZgGyIh','__awaiter','terminate-instance','877383kYnjdd','ZXWEj','instanceId','name','366amZEoK','VIvym','76epFLUQ','status','apply','help','chooseInstance','1795698egbIfG','kpxWB'];a13c=function(){return G;};return a13c();}a13a();var __awaiter=this&&this[a13z(0xd9)]||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 D=a13d;function h(k){const A=a13d;try{A(0xeb)!=='ejKms'?j(d[A(0xf1)](k)):c[A(0xc1)]({'instanceId':d[A(0xdd)]});}catch(m){if(A(0xd2)!=='jVpfq')return f instanceof g?h:new i(function(o){o(k);});else g(m);}}function i(k){const B=a13d;if(B(0xe7)===B(0xf0))c(d);else try{'KjqJY'!==B(0xe0)?j(d[B(0xf2)](k)):b['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(n){if('AuCuR'!=='jnwai')g(n);else try{i(j['next'](k));}catch(p){m(p);}}}function j(k){const C=a13d;C(0xc5)!==C(0xd4)?k[C(0xd1)]?f(k[C(0xc8)]):e(k[C(0xc8)])[C(0xc2)](h,i):d(e[C(0xf2)](f));}j((d=d[D(0xe3)](a,b||[]))['next']());});};import a13u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xc1;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a13z(0xda),'aliases':['ti'],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a13z(0xe4)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a13d;if(E(0xce)!==E(0xd5))try{const a=new AWS();let b=yield a[E(0xe5)]();if((b===null||b===void 0x0?void 0x0:b[E(0xe2)])===E(0xcb)){if(E(0xec)!==E(0xec)){const d=g?function(){const F=E;if(d){const u=q[F(0xe3)](r,arguments);return s=null,u;}}:function(){};return l=![],d;}else{let d=yield Actions[E(0xea)](E(0xc4)+b[E(0xde)]+E(0xca));if(d){if('UGGKW'!=='UGGKW'){const h=d['apply'](e,arguments);return f=null,h;}else a[E(0xc1)]({'instanceId':b['instanceId']});}else'ZXWEj'===E(0xdc)?Log['error'](E(0xcc)+b[E(0xde)]+E(0xcd)):c(d);}}else Log[E(0xcf)](E(0xc3));}catch(h){console[E(0xcf)](h),process[E(0xf5)](0x0);}else try{i(j['throw'](k));}catch(j){m(j);}});},a13u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a14d,c=a();while(!![]){try{var d
|
|
1
|
+
function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0xf7;var f=c[d];return f;},a14d(a,b);}(function(a,b){var u=a14d,c=a();while(!![]){try{var d=parseInt(u(0xff))/0x1*(-parseInt(u(0xf7))/0x2)+-parseInt(u(0xfe))/0x3*(-parseInt(u(0x102))/0x4)+parseInt(u(0xfd))/0x5+parseInt(u(0x103))/0x6*(parseInt(u(0x101))/0x7)+-parseInt(u(0xfa))/0x8+-parseInt(u(0xf8))/0x9+parseInt(u(0xfb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x24eb4));function a14c(){var w=['974295cdYGDk','64398bQyalf','126021yREAtp','(((.+)+)+)+$','224gaCvaa','52EzUrAE','3156XZoBNV','2SauWMu','1212318UyYEwK','constructor','750656PMrXej','150260okZUHb','search'];a14c=function(){return w;};return a14c();}var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var v=a14d;return a14a['toString']()[v(0xfc)](v(0x100))['toString']()[v(0xf9)](a14a)[v(0xfc)]('(((.+)+)+)+$');});a14a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xe0;let f=c[d];return f;},a15d(a,b);}const a15A=a15d;(function(a,b){const x=a15d,c=a();while(!![]){try{const d=-parseInt(x(0xff))/0x1+-parseInt(x(0xfa))/0x2+-parseInt(x(0xf2))/0x3+parseInt(x(0x10d))/0x4*(parseInt(x(0xe3))/0x5)+parseInt(x(0xf4))/0x6+parseInt(x(0xe6))/0x7+parseInt(x(0xe9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x763a6));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a15d;if(c){const e=c[y(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const z=a15d;return a15a[z(0xfd)]()[z(0xe0)](z(0xe8))[z(0xfd)]()[z(0x106)](a15a)[z(0xe0)](z(0xe8));});a15a();var __awaiter=this&&this[a15A(0xed)]||function(a,b,c,d){function e(f){const B=a15d;if(B(0x101)!==B(0x101))d(e[B(0x112)](f));else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const F=a15d;function h(k){const C=a15d;if(C(0xec)!==C(0xf7))try{j(d[C(0xe4)](k));}catch(l){C(0xf6)!==C(0xe5)?g(l):h['done']?i(j[C(0x109)]):k(l[C(0x109)])[C(0x103)](m,n);}else c(d);}function i(k){const D=a15d;try{j(d[D(0x112)](k));}catch(l){'xFKWZ'===D(0x114)?c[D(0x10f)](d,0x2):g(l);}}function j(k){const E=a15d;if(E(0x104)===E(0x104))k[E(0xfe)]?f(k['value']):e(k[E(0x109)])[E(0x103)](h,i);else try{i(j[E(0xe4)](k));}catch(m){m(m);}}j((d=d[F(0xeb)](a,b||[]))[F(0xe4)]());});};function a15c(){const J=['(((.+)+)+)+$','5280408RfYKKs','aCLZc','apply','OJjHB','__awaiter','SVTyJ','maka\x20build:docker','maka\x20build','pathFromProject','2191737bUdfvs','join','3236892rqQLhp','maka\x20build\x20[--force]','cARcw','eIKwt','fNKys','existsSync','559140BqHdNB',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','app.tar.gz','toString','done','696587iimhSN','confirm','xBynk','runSubCommand','then','sSDdv','--release','constructor','force','--force','value','fsi','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','build','4VGWHGw','uhbiL','splice','debug','slice','throw','oRSou','aQoPL','invokeMeteorCommand','exit','search','Aborted.','This\x20project\x27s\x20meteor\x20version\x20(','4396855fBmpWq','next','XcwKe','784658hzYesi','nYJzX'];a15c=function(){return J;};return a15c();}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';const BuildCommand=Command['create']({'name':'build','usage':a15A(0xf5),'validOpts':[a15A(0x107),a15A(0x110)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'examples':[a15A(0xf0),a15A(0xef)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a15d;try{let c=a[0x0],d=this['findSubCommand'](c);if(d){if(G(0xea)==='XXYrA'){const g=g?function(){const H=G;if(g){const u=q[H(0xeb)](r,arguments);return s=null,u;}}:function(){};return l=![],g;}else this[G(0x102)](c,a,b);}else{let g=b[G(0x107)];if(!g){const j=this[G(0x10a)]['getGlobalMeteorVersion'](),k=this[G(0x10a)]['getProjectMeteorVersion'](),l=a15w['gt'](j,k);if(l){if('Jylds'!=='Jylds')c(d);else{const n=yield Actions[G(0x100)](G(0xe2)+k+G(0xfb)+j+').\x20Update?');if(n){if(G(0xe7)!==G(0x113))this[G(0x10a)][G(0x115)]('update',[G(0x105),j]);else throw b['error'](G(0xe1));}}}}let h=[this[G(0x10a)][G(0xf1)]({'pathParts':[G(0x10c)]})]['concat'](process['argv'][G(0x111)](0x3)),i=a15u[G(0xf3)](this['fsi']['pathFromProject']({}),G(0x10c),G(0xfc));if(a15v[G(0xf9)](i)){if(G(0xee)!==G(0xf8)){let p=g!==null&&g!==void 0x0?g:yield Actions['confirm'](G(0x10b));if(!p){if(G(0x10e)===G(0x10e))throw Log['error'](G(0xe1));else this[G(0x102)](d,e,f);}}else return f instanceof g?h:new i(function(s){s(k);});}h['forEach']((s,t)=>{const I=G;s===I(0x108)&&h['splice'](t,0x2);}),this[G(0x10a)][G(0x115)](G(0x10c),h);}}catch(s){console['error'](s),process[G(0x116)](0x0);}});});export default BuildCommand;
|