@maka/maka-cli 4.2.30 → 4.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command.js +1 -1
- package/dist/commands/_index.js +1 -1
- package/dist/commands/aws/_index.js +1 -1
- package/dist/commands/aws/aws.command.js +1 -1
- package/dist/commands/aws/ci.sub.cmd.js +1 -1
- package/dist/commands/aws/ckp.sub.cmd.js +1 -1
- package/dist/commands/aws/csg.sub.cmd.js +1 -1
- package/dist/commands/aws/di.sub.cmd.js +1 -1
- package/dist/commands/aws/dkp.sub.cmd.js +1 -1
- package/dist/commands/aws/dsg.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.sub.cmd.js +1 -1
- package/dist/commands/aws/rkp.sub.cmd.js +1 -1
- package/dist/commands/aws/sth.sub.cmd.js +1 -1
- package/dist/commands/aws/ti.sub.cmd.js +1 -1
- package/dist/commands/build/_index.js +1 -1
- package/dist/commands/build/build.js +1 -1
- package/dist/commands/build/docker.sub.cmd.js +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/debug.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/game/_index.js +1 -1
- package/dist/commands/game/battleship.sub.cmd.js +1 -1
- package/dist/commands/game/play.command.js +1 -1
- package/dist/commands/game/pong.sub.cmd.js +1 -1
- package/dist/commands/game/snake.sub.cmd.js +1 -1
- package/dist/commands/game/tetris.sub.cmd.js +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/get/_index.js +1 -1
- package/dist/commands/get/get.command.js +1 -1
- package/dist/commands/get/global.sub.cmd.js +1 -1
- package/dist/commands/get/local.sub.cmd.js +1 -1
- package/dist/commands/get/whoami.sub.cmd.js +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/jsdoc.js +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logs.js +1 -1
- package/dist/commands/maka.cmd.js +1 -1
- package/dist/commands/murder.js +1 -1
- package/dist/commands/proxy.js +1 -1
- package/dist/commands/reconfig.js +1 -1
- package/dist/commands/run/_index.js +1 -1
- package/dist/commands/run/docker.sub.cmd.js +1 -1
- package/dist/commands/run/run.command.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/generators/services/_index.js +1 -1
- package/dist/generators/services/openssl.js +1 -1
- package/dist/generators/services/translation.js +1 -1
- package/dist/maka.js +1 -1
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/dist/command.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x71;let f=c[d];return f;},a0d(a,b);}const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0xac))/0x1*(parseInt(N(0xe1))/0x2)+-parseInt(N(0x101))/0x3+parseInt(N(0x80))/0x4+parseInt(N(0x7c))/0x5*(-parseInt(N(0xaf))/0x6)+-parseInt(N(0x97))/0x7*(-parseInt(N(0xbe))/0x8)+-parseInt(N(0xfb))/0x9*(-parseInt(N(0x9c))/0xa)+-parseInt(N(0x9e))/0xb*(parseInt(N(0xd4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x514ef));const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if(O(0x9d)!==O(0x9d))c[O(0x89)](O(0x73)+d['trialExpirationDate'][O(0xa1)]('T')[0x0]);else{const e=a?function(){const P=O;if(P(0xd8)!=='ItBrS'){if(c){const f=c[P(0xe6)](b,arguments);return c=null,f;}}else c(d);}:function(){};return a=![],e;}};}()),a0a=a0b(this,function(){const Q=a0d;return a0a[Q(0xaa)]()[Q(0xcd)](Q(0xe3))[Q(0xaa)]()[Q(0xe0)](a0a)[Q(0xcd)](Q(0xe3));});a0a();var __awaiter=this&&this[a0R(0xbb)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const S=a0d;if(S(0xf1)===S(0xf1))g(f);else{if(e){const i=i[S(0xe6)](j,arguments);return k=null,i;}}});}return new(c||(c=Promise))(function(f,g){function h(k){const T=a0d;try{if('iEJMF'!==T(0x85))throw new b();else j(d[T(0x8b)](k));}catch(m){g(m);}}function i(k){const U=a0d;try{j(d['throw'](k));}catch(l){if('ffmFf'!=='ZfyNS')g(l);else{d[U(0x81)](U(0x77)+l[U(0xba)](',\x20'));throw new f();}}}function j(k){const V=a0d;k['done']?f(k[V(0x74)]):e(k[V(0x74)])[V(0xc8)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};function a0c(){const ak=['No\x20aliases','kuVzi','HIxwy','_commands','join','__awaiter','Command\x20requires\x20a\x20name','help','22784UaCyQJ','getPro','roles','qTZTI','usage','No\x20usage\x20provided.','validateMeteorInstall','addCommand\x20requires\x20a\x20Command\x20instance','match','XqMzx','then','cPXRW','exit','bbbMK','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','search','validateMakaProject','NmbNA','Local','tbCRf','No\x20description\x20provided.','domainLicense','957288ferdIN','There\x20is\x20no\x20Meteor\x20application\x20here','qpmeg','maxArgLength','TxQzs','Too\x20few\x20arguments','wvOzk','findSubCommand','Description','Alias','fsi','deploy','constructor','28086mQKqBC','Command.create\x20requires\x20some\x20options!','(((.+)+)+)+$','proCommands','VXQAE','apply','yeXQV','minOptsLength','parent','number','TOPcx','description','XbbPV','filter','function','VWYox','nNkcI','homedir','trialExpirationDate','name','existsSync','runSubCommand','yphbo','findProjectDirectory','lcOLy','call','149571uUcLSk','XtCzk','run','bright','maxOptsLength','Too\x20few\x20options','1258941iBEern','ovdoc','Too\x20many\x20arguments','ZnhcJ','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','UpzIM','Trial\x20License\x20Expires:\x20','value','lIJRu','keys','Missing\x20required\x20options\x20','aliases','Name','game','To\x20use\x20these\x20pro\x20flags,\x20\x22','5485bgRzWw','xmrgP','yESdx','BVako','2494076zuxmZh','error','findCommand','Command\x20not\x20found','To\x20use\x20this\x20command,\x20\x22','iEJMF','fZWTY','Too\x20many\x20options','jrUSd','notice','minArgLength','next','muKCT','Missing\x20required\x20option:\x20','examples','concat','proFlags','EyCjJ','push','length','sSQZY','SScCu','sort','966zZOFtv','forEach','includes','murder','trialActive','10XcfvPv','UyhfL','44sIexiW','Command\x20requires\x20a\x20handler\x20function','XBTZK','split','Sub\x20Commands:','.meteor','validateParams','validateMakaSubscription','options','tableList','win32','mustBeInMakaProject','toString','invoke','4LZJtbk','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','JVfIu','96agchwP','Invalid\x20options:\x20','NYEBy','addCommand','splice','platform','Please\x20run\x20\x22maka\x20install\x20meteor\x22'];a0c=function(){return ak;};return a0c();}import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0R(0xf2)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0R;super();if(!a){if(W(0xd6)!==W(0xc1))throw new Error(W(0x71));else{d[W(0x81)](W(0x8d)+e);throw new f();}}if(!a[W(0xf4)])throw new Error(W(0xbc));if(typeof b!=='function'){if(W(0x7f)!==W(0xb8))throw new Error(W(0x9f));else f[W(0xc2)](g,h,i),j[W(0x89)](W(0xa2)),this[W(0xa7)](this['_commands']);}this[W(0xa6)]=Object['assign']({},a),this[W(0xf4)]=this[W(0xa6)][W(0xf4)],this[W(0xb9)]=[],this['_handler']=b['bind'](this);}static['create'](a,b,c){const X=a0R;var d;if(!a)throw new Error(X(0xe2));if(typeof b!==X(0xef))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0xa6)])===null||d===void 0x0?void 0x0:d[X(0xf4)]}),c[X(0xb2)](e),e;}[a0R(0xc6)](a){const Y=a0R;let b=[this[Y(0xf4)]][Y(0x8f)](this[Y(0xa6)][Y(0x78)]||[]);return this[Y(0xe9)]&&(Y(0x75)===Y(0x7d)?e[Y(0xc2)](f,g,h):b[Y(0x92)](this[Y(0xe9)])),b['includes'](a);}['addCommand'](a){const Z=a0R;if(!(a instanceof Command))throw new Error(Z(0xc5));this[Z(0xb9)][Z(0x92)](a);}['validateMakaProject'](){const a0=a0R,a=this[a0(0xde)][a0(0xf8)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const a1=a0R;let a=a0I['join'](homeDir,a1(0xa3));const b=process[a1(0xb4)]===a1(0xa8);if(b){a=a0I['join'](homeDir,'AppData',a1(0xd0),a1(0xa3));if(!a0K['existsSync'](a))return![];}else{if(a1(0xeb)===a1(0x7e))throw a1(0x7b)+(d===null||e===void 0x0?void 0x0:f[a1(0xba)](',\x20'))+a1(0xad);else{if(!a0K[a1(0xf5)](a))return![];}}return!![];}[a0R(0xa5)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;try{const c=this['findCommand'](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c[a2(0xf4)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c[a2(0xe9)])||'',g=c===null||c===void 0x0?void 0x0:c[a2(0xa6)];if(g['disableAuthCheck']){if(a2(0x104)!==a2(0xf9))return;else{if(e[a2(0x76)](f)[a2(0x93)]>=this[a2(0xa6)][a2(0xff)]){i[a2(0x81)](a2(0x87));throw new j();}}}const h=a[0x0],i=Object[a2(0x76)](b),j=yield this['fsi']['getPro']();if(!j){if(a2(0xb1)!==a2(0xf0))Log[a2(0x81)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[a2(0xca)](0x1);else{const p=g?function(){if(p){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}const k=(j===null||j===void 0x0?void 0x0:j[a2(0xe4)][a2(0x99)](d))||(j===null||j===void 0x0?void 0x0:j[a2(0xe4)]['includes'](f)),l=(j===null||j===void 0x0?void 0x0:j[a2(0xc0)][a2(0x99)]('singleLicense'))||(j===null||j===void 0x0?void 0x0:j['roles']['includes'](a2(0xd3))),m=!l&&!(j===null||j===void 0x0?void 0x0:j[a2(0x9b)]);if(k&&m)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0xad);if(i[a2(0x93)]>0x0){if('fZWTY'!==a2(0x86)){if(i[a2(0x93)]===0x0){q[a2(0x81)](a2(0x77)+r[a2(0xba)](',\x20'));throw new s();}m[a2(0x98)](z=>{const a3=a2;if(!t['includes'](z)){w[a3(0x81)](a3(0x8d)+z);throw new x();}});}else{const q=j===null||j===void 0x0?void 0x0:j['proFlags'][a2(0xee)](r=>i['includes'](r));if(q&&q[a2(0x93)]>0x0&&m){if(a2(0xda)===a2(0xda))throw a2(0x7b)+(q===null||q===void 0x0?void 0x0:q[a2(0xba)](',\x20'))+a2(0xad);else b['push'](this['parent']);}}}if(h===a2(0xdf)){const s=yield this['fsi'][a2(0xbf)](),t=s===null||s===void 0x0?void 0x0:s[a2(0xe4)][a2(0x99)](a[0x0]+'\x20'+a[0x1]);if(t&&m){if('yeXQV'===a2(0xe7))throw a2(0x84)+a[0x0]+a2(0xad);else f[a2(0x92)](a2(0xbd)),g['forEach'](v=>{const a4=a2;if(!k[a4(0x99)](v)){n[a4(0x81)]('Invalid\x20options:\x20'+v);throw new o();}});}}if((j===null||j===void 0x0?void 0x0:j[a2(0x9b)])&&!l){if(a2(0x91)===a2(0x91))Log[a2(0x89)](a2(0x73)+j[a2(0xf3)][a2(0xa1)]('T')[0x0]);else{if(!(e instanceof f))throw new i(a2(0xc5));this[a2(0xb9)][a2(0x92)](h);}}}}catch(w){throw w;}});}['validateParams'](a,b,c){const a5=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a5(0x76)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a5(0x93)])>0x0){if('QLIcx'===a5(0xcf)){if(!f[a5(0x99)](g)){k[a5(0x81)](a5(0xb0)+l);throw new m();}}else{if(g[a5(0x93)]===0x0){if(a5(0x88)===a5(0xfc))throw new b('Command.create\x20requires\x20a\x20handler\x20function!');else{Log[a5(0x81)]('Missing\x20required\x20options\x20'+requiredOpts[a5(0xba)](',\x20'));throw new UsageError();}}requiredOpts[a5(0x98)](j=>{const a6=a5;if(!g[a6(0x99)](j)){Log['error'](a6(0x8d)+j);throw new UsageError();}});}}validOpts=validOpts[a5(0x8f)](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0){if(a5(0xa0)!==a5(0xd1))validOpts[a5(0x92)](a5(0xbd)),g[a5(0x98)](j=>{const a7=a5;if(!validOpts[a7(0x99)](j)){Log['error'](a7(0xb0)+j);throw new UsageError();}});else{if(e['keys'](f)[a5(0x93)]<this['options']['minOptsLength']){i[a5(0x81)](a5(0x100));throw new j();}}}}[a0R(0xfd)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if(a8(0xed)===a8(0xed))try{a=a||[],b=b||{};try{yield this[a8(0xa5)](a,b);}catch(c){Log['error'](c),process[a8(0xca)](0x0);}yield this[a8(0xab)](a,b);}catch(d){process[a8(0xca)](0x1);}else{if(d['length']<this[a8(0xa6)]['minArgLength']){g[a8(0x81)](a8(0xd9));throw new h();}}});}['invoke'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d,{usage:usage='',description:description='',examples:examples=[],isRoot:isRoot=![]}=this[a9(0xa6)];try{if(a9(0x102)!==a9(0x102)){if(d[a9(0x93)]>=this['options'][a9(0xd7)]){g['error'](a9(0x103));throw new h();}}else{if(!isRoot){if(a9(0xe5)===a9(0xe5)){const d=(a[0x0]===_prevCmd||a[a9(0x93)]===0x0)&&this['_commands']['length']>=0x0;if(d&&b['help']){if(this['_commands'][a9(0x93)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b['help']){if(a9(0xf7)!==a9(0x8c)){if(this['options'][a9(0xa9)]){const f=this[a9(0xce)]();if(!f)throw new MustBeInProjectError();}if(this[a9(0xa6)]['mustHaveMeteorInstalled']){const g=this[a9(0xc4)]();if(!g){if('iJQSL'!=='ucxMy')throw new NoMeteorFoundError();else c(d);}}if(typeof this[a9(0xa6)][a9(0x8a)]===a9(0xea)){if(a9(0x95)!==a9(0x95)){const j=this['validateMakaProject']();if(!j)throw new c();}else{if(a[a9(0x93)]<this[a9(0xa6)][a9(0x8a)]){Log['error'](a9(0xd9));throw new UsageError();}}}if(typeof this[a9(0xa6)][a9(0xd7)]===a9(0xea)){if(a[a9(0x93)]>=this['options'][a9(0xd7)]){Log[a9(0x81)](a9(0x103));throw new UsageError();}}if(typeof this[a9(0xa6)][a9(0xe8)]===a9(0xea)){if(Object[a9(0x76)](b)[a9(0x93)]<this[a9(0xa6)][a9(0xe8)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[a9(0xa6)][a9(0xff)]==='number'){if(Object[a9(0x76)](b)[a9(0x93)]>=this['options']['maxOptsLength']){if('JVfIu'!==a9(0xae))throw new b(a9(0xc5));else{Log[a9(0x81)](a9(0x87));throw new UsageError();}}}}else{const l=f===null||g===void 0x0?void 0x0:h[a9(0x90)][a9(0xee)](m=>l[a9(0x99)](m));if(l&&l[a9(0x93)]>0x0&&j)throw a9(0x7b)+(l===null||l===void 0x0?void 0x0:l[a9(0xba)](',\x20'))+a9(0xad);}}}else c(d);}this[a9(0xa4)](a,b,this[a9(0xa6)]),_prevCmd=a[0x0],yield this['_handler'][a9(0xfa)](this,a,b);}}catch(m){if('dzqNB'!=='dzqNB'){const o=new d({});o[a9(0x92)]([a9(0x79),'Alias',a9(0xdc)]),m[a9(0x96)]()[a9(0x98)](p=>{const aa=a9;p[aa(0xf4)]!=='murder'&&p[aa(0xf4)]!=='game'&&o[aa(0x92)]([p[aa(0xf4)],p['aliases'](),p[aa(0xec)]()]);}),f[a9(0xfe)](o[a9(0xaa)]());}else{if(m instanceof UsageError)Log[a9(0xc2)](description,examples,usage);else{if(m instanceof UsageErrorWithSubs){if(a9(0xc9)===a9(0xc9))Log[a9(0xc2)](description,examples,usage),Log[a9(0x89)]('Sub\x20Commands:'),this['tableList'](this[a9(0xb9)]);else throw b;}else{if(m instanceof MustBeInProjectError)Log[a9(0x81)](a9(0xcc)),Log['usage'](description,examples,usage);else{if(m instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[a9(0x89)](a9(0xb5)),Log[a9(0xc2)](description,examples,usage);else{if(m instanceof NoMeteorAppFoundError)Log[a9(0x81)](a9(0xd5)),Log[a9(0xc2)](description,examples,usage);else{if('SYuXG'===a9(0xc7))return![];else throw m;}}}}}process[a9(0xca)](0x1);}}});}['tableList'](a){const ab=a0R,b=new a0L({});b[ab(0x92)]([ab(0x79),ab(0xdd),ab(0xdc)]),a[ab(0x96)]()[ab(0x98)](c=>{const ac=ab;if(c['name']!=='murder'&&c[ac(0xf4)]!==ac(0x7a)){if('wtGtm'!==ac(0xcb))b[ac(0x92)]([c[ac(0xf4)],c[ac(0x78)](),c[ac(0xec)]()]);else{if(!f['includes'](g)){k[ac(0x81)](ac(0x8d)+l);throw new m();}}}}),Log[ab(0xfe)](b[ab(0xaa)]());}[a0R(0x82)](a){const ad=a0R;return this[ad(0xb9)]['find'](b=>b[ad(0xc6)](a));}[a0R(0xdb)](a){const ae=a0R;let b=a===null||a===void 0x0?void 0x0:a[ae(0xa1)](':');if(b)return a=b[0x0],this[ae(0x82)](a);else return;}[a0R(0xf6)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const af=a0d;try{let d=a[af(0xa1)](':');a=d[0x0];let f=d[0x1];f&&b[af(0xb3)](0x0,0x0,f);let g=this[af(0x82)](a);if(g)af(0x72)!==af(0xb7)?yield g[af(0xfd)](b,c):g[af(0xf4)]!==af(0x9a)&&h[af(0xf4)]!=='game'&&m['push']([n[af(0xf4)],o['aliases'](),p[af(0xec)]()]);else{if(af(0x94)!==af(0x94))return d=e[0x0],this['findCommand'](f);else throw af(0x83);}}catch(j){throw Log['error'](j);}});}[a0R(0xec)](){const ag=a0R;return this[ag(0xa6)]['description']||ag(0xd2);}['usage'](){const ah=a0R;return this['options'][ah(0xc2)]||ah(0xc3);}[a0R(0x8e)](){const ai=a0R;return this[ai(0xa6)][ai(0x8e)]||[];}[a0R(0x78)](){const aj=a0R;return this[aj(0xa6)][aj(0x78)]||aj(0xb6);}}
|
|
1
|
+
const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x19b))/0x1*(-parseInt(N(0x1c1))/0x2)+-parseInt(N(0x1b4))/0x3+parseInt(N(0x1a9))/0x4+-parseInt(N(0x1b0))/0x5+parseInt(N(0x170))/0x6*(parseInt(N(0x172))/0x7)+parseInt(N(0x145))/0x8*(parseInt(N(0x195))/0x9)+-parseInt(N(0x15a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xc1244));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){if(O(0x165)!==O(0x165)){if(i[O(0x14b)]===0x0){q[O(0x134)](O(0x1cb)+r[O(0x1ae)](',\x20'));throw new s();}m['forEach'](z=>{const P=O;if(!t[P(0x1b3)](z)){w['error'](P(0x1ab)+z);throw new x();}});}else{const f=c['apply'](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const Q=a0d;return a0a[Q(0x169)]()[Q(0x181)]('(((.+)+)+)+$')['toString']()[Q(0x15c)](a0a)['search']('(((.+)+)+)+$');});a0a();var __awaiter=this&&this[a0R(0x19d)]||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 V=a0d;function h(k){const S=a0d;try{j(d['next'](k));}catch(l){S(0x17e)===S(0x17e)?g(l):d(l[S(0x167)](f));}}function i(k){const T=a0d;if('HXpIN'===T(0x18b))try{j(d[T(0x18c)](k));}catch(l){if(T(0x16a)!==T(0x16a))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||l===void 0x0?void 0x0:f['join'](',\x20'))+T(0x194);else g(l);}else return d=e[0x0],this['findCommand'](f);}function j(k){const U=a0d;U(0x168)!=='oVHpt'?(g[U(0x134)](U(0x175)),h[U(0x190)](U(0x1c6)),i[U(0x1b6)](j,k,l)):k['done']?f(k[U(0x166)]):e(k[U(0x166)])[U(0x160)](h,i);}j((d=d[V(0x144)](a,b||[]))[V(0x167)]());});};import a0I from'path';import a0J from'os';function a0c(){const aj=['Flydv','disableAuthCheck','LcQtC','Description','validateMeteorInstall','minOptsLength','GGSNY','oSBBZ','parent','GmGIq','roles','name','apply','248848cfaIcm','Name','MlIzf','bright','iFZAe','splice','length','Command\x20requires\x20a\x20handler\x20function','Alias','number','Too\x20few\x20arguments','maxOptsLength','_handler','inppT','hReEt','HCJSb','filter','Too\x20few\x20options','call','platform','dcSzz','9807890XgQvTB','existsSync','constructor','NotFz','XaHxk','homedir','then','run','zwNRG','AppData','murder','RFVYx','value','next','oVHpt','toString','TfGkT','ycxQL','win32','maxArgLength','addCommand','deploy','68334GeiPnE','fsi','588qcltSB','validateParams','AvSSB','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','uTrHe','RtgxK','keys','sort','yfgwX','Invalid\x20options:\x20','.meteor','Sub\x20Commands:','HNQWs','assign','nixLv','search','create','push','Command\x20requires\x20a\x20name','domainLicense','forEach','runSubCommand','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Command.create\x20requires\x20some\x20options!','There\x20is\x20no\x20Meteor\x20application\x20here','HXpIN','throw','mustHaveMeteorInstalled','tableList','description','notice','BPzwD','IwjaH','No\x20aliases','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','225ocWoEN','IRNHr','validateMakaSubscription','XFyVT','Trial\x20License\x20Expires:\x20','Too\x20many\x20arguments','46081luAasU','help','__awaiter','getPro','proFlags','No\x20description\x20provided.','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','rKrDT','HfyII','QmUTe','minArgLength','aliases','LpDGV','validateMakaProject','1939200agKemB','qPAZd','Missing\x20required\x20option:\x20','function','exit','join','Local','5256505MCaJCm','done','singleLicense','includes','1229130FAgZgQ','invoke','usage','coNMH','djwGL','split','findSubCommand','options','ooYYI','tgjES','proCommands','examples','findProjectDirectory','44LzEPxb','match','_commands','Too\x20many\x20options','concat','Please\x20run\x20\x22maka\x20install\x20meteor\x22','addCommand\x20requires\x20a\x20Command\x20instance','findCommand','trialExpirationDate','game','Missing\x20required\x20options\x20','qcreN','trialActive','ZvZfp','To\x20use\x20this\x20command,\x20\x22','bind','jiKwf','error','No\x20usage\x20provided.','YZSCJ','mustBeInMakaProject'];a0c=function(){return aj;};return a0c();}import a0K from'fs';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x132;let f=c[d];return f;},a0d(a,b);}const homeDir=a0J[a0R(0x15f)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0R;super();if(!a)throw new Error(W(0x188));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==W(0x1ac))throw new Error(W(0x14c));this[W(0x1bb)]=Object[W(0x17f)]({},a),this['name']=this[W(0x1bb)]['name'],this[W(0x1c3)]=[],this[W(0x151)]=b[W(0x132)](this);}static[a0R(0x182)](a,b,c){const X=a0R;var d;if(!a)throw new Error(X(0x189));if(typeof b!==X(0x1ac))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x1bb)])===null||d===void 0x0?void 0x0:d['name']}),c[X(0x16e)](e),e;}[a0R(0x1c2)](a){const Y=a0R;let b=[this[Y(0x143)]]['concat'](this[Y(0x1bb)][Y(0x1a6)]||[]);if(this['parent']){if(Y(0x149)===Y(0x180))throw new b();else b['push'](this[Y(0x140)]);}return b[Y(0x1b3)](a);}['addCommand'](a){const Z=a0R;if(!(a instanceof Command))throw new Error(Z(0x1c7));this[Z(0x1c3)][Z(0x183)](a);}[a0R(0x1a8)](){const a0=a0R,a=this[a0(0x171)][a0(0x1c0)]();return a!==![]?!![]:![];}[a0R(0x13c)](){const a1=a0R;let a=a0I[a1(0x1ae)](homeDir,a1(0x17c));const b=process[a1(0x158)]===a1(0x16c);if(b){a=a0I[a1(0x1ae)](homeDir,a1(0x163),a1(0x1af),a1(0x17c));if(!a0K[a1(0x15b)](a))return![];}else{if(a1(0x174)!==a1(0x136)){if(!a0K[a1(0x15b)](a))return![];}else h[a1(0x1b1)]?i(j[a1(0x166)]):k(l[a1(0x166)])[a1(0x160)](m,n);}return!![];}[a0R(0x197)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;try{const c=this['findCommand'](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c[a2(0x143)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c[a2(0x140)])||'',g=c===null||c===void 0x0?void 0x0:c['options'];if(g[a2(0x139)])return;const h=a[0x0],i=Object[a2(0x178)](b),j=yield this[a2(0x171)][a2(0x19e)]();!j&&(Log[a2(0x134)](a2(0x1a1)),process['exit'](0x1));const k=(j===null||j===void 0x0?void 0x0:j[a2(0x1be)][a2(0x1b3)](d))||(j===null||j===void 0x0?void 0x0:j[a2(0x1be)][a2(0x1b3)](f)),l=(j===null||j===void 0x0?void 0x0:j[a2(0x142)][a2(0x1b3)](a2(0x1b2)))||(j===null||j===void 0x0?void 0x0:j[a2(0x142)][a2(0x1b3)](a2(0x185))),m=!l&&!(j===null||j===void 0x0?void 0x0:j[a2(0x1cd)]);if(k&&m)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x194);if(i[a2(0x14b)]>0x0){if(a2(0x13f)!==a2(0x13f)){if(!f['includes'](g)){k[a2(0x134)]('Missing\x20required\x20option:\x20'+l);throw new m();}}else{const o=j===null||j===void 0x0?void 0x0:j[a2(0x19f)][a2(0x155)](p=>i[a2(0x1b3)](p));if(o&&o[a2(0x14b)]>0x0&&m){if(a2(0x1bc)===a2(0x1ce))f[a2(0x1b6)](g,h,i),j[a2(0x190)]('Sub\x20Commands:'),this[a2(0x18e)](this['_commands']);else throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(o===null||o===void 0x0?void 0x0:o['join'](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}if(h===a2(0x16f)){if(a2(0x17a)!==a2(0x176)){const q=yield this[a2(0x171)][a2(0x19e)](),r=q===null||q===void 0x0?void 0x0:q[a2(0x1be)][a2(0x1b3)](a[0x0]+'\x20'+a[0x1]);if(r&&m){if(a2(0x133)!==a2(0x198))throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x194);else{const t=this[a2(0x13c)]();if(!t)throw new c();}}}else try{i(j[a2(0x18c)](k));}catch(u){m(u);}}(j===null||j===void 0x0?void 0x0:j[a2(0x1cd)])&&!l&&Log[a2(0x190)](a2(0x199)+j[a2(0x1c9)][a2(0x1b9)]('T')[0x0]);}}catch(u){throw u;}});}['validateParams'](a,b,c){const a3=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a3(0x178)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a3(0x14b)])>0x0){if(g[a3(0x14b)]===0x0){if(a3(0x1a3)!==a3(0x192)){Log[a3(0x134)](a3(0x1cb)+requiredOpts['join'](',\x20'));throw new UsageError();}else throw b;}requiredOpts[a3(0x186)](i=>{const a4=a3;if(!g[a4(0x1b3)](i)){Log[a4(0x134)](a4(0x1ab)+i);throw new UsageError();}});}validOpts=validOpts[a3(0x1c5)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0&&(validOpts[a3(0x183)]('help'),g[a3(0x186)](i=>{const a5=a3;if(!validOpts[a5(0x1b3)](i)){Log['error'](a5(0x17b)+i);throw new UsageError();}}));}[a0R(0x161)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a0d;try{a=a||[],b=b||{};try{yield this[a6(0x197)](a,b);}catch(c){if(a6(0x154)===a6(0x154))Log[a6(0x134)](c),process[a6(0x1ad)](0x0);else{const f=new d({});f[a6(0x183)]([a6(0x146),a6(0x14d),a6(0x13b)]),c[a6(0x179)]()[a6(0x186)](i=>{const a7=a6;i[a7(0x143)]!==a7(0x164)&&i[a7(0x143)]!=='game'&&f[a7(0x183)]([i[a7(0x143)],i[a7(0x1a6)](),i[a7(0x18f)]()]);}),f[a6(0x148)](f[a6(0x169)]());}}yield this[a6(0x1b5)](a,b);}catch(f){if(a6(0x1b8)!=='SxJgI')process['exit'](0x1);else throw a6(0x1cf)+b[0x0]+a6(0x194);}});}[a0R(0x1b5)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d,{usage:usage='',description:description='',examples:examples=[],isRoot:isRoot=![]}=this[a8(0x1bb)];try{if(a8(0x1bd)!==a8(0x1a7)){if(!isRoot){const c=(a[0x0]===_prevCmd||a['length']===0x0)&&this[a8(0x1c3)][a8(0x14b)]>=0x0;if(c&&b[a8(0x19c)]){if(a8(0x15e)!==a8(0x15e))throw new b('Command\x20requires\x20a\x20handler\x20function');else{if(this[a8(0x1c3)][a8(0x14b)]>0x0){if('MlIzf'===a8(0x147))throw new UsageErrorWithSubs();else{if(d[a8(0x14b)]<this[a8(0x1bb)][a8(0x1a5)]){g[a8(0x134)]('Too\x20few\x20arguments');throw new h();}}}throw new UsageError();}}if(!b[a8(0x19c)]){if(this['options'][a8(0x137)]){const g=this[a8(0x1a8)]();if(!g){if(a8(0x16b)===a8(0x16b))throw new MustBeInProjectError();else{c[a8(0x134)](a8(0x156));throw new d();}}}if(this[a8(0x1bb)][a8(0x18d)]){if(a8(0x1aa)!==a8(0x191)){const i=this[a8(0x13c)]();if(!i){if(a8(0x162)==='zwNRG')throw new NoMeteorFoundError();else throw new b(a8(0x189));}}else throw new b(a8(0x184));}if(typeof this[a8(0x1bb)][a8(0x1a5)]===a8(0x14e)){if(a[a8(0x14b)]<this[a8(0x1bb)]['minArgLength']){if(a8(0x141)==='GmGIq'){Log[a8(0x134)](a8(0x14f));throw new UsageError();}else c[a8(0x134)](a8(0x1a1)),d[a8(0x1ad)](0x1);}}if(typeof this[a8(0x1bb)][a8(0x16d)]===a8(0x14e)){if(a[a8(0x14b)]>=this[a8(0x1bb)][a8(0x16d)]){Log['error'](a8(0x19a));throw new UsageError();}}if(typeof this[a8(0x1bb)][a8(0x13d)]===a8(0x14e)){if('KlzXQ'==='KlzXQ'){if(Object['keys'](b)[a8(0x14b)]<this[a8(0x1bb)][a8(0x13d)]){Log[a8(0x134)](a8(0x156));throw new UsageError();}}else return this[a8(0x1c3)]['find'](n=>n[a8(0x1c2)](c));}if(typeof this['options']['maxOptsLength']==='number'){if(Object[a8(0x178)](b)[a8(0x14b)]>=this[a8(0x1bb)][a8(0x150)]){Log[a8(0x134)](a8(0x1c4));throw new UsageError();}}}}this[a8(0x173)](a,b,this[a8(0x1bb)]),_prevCmd=a[0x0],yield this['_handler'][a8(0x157)](this,a,b);}else c(d);}catch(o){if(o instanceof UsageError){if(a8(0x1cc)!==a8(0x1a2))Log['usage'](description,examples,usage);else{if(o[a8(0x178)](f)[a8(0x14b)]>=this[a8(0x1bb)][a8(0x150)]){i[a8(0x134)](a8(0x1c4));throw new j();}}}else{if(o instanceof UsageErrorWithSubs)a8(0x1b7)!==a8(0x1b7)?b[a8(0x183)](this[a8(0x140)]):(Log[a8(0x1b6)](description,examples,usage),Log['notice'](a8(0x17d)),this['tableList'](this['_commands']));else{if(o instanceof MustBeInProjectError){if('NotFz'===a8(0x15d))Log[a8(0x134)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log[a8(0x1b6)](description,examples,usage);else{if(d[a8(0x14b)]>=this[a8(0x1bb)][a8(0x16d)]){g[a8(0x134)]('Too\x20many\x20arguments');throw new h();}}}else{if(o instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](a8(0x1c6)),Log[a8(0x1b6)](description,examples,usage);else{if(o instanceof NoMeteorAppFoundError)a8(0x153)===a8(0x159)?c(d):(Log['error'](a8(0x18a)),Log['usage'](description,examples,usage));else throw o;}}}}process['exit'](0x1);}});}[a0R(0x18e)](a){const a9=a0R,b=new a0L({});b['push']([a9(0x146),a9(0x14d),a9(0x13b)]),a[a9(0x179)]()[a9(0x186)](c=>{const aa=a9;c[aa(0x143)]!=='murder'&&c[aa(0x143)]!==aa(0x1ca)&&(aa(0x152)!==aa(0x1a4)?b[aa(0x183)]([c[aa(0x143)],c[aa(0x1a6)](),c[aa(0x18f)]()]):(f['push'](aa(0x19c)),g['forEach'](q=>{const ab=aa;if(!k['includes'](q)){n[ab(0x134)](ab(0x17b)+q);throw new o();}})));}),Log[a9(0x148)](b[a9(0x169)]());}['findCommand'](a){const ac=a0R;return this[ac(0x1c3)]['find'](b=>b[ac(0x1c2)](a));}[a0R(0x1ba)](a){const ad=a0R;let b=a===null||a===void 0x0?void 0x0:a[ad(0x1b9)](':');if(b){if(ad(0x138)===ad(0x138))return a=b[0x0],this[ad(0x1c8)](a);else{const d=d[ad(0x144)](e,arguments);return f=null,d;}}else return;}[a0R(0x187)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;try{if(ae(0x13e)!=='yNcWw'){let d=a['split'](':');a=d[0x0];let f=d[0x1];f&&b[ae(0x14a)](0x0,0x0,f);let g=this['findCommand'](a);if(g){if(ae(0x177)===ae(0x196)){d[ae(0x134)](ae(0x1ab)+e);throw new f();}else yield g[ae(0x161)](b,c);}else{if(ae(0x13a)==='LcQtC')throw'Command\x20not\x20found';else{const j=this[ae(0x171)][ae(0x1c0)]();return j!==![]?!![]:![];}}}else return;}catch(k){throw Log[ae(0x134)](k);}});}[a0R(0x18f)](){const af=a0R;return this[af(0x1bb)]['description']||af(0x1a0);}[a0R(0x1b6)](){const ag=a0R;return this[ag(0x1bb)][ag(0x1b6)]||ag(0x135);}[a0R(0x1bf)](){const ah=a0R;return this[ah(0x1bb)][ah(0x1bf)]||[];}[a0R(0x1a6)](){const ai=a0R;return this[ai(0x1bb)]['aliases']||ai(0x193);}}
|
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(0xc4))/0x1+parseInt(u(0xcd))/0x2*(-parseInt(u(0xc9))/0x3)+parseInt(u(0xc6))/0x4*(-parseInt(u(0xcc))/0x5)+-parseInt(u(0xc0))/0x6+parseInt(u(0xc2))/0x7*(-parseInt(u(0xca))/0x8)+-parseInt(u(0xcb))/0x9*(parseInt(u(0xc8))/0xa)+parseInt(u(0xbf))/0xb*(parseInt(u(0xc1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xcbd69));function a1c(){var x=['2417001VXaSbt','136nVtawN','26172yghyyI','169555EuZQYz','2KfBURH','apply','11YKEXoU','7146858rCGTPD','68416212sCWqwM','384755CNSSTV','search','355656iKFxtW','toString','116iuaYMf','constructor','2050ypdBla'];a1c=function(){return x;};return a1c();}var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0xc5)]()[w(0xc3)]('(((.+)+)+)+$')[w(0xc5)]()[w(0xc7)](a1a)[w(0xc3)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xbe;var f=c[d];return f;},a1d(a,b);}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';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(0x1fa))/0x1+parseInt(u(0x1f6))/0x2*(parseInt(u(0x1ed))/0x3)+parseInt(u(0x1f9))/0x4+parseInt(u(0x1f0))/0x5*(-parseInt(u(0x1f8))/0x6)+parseInt(u(0x1f7))/0x7*(-parseInt(u(0x1f3))/0x8)+-parseInt(u(0x1f4))/0x9*(-parseInt(u(0x1fb))/0xa)+-parseInt(u(0x1f2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xd13ce));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(0x1ef)]()['search'](v(0x1f1))[v(0x1ef)]()[v(0x1ee)](a2a)[v(0x1f5)]('(((.+)+)+)+$');});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';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x1ed;var f=c[d];return f;},a2d(a,b);}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';function a2c(){var w=['toString','10855LZzsWA','(((.+)+)+)+$','32164803zJjzsb','317080XKBSpx','3703869TNcwYI','search','2euHTAe','28RpsxCj','1644kWOLIv','6209284CLzAKL','690698QcgeWn','40LwGUHV','1935966qoijnf','constructor'];a2c=function(){return w;};return a2c();}import'./rkp.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a3A=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0x130))/0x1*(-parseInt(w(0x129))/0x2)+parseInt(w(0x146))/0x3*(parseInt(w(0x128))/0x4)+parseInt(w(0x12a))/0x5*(-parseInt(w(0x143))/0x6)+-parseInt(w(0x12e))/0x7*(-parseInt(w(0x149))/0x8)+-parseInt(w(0x135))/0x9+parseInt(w(0x141))/0xa*(parseInt(w(0x148))/0xb)+parseInt(w(0x13e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x84ec4));const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x12d)!==x(0x144)){const d=a?function(){const y=x;if(c){const e=c[y(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else h['done']?i(j[x(0x140)]):k(l[x(0x140)])['then'](m,n);};}()),a3a=a3b(this,function(){const z=a3d;return a3a[z(0x14a)]()[z(0x13f)](z(0x132))['toString']()[z(0x139)](a3a)['search'](z(0x132));});a3a();function a3c(){const G=['__awaiter','RrIew','findSubCommand','constructor','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','create','lXMOU','maka\x20aws\x20<command>','8954652MySwfg','search','value','40Biripi','wHSnR','6WXfRRi','sbOIN','throw','93ebqMjF','rTcMv','168388eZJqXh','8CuOcaK','toString','apply','53692vXcICe','1596188SpfXrA','2246515ZhLBXZ','done','SKzgw','nIkFR','5013365nFRPmr','runSubCommand','1lDamhW','maka\x20aws:describe-instance','(((.+)+)+)+$','next','maka\x20aws:di','1331208sGpEKe'];a3c=function(){return G;};return a3c();}var __awaiter=this&&this[a3A(0x136)]||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 E=a3d;function h(k){const B=a3d;try{j(d[B(0x133)](k));}catch(l){g(l);}}function i(k){const C=a3d;try{j(d[C(0x145)](k));}catch(l){g(l);}}function j(k){const D=a3d;k[D(0x12b)]?f(k[D(0x140)]):e(k[D(0x140)])['then'](h,i);}j((d=d[E(0x127)](a,b||[]))[E(0x133)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3A(0x13b)]({'name':'aws','usage':a3A(0x13d),'minArgLength':0x1,'description':a3A(0x13a),'examples':[a3A(0x131),a3A(0x134)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if(F(0x137)!==F(0x142))try{let c=a[0x0],d=this[F(0x138)](c);if(d){if(F(0x147)===F(0x147))this[F(0x12f)](c,a,b);else return f instanceof g?h:new i(function(m){m(k);});}}catch(g){F(0x13c)!==F(0x12c)?(console['error'](g),process['exit'](0x0)):d(g['next'](f));}else c(d);});});function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x127;let f=c[d];return f;},a3d(a,b);}export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4az=a4d;(function(a,b){const ar=a4d,c=a();while(!![]){try{const d=parseInt(ar(0xdc))/0x1*(-parseInt(ar(0xcf))/0x2)+-parseInt(ar(0xce))/0x3+parseInt(ar(0xf6))/0x4*(parseInt(ar(0x140))/0x5)+-parseInt(ar(0xf9))/0x6+-parseInt(ar(0xe8))/0x7*(-parseInt(ar(0x126))/0x8)+-parseInt(ar(0xc6))/0x9*(parseInt(ar(0x129))/0xa)+parseInt(ar(0xd3))/0xb*(parseInt(ar(0x121))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x9892a));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const as=a4d;if(as(0xc1)===as(0x11a))e[as(0x104)](as(0x123)+f['id']+as(0x12d)+g[as(0x10d)]+as(0xf8)+h[as(0x142)]);else{if(c){if(as(0x109)===as(0x109)){const f=c['apply'](b,arguments);return c=null,f;}else c[as(0xc7)](d);}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const at=a4d;return a4a['toString']()[at(0xf1)]('(((.+)+)+)+$')[at(0xcb)]()[at(0x103)](a4a)['search']('(((.+)+)+)+$');});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xb7;let f=c[d];return f;},a4d(a,b);}function a4c(){const aM=['error','ask','listSecurityGroups','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','toString','\x20AZONE:\x20','create-instance','3432168eFYXpv','236VHsHbq','vlNuP','exit','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','31609259XfnZML','LZgNx','SrlQW','fsi','WKAdP','getConfigFromShorthand','PXASk','EUBHI','uVMZr','176fTqmIX','string','ZPydN','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','push','user-data','ec2createSG','zVrrE','notice','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Security\x20Group\x20Name:\x20[','apply','83489ZxSraU','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','throw','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','then','alias','aYOig','cidr','split','search','ec2create','YDdTA','bsqNP','build\x20on\x20','15292YSGGtM','create','\x20DESCRIPTION:\x20','5625888cyLzBM','assign','ZUbBf','Would\x20you\x20like\x20to\x20include\x20user\x20data?','success','bright','tGgxW','forEach','join','\x20:\x20','constructor','log','wfUxz','LhHmh','Setting\x20Subnet\x20ID\x20to\x20','Instance\x20Count:\x20','TsPrC','maka\x20aws:create-instance','JBgGr','DpSNU','amiId','name','oAFef','Please\x20choose\x20a\x20key\x20to\x20use:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','subnetId','getTime','LSBDb','createFile','Security\x20Group:\x20','\x22Web\x20App\x22','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Desc','dfdcu','date','Key-Pair:\x20','NspVi','number','Ptspa','User\x20Data:','12qeCQeP','**\x20Available\x20Subnets\x20**','ID:\x20','(((.+)+)+)+$','Setting\x20AMI\x20ID\x20to\x20','152azjuLq','ixzWe','amazon','1123570fYLIwY','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','GkLfQ','ec2describeKeys','\x20AMIID:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Setting\x20SG\x20ID\x20to:\x20','1:1','AWstP','Setting\x20the\x20key-pair\x20to:\x20','t3.micro','parse','WqkXn','getConfigPath','EC2\x20Name:\x20[','No\x20instance\x20has\x20been\x20created.','HWKVk','getProjectConfig','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','help','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','fvxjf','ApOPT','835bdvxNj','glfCb','desc','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ImageID:','done','ayFWD','confirm','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','env','chooseVPC','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','NFCVc','**\x20Available\x20key-pairs\x20**','qzbhZ','JIHgX','Instace\x20Type:\x20','sgId','value','next','81AFaKQM'];a4c=function(){return aM;};return a4c();}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const au=a4d;au(0xee)===au(0xd4)?c[au(0xc7)](d):g(f);});}return new(c||(c=Promise))(function(f,g){const ay=a4d;function h(k){const av=a4d;if(av(0x106)==='XhAcm'){let m=e['Desc'][av(0xf0)](av(0xf5))[0x1];f[av(0xe0)]({'amiId':g['ID'],'desc':h[av(0x119)],'date':m});}else try{j(d['next'](k));}catch(m){g(m);}}function i(k){const aw=a4d;if(aw(0x127)!=='ixzWe')try{i(j[aw(0xc5)](k));}catch(m){m(m);}else try{j(d[aw(0xea)](k));}catch(m){g(m);}}function j(k){const ax=a4d;k[ax(0xb7)]?f(k[ax(0xc4)]):e(k['value'])[ax(0xec)](h,i);}j((d=d[ay(0xe7)](a,b||[]))[ay(0xc5)]());});};import a4F from'./aws.command.js';import{execSync}from'child_process';import a4G from'path';import a4H from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4az(0xf7)]({'name':a4az(0xcd),'aliases':['ci'],'usage':a4az(0x10a),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4az(0x13c)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aA=a4d;if(aA(0x13f)!==aA(0xff))try{if(aA(0x114)!=='LSBDb')f=g['amiId'],h[aA(0xfd)]('Setting\x20AMI\x20ID\x20to\x20'+i+aA(0x102)+j[aA(0x142)]);else{const d=this[aA(0xd6)][aA(0x13a)](),f=new AWS(),{appName:g}=d,h=this[aA(0xd6)][aA(0xd8)](b[aA(0xbb)]),i=this['fsi'][aA(0x136)](h);let j=g+'-'+h,k=(yield Actions[aA(0xc8)](aA(0x137)+j+']\x20'))||j,l='',m='',n='',o='',p='',q='',r='';const s=yield Actions[aA(0xb9)](aA(0x118));let t='';s&&(aA(0x139)!==aA(0xb8)?t=yield f['createKeyPair']({'env':h}):d(e[aA(0xc5)](f)));try{Log[aA(0xe4)](aA(0xbf));let z=t?t:k,A=f[aA(0x12c)]({'suggestion':z}),B=(yield Actions[aA(0xc8)](aA(0x110)))||'-1';if(parseInt(B)<0x0){if(aA(0x105)!==aA(0xdb)){Log['error'](aA(0xe5)),Log[aA(0xe4)](aA(0x138));return;}else e=f['name'],g[aA(0xfd)](aA(0x132)+h);}A===null||A===void 0x0?void 0x0:A['forEach'](function(D){const aB=aA;parseInt(B)===D['id']&&(l=D[aB(0x10e)],Log[aB(0xfd)](aB(0x132)+l));});}catch(D){Log[aA(0xc7)](D);}m=yield f[aA(0xbc)]();let u=yield Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?'),v;if(u){let E=m===''?f[aA(0xbc)]():m;v=(yield Actions[aA(0xc8)](aA(0xe6)+k+']'))||k;let F=(yield Actions[aA(0xc8)](aA(0xe9)))||'22,80,443',G=F[aA(0xf0)](',');f[aA(0xe2)]({'description':aA(0x117),'name':v,'vpcId':E,'sgPorts':G});}v=k;try{if('XNNGM'!==aA(0x10f)){let H=yield f[aA(0xc9)](v),I=(yield Actions[aA(0xc8)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';H[aA(0x100)](function(J){const aC=aA;J['id']===parseInt(I)&&(n=J[aC(0xc3)],Log[aC(0xfd)](aC(0x12f)+n+'\x0a'));});if(n==='')throw Log['error'](aA(0x111));}else h(i)===j['id']&&(o=p['name'],q[aA(0xfd)](aA(0x132)+r));}catch(K){if(aA(0x141)===aA(0xde)){c[aA(0xc7)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),d[aA(0xe4)](aA(0x138));return;}else Log[aA(0xc7)](K);}try{if(aA(0x12b)===aA(0x12b)){let M=0x7e6;Log['notice']('**\x20Available\x20AMIs\x20**');let N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+aA(0xdf))['toString'](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S,T){const aD=aA;if(S[aD(0xed)]===aD(0x128)){if(aD(0xd0)!==aD(0xd0))c[aD(0xc7)](d);else{let V=S[aD(0x119)][aD(0xf0)]('build\x20on\x20')[0x1];P[aD(0xe0)]({'amiId':S['ID'],'desc':S['Desc'],'date':V});}}}),P['sort'](function(S,T){const aE=aA;if(aE(0xd9)==='PXASk')return new Date(T[aE(0x11b)])[aE(0x113)]()-new Date(S[aE(0x11b)])[aE(0x113)]();else h[aE(0xb7)]?i(j['value']):k(l[aE(0xc4)])[aE(0xec)](m,n);}),P[aA(0x100)](function(S,T){const aF=aA;Q[aF(0xe0)]({'id':T,'amiId':S[aF(0x10d)],'desc':S[aF(0x142)]});}),Q[aA(0x100)](function(S){const aG=aA;console[aG(0x104)]('ID:\x20'+S['id']+aG(0x12d)+S['amiId']+'\x20DESCRIPTION:\x20'+S[aG(0x142)]);});let R=(yield Actions[aA(0xc8)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';Q[aA(0x100)](function(S){const aH=aA;aH(0x135)!==aH(0xd5)?S['id']===parseInt(R)&&(o=S[aH(0x10d)],Log[aH(0xfd)](aH(0x125)+o+'\x20:\x20'+S[aH(0x142)])):b['notice'](aH(0xd2));});if(o==='')throw Log['error'](aA(0x111));}else{const T=g?function(){const aI=aA;if(T){const U=q[aI(0xe7)](r,arguments);return s=null,U;}}:function(){};return l=![],T;}}catch(T){Log['error'](T);}try{Log[aA(0xe4)](aA(0x122));let U=execSync(aA(0x13b))[aA(0xcb)](),V=JSON[aA(0x134)](U),W=[];V['forEach'](function(Y,Z){const aJ=aA;W[aJ(0xe0)]({'id':Z,'cidr':Y['cider'],'az':Y['az'],'subnetId':Y['subnetId']});}),W[aA(0x100)](function(Y){const aK=aA;aK(0xd7)!==aK(0xd7)?c[aK(0xc7)](d):console[aK(0x104)](aK(0x123)+Y['id']+'\x20CIDR:\x20'+Y[aK(0xef)]+aK(0xcc)+Y['az']+'\x20SUBNETID:\x20'+Y['subnetId']);});let X=(yield Actions['ask'](aA(0xba)))||'0';W[aA(0x100)](function(Y){const aL=aA;Y['id']===parseInt(X)&&(q=Y[aL(0x112)],Log['success'](aL(0x107)+q));});if(q===''){if('DuGnb'!==aA(0x11d))throw Log[aA(0xc7)](aA(0x111));else return c[aA(0xcb)]()[aA(0xf1)](aA(0x124))[aA(0xcb)]()[aA(0x103)](d)['search']('(((.+)+)+)+$');}}catch(Z){aA(0xf4)!==aA(0xf4)?c['error'](d):Log[aA(0xc7)](Z);}let w=aA(0x130);try{if(aA(0x11f)===aA(0x11f)){let a1=(yield Actions[aA(0xc8)](aA(0x12e)))||aA(0x130),a2=a1['split'](':')[0x0],a3=a1[aA(0xf0)](':')[0x1];typeof parseInt(a2)===aA(0x11e)&&typeof parseInt(a3)===aA(0x11e)&&(w=[a2,a3]['join'](':'),Log[aA(0xfd)](aA(0x12a)+w));}else e=f[aA(0x112)],g[aA(0xfd)](aA(0x107)+h);}catch(a5){aA(0x131)===aA(0x131)?Log[aA(0xc7)](a5):(f=[g,h][aA(0x101)](':'),i[aA(0xfd)](aA(0x12a)+j));}try{if(aA(0x10c)===aA(0x10c)){let a7=(yield Actions['ask'](aA(0x143)))||aA(0x133);typeof a7===aA(0xdd)&&(aA(0xf3)!=='fBNNq'?p=a7:(e[aA(0x104)](f),g[aA(0xc7)](h)));}else c(d);}catch(aa){Log[aA(0xc7)](aa);}let x;try{if(aA(0xfb)==='pzpHT')return f instanceof g?h:new i(function(ac){ac(k);});else{let ac=yield Actions[aA(0xb9)](aA(0xfc),![]);if(ac){if(aA(0xbe)!==aA(0xda)){x=a4G[aA(0x101)](i,aA(0xe1)),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+x),yield this['fsi'][aA(0x115)]({'filePath':x,'data':''});let ad=yield Actions[aA(0xb9)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?');}else f[aA(0xe0)]({'id':g,'cidr':h['cider'],'az':i['az'],'subnetId':j[aA(0x112)]});}}}catch(af){aA(0xc0)===aA(0x13e)?h['id']===i(j)&&(o=p[aA(0x112)],q[aA(0xfd)](aA(0x107)+r)):Log[aA(0xc7)](af);}try{let ah=JSON['parse'](execSync(aA(0xca)+q+aA(0x13d))[aA(0xcb)]())[0x0]['subnet'];Log[aA(0xe4)](aA(0x144)+o),Log[aA(0xe4)](aA(0x108)+w),Log[aA(0xe4)](aA(0xc2)+p),Log['notice'](aA(0x11c)+l),Log[aA(0xe4)](aA(0x116)+n),Log[aA(0xe4)]('Subnet:\x20'+ah);if(x){if(aA(0xe3)==='zVrrE'){Log['notice'](aA(0x120)+x);const aj=yield a4H['readFileSync'](x);Log[aA(0xe4)](aj);}else c[aA(0xc7)](d);}let ai=yield Actions[aA(0xb9)](aA(0xbd));if(ai){let al=f[aA(0xf2)](Object[aA(0xfa)]({'imageId':o,'count':w,'type':p,'key':l,'sgIds':n,'subnet':q,'tags':aA(0xeb)+h+'},\x20{Key=Name,Value='+k+'}]\x22'},x&&{'userData':x}));al&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[aA(0xfe)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else Log[aA(0xe4)](aA(0xd2));}catch(am){'zqicu'==='CvkcX'?c=d:(console[aA(0x104)](am),Log[aA(0xc7)](am));}}}catch(ao){if('JBgGr'!==aA(0x10b)){if(ao){const aq=i[aA(0xe7)](j,arguments);return k=null,aq;}}else console[aA(0xc7)](ao),process[aA(0xd1)](0x0);}else i['id']===j(k)&&(q=r[aA(0x10d)],s[aA(0xfd)](aA(0x125)+t+aA(0x102)+u[aA(0x142)]));});},a4F);
|
|
1
|
+
const a4ai=a4d;(function(a,b){const af=a4d,c=a();while(!![]){try{const d=-parseInt(af(0x148))/0x1*(-parseInt(af(0x138))/0x2)+-parseInt(af(0x178))/0x3*(-parseInt(af(0x12f))/0x4)+parseInt(af(0x135))/0x5+-parseInt(af(0x173))/0x6*(parseInt(af(0x154))/0x7)+-parseInt(af(0x131))/0x8*(-parseInt(af(0x13b))/0x9)+-parseInt(af(0x17b))/0xa*(-parseInt(af(0x11b))/0xb)+-parseInt(af(0x164))/0xc*(parseInt(af(0x12d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x1b037));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ag=a4d;if(ag(0x162)===ag(0x16c))f=g[ag(0x181)],h['success'](ag(0x156)+i+ag(0x13f)+j['desc']);else{if(c){if('XGxDz'!=='VHMQW'){const f=c['apply'](b,arguments);return c=null,f;}else e['push']({'id':f,'amiId':g[ag(0x181)],'desc':h['desc']});}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ah=a4d;return a4a[ah(0x153)]()['search'](ah(0x160))['toString']()[ah(0x161)](a4a)[ah(0x159)](ah(0x160));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x10b;let f=c[d];return f;},a4d(a,b);}function a4c(){const az=['Security\x20Group:\x20','split','then','ec2describeKeys','toString','124376RoJVla','XwaxH','Setting\x20AMI\x20ID\x20to\x20','t3.micro','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','search','date','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','nyWJU','Creating\x20user\x20data\x20file\x20in\x20','cider','\x20AZONE:\x20','(((.+)+)+)+$','constructor','pgMrR','EC2\x20Name:\x20[','871284jZypIX','getTime','createKeyPair','error','push','sgId','env','build\x20on\x20','yzlRL','HJRtd','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Cnllu','Subnet:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','forEach','18NtzHYX','MXuPU','number','chooseVPC','apply','1902cNIleD','string','IhzBD','392720MXDquH','confirm','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','irAAW','GjWsN','Desc','amiId','Please\x20choose\x20a\x20key\x20to\x20use:\x20','},\x20{Key=Name,Value=','ask','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','rjKQM','\x22Web\x20App\x22','subnet','**\x20Available\x20Subnets\x20**','help','exit','Setting\x20Subnet\x20ID\x20to\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Guwhb','}]\x22','OwoMt','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','createFile','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20the\x20key-pair\x20to:\x20','create-instance','getConfigPath','next','getConfigFromShorthand','\x20DESCRIPTION:\x20','desc','11MrJawN','\x20AMIID:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','HCiBf','assign','No\x20instance\x20has\x20been\x20created.','create','fsi','WgZWS','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','parse','notice','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','alias','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','__awaiter','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ec2create','65PYoXum','getProjectConfig','1200aaCaQo','Key-Pair:\x20','751480Bnyoqz','ID:\x20','\x20SUBNETID:\x20','subnetId','459150srqMYC','**\x20Available\x20key-pairs\x20**','listSecurityGroups','2AshQQK','User\x20Data:','done','9pWZMky','tgxPF','name','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','\x20:\x20','maka\x20aws:create-instance','Instace\x20Type:\x20','log','1:1','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','amazon','throw','bright','111749KXvyOi','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Security\x20Group\x20Name:\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','Instance\x20Count:\x20','Setting\x20SG\x20ID\x20to:\x20','success'];a4c=function(){return az;};return a4c();}var __awaiter=this&&this[a4ai(0x12a)]||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 am=a4d;function h(k){const aj=a4d;try{j(d[aj(0x117)](k));}catch(l){if(aj(0x16d)!==aj(0x16d))throw b[aj(0x167)](aj(0x16e));else g(l);}}function i(k){const ak=a4d;try{j(d[ak(0x146)](k));}catch(l){g(l);}}function j(k){const al=a4d;k[al(0x13a)]?f(k['value']):e(k['value'])[al(0x151)](h,i);}j((d=d['apply'](a,b||[]))[am(0x117)]());});};import a4F from'./aws.command.js';import{execSync}from'child_process';import a4G from'path';import a4H from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4ai(0x121)]({'name':a4ai(0x115),'aliases':['ci'],'usage':a4ai(0x140),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4ai(0x18a)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const an=a4d;if(an(0x11e)!=='lWHHp')try{const c=this[an(0x122)][an(0x12e)](),d=new AWS(),{appName:f}=c,g=this[an(0x122)][an(0x118)](b[an(0x16a)]),h=this[an(0x122)][an(0x116)](g);let i=f+'-'+g,j=(yield Actions[an(0x184)](an(0x163)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions[an(0x17c)](an(0x124));let s='';r&&('QwPMu'!=='QwPMu'?d(e['next'](f)):s=yield d[an(0x166)]({'env':g}));try{Log['notice'](an(0x136));let y=s?s:j,z=d[an(0x152)]({'suggestion':y}),A=(yield Actions[an(0x184)](an(0x182)))||'-1';if(parseInt(A)<0x0){Log[an(0x167)](an(0x15b)),Log[an(0x126)](an(0x120));return;}z===null||z===void 0x0?void 0x0:z[an(0x172)](function(B){const ao=an;if(ao(0x155)===ao(0x123)){const D=d[ao(0x177)](e,arguments);return f=null,D;}else parseInt(A)===B['id']&&(ao(0x174)!==ao(0x17a)?(k=B[ao(0x13d)],Log[ao(0x14e)](ao(0x114)+k)):h['id']===i(j)&&(o=p[ao(0x134)],q[ao(0x14e)]('Setting\x20Subnet\x20ID\x20to\x20'+r)));});}catch(B){Log['error'](B);}l=yield d[an(0x176)]();let t=yield Actions[an(0x17c)](an(0x10d)),u;if(t){let C=l===''?d['chooseVPC']():l;u=(yield Actions['ask'](an(0x14a)+j+']'))||j;let D=(yield Actions[an(0x184)](an(0x185)))||'22,80,443',E=D[an(0x150)](',');d['ec2createSG']({'description':an(0x187),'name':u,'vpcId':C,'sgPorts':E});}u=j;try{if('TetqK'!==an(0x17e)){let F=yield d[an(0x137)](u),G=(yield Actions[an(0x184)](an(0x113)))||'0';F['forEach'](function(H){const ap=an;if(H['id']===parseInt(G)){if('WLnYz'!=='WLnYz'){if(f[ap(0x128)]===ap(0x145)){let J=k[ap(0x180)][ap(0x150)](ap(0x16b))[0x1];l[ap(0x168)]({'amiId':m['ID'],'desc':n[ap(0x180)],'date':J});}}else m=H[ap(0x169)],Log[ap(0x14e)](ap(0x14d)+m+'\x0a');}});if(m==='')throw Log[an(0x167)](an(0x16e));}else try{i(j[an(0x117)](k));}catch(I){m(I);}}catch(I){Log['error'](I);}try{let J=0x7e6;Log[an(0x126)]('**\x20Available\x20AMIs\x20**');let K=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=*'+J+an(0x14b))[an(0x153)](),L=JSON[an(0x125)](K),M=[],N=[];L['forEach'](function(P,Q){const aq=an;if(P[aq(0x128)]===aq(0x145)){let R=P[aq(0x180)][aq(0x150)](aq(0x16b))[0x1];M[aq(0x168)]({'amiId':P['ID'],'desc':P[aq(0x180)],'date':R});}}),M['sort'](function(P,Q){const ar=an;return new Date(Q[ar(0x15a)])[ar(0x165)]()-new Date(P[ar(0x15a)])[ar(0x165)]();}),M[an(0x172)](function(P,Q){const as=an;N[as(0x168)]({'id':Q,'amiId':P['amiId'],'desc':P[as(0x11a)]});}),N['forEach'](function(P){const at=an;if(at(0x110)==='OwoMt')console[at(0x142)](at(0x132)+P['id']+at(0x11c)+P[at(0x181)]+at(0x119)+P[at(0x11a)]);else{c[at(0x167)](at(0x15b)),d[at(0x126)]('No\x20instance\x20has\x20been\x20created.');return;}});let O=(yield Actions[an(0x184)](an(0x171)))||'0';N['forEach'](function(P){const au=an;P['id']===parseInt(O)&&(n=P[au(0x181)],Log[au(0x14e)](au(0x156)+n+'\x20:\x20'+P['desc']));});if(n===''){if(an(0x16f)===an(0x16f))throw Log[an(0x167)](an(0x16e));else e[an(0x142)](an(0x132)+f['id']+'\x20AMIID:\x20'+g[an(0x181)]+an(0x119)+h[an(0x11a)]);}}catch(Q){Log['error'](Q);}try{Log[an(0x126)](an(0x189));let R=execSync(an(0x11d))[an(0x153)](),S=JSON['parse'](R),T=[];S[an(0x172)](function(V,W){const av=an;av(0x13c)===av(0x10e)?c[av(0x167)](d):T[av(0x168)]({'id':W,'cidr':V[av(0x15e)],'az':V['az'],'subnetId':V[av(0x134)]});}),T[an(0x172)](function(V){const aw=an;console[aw(0x142)](aw(0x132)+V['id']+'\x20CIDR:\x20'+V['cidr']+aw(0x15f)+V['az']+aw(0x133)+V['subnetId']);});let U=(yield Actions[an(0x184)](an(0x158)))||'0';T[an(0x172)](function(V){const ax=an;V['id']===parseInt(U)&&(p=V['subnetId'],Log[ax(0x14e)](ax(0x10c)+p));});if(p==='')throw Log['error'](an(0x16e));}catch(V){Log[an(0x167)](V);}let v=an(0x143);try{let W=(yield Actions[an(0x184)](an(0x149)))||'1:1',X=W[an(0x150)](':')[0x0],Y=W[an(0x150)](':')[0x1];typeof parseInt(X)==='number'&&typeof parseInt(Y)===an(0x175)&&(v=[X,Y]['join'](':'),Log[an(0x14e)](an(0x17d)+v));}catch(Z){Log['error'](Z);}try{let a0=(yield Actions[an(0x184)](an(0x127)))||an(0x157);if(typeof a0===an(0x179)){if(an(0x186)==='gUKhZ')try{i(j[an(0x146)](k));}catch(a2){m(a2);}else o=a0;}}catch(a2){an(0x17f)===an(0x17f)?Log[an(0x167)](a2):c['error'](d);}let w;try{let a4=yield Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);if(a4){w=a4G['join'](h,'user-data'),Log[an(0x126)](an(0x15d)+w),yield this[an(0x122)][an(0x112)]({'filePath':w,'data':''});let a5=yield Actions[an(0x17c)](an(0x111));}}catch(a6){Log[an(0x167)](a6);}try{if(an(0x15c)!=='nyWJU'){const a8=g?function(){const ay=an;if(a8){const a9=q[ay(0x177)](r,arguments);return s=null,a9;}}:function(){};return l=![],a8;}else{let a8=JSON[an(0x125)](execSync(an(0x12b)+p+an(0x13e))[an(0x153)]())[0x0][an(0x188)];Log[an(0x126)]('ImageID:'+n),Log[an(0x126)](an(0x14c)+v),Log['notice'](an(0x141)+o),Log['notice'](an(0x130)+k),Log['notice'](an(0x14f)+m),Log[an(0x126)](an(0x170)+a8);if(w){Log['notice'](an(0x139)+w);const aa=yield a4H['readFileSync'](w);Log['notice'](aa);}let a9=yield Actions['confirm']('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a9){let ab=d[an(0x12c)](Object[an(0x11f)]({'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+an(0x183)+j+an(0x10f)},w&&{'userData':w}));ab&&(Log['success'](an(0x129)),Log[an(0x147)](an(0x144)));}else Log[an(0x126)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}}catch(ac){console[an(0x142)](ac),Log[an(0x167)](ac);}}catch(ad){console['error'](ad),process[an(0x10b)](0x0);}else return c[an(0x153)]()['search']('(((.+)+)+)+$')[an(0x153)]()['constructor'](d)[an(0x159)]('(((.+)+)+)+$');});},a4F);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5A=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xd3;let f=c[d];return f;},a5d(a,b);}(function(a,b){const y=a5d,c=a();while(!![]){try{const d=-parseInt(y(0xd5))/0x1+parseInt(y(0xef))/0x2*(-parseInt(y(0xda))/0x3)+parseInt(y(0xdb))/0x4+parseInt(y(0xeb))/0x5+parseInt(y(0xf6))/0x6*(parseInt(y(0xed))/0x7)+parseInt(y(0xee))/0x8+-parseInt(y(0xe6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe6846));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const z=a5d;return a5a[z(0xe9)]()['search']('(((.+)+)+)+$')[z(0xe9)]()[z(0xe5)](a5a)[z(0xdd)]('(((.+)+)+)+$');});a5a();var __awaiter=this&&this[a5A(0xf0)]||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 E=a5d;function h(k){const B=a5d;if(B(0xf2)===B(0xf3)){const m=d[B(0xe8)](e,arguments);return f=null,m;}else try{'mwKQS'===B(0xd8)?j(d['next'](k)):c(d);}catch(n){g(n);}}function i(k){const C=a5d;if('OMIKR'===C(0xf5))try{if('ECVNw'===C(0xdf))try{const m=new i(),n=this[C(0xd9)][C(0xe3)](j[C(0xd3)]);m[C(0xde)]({'env':n});}catch(r){m[C(0xe2)](r),n[C(0xe0)](0x0);}else j(d[C(0xf4)](k));}catch(m){g(m);}else d[C(0xe2)](e),f[C(0xe0)](0x0);}function j(k){const D=a5d;if(D(0xe1)===D(0xf1))try{i(j['next'](k));}catch(m){m(m);}else k['done']?f(k[D(0xd6)]):e(k[D(0xd6)])[D(0xec)](h,i);}j((d=d[E(0xe8)](a,b||[]))[E(0xf7)]());});};import a5x from'./aws.command.js';function a5c(){const G=['maka\x20aws\x20create-key-pair','695851knWXDd','value','create-key-pair','mwKQS','fsi','92913FtbbSH','6703940rhcxSK','help','search','createKeyPair','EsUAv','exit','Xfwuk','error','getConfigFromShorthand','ckp','constructor','6347601wVgJZb','OfWZV','apply','toString','create','5001230pADgKD','then','7YreHey','1584000DlFhYX','98BVKqXo','__awaiter','YDYZR','VkbMC','jugmU','throw','OMIKR','5932116rjqRsR','next','env'];a5c=function(){return G;};return a5c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5A(0xea)]({'name':a5A(0xd7),'aliases':[a5A(0xe4)],'usage':a5A(0xd4),'mustBeInMakaProject':!![],'requiredOpts':[a5A(0xd3)],'validOpts':[a5A(0xdc)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a5d;try{const c=new AWS(),d=this[F(0xd9)][F(0xe3)](b[F(0xd3)]);c[F(0xde)]({'env':d});}catch(f){if(F(0xe7)===F(0xe7))console[F(0xe2)](f),process[F(0xe0)](0x0);else try{i(j[F(0xf4)](k));}catch(h){m(h);}}});},a5x);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6z=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=parseInt(v(0x12d))/0x1+parseInt(v(0x128))/0x2*(-parseInt(v(0x138))/0x3)+-parseInt(v(0x10e))/0x4+-parseInt(v(0x134))/0x5*(parseInt(v(0x133))/0x6)+-parseInt(v(0x117))/0x7+-parseInt(v(0x12c))/0x8+parseInt(v(0x11a))/0x9*(parseInt(v(0x135))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xd6369));const a6b=(function(){let a=!![];return function(b,c){const w=a6d;if(w(0x123)!==w(0x123)){if(e){const e=i[w(0x11b)](j,arguments);return k=null,e;}}else{const e=a?function(){const x=w;if(c){if(x(0x111)!==x(0x12e)){const f=c[x(0x11b)](b,arguments);return c=null,f;}else d(e[x(0x110)](f));}}:function(){};return a=![],e;}};}()),a6a=a6b(this,function(){const y=a6d;return a6a[y(0x114)]()[y(0x137)](y(0x10f))[y(0x114)]()[y(0x112)](a6a)[y(0x137)](y(0x10f));});a6a();var __awaiter=this&&this[a6z(0x118)]||function(a,b,c,d){function e(f){const A=a6d;if(A(0x12a)!==A(0x11c))return f instanceof c?f:new c(function(g){g(f);});else d[A(0x115)](e),f[A(0x132)](0x1);}return new(c||(c=Promise))(function(f,g){const E=a6d;function h(k){const B=a6d;try{B(0x131)!=='IVedQ'?h[B(0x113)]?i(j[B(0x12f)]):k(l['value'])['then'](m,n):j(d[B(0x110)](k));}catch(m){g(m);}}function i(k){const C=a6d;try{C(0x124)!=='OowOH'?j(d['throw'](k)):c(d);}catch(m){g(m);}}function j(k){const D=a6d;k[D(0x113)]?f(k[D(0x12f)]):e(k['value'])[D(0x127)](h,i);}j((d=d[E(0x11b)](a,b||[]))['next']());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x10d;let f=c[d];return f;},a6d(a,b);}Command['create']({'name':a6z(0x130),'aliases':[a6z(0x11e)],'usage':a6z(0x10d),'validOpts':[a6z(0x136)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a6d;try{if(F(0x12b)===F(0x12b)){const c=new AWS(),d=this[F(0x129)][F(0x11d)](),{appName:f}=d;let g=yield c[F(0x139)](),h=b['name']?b[F(0x116)]:''+f,i=(yield Actions[F(0x119)](F(0x122)+h+']'))||h,j=(yield Actions['ask'](F(0x126)))||F(0x11f),k=j['split'](',');k['forEach'](l=>{const G=F;if(!l[G(0x125)](/^\d+$/))throw G(0x121);}),c[F(0x120)]({'description':'\x22Web\x20App\x22','name':i,'vpcId':g,'sgPorts':k});}else d(e['throw'](f));}catch(m){Log['error'](m),process[F(0x132)](0x1);}});},a6u);function a6c(){const H=['chooseVPC','maka\x20aws\x20create-security-group','1976864idVHHi','(((.+)+)+)+$','next','kYska','constructor','done','toString','error','name','8491217PYnREr','__awaiter','ask','9CjuSAP','apply','wnLUM','getProjectConfig','csg','22,80,443','ec2createSG','List\x20is\x20not\x20all\x20numbers','Security\x20Group\x20Name:\x20[','hziDn','zGUsD','match','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','then','2fwviDU','fsi','saEFo','kwOlA','240808RZTsYy','1085171MLlojh','dAqzV','value','create-security-group','IVedQ','exit','60iarniQ','389575FopZGi','31734070llfRlS','help','search','2593989ZHSzIl'];a6c=function(){return H;};return a6c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a7z=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0x15c))/0x1*(-parseInt(v(0x162))/0x2)+-parseInt(v(0x157))/0x3+-parseInt(v(0x166))/0x4+parseInt(v(0x154))/0x5+parseInt(v(0x160))/0x6*(-parseInt(v(0x15d))/0x7)+parseInt(v(0x147))/0x8+-parseInt(v(0x161))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x38c03));var a7b=(function(){var a=!![];return function(b,c){var w=a7d;if('qoAfi'!==w(0x146))try{i(j[w(0x155)](k));}catch(f){m(f);}else{var d=a?function(){var x=w;if(c){var f=c[x(0x14f)](b,arguments);return c=null,f;}}:function(){};return a=![],d;}};}()),a7a=a7b(this,function(){var y=a7d;return a7a[y(0x14a)]()['search'](y(0x15a))[y(0x14a)]()[y(0x15b)](a7a)[y(0x164)](y(0x15a));});a7a();var __awaiter=this&&this[a7z(0x156)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var A=a7d;if(A(0x14c)!==A(0x14b))g(f);else{var i=d['apply'](e,arguments);return f=null,i;}});}return new(c||(c=Promise))(function(f,g){var E=a7d;function h(k){var B=a7d;if('GErAI'!==B(0x163))try{if(B(0x14e)!=='SgSiL'){if(e){var m=i[B(0x14f)](j,arguments);return k=null,m;}}else j(d[B(0x155)](k));}catch(m){g(m);}else c(d);}function i(k){var C=a7d;if(C(0x148)==='stXwu')try{C(0x151)!=='tcWSt'?c(d):j(d[C(0x159)](k));}catch(m){C(0x145)===C(0x153)?d(m[C(0x155)](f)):g(m);}else d(e[C(0x159)](f));}function j(k){var D=a7d;k[D(0x150)]?f(k[D(0x15e)]):e(k[D(0x15e)])[D(0x165)](h,i);}j((d=d[E(0x14f)](a,b||[]))[E(0x155)]());});};function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x144;var f=c[d];return f;},a7d(a,b);}import a7u from'./aws.command.js';import{Command}from'../../command.js';function a7c(){var G=['toString','xpgvw','iKvMm','error','SgSiL','apply','done','tcWSt','ec2describeInstances','Sznnp','2279225pjxcqX','next','__awaiter','577044QMWORq','help','throw','(((.+)+)+)+$','constructor','1tTTkpF','525HQQqbL','value','exit','2388PnxczK','183636muPMQP','124988WSvoxt','EhaWU','search','then','763460vSVJlL','maka\x20aws\x20describe-instances','HBBgG','qoAfi','1180632ljTfpm','stXwu','describe-instances'];a7c=function(){return G;};return a7c();}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7z(0x149),'aliases':['di'],'usage':a7z(0x144),'validOpts':[a7z(0x158)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a7d;try{const a=new AWS();a[F(0x152)]();}catch(b){console[F(0x14d)](b),process[F(0x15f)](0x0);}});},a7u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a8y=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d
|
|
1
|
+
var a8y=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0xa0))/0x1+-parseInt(v(0x97))/0x2+parseInt(v(0xa2))/0x3*(parseInt(v(0x81))/0x4)+parseInt(v(0x9b))/0x5+-parseInt(v(0x85))/0x6+parseInt(v(0x87))/0x7*(-parseInt(v(0x8f))/0x8)+parseInt(v(0x9c))/0x9*(parseInt(v(0x94))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x8dbf1));var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(c){if(w(0x82)!==w(0x82))h['done']?i(j['value']):k(l['value'])['then'](m,n);else{var e=c[w(0x83)](b,arguments);return c=null,e;}}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0x9e)]()[x(0x95)]('(((.+)+)+)+$')[x(0x9e)]()[x(0x84)](a8a)['search'](x(0x8a));});a8a();var __awaiter=this&&this[a8y(0x9d)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var z=a8d;if(z(0x90)===z(0x8e)){var i=g?function(){var A=z;if(i){var u=q[A(0x83)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else g(f);});}return new(c||(c=Promise))(function(f,g){var F=a8d;function h(k){var B=a8d;try{j(d[B(0x89)](k));}catch(l){g(l);}}function i(k){var C=a8d;if('xcVne'!=='xKRGc')try{j(d['throw'](k));}catch(l){if('kChuf'!==C(0x88))g(l);else try{i(j[C(0x8d)](k));}catch(o){m(o);}}else{var o=d[C(0x83)](e,arguments);return f=null,o;}}function j(k){var D=a8d;if(D(0x92)===D(0x92))k[D(0x8b)]?f(k['value']):e(k[D(0x93)])[D(0x9f)](h,i);else return e(this,void 0x0,void 0x0,function*(){var E=D;try{const s=new l();s['ec2describeKeys']();}catch(t){o[E(0x91)](t),p['exit'](0x0);}});}j((d=d[F(0x83)](a,b||[]))['next']());});};function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x81;var f=c[d];return f;},a8d(a,b);}import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8c(){var H=['then','12261lxDAGq','DpCCL','433788TSONHt','32fwobFa','ouJRK','apply','constructor','6496908fXdyCo','exit','3470831gstvMm','SiQpv','next','(((.+)+)+)+$','done','help','throw','TlbcK','8eOEFBX','CklUo','error','pXDxY','value','306370FkSabl','search','ec2describeKeys','1720322IbveoM','dkp','describe-key-pairs','create','4043590wAKsaC','306djJtHb','__awaiter','toString'];a8c=function(){return H;};return a8c();}Command[a8y(0x9a)]({'name':a8y(0x99),'aliases':[a8y(0x98)],'usage':'maka\x20aws\x20describe-key-pairs','validOpts':[a8y(0x8c)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var G=a8d;try{const a=new AWS();a[G(0x96)]();}catch(b){'UztHO'!==G(0xa1)?(console['error'](b),process[G(0x86)](0x0)):d(b['throw'](f));}});},a8u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9y=a9d;function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x11f;let f=c[d];return f;},a9d(a,b);}(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0x126))/0x1+-parseInt(v(0x13e))/0x2+-parseInt(v(0x134))/0x3*(parseInt(v(0x144))/0x4)+parseInt(v(0x135))/0x5*(parseInt(v(0x146))/0x6)+-parseInt(v(0x129))/0x7*(-parseInt(v(0x13c))/0x8)+parseInt(v(0x122))/0x9+parseInt(v(0x137))/0xa*(parseInt(v(0x131))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xbaf70));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if(w(0x125)!==w(0x125))b[w(0x13a)](0x1);else{const e=a?function(){if(c){const f=c['apply'](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a9a=a9b(this,function(){const x=a9d;return a9a[x(0x12e)]()[x(0x12a)](x(0x140))[x(0x12e)]()[x(0x130)](a9a)[x(0x12a)](x(0x140));});a9a();var __awaiter=this&&this[a9y(0x11f)]||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=a9d;function h(k){const z=a9d;if(z(0x13f)===z(0x13f))try{'JnCeX'==='JnCeX'?j(d[z(0x124)](k)):d(e[z(0x121)](f));}catch(m){g(m);}else b[z(0x12c)]('Not\x20deleting\x20secuirty\x20group');}function i(k){const A=a9d;try{A(0x142)!==A(0x142)?c(d):j(d['throw'](k));}catch(m){g(m);}}function j(k){const B=a9d;if(B(0x12f)!==B(0x12f))try{i(j[B(0x121)](k));}catch(m){m(m);}else k['done']?f(k[B(0x136)]):e(k[B(0x136)])[B(0x128)](h,i);}j((d=d['apply'](a,b||[]))[C(0x124)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a9c(){const F=['then','4228lKWHZb','search','confirm','error','Deleting\x20a\x20','toString','WcBRX','constructor','20027667scRwlA','success','xxcBm','2589459xQSiCH','42525UjUKbv','value','10UxCxva','Not\x20deleting\x20secuirty\x20group','help','exit','listSecurityGroups','5608sSZrXZ','yJFut','1754880eLlpoz','KyWuD','(((.+)+)+)+$','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','nzAPR','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','4rsPVUs','deleteSecurityGroup','30AILGUx','__awaiter','ask','throw','1540530OhrZHS','JjzoY','next','syckd','48605uhMZEa','sgId'];a9c=function(){return F;};return a9c();}Command['create']({'name':'delete-security-group','aliases':['dsg'],'usage':'maka\x20aws\x20delete-sg','validOpts':[a9y(0x139)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a9d;try{const a=new AWS(),b=yield a[D(0x13b)]();let c,d=yield Actions[D(0x120)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');b['forEach'](function(g){const E=D;if(E(0x13d)!==E(0x13d))try{i(j[E(0x124)](k));}catch(i){m(i);}else g['id']===parseInt(d)&&(c=g[E(0x127)]);});if(!c){if(D(0x123)!==D(0x133))throw Log[D(0x12c)](D(0x143));else throw b[D(0x12c)](D(0x143));}const f=yield Actions[D(0x12b)](D(0x12d)+c+D(0x141),![]);f?(a[D(0x145)](c),Log[D(0x132)]('Deleted\x20'+c)):Log[D(0x12c)](D(0x138)),process[D(0x13a)](0x0);}catch(h){process[D(0x13a)](0x1);}});},a9u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10C=a10d;(function(a,b){const v=a10d,c=a();while(!![]){try{const d=-parseInt(v(0x8d))/0x1*(parseInt(v(0x6c))/0x2)+-parseInt(v(0x72))/0x3*(-parseInt(v(0x70))/0x4)+-parseInt(v(0x98))/0x5*(parseInt(v(0x91))/0x6)+parseInt(v(0x6e))/0x7+-parseInt(v(0x84))/0x8*(-parseInt(v(0x92))/0x9)+-parseInt(v(0x6b))/0xa+-parseInt(v(0x95))/0xb*(-parseInt(v(0x74))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xda72d));function a10c(){const E=['ec2rebootInstance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','done','constructor','boonp','rbi','apply','error','create','OToTw','next','\x20Ready?','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','value','8JnlJqs','bxHbR','(((.+)+)+)+$','VyxAV','jZWoj','instanceId','throw','HhMzx','WkprI','1uvJjIF','HPRdE','search','then','186090GhcYpL','399150XwxDZD','chooseInstance','help','11zBdqaD','PUSvI','aPVUi','115tBRcLq','reboot-instance','\x20is\x20still\x20running.','toString','exit','13598760FcUdQQ','1505734cfxfhF','FKDVQ','7057827xqbCGR','inUhI','20rsrBNy','confirm','465753rHopaz','NEvCh','22703844excwEg','name'];a10c=function(){return E;};return a10c();}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a10d;if(c){if(w(0x8c)!=='WkprI'){if(e){const f=i[w(0x7c)](j,arguments);return k=null,f;}}else{const f=c[w(0x7c)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const x=a10d;return a10a[x(0x9b)]()[x(0x8f)](x(0x86))[x(0x9b)]()[x(0x79)](a10a)[x(0x8f)](x(0x86));});a10a();function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x6a;let f=c[d];return f;},a10d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const B=a10d;function h(k){const y=a10d;if(y(0x97)===y(0x8b))d(e['next'](f));else try{'MUzjn'===y(0x73)?d(e[y(0x8a)](f)):j(d[y(0x80)](k));}catch(n){if(y(0x8e)!==y(0x8e))return c['toString']()['search'](y(0x86))['toString']()['constructor'](d)[y(0x8f)]('(((.+)+)+)+$');else g(n);}}function i(k){const z=a10d;try{z(0x88)===z(0x7f)?c[z(0x76)]({'instanceId':d[z(0x89)]}):j(d[z(0x8a)](k));}catch(m){'bxHbR'!==z(0x85)?(d['error'](m),f[z(0x6a)](0x0)):g(m);}}function j(k){const A=a10d;k[A(0x78)]?f(k[A(0x83)]):e(k[A(0x83)])[A(0x90)](h,i);}j((d=d[B(0x7c)](a,b||[]))[B(0x80)]());});};import a10u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10C(0x7e)]({'name':a10C(0x99),'aliases':[a10C(0x7b)],'usage':'maka\x20aws\x20reboot-instance','validOpts':[a10C(0x94)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a10d;if(D(0x7a)!==D(0x7a))c[D(0x7d)](D(0x82)+d[D(0x75)]+D(0x9a));else try{const b=new AWS();let c=yield b[D(0x93)]();if((c===null||c===void 0x0?void 0x0:c['status'])==='running'){if(D(0x6f)!=='inUhI')b[D(0x7d)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');else{let f=yield Actions[D(0x71)](D(0x77)+c[D(0x75)]+D(0x81));if(f){if('VyxAV'!==D(0x87))return f instanceof g?h:new i(function(m){m(k);});else b[D(0x76)]({'instanceId':c[D(0x89)]});}else Log[D(0x7d)](D(0x82)+c[D(0x75)]+D(0x9a));}}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(h){if(D(0x96)!==D(0x6d))console[D(0x7d)](h),process[D(0x6a)](0x0);else try{i(j[D(0x8a)](k));}catch(j){m(j);}}});},a10u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11D=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xa7;let f=c[d];return f;},a11d(a,b);}(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0xbb))/0x1*(parseInt(v(0xc1))/0x2)+parseInt(v(0xd1))/0x3*(-parseInt(v(0xd8))/0x4)+-parseInt(v(0xce))/0x5*(parseInt(v(0xbc))/0x6)+-parseInt(v(0xd0))/0x7*(-parseInt(v(0xb0))/0x8)+parseInt(v(0xcc))/0x9+parseInt(v(0xbd))/0xa+parseInt(v(0xb4))/0xb*(-parseInt(v(0xb6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x9e2c4));const a11b=(function(){let a=!![];return function(b,c){const w=a11d;if(w(0xa8)===w(0xb2))d(e[w(0xc9)](f));else{const e=a?function(){const x=w;if(x(0xd2)!==x(0xa9)){if(c){const f=c[x(0xae)](b,arguments);return c=null,f;}}else d(e[x(0xd6)](f));}:function(){};return a=![],e;}};}()),a11a=a11b(this,function(){const y=a11d;return a11a[y(0xc6)]()[y(0xd5)](y(0xb1))['toString']()[y(0xc8)](a11a)[y(0xd5)](y(0xb1));});a11a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a11d;function h(k){const z=a11d;try{z(0xd7)!==z(0xd7)?h['done']?i(j[z(0xbe)]):k(l[z(0xbe)])[z(0xb5)](m,n):j(d['next'](k));}catch(m){g(m);}}function i(k){const A=a11d;if(A(0xbf)===A(0xad)){if(e){const m=i[A(0xae)](j,arguments);return k=null,m;}}else try{j(d[A(0xc9)](k));}catch(m){A(0xcf)!==A(0xcf)?c(d):g(m);}}function j(k){const B=a11d;k['done']?f(k[B(0xbe)]):e(k[B(0xbe)])[B(0xb5)](h,i);}j((d=d[C(0xae)](a,b||[]))[C(0xd6)]());});};import a11u from'./aws.command.js';function a11c(){const G=['help','gfWRi','apply','error','8LfEtnG','(((.+)+)+)+$','inVsJ','qJsbL','488092HbBGab','then','312XCRKbm','exit','gloJD','Please\x20choose\x20a\x20key\x20to\x20delete:','ec2describeKeys','47865FdaDFh','136110DaGZZy','4893250hdOwBV','value','RWOEh','confirm','46nBOKFl','success','Not\x20deleting\x20keypair','FhmAJ','rkp','toString','Deleting\x20a\x20','constructor','throw','forEach','Deleted\x20','10648332bsvyWE','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','15vAkQUS','eYWHe','2127517GVpeTj','246elSQnd','YsYSa','deleteKeyPair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','search','next','rddtS','58912fUjXRS','ask','tSTpr','bUxOv','name','create'];a11c=function(){return G;};return a11c();}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[a11D(0xab)]({'name':'remove-key-pair','aliases':[a11D(0xc5)],'usage':'maka\x20aws\x20remove-key-pair','validOpts':[a11D(0xac)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a11d;if(E(0xb8)==='gloJD')try{const a=new AWS();let b=yield a[E(0xba)](),c,d=yield Actions[E(0xa7)](E(0xb9));b===null||b===void 0x0?void 0x0:b[E(0xca)](function(g){const F=E;if(F(0xb3)==='qJsbL'){if(g['id']===parseInt(d)){if('NLflA'!==F(0xc4))c=g[F(0xaa)];else throw b[F(0xaf)](F(0xcd));}}else try{i(j[F(0xc9)](k));}catch(j){m(j);}});if(!c)throw Log[E(0xaf)](E(0xcd));const f=yield Actions[E(0xc0)](E(0xc7)+c+E(0xd4),![]);f?(a[E(0xd3)](c),Log[E(0xc2)](E(0xcb)+c)):Log[E(0xaf)](E(0xc3)),process[E(0xb7)](0x0);}catch(g){process['exit'](0x1);}else c=d[E(0xaa)];});},a11u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12J=a12d;(function(a,b){const F=a12d,c=a();while(!![]){try{const d=parseInt(F(0x125))/0x1+parseInt(F(0x113))/0x2*(-parseInt(F(0x11e))/0x3)+-parseInt(F(0x139))/0x4+parseInt(F(0x141))/0x5+-parseInt(F(0x12f))/0x6+-parseInt(F(0x111))/0x7+-parseInt(F(0x118))/0x8*(-parseInt(F(0x133))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x4b01f));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x10e;let f=c[d];return f;},a12d(a,b);}function a12c(){const P=['cat\x20','apply','maka\x20aws\x20set-host','ssh.json','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','done','261997BDkoJR','key-name','success','chooseInstance','ask','__awaiter','ovFCL','getConfigPath','public','value','1744176qCsxud','bmNeq','utf8','parse','36tQIRRJ','error','MjSdC','then','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','help','91656kYrUhJ','next','env','QCTnz','toString','create','nxBmm','privateIp','926445xLROIY','writeFileSync','stringify','sep','constructor','\x0aSaved\x20host\x20','1818460NnAsnd','join','26itkUzk','publicIp','\x20IP\x20to\x20','zEwDA','private','1089048VhQnvX','exit','inherit','(((.+)+)+)+$','throw','host','25659ywMAla'];a12c=function(){return P;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const G=a12d;if(G(0x135)!=='MjSdC')return c[G(0x13d)]()['search']('(((.+)+)+)+$')[G(0x13d)]()[G(0x10f)](d)['search'](G(0x11b));else{const e=a?function(){const H=G;if(H(0x130)!==H(0x116)){if(c){const f=c[H(0x120)](b,arguments);return c=null,f;}}else e[H(0x11d)]=f===null||g===void 0x0?void 0x0:h[H(0x114)];}:function(){};return a=![],e;}};}()),a12a=a12b(this,function(){const I=a12d;return a12a[I(0x13d)]()['search'](I(0x11b))[I(0x13d)]()[I(0x10f)](a12a)['search'](I(0x11b));});a12a();var __awaiter=this&&this[a12J(0x12a)]||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 N=a12d;function h(k){const K=a12d;try{K(0x13c)===K(0x12b)?(d[K(0x134)](e),f[K(0x119)](0x0)):j(d[K(0x13a)](k));}catch(m){g(m);}}function i(k){const L=a12d;try{j(d[L(0x11c)](k));}catch(l){g(l);}}function j(k){const M=a12d;k[M(0x124)]?f(k[M(0x12e)]):e(k[M(0x12e)])['then'](h,i);}j((d=d['apply'](a,b||[]))[N(0x13a)]());});};import a12C from'path';import a12D from'fs';import{execSync}from'child_process';import a12E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12J(0x13e)]({'name':'set-host','aliases':['sth'],'usage':a12J(0x121),'mustBeInMakaProject':!![],'requiredOpts':[a12J(0x13b)],'validOpts':[a12J(0x138),a12J(0x126)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const O=a12d;try{const c=new AWS(),d=this['fsi'][O(0x12c)](b[O(0x13b)]);let f=yield c[O(0x128)](),g=JSON[O(0x132)](a12D['readFileSync'](a12C[O(0x112)](d,'ssh.json'),O(0x131))),h=(yield Actions[O(0x129)](O(0x123)))||O(0x12d);if(h){if(h===O(0x12d)||h==='private'){if(h===O(0x12d))g[O(0x11d)]=f===null||f===void 0x0?void 0x0:f[O(0x114)];else{if(h===O(0x117)){if('vZzAh'!=='vZzAh')try{i(j[O(0x11c)](k));}catch(j){m(j);}else g['host']=f===null||f===void 0x0?void 0x0:f[O(0x140)];}}}else throw O(0x137);}else'nxBmm'!==O(0x13f)?h[O(0x124)]?i(j[O(0x12e)]):k(l[O(0x12e)])[O(0x136)](m,n):g[O(0x11d)]=f===null||f===void 0x0?void 0x0:f[O(0x140)];a12D[O(0x142)](a12C['join'](d,O(0x122)),JSON[O(0x143)](g,null,0x2)),execSync(O(0x11f)+a12C[O(0x112)](d,O(0x122)),{'stdio':O(0x11a)}),Log[O(0x127)](O(0x110)+h+O(0x115)+d+a12C[O(0x10e)]+O(0x122));}catch(k){console[O(0x134)](k),process[O(0x119)](0x0);}});},a12E);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13y=a13d;(function(a,b){const v=a13d,c=a();while(!![]){try{const d=parseInt(v(0x108))/0x1*(-parseInt(v(0xf7))/0x2)+parseInt(v(0xde))/0x3*(-parseInt(v(0xdf))/0x4)+parseInt(v(0xf6))/0x5+parseInt(v(0xe4))/0x6+-parseInt(v(0xe8))/0x7+parseInt(v(0xf9))/0x8*(parseInt(v(0xef))/0x9)+-parseInt(v(0xe7))/0xa*(-parseInt(v(0xeb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x89d15));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a13d;if(c){const e=c[w(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const x=a13d;return a13a['toString']()[x(0x107)](x(0xff))[x(0xf5)]()[x(0xfe)](a13a)[x(0x107)]('(((.+)+)+)+$');});a13a();var __awaiter=this&&this[a13y(0xf2)]||function(a,b,c,d){function e(f){const z=a13d;if('TlHMb'===z(0xf8))return f instanceof c?f:new c(function(g){const A=z;A(0xe0)==='uVLgF'?c(d):g(f);});else{const h=g?function(){if(h){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}return new(c||(c=Promise))(function(f,g){const E=a13d;function h(k){const B=a13d;if(B(0x10a)===B(0x100))c[B(0x109)]({'instanceId':d[B(0x101)]});else try{j(d[B(0xf4)](k));}catch(m){if(B(0xe1)!=='scKvS')return f instanceof g?h:new i(function(o){o(k);});else g(m);}}function i(k){const C=a13d;if(C(0xfd)==='DJZMA')c[C(0x103)](C(0xdc)+d['name']+C(0xfa));else try{if(C(0xe5)!==C(0x102))j(d[C(0xe3)](k));else{const n=d['apply'](e,arguments);return f=null,n;}}catch(n){g(n);}}function j(k){const D=a13d;k[D(0xed)]?f(k[D(0xfb)]):e(k[D(0xfb)])[D(0x104)](h,i);}j((d=d[E(0xe9)](a,b||[]))[E(0xf4)]());});};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-0xdb;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a13c(){const G=['There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','help','search','11jSZnee','ec2terminateInstance','fPRAC','terminate-instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','maka\x20aws\x20terminate-instance','101571OXPTLy','124FtlXJt','nfMzv','scKvS','running','throw','3697914ULgLUP','XEJTu','name','18326740hVPTZY','6803055thOYMJ','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','11RnOtVD','\x20Ready?','done','lmIaR','325881brlrrL','status','chooseInstance','__awaiter','create','next','toString','181450juPehZ','54118nhrRID','TlHMb','88WPmeSx','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','value','HPuWu','mTFCw','constructor','(((.+)+)+)+$','pWMeg','instanceId','pzIPw','error','then'];a13c=function(){return G;};return a13c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a13y(0xf3)]({'name':a13y(0xdb),'aliases':['ti'],'usage':a13y(0xdd),'validOpts':[a13y(0x106)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a13d;try{if(F(0xfc)===F(0xfc)){const a=new AWS();let b=yield a[F(0xf1)]();if((b===null||b===void 0x0?void 0x0:b[F(0xf0)])===F(0xe2)){if(F(0xee)!=='lmIaR')d(e[F(0xe3)](f));else{let d=yield Actions['confirm'](F(0xea)+b['name']+F(0xec));d?a['ec2terminateInstance']({'instanceId':b[F(0x101)]}):Log[F(0x103)](F(0xdc)+b[F(0xe6)]+F(0xfa));}}else Log['error'](F(0x105));}else try{i(j[F(0xe3)](k));}catch(g){m(g);}}catch(g){console[F(0x103)](g),process['exit'](0x0);}});},a13u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a14d,c=a();while(!![]){try{var d
|
|
1
|
+
function a14c(){var x=['806452FdtaMZ','constructor','2335710RXbtGE','1137537uZNzDs','apply','toString','100660FwOBag','(((.+)+)+)+$','21uLzvzX','search','3508497TRVNhc','37786HBwuQr','8670dvAMGE','33jWPMLS','895gbbTaJ','40CNZJHV'];a14c=function(){return x;};return a14c();}(function(a,b){var u=a14d,c=a();while(!![]){try{var d=-parseInt(u(0x144))/0x1*(parseInt(u(0x147))/0x2)+parseInt(u(0x14f))/0x3+parseInt(u(0x14c))/0x4+parseInt(u(0x14a))/0x5*(parseInt(u(0x148))/0x6)+parseInt(u(0x152))/0x7*(parseInt(u(0x14b))/0x8)+parseInt(u(0x146))/0x9+-parseInt(u(0x14e))/0xa*(parseInt(u(0x149))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x31bc2));var a14b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a14d;if(c){var e=c[v(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){var w=a14d;return a14a[w(0x151)]()[w(0x145)](w(0x143))[w(0x151)]()[w(0x14d)](a14a)['search'](w(0x143));});a14a();function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x143;var f=c[d];return f;},a14d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15A=a15d;(function(a,b){const x=a15d,c=a();while(!![]){try{const d=-parseInt(x(0xc6))/0x1+-parseInt(x(0xca))/0x2+-parseInt(x(0xcb))/0x3*(parseInt(x(0xd1))/0x4)+parseInt(x(0xb4))/0x5+-parseInt(x(0xb2))/0x6*(parseInt(x(0xc2))/0x7)+parseInt(x(0xa8))/0x8+parseInt(x(0xc8))/0x9*(parseInt(x(0xb8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x3634a));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a15d;if(y(0xab)===y(0xd3)){const f=d[y(0xa7)](e,arguments);return f=null,f;}else{if(c){const f=c[y(0xa7)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const z=a15d;return a15a[z(0xb9)]()[z(0xbb)](z(0xc5))[z(0xb9)]()[z(0xaa)](a15a)[z(0xbb)](z(0xc5));});function a15c(){const J=['wAUVj','--release','This\x20project\x27s\x20meteor\x20version\x20(','rJMNL','splice','SCjjo','findSubCommand','382170EHRJyV','NcoYR','1010315TaOZjn','HDMKG','getGlobalMeteorVersion','YzUFd','2330tDeXks','toString',').\x20Update?','search','fsi','kMrCm','app.tar.gz','maka\x20build\x20[--force]','build','maka\x20build','35BnkAVq','value','eubav','(((.+)+)+)+$','109477rQenWt','Aborted.','24417QJTOVF','bEKyk','3486YkXHyc','417498zodnzB','debug','force','existsSync','error','getProjectMeteorVersion','8tRJuPY','__awaiter','WlHtV','argv','confirm','invokeMeteorCommand','LzKxO','ePnhv','create','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','join','then','--force','AutAy','throw','slice','tSivN','pathFromProject','exit','apply','766888jLRBDi','next','constructor'];a15c=function(){return J;};return a15c();}a15a();var __awaiter=this&&this[a15A(0xd2)]||function(a,b,c,d){function e(f){const B=a15d;if(B(0x9b)!==B(0xae))return f instanceof c?f:new c(function(g){g(f);});else d==='--force'&&g['splice'](h,0x2);}return new(c||(c=Promise))(function(f,g){const F=a15d;function h(k){const C=a15d;try{C(0xc9)!==C(0xc9)?c(d):j(d['next'](k));}catch(m){g(m);}}function i(k){const D=a15d;try{j(d['throw'](k));}catch(l){if(D(0xa4)!==D(0xb7))g(l);else throw b['error']('Aborted.');}}function j(k){const E=a15d;if(E(0xc4)==='NufwM'){if(e){const m=i[E(0xa7)](j,arguments);return k=null,m;}}else k['done']?f(k[E(0xc3)]):e(k['value'])[E(0x9f)](h,i);}j((d=d[F(0xa7)](a,b||[]))[F(0xa9)]());});};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[a15A(0x9c)]({'name':a15A(0xc0),'usage':a15A(0xbf),'validOpts':[a15A(0xcd),a15A(0xcc)],'description':a15A(0x9d),'mustBeInMakaProject':!![],'examples':[a15A(0xc1),'maka\x20build:docker']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a15d;try{let c=a[0x0],d=this[G(0xb1)](c);if(d)G(0x9a)===G(0xa1)?c['splice'](d,0x2):this['runSubCommand'](c,a,b);else{if('GrYxJ'==='GrYxJ'){let g=b[G(0xcd)];if(!g){if(G(0xb5)!==G(0xb3)){const j=this[G(0xbc)][G(0xb6)](),k=this[G(0xbc)][G(0xd0)](),l=a15w['gt'](j,k);if(l){if(G(0xbd)==='xQgvQ')try{i(j[G(0xa9)](k));}catch(o){m(o);}else{const n=yield Actions[G(0x98)](G(0xad)+k+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+j+G(0xba));n&&this[G(0xbc)][G(0x99)]('update',[G(0xac),j]);}}}else d(e[G(0xa2)](f));}let h=[this[G(0xbc)]['pathFromProject']({'pathParts':[G(0xc0)]})]['concat'](process[G(0x97)][G(0xa3)](0x3)),i=a15u[G(0x9e)](this[G(0xbc)][G(0xa5)]({}),G(0xc0),G(0xbe));if(a15v[G(0xce)](i)){let p=g!==null&&g!==void 0x0?g:yield Actions['confirm']('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!p)throw Log[G(0xcf)](G(0xc7));}h['forEach']((q,r)=>{const H=G;if(H(0xb0)!==H(0xb0)){const t=g?function(){const I=H;if(t){const u=q[I(0xa7)](r,arguments);return s=null,u;}}:function(){};return l=![],t;}else q===H(0xa0)&&h[H(0xaf)](r,0x2);}),this[G(0xbc)][G(0x99)](G(0xc0),h);}else try{i(j['throw'](k));}catch(r){m(r);}}}catch(r){console[G(0xcf)](r),process[G(0xa6)](0x0);}});});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x97;let f=c[d];return f;},a15d(a,b);}export default BuildCommand;
|