@maka/maka-cli 4.1.4 → 4.1.7
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/dks.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.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/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/reconfig.js +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/generators/services/_index.js +1 -1
- package/dist/generators/services/translation.js +1 -1
- package/dist/maka.js +2 -2
- package/dist/templates/react/hook/hook.js.jsx +1 -1
- package/dist/templates/react/hook/hook.js.tsx +1 -1
- package/dist/templates/react/test/test.js.jsx +12 -27
- package/dist/templates/react/test/test.js.tsx +12 -27
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/dist/command.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x1b8))/0x1*(parseInt(N(0x212))/0x2)+parseInt(N(0x19d))/0x3*(-parseInt(N(0x201))/0x4)+-parseInt(N(0x1cb))/0x5+-parseInt(N(0x1dc))/0x6*(parseInt(N(0x21e))/0x7)+parseInt(N(0x19a))/0x8+parseInt(N(0x1f3))/0x9*(-parseInt(N(0x1c4))/0xa)+parseInt(N(0x197))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xd48aa));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){if(O(0x1c7)===O(0x218))h[O(0x1b9)]?i(j[O(0x1eb)]):k(l[O(0x1eb)])[O(0x1e5)](m,n);else{const f=c[O(0x230)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x1bd)]()[P(0x1c8)](P(0x1f4))[P(0x1bd)]()[P(0x217)](a0a)['search'](P(0x1f4));});a0a();var __awaiter=this&&this[a0Q(0x1e6)]||function(a,b,c,d){function e(f){const R=a0d;if(R(0x210)==='iEptV')return f instanceof c?f:new c(function(g){g(f);});else throw R(0x22a)+b[0x0]+R(0x211);}return new(c||(c=Promise))(function(f,g){function h(k){const S=a0d;try{if(S(0x224)!=='aXPOo')j(d[S(0x200)](k));else{f=g['join'](h,S(0x196),S(0x1e3),'.meteor');if(!i[S(0x1d1)](j))return![];}}catch(m){if(S(0x1a4)===S(0x1a4))g(m);else throw new b();}}function i(k){const T=a0d;if('CKhyz'===T(0x22c)){if(e[T(0x227)](f)['length']<this[T(0x1e9)][T(0x206)]){i['error']('Too\x20few\x20options');throw new j();}}else try{if(T(0x20d)!=='NRVbx')j(d[T(0x1f1)](k));else{const n=new d({});n[T(0x1a2)](['Name',T(0x1b4),T(0x20f)]),e['sort']()[T(0x1b7)](o=>{const U=T;o[U(0x20b)]!=='murder'&&o[U(0x20b)]!==U(0x226)&&n[U(0x1a2)]([o[U(0x20b)],o['aliases'](),o[U(0x216)]()]);}),f[T(0x1fe)](n[T(0x1bd)]());}}catch(n){g(n);}}function j(k){const V=a0d;k['done']?f(k[V(0x1eb)]):e(k[V(0x1eb)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0x22e)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function a0c(){const ai=['lvRLI','deploy','mustHaveMeteorInstalled','platform','maxArgLength','validateMakaSubscription','addCommand\x20requires\x20a\x20Command\x20instance','No\x20usage\x20provided.','DitGH','JULRv','proFlags','Alias','run','bind','forEach','14470LUSFvJ','done','includes','ubZrc','Too\x20few\x20options','toString','.meteor','_commands','sCZyY','QRYeG','_handler','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','30gaaiNj','qPpqW','QGldm','brYQv','search','Command\x20requires\x20a\x20name','parent','380170XYNeuT','leWGE','function','getPro','rDYMq','Kkubs','existsSync','irrjY','aeMCY','Too\x20many\x20arguments','DiLbu','qraaK','trialActive','Too\x20many\x20options','rmFcn','Ursbs','rhXad','319962JPkDQE','xERSE','number','aliases','Command.create\x20requires\x20some\x20options!','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Local','QAZoa','then','__awaiter','validateMakaProject','singleLicense','options','To\x20use\x20these\x20pro\x20flags,\x20\x22','value','maxOptsLength','bxUtc','examples','RxGFO','validateParams','throw','Missing\x20required\x20options\x20','4016556VNiRmB','(((.+)+)+)+$','filter','Commands:','length','notice','validateMeteorInstall','split','QShuP','concat','assign','bright','eYgNY','next','4oPuRYa','NRdqD','domainLicense','SJiqY','Invalid\x20options:\x20','minOptsLength','No\x20description\x20provided.','addCommand','BbmeL','win32','name','call','IQjkt','Too\x20few\x20arguments','Description','iEptV','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','160lJeVxe','proCommands','sFhcO','There\x20is\x20no\x20Meteor\x20application\x20here','description','constructor','dHcSe','join','pkWln','mwHRb','Command.create\x20requires\x20a\x20handler\x20function!','No\x20aliases','210hvUCuA','help','roles','dYkUT','VSGue','pTIFm','eMWEG','usage','game','keys','sDvMl','fsi','To\x20use\x20this\x20command,\x20\x22','mNiuo','JONLx','find','homedir','IBeTY','apply','error','ycwxE','mustBeInMakaProject','xtdQD','pRdeE','ZNdEm','BTYLX','biHGP','create','YYMOh','jBgdj','exit','findCommand','AppData','62007440zHEyHx','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','invoke','7291576fYHLSX','Name','tableList','4516863QBYxCY','minArgLength','match','Missing\x20required\x20option:\x20','findSubCommand','push','findProjectDirectory','BWMbB','FLVdU','aRBKe','splice','HwCOF'];a0c=function(){return ai;};return a0c();}let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x193;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{constructor(a,b){const W=a0Q;super();if(!a){if(W(0x214)!==W(0x1db))throw new Error(W(0x1c3));else{const d=d['apply'](e,arguments);return f=null,d;}}if(!a['name'])throw new Error(W(0x1c9));if(typeof b!==W(0x1cd))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[W(0x1e9)]=Object[W(0x1fd)]({},a),this[W(0x20b)]=this[W(0x1e9)]['name'],this[W(0x1bf)]=[],this['_handler']=b[W(0x1b6)](this);}static[a0Q(0x239)](a,b,c){const X=a0Q;var d;if(!a)throw new Error(X(0x1e0));if(typeof b!=='function')throw new Error(X(0x21c));let e=new Command(a,b);return c=c||a0M,Object[X(0x1fd)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x1e9)])===null||d===void 0x0?void 0x0:d[X(0x20b)]}),c[X(0x208)](e),e;}[a0Q(0x19f)](a){const Y=a0Q;let b=[this[Y(0x20b)]][Y(0x1fc)](this[Y(0x1e9)][Y(0x1df)]||[]);return this[Y(0x1ca)]&&b[Y(0x1a2)](this[Y(0x1ca)]),b[Y(0x1ba)](a);}[a0Q(0x208)](a){const Z=a0Q;if(!(a instanceof Command)){if('Ursbs'===Z(0x1da))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');else throw new b('addCommand\x20requires\x20a\x20Command\x20instance');}this[Z(0x1bf)][Z(0x1a2)](a);}[a0Q(0x1e7)](){const a0=a0Q,a=this['fsi'][a0(0x1a3)]();return a!==![]?!![]:![];}[a0Q(0x1f9)](){const a1=a0Q;let a=a0I[a1(0x219)](homeDir,a1(0x1be));const b=process[a1(0x1ac)]===a1(0x20a);if(b){if(a1(0x1fb)===a1(0x21a)){var d;if(!p)throw new E(a1(0x1e0));if(typeof r!==a1(0x1cd))throw new F(a1(0x21c));let e=new t(u,v);return w=x||y,z[a1(0x1fd)](e,{'parent':(d=A===null||B===void 0x0?void 0x0:C[a1(0x1e9)])===null||d===void 0x0?void 0x0:d[a1(0x20b)]}),D[a1(0x208)](e),e;}else{a=a0I[a1(0x219)](homeDir,a1(0x196),a1(0x1e3),'.meteor');if(!a0K[a1(0x1d1)](a))return a1(0x22b)===a1(0x237)?this[a1(0x1e9)][a1(0x1df)]||a1(0x21d):![];}}else{if(!a0K[a1(0x1d1)](a))return![];}return!![];}[a0Q(0x1ae)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if(a2(0x1ef)===a2(0x1ef))try{const c=this[a2(0x195)](a[0x0]);if(c){if(a2(0x22f)===a2(0x1dd)){if(d['length']<this[a2(0x1e9)][a2(0x19e)]){g['error'](a2(0x20e));throw new h();}}else{const f=(c===null||c===void 0x0?void 0x0:c['name'])||a[0x0],g=(c===null||c===void 0x0?void 0x0:c[a2(0x1ca)])||'',h=a[0x0],i=Object['keys'](b),j=yield this[a2(0x229)][a2(0x1ce)]();!j&&(Log[a2(0x231)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[a2(0x194)](0x1));const k=(j===null||j===void 0x0?void 0x0:j[a2(0x213)][a2(0x1ba)](f))||(j===null||j===void 0x0?void 0x0:j[a2(0x213)][a2(0x1ba)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a2(0x220)][a2(0x1ba)](a2(0x1e8)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x220)][a2(0x1ba)](a2(0x203)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x1d7)]);if(k&&l)throw a2(0x22a)+a[0x0]+a2(0x211);if(i[a2(0x1f7)]>0x0){if(a2(0x222)===a2(0x1a5))return c['toString']()['search'](a2(0x1f4))[a2(0x1bd)]()[a2(0x217)](d)[a2(0x1c8)]('(((.+)+)+)+$');else{const n=j===null||j===void 0x0?void 0x0:j[a2(0x1b3)][a2(0x1f5)](o=>i[a2(0x1ba)](o));if(n&&n[a2(0x1f7)]>0x0&&l){if(a2(0x1ed)===a2(0x1bb)){d[a2(0x231)]('Missing\x20required\x20option:\x20'+e);throw new f();}else throw a2(0x1ea)+(n===null||n===void 0x0?void 0x0:n['join'](',\x20'))+a2(0x211);}}}if(h===a2(0x1aa)){if(a2(0x1c5)!==a2(0x1c5))throw new b();else{const q=yield this[a2(0x229)]['getPro'](),r=q===null||q===void 0x0?void 0x0:q[a2(0x213)][a2(0x1ba)](a[0x0]+'\x20'+a[0x1]);if(r&&l)throw a2(0x22a)+a[0x0]+a2(0x211);}}if(j===null||j===void 0x0?void 0x0:j[a2(0x1d7)]){if(a2(0x1cf)!==a2(0x1d0))Log[a2(0x1f8)]('Trial\x20License\x20Expires:\x20'+j['trialExpirationDate'][a2(0x1fa)]('T')[0x0]);else throw new b('Command.create\x20requires\x20some\x20options!');}}}}catch(t){throw t;}else{if(!f['includes'](g)){k['error'](a2(0x1a0)+l);throw new m();}}});}[a0Q(0x1f0)](a,b,c){const a3=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object['keys'](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a3(0x1f7)])>0x0){if(g[a3(0x1f7)]===0x0){Log[a3(0x231)](a3(0x1f2)+requiredOpts['join'](',\x20'));throw new UsageError();}requiredOpts[a3(0x1b7)](h=>{const a4=a3;if(a4(0x1d5)!==a4(0x232)){if(!g['includes'](h)){if(a4(0x202)==='NRdqD'){Log[a4(0x231)](a4(0x1a0)+h);throw new UsageError();}else b[a4(0x1a2)](this[a4(0x1ca)]);}}else c(d);});}validOpts=validOpts[a3(0x1fc)](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0){if(a3(0x1b1)!==a3(0x234))validOpts[a3(0x1a2)]('help'),g[a3(0x1b7)](h=>{const a5=a3;if(!validOpts['includes'](h)){if(a5(0x1c6)!==a5(0x236)){Log[a5(0x231)](a5(0x205)+h);throw new UsageError();}else c(d);}});else throw new b(a3(0x1c3));}}[a0Q(0x1b5)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a0d;if(a6(0x1d2)!==a6(0x228))try{if(a6(0x238)!=='biHGP')g[a6(0x231)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),h[a6(0x1f8)](a6(0x1e2)),i[a6(0x225)](j,k,l);else{a=a||[],b=b||{};try{yield this['validateMakaSubscription'](a,b);}catch(d){a6(0x1d3)!==a6(0x1d3)?c[a6(0x1a7)](0x0,0x0,d):(Log[a6(0x231)](d),process['exit'](0x0));}yield this[a6(0x199)](a,b);}}catch(g){if(a6(0x235)==='pRdeE')process[a6(0x194)](0x1);else{c[a6(0x231)](a6(0x20e));throw new d();}}else{const j=this[a6(0x1e7)]();if(!j)throw new c();}});}[a0Q(0x199)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;if(a7(0x1b2)==='JULRv'){const {usage:usage='',description:description='',examples:examples=[]}=this[a7(0x1e9)];this[a7(0x1f0)](a,b,this['options']);try{if('MINWm'==='uVXYR')g['name']!=='murder'&&h[a7(0x20b)]!==a7(0x226)&&m['push']([n[a7(0x20b)],o[a7(0x1df)](),p[a7(0x216)]()]);else{if(this['options'][a7(0x233)]){const d=this['validateMakaProject']();if(!d)throw new MustBeInProjectError();}if(this[a7(0x1e9)][a7(0x1ab)]){if(a7(0x1e4)===a7(0x21b))c[a7(0x231)](a7(0x1e1)),d[a7(0x194)](0x1);else{const g=this[a7(0x1f9)]();if(!g)throw new NoMeteorFoundError();}}if(typeof this[a7(0x1e9)]['minArgLength']==='number'){if(a7(0x221)!==a7(0x1d9)){if(a[a7(0x1f7)]<this[a7(0x1e9)]['minArgLength']){if(a7(0x1a9)===a7(0x1a9)){Log[a7(0x231)](a7(0x20e));throw new UsageError();}else b[a7(0x194)](0x1);}}else{if(i[a7(0x1f7)]===0x0){q[a7(0x231)](a7(0x1f2)+r[a7(0x219)](',\x20'));throw new s();}m['forEach'](z=>{const a8=a7;if(!t[a8(0x1ba)](z)){w[a8(0x231)](a8(0x1a0)+z);throw new x();}});}}if(typeof this[a7(0x1e9)]['maxArgLength']===a7(0x1de)){if(a[a7(0x1f7)]>=this[a7(0x1e9)][a7(0x1ad)]){Log[a7(0x231)](a7(0x1d4));throw new UsageError();}}if(typeof this['options'][a7(0x206)]===a7(0x1de)){if(a7(0x1c0)!=='sCZyY')throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a7(0x211);else{if(Object[a7(0x227)](b)[a7(0x1f7)]<this['options'][a7(0x206)]){if('BbmeL'!==a7(0x209))return this[a7(0x1bf)][a7(0x22d)](l=>l['match'](c));else{Log[a7(0x231)](a7(0x1bc));throw new UsageError();}}}}if(typeof this[a7(0x1e9)][a7(0x1ec)]===a7(0x1de)){if(Object[a7(0x227)](b)['length']>=this[a7(0x1e9)][a7(0x1ec)]){if('AACts'===a7(0x1c1)){d['error'](a7(0x205)+e);throw new f();}else{Log[a7(0x231)](a7(0x1d8));throw new UsageError();}}}if((a[0x0]===_prevCmd||a['length']===0x0)&&b['help'])throw new UsageError();_prevCmd=a[0x0],yield this[a7(0x1c2)][a7(0x20c)](this,a,b);}}catch(m){if(a7(0x1a8)==='HwCOF'){if(m instanceof UsageError)a7(0x223)===a7(0x1d6)?c[a7(0x1f8)]('Trial\x20License\x20Expires:\x20'+d['trialExpirationDate'][a7(0x1fa)]('T')[0x0]):(this[a7(0x1bf)][a7(0x1f7)]>0x0&&b[a7(0x21f)]&&(a7(0x1cc)!==a7(0x23a)?(Log[a7(0x1f8)](a7(0x1f6)),this[a7(0x19c)](this[a7(0x1bf)])):c(d)),Log[a7(0x225)](description,examples,usage));else{if(m instanceof MustBeInProjectError)Log[a7(0x231)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log[a7(0x225)](description,examples,usage);else{if(m instanceof NoMeteorFoundError)Log[a7(0x231)](a7(0x198)),Log[a7(0x1f8)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),Log[a7(0x225)](description,examples,usage);else{if(m instanceof NoMeteorAppFoundError){if('dqxyz'!==a7(0x204))Log[a7(0x231)](a7(0x215)),Log[a7(0x225)](description,examples,usage);else{c[a7(0x231)](a7(0x1bc));throw new d();}}else throw m;}}}process[a7(0x194)](0x1);}else throw a7(0x1ea)+(d===null||m===void 0x0?void 0x0:f['join'](',\x20'))+a7(0x211);}}else d(e[a7(0x200)](f));});}['tableList'](a){const a9=a0Q,b=new a0L({});b['push']([a9(0x19b),a9(0x1b4),'Description']),a['sort']()[a9(0x1b7)](c=>{const aa=a9;if(aa(0x1a6)!==aa(0x1a6)){if(!(e instanceof f))throw new i(aa(0x1af));this['_commands'][aa(0x1a2)](h);}else c[aa(0x20b)]!=='murder'&&c['name']!==aa(0x226)&&b[aa(0x1a2)]([c['name'],c[aa(0x1df)](),c[aa(0x216)]()]);}),Log[a9(0x1fe)](b[a9(0x1bd)]());}[a0Q(0x195)](a){const ab=a0Q;return this['_commands'][ab(0x22d)](b=>b[ab(0x19f)](a));}[a0Q(0x1a1)](a){const ac=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ac(0x1fa)](':');if(b)return a=b[0x0],this['findCommand'](a);else return;}['runSubCommand'](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;try{let d=a[ad(0x1fa)](':');a=d[0x0];let f=d[0x1];f&&b[ad(0x1a7)](0x0,0x0,f);let g=this[ad(0x195)](a);if(g)yield g['run'](b,c);else{if(ad(0x193)===ad(0x193))throw'Command\x20not\x20found';else throw new b('Command\x20requires\x20a\x20name');}}catch(i){if(ad(0x1ff)===ad(0x1ff))throw Log[ad(0x231)](i);else f[ad(0x231)](ad(0x215)),g['usage'](h,i,j);}});}['description'](){const ae=a0Q;return this[ae(0x1e9)][ae(0x216)]||ae(0x207);}[a0Q(0x225)](){const af=a0Q;return this[af(0x1e9)][af(0x225)]||af(0x1b0);}[a0Q(0x1ee)](){const ag=a0Q;return this['options'][ag(0x1ee)]||[];}[a0Q(0x1df)](){const ah=a0Q;return this[ah(0x1e9)]['aliases']||ah(0x21d);}}
|
|
1
|
+
const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0xda))/0x1*(parseInt(N(0xf7))/0x2)+parseInt(N(0xe5))/0x3*(parseInt(N(0xb3))/0x4)+-parseInt(N(0x117))/0x5*(parseInt(N(0xb0))/0x6)+parseInt(N(0xd6))/0x7*(-parseInt(N(0x107))/0x8)+-parseInt(N(0xff))/0x9+parseInt(N(0x10a))/0xa+parseInt(N(0xe9))/0xb*(parseInt(N(0xc5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x28ae0));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(O(0x10f)!==O(0x105)){if(c){const e=c[O(0xa1)](b,arguments);return c=null,e;}}else e['push']([f['name'],g['aliases'](),h[O(0x95)]()]);}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0xc4)]()[P(0xaa)]('(((.+)+)+)+$')['toString']()[P(0x115)](a0a)[P(0xaa)](P(0x112));});a0a();var __awaiter=this&&this[a0Q(0xdb)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const R=a0d;if(R(0xb5)!=='vvdxf'){c[R(0xa0)](R(0xbf));throw new d();}else g(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;try{j(d[S(0x10d)](k));}catch(l){if(S(0x122)!==S(0xe3))g(l);else return![];}}function i(k){const T=a0d;if(T(0xd8)===T(0xd8))try{j(d[T(0xd2)](k));}catch(l){g(l);}else d(e[T(0x10d)](f));}function j(k){const U=a0d;k[U(0xae)]?f(k[U(0xc7)]):e(k[U(0xc7)])['then'](h,i);}j((d=d[V(0xa1)](a,b||[]))['next']());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0xfa)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x94;let f=c[d];return f;},a0d(a,b);}function a0c(){const ai=['proFlags','tZojT','minArgLength','nlBQR','_handler','10322iQqkmi','No\x20description\x20provided.','TmbIH','homedir','LMkqu','.meteor','Description','roles','1178505kOaQgf','Yzvlw','No\x20aliases','findCommand','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','notice','MmGFL','RCtZD','424uIFYrW','EdfUf','keys','385620CTksTD','CvmeE','trialExpirationDate','next','Command.create\x20requires\x20a\x20handler\x20function!','DDRVY','Command\x20not\x20found','xdARp','(((.+)+)+)+$','Command\x20requires\x20a\x20name','maxArgLength','constructor','RheML','21815feXsJH','zHoou','validateMakaSubscription','Missing\x20required\x20option:\x20','jhtCC','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','AppData','mustBeInMakaProject','usage','name','tableList','iQdLa','Invalid\x20options:\x20','validateMeteorInstall','description','singleLicense','options','concat','Alias','getPro','splice','includes','forEach','murder','examples','error','apply','Too\x20few\x20arguments','existsSync','addCommand','Missing\x20required\x20options\x20','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','find','exit','igYBB','search','create','XAnwb','Name','done','runSubCommand','438OYZyRX','game','wBMmW','1251620WhuBQm','assign','vvdxf','trialActive','Local','WDjdK','QuxUf','lCfSB','gGkRY','Trial\x20License\x20Expires:\x20','There\x20is\x20no\x20Meteor\x20application\x20here','platform','Too\x20many\x20arguments','parent','match','run','split','toString','170244yqSPtI','jCRwj','value','validateMakaProject','Too\x20many\x20options','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','call','proCommands','filter','Command\x20requires\x20a\x20handler\x20function','ZSuTx','bind','Please\x20run\x20\x22maka\x20install\x20meteor\x22','throw','join','addCommand\x20requires\x20a\x20Command\x20instance','push','17689sFSiqX','findProjectDirectory','WzGHp','bright','3xQljLe','__awaiter','domainLicense','invoke','YHbiT','aliases','_commands','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','maxOptsLength','AoVKn','pKyxM','3vRkrmu','number','hMBvF','Command.create\x20requires\x20some\x20options!','297CfyXDf','length','KpNOe','HdogS','BCzQT','cryAi','sort','help','fsi'];a0c=function(){return ai;};return a0c();}import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0Q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name']){if(W(0xa9)===W(0x11b)){let d=[this['name']][W(0x98)](this[W(0x97)][W(0xdf)]||[]);return this['parent']&&d['push'](this['parent']),d['includes'](b);}else throw new Error('Command\x20requires\x20a\x20name');}if(typeof b!=='function')throw new Error(W(0xce));this[W(0x97)]=Object[W(0xb4)]({},a),this[W(0x120)]=this[W(0x97)][W(0x120)],this[W(0xe0)]=[],this[W(0xf6)]=b[W(0xd0)](this);}static[a0Q(0xab)](a,b,c){const X=a0Q;var d;if(!a){if(X(0xde)===X(0x111))f['error'](X(0x11c)),g[X(0x11f)](h,i,j);else throw new Error(X(0xe8));}if(typeof b!=='function')throw new Error(X(0x10e));let e=new Command(a,b);return c=c||a0M,Object[X(0xb4)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x97)])===null||d===void 0x0?void 0x0:d['name']}),c[X(0xa4)](e),e;}[a0Q(0xc1)](a){const Y=a0Q;let b=[this['name']][Y(0x98)](this['options'][Y(0xdf)]||[]);return this[Y(0xc0)]&&b[Y(0xd5)](this[Y(0xc0)]),b[Y(0x9c)](a);}[a0Q(0xa4)](a){const Z=a0Q;if(!(a instanceof Command))throw new Error(Z(0xd4));this['_commands'][Z(0xd5)](a);}[a0Q(0xc8)](){const a0=a0Q,a=this[a0(0xf1)][a0(0xd7)]();return a!==![]?!![]:![];}[a0Q(0x94)](){const a1=a0Q;let a=a0I[a1(0xd3)](homeDir,a1(0xfc));const b=process[a1(0xbe)]==='win32';if(b){if(a1(0xfb)!==a1(0xfb))d(e[a1(0xd2)](f));else{a=a0I[a1(0xd3)](homeDir,a1(0x11d),'Local',a1(0xfc));if(!a0K[a1(0xa3)](a)){if(a1(0x100)==='Yzvlw')return![];else c[a1(0x9b)](0x0,0x0,d);}}}else{if(!a0K[a1(0xa3)](a))return![];}return!![];}[a0Q(0x119)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if('jeYaj'===a2(0xba))throw c[a2(0xa0)](d);else try{if(a2(0x106)!=='xcbad'){const d=this['findCommand'](a[0x0]);if(d){const f=(d===null||d===void 0x0?void 0x0:d['name'])||a[0x0],g=(d===null||d===void 0x0?void 0x0:d[a2(0xc0)])||'',h=a[0x0],i=Object['keys'](b),j=yield this['fsi']['getPro']();!j&&(Log[a2(0xa0)](a2(0xca)),process['exit'](0x1));const k=(j===null||j===void 0x0?void 0x0:j['proCommands'][a2(0x9c)](f))||(j===null||j===void 0x0?void 0x0:j['proCommands'][a2(0x9c)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a2(0xfe)][a2(0x9c)](a2(0x96)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0xfe)][a2(0x9c)](a2(0xdc)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0xb6)]);if(k&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x103);if(i[a2(0xea)]>0x0){const m=j===null||j===void 0x0?void 0x0:j[a2(0xf2)][a2(0xcd)](n=>i[a2(0x9c)](n));if(m&&m[a2(0xea)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(m===null||m===void 0x0?void 0x0:m[a2(0xd3)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(h==='deploy'){const n=yield this[a2(0xf1)][a2(0x9a)](),o=n===null||n===void 0x0?void 0x0:n[a2(0xcc)][a2(0x9c)](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x103);}(j===null||j===void 0x0?void 0x0:j['trialActive'])&&Log[a2(0x104)](a2(0xbc)+j[a2(0x10c)]['split']('T')[0x0]);}}else try{i(j['next'](k));}catch(q){m(q);}}catch(q){throw q;}});}['validateParams'](a,b,c){const a3=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object['keys'](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts['length'])>0x0){if(g[a3(0xea)]===0x0){if('jCRwj'!==a3(0xc6)){d['error'](a3(0x123)+e);throw new f();}else{Log[a3(0xa0)](a3(0xa5)+requiredOpts['join'](',\x20'));throw new UsageError();}}requiredOpts[a3(0x9d)](i=>{const a4=a3;if(!g[a4(0x9c)](i)){if(a4(0xf3)==='tZojT'){Log[a4(0xa0)](a4(0x11a)+i);throw new UsageError();}else return![];}});}validOpts=validOpts[a3(0x98)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a3(0xea)])>0x0&&(validOpts[a3(0xd5)](a3(0xf0)),g[a3(0x9d)](i=>{const a5=a3;if('fMXoC'===a5(0xb2)){if(i[a5(0xea)]===0x0){q[a5(0xa0)](a5(0xa5)+r[a5(0xd3)](',\x20'));throw new s();}m['forEach'](z=>{const a6=a5;if(!t['includes'](z)){w[a6(0xa0)](a6(0x11a)+z);throw new x();}});}else{if(!validOpts[a5(0x9c)](i)){Log['error'](a5(0x123)+i);throw new UsageError();}}}));}[a0Q(0xc2)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{if(a7(0xf5)!=='nlBQR')b['exit'](0x1);else{a=a||[],b=b||{};try{yield this[a7(0x119)](a,b);}catch(d){Log[a7(0xa0)](d),process[a7(0xa8)](0x0);}yield this[a7(0xdd)](a,b);}}catch(f){if('ZSuTx'!==a7(0xcf))throw new b(a7(0x113));else process[a7(0xa8)](0x1);}});}[a0Q(0xdd)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a8(0x97)];this['validateParams'](a,b,this['options']);try{if(this[a8(0x97)][a8(0x11e)]){if(a8(0xf9)!==a8(0xf9))throw b;else{const d=this[a8(0xc8)]();if(!d)throw new MustBeInProjectError();}}if(this[a8(0x97)]['mustHaveMeteorInstalled']){const f=this[a8(0x94)]();if(!f)throw new NoMeteorFoundError();}if(typeof this[a8(0x97)][a8(0xf4)]===a8(0xe6)){if(a[a8(0xea)]<this[a8(0x97)]['minArgLength']){if(a8(0xb8)!=='WDjdK'){if(!f[a8(0x9c)](g)){k['error'](a8(0x11a)+l);throw new m();}}else{Log[a8(0xa0)]('Too\x20few\x20arguments');throw new UsageError();}}}if(typeof this[a8(0x97)][a8(0x114)]==='number'){if(a8(0xe4)===a8(0xe4)){if(a[a8(0xea)]>=this['options'][a8(0x114)]){if(a8(0xed)!==a8(0xec)){Log[a8(0xa0)](a8(0xbf));throw new UsageError();}else throw new b(a8(0xce));}}else throw new b(a8(0xe1));}if(typeof this[a8(0x97)]['minOptsLength']==='number'){if(Object[a8(0x109)](b)[a8(0xea)]<this[a8(0x97)]['minOptsLength']){Log[a8(0xa0)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[a8(0x97)][a8(0xe2)]===a8(0xe6)){if(Object['keys'](b)[a8(0xea)]>=this['options'][a8(0xe2)]){Log[a8(0xa0)]('Too\x20many\x20options');throw new UsageError();}}if((a[0x0]===_prevCmd||a[a8(0xea)]===0x0)&&b[a8(0xf0)]){if(a8(0xeb)===a8(0xac))c[a8(0xa0)](a8(0xca)),d[a8(0xa8)](0x1);else throw new UsageError();}_prevCmd=a[0x0],yield this[a8(0xf6)][a8(0xcb)](this,a,b);}catch(k){if(k instanceof UsageError){if(this[a8(0xe0)]['length']>0x0&&b['help']){if('QuxUf'!==a8(0xb9)){f=g[a8(0xd3)](h,'AppData',a8(0xb7),a8(0xfc));if(!i[a8(0xa3)](j))return![];}else Log[a8(0x104)]('Commands:'),this[a8(0x121)](this[a8(0xe0)]);}Log[a8(0x11f)](description,examples,usage);}else{if(k instanceof MustBeInProjectError)Log[a8(0xa0)](a8(0x11c)),Log[a8(0x11f)](description,examples,usage);else{if(k instanceof NoMeteorFoundError)Log[a8(0xa0)](a8(0xa6)),Log['notice'](a8(0xd1)),Log[a8(0x11f)](description,examples,usage);else{if(k instanceof NoMeteorAppFoundError){if(a8(0xee)===a8(0x10b))return f instanceof g?h:new i(function(n){n(k);});else Log[a8(0xa0)](a8(0xbd)),Log['usage'](description,examples,usage);}else{if(a8(0x116)===a8(0xbb))f[a8(0xa0)](a8(0xbd)),g[a8(0x11f)](h,i,j);else throw k;}}}}process[a8(0xa8)](0x1);}});}['tableList'](a){const a9=a0Q,b=new a0L({});b['push']([a9(0xad),a9(0x99),a9(0xfd)]),a[a9(0xef)]()[a9(0x9d)](c=>{const aa=a9;c[aa(0x120)]!==aa(0x9e)&&c[aa(0x120)]!==aa(0xb1)&&b['push']([c['name'],c[aa(0xdf)](),c[aa(0x95)]()]);}),Log[a9(0xd9)](b['toString']());}[a0Q(0x102)](a){const ab=a0Q;return this['_commands'][ab(0xa7)](b=>b[ab(0xc1)](a));}['findSubCommand'](a){const ac=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ac(0xc3)](':');if(b){if(ac(0xe7)!==ac(0xe7)){if(d['length']<this[ac(0x97)][ac(0xf4)]){g[ac(0xa0)](ac(0xa2));throw new h();}}else return a=b[0x0],this['findCommand'](a);}else{if(ac(0x118)===ac(0x118))return;else throw new b(ac(0x10e));}}[a0Q(0xaf)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;if('EdfUf'===ad(0x108))try{let d=a[ad(0xc3)](':');a=d[0x0];let f=d[0x1];f&&b[ad(0x9b)](0x0,0x0,f);let g=this[ad(0x102)](a);if(g)yield g[ad(0xc2)](b,c);else throw ad(0x110);}catch(h){if('PxwtD'!=='PxwtD')g['error'](ad(0xa6)),h['notice'](ad(0xd1)),i[ad(0x11f)](j,k,l);else throw Log['error'](h);}else{if(e[ad(0x109)](f)[ad(0xea)]>=this['options'][ad(0xe2)]){i[ad(0xa0)](ad(0xc9));throw new j();}}});}['description'](){const ae=a0Q;return this[ae(0x97)][ae(0x95)]||ae(0xf8);}['usage'](){const af=a0Q;return this[af(0x97)][af(0x11f)]||'No\x20usage\x20provided.';}[a0Q(0x9f)](){const ag=a0Q;return this['options'][ag(0x9f)]||[];}['aliases'](){const ah=a0Q;return this[ah(0x97)][ah(0xdf)]||ah(0x101);}}
|
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(0x143))/0x1*(-parseInt(u(0x147))/0x2)+parseInt(u(0x149))/0x3+parseInt(u(0x141))/0x4+-parseInt(u(0x142))/0x5+parseInt(u(0x13d))/0x6*(parseInt(u(0x140))/0x7)+-parseInt(u(0x14a))/0x8+parseInt(u(0x148))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xbd10d));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x144)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0x146)]()[w(0x13e)](w(0x145))[w(0x146)]()[w(0x13f)](a1a)[w(0x13e)](w(0x145));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x13d;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';function a1c(){var x=['2wAgoyd','16069914GMBNNg','2097342LFBDhg','8456776PifWBZ','594NMAsEf','search','constructor','5131KqEmoJ','1281592otFxMD','4481690XhFxrz','149777wWjZJt','apply','(((.+)+)+)+$','toString'];a1c=function(){return x;};return a1c();}import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.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(0xa9))/0x1*(parseInt(u(0xa8))/0x2)+parseInt(u(0xb0))/0x3+-parseInt(u(0xb1))/0x4*(parseInt(u(0xa7))/0x5)+-parseInt(u(0xab))/0x6*(parseInt(u(0xaf))/0x7)+-parseInt(u(0xa6))/0x8*(parseInt(u(0xac))/0x9)+-parseInt(u(0xb4))/0xa*(parseInt(u(0xb5))/0xb)+parseInt(u(0xae))/0xc*(parseInt(u(0xb3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xf402c));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0xad)]()[w(0xb2)](w(0xb7))[w(0xad)]()[w(0xb6)](a2a)['search']('(((.+)+)+)+$');});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xa6;var f=c[d];return f;},a2d(a,b);}import'./ci.sub.cmd.js';function a2c(){var x=['apply','209382GHYcga','1629TpqmOc','toString','396YNilQF','336NPOaWs','2301129TblqgA','72164OmuNNC','search','2353936NvtmFa','2900hMOsYH','50171HJoBzJ','constructor','(((.+)+)+)+$','53864AsPGVT','205WiGPAY','1573702yzjxbA','1UmtZBP'];a2c=function(){return x;};return a2c();}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a3A=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0x1e6))/0x1*(-parseInt(w(0x1ea))/0x2)+parseInt(w(0x1ce))/0x3+parseInt(w(0x1e9))/0x4+parseInt(w(0x1e5))/0x5+parseInt(w(0x1d5))/0x6+parseInt(w(0x1db))/0x7*(-parseInt(w(0x1cf))/0x8)+-parseInt(w(0x1dd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x7a825));function a3c(){const H=['__awaiter','8997039QecubS','constructor','wqLAe','create','PxQfs','toString','jZTeh','search','575605aMjnvh','1iApfDm','aws','Fbujk','571532IoKKFj','1830728DFqynU','exit','next','Mpxke','throw','value','then','2675664peJunA','64MUNDZG','(((.+)+)+)+$','frTRO','done','findSubCommand','runSubCommand','1226568XnbqmS','maka\x20aws:di','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','sdILz','apply','QMnIm','672189uxmkSZ'];a3c=function(){return H;};return a3c();}const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x1df)===x(0x1da))return c[x(0x1e2)]()[x(0x1e4)]('(((.+)+)+)+$')[x(0x1e2)]()[x(0x1de)](d)[x(0x1e4)](x(0x1d0));else{const e=a?function(){const y=x;if(c){if(y(0x1d8)!==y(0x1d8))try{i(j['throw'](k));}catch(g){m(g);}else{const g=c['apply'](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a3a=a3b(this,function(){const z=a3d;return a3a[z(0x1e2)]()[z(0x1e4)](z(0x1d0))['toString']()['constructor'](a3a)['search'](z(0x1d0));});a3a();var __awaiter=this&&this[a3A(0x1dc)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const B=a3d;if(B(0x1e8)===B(0x1e8))g(f);else{const i=d[B(0x1d9)](e,arguments);return f=null,i;}});}return new(c||(c=Promise))(function(f,g){const F=a3d;function h(k){const C=a3d;try{C(0x1ca)!==C(0x1e1)?j(d['next'](k)):d(e[C(0x1cb)](f));}catch(m){g(m);}}function i(k){const D=a3d;try{j(d[D(0x1cb)](k));}catch(l){g(l);}}function j(k){const E=a3d;k[E(0x1d2)]?f(k[E(0x1cc)]):e(k[E(0x1cc)])[E(0x1cd)](h,i);}j((d=d['apply'](a,b||[]))[F(0x1c9)]());});};import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a3d(a,b);}const AWSCommand=Command[a3A(0x1e0)]({'name':a3A(0x1e7),'usage':'maka\x20aws\x20<command>','minArgLength':0x1,'description':a3A(0x1d7),'examples':['maka\x20aws:describe-instance',a3A(0x1d6)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a3d;try{if(G(0x1e3)!==G(0x1d1)){let c=a[0x0],d=this[G(0x1d3)](c);d&&this[G(0x1d4)](c,a,b);}else return f instanceof g?h:new i(function(m){m(k);});}catch(g){console['error'](g),process[G(0x1c8)](0x0);}});});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4ai=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x167;let f=c[d];return f;},a4d(a,b);}(function(a,b){const af=a4d,c=a();while(!![]){try{const d=-parseInt(af(0x17e))/0x1*(-parseInt(af(0x1cc))/0x2)+-parseInt(af(0x196))/0x3*(-parseInt(af(0x1e5))/0x4)+parseInt(af(0x1a7))/0x5*(parseInt(af(0x1a5))/0x6)+-parseInt(af(0x1cd))/0x7*(parseInt(af(0x1b9))/0x8)+-parseInt(af(0x172))/0x9+parseInt(af(0x1d7))/0xa+-parseInt(af(0x1e3))/0xb*(-parseInt(af(0x1e4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x783b3));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ag=a4d;if('RihBl'===ag(0x17d))try{i(j['throw'](k));}catch(f){m(f);}else{if(c){if('VJCmv'===ag(0x1a9))c(d);else{const g=c[ag(0x1da)](b,arguments);return c=null,g;}}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ah=a4d;return a4a[ah(0x18b)]()[ah(0x1d5)](ah(0x180))[ah(0x18b)]()[ah(0x1ea)](a4a)[ah(0x1d5)](ah(0x180));});a4a();var __awaiter=this&&this[a4ai(0x187)]||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{if(aj(0x18a)===aj(0x18a))j(d[aj(0x19c)](k));else{c['error'](aj(0x1a6)),d[aj(0x1c2)](aj(0x1cf));return;}}catch(m){g(m);}}function i(k){const ak=a4d;if(ak(0x1b5)==='bZhAR')e=f[ak(0x1ae)],g[ak(0x193)]('Setting\x20SG\x20ID\x20to:\x20'+h+'\x0a');else try{'CFvFD'===ak(0x1e9)?j(d[ak(0x16a)](k)):h['id']===i(j)&&(o=p['subnetId'],q[ak(0x193)](ak(0x1dc)+r));}catch(n){if(ak(0x19a)===ak(0x192))try{i(j[ak(0x19c)](k));}catch(p){m(p);}else g(n);}}function j(k){const al=a4d;al(0x177)===al(0x181)?h(i)===j['id']&&(o=p[al(0x1a2)],q[al(0x193)](al(0x1bb)+r)):k[al(0x1d9)]?f(k['value']):e(k[al(0x176)])[al(0x173)](h,i);}j((d=d[am(0x1da)](a,b||[]))[am(0x19c)]());});};function a4c(){const aA=['exit','desc','Name','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=*','EtLqA','createKeyPair','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','cider','551272RtWkuB','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20the\x20key-pair\x20to:\x20','alias','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','\x20AMIID:\x20','JUmNQ','cidr','Instance\x20Count:\x20','notice','1:1','split','env','**\x20Available\x20AMIs\x20**','ZScxG','Key-Pair:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','**\x20Available\x20Security\x20Groups\x20**','82zKMYIZ','28nIHRDu','ask','No\x20instance\x20has\x20been\x20created.','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x20SG\x20NAME:\x20','Setting\x20SG\x20ID\x20to:\x20','amiId','tbHGF','search','chooseVPC','1790110MEqBHk','create-instance','done','apply','Security\x20Group:\x20','Setting\x20Subnet\x20ID\x20to\x20','getTime','ImageID:','\x20SGID:\x20','parse','hbZCd','join','476795xhhWDk','12ELBzpq','1374232uDpUVu','SJrHl','forEach','XmXYh','CFvFD','constructor','RTFQL','\x22Web\x20App\x22','\x20AZONE:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','ec2create','throw','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t2.nano]','error','Instace\x20Type:\x20','ID:\x20','SrpSe','date','1876635sRVgZV','then','\x20SUBNETID:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','value','vBXRt','bright','\x20:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','abbWs','Setting\x20AMI\x20ID\x20to\x20','tpnoM','7567WPdJLj','push','(((.+)+)+)+$','IjGpr','string','help','subnetId','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','rlqOC','__awaiter','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Open\x20port\x20443\x20for\x20SSL?','QzZmq','toString','IfjUD','subnet','confirm','ec2createSG','CoGvl','getProjectConfig','bWOTU','success','pyFjv','Subnet:\x20','3brrPeK','log','oaObT','PxQtx','kkenm','maka\x20aws:create-instance','next','Desc','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','build\x20on\x20','nhpMY','sort','name','RDJMW','number','86106BHwqQp','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','35yUFZTt','},\x20{Key=Name,Value=','WbNYQ','\x20DESCRIPTION:\x20','EC2\x20Name:\x20[','Ydnmd','getConfigFromShorthand','sgId','**\x20Available\x20key-pairs\x20**','jQdby'];a4c=function(){return aA;};return a4c();}import a4C from'./aws.command.js';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a4ai(0x1d8),'aliases':['ci'],'usage':a4ai(0x19b),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4ai(0x183)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const an=a4d;try{const c=this['fsi'][an(0x191)](),d=new AWS(),{appName:f}=c,g=this['fsi'][an(0x1ad)](b[an(0x1c5)]);let h=f+'-'+g,i=(yield Actions[an(0x1ce)](an(0x1ab)+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[an(0x18e)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let r='';q&&(r=yield d[an(0x1b6)]({'env':g}));try{if(an(0x18c)===an(0x1d4))e[an(0x197)](an(0x16f)+f['id']+'\x20AMIID:\x20'+g[an(0x1d3)]+an(0x1aa)+h[an(0x1b2)]);else{Log[an(0x1c2)](an(0x1af));let w=r?r:i,x=d['ec2describeKeys']({'suggestion':w}),y=(yield Actions[an(0x1ce)](an(0x188)))||'-1';if(parseInt(y)<0x0){if(an(0x198)==='qIFjG')i['id']===j(k)&&(q=r[an(0x1d3)],s[an(0x193)](an(0x17c)+t+an(0x179)+u[an(0x1b2)]));else{Log['error'](an(0x1a6)),Log[an(0x1c2)](an(0x1cf));return;}}x===null||x===void 0x0?void 0x0:x[an(0x1e7)](function(A){const ao=an;parseInt(y)===A['id']&&('EtkTI'===ao(0x1eb)?d(e[ao(0x16a)](f)):(j=A[ao(0x1a2)],Log[ao(0x193)]('Setting\x20the\x20key-pair\x20to:\x20'+j)));});}}catch(A){Log[an(0x16d)](A);}k=yield d[an(0x1d6)]();let s=yield Actions[an(0x18e)](an(0x168)),t;if(s){let B=k===''?d[an(0x1d6)]():k,C=yield Actions[an(0x18e)](an(0x189));t=(yield Actions['ask']('Security\x20Group\x20Name:\x20['+i+']'))||i,d[an(0x18f)]({'description':an(0x1ec),'name':t,'vpcId':B,'ssl':C});}t=i;try{if(an(0x186)===an(0x186)){Log[an(0x1c2)](an(0x1cb));let D=execSync('aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22')[an(0x18b)](),E=JSON[an(0x1e0)](D),F=[];E[an(0x1e7)](function(H,I){const ap=an;F[ap(0x17f)]({'id':I,'name':H[ap(0x1b3)],'sgId':H['ID']});}),F[an(0x1e7)](function(H){const aq=an;H[aq(0x1a2)]===t?aq(0x190)!==aq(0x190)?c['error'](d):Log[aq(0x1c2)](aq(0x16f)+H['id']+aq(0x1d1)+H[aq(0x1a2)]+aq(0x1df)+H[aq(0x1ae)]):console['log'](aq(0x16f)+H['id']+'\x20SG\x20NAME:\x20'+H[aq(0x1a2)]+aq(0x1df)+H[aq(0x1ae)]);});let G=(yield Actions['ask'](an(0x1ba)))||'0';F[an(0x1e7)](function(H){const ar=an;H['id']===parseInt(G)&&(l=H[ar(0x1ae)],Log[ar(0x193)](ar(0x1d2)+l+'\x0a'));});if(l===''){if(an(0x1ac)!==an(0x1ac))e=f[an(0x1a2)],g[an(0x193)](an(0x1bb)+h);else throw Log['error'](an(0x17a));}}else{let J=e[an(0x19d)][an(0x1c4)]('build\x20on\x20')[0x1];f['push']({'amiId':g['ID'],'desc':h[an(0x19d)],'date':J});}}catch(J){Log[an(0x16d)](J);}try{let K=0x7e6;Log[an(0x1c2)](an(0x1c6));let L=execSync(an(0x1b4)+K+'*\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')[an(0x18b)](),M=JSON['parse'](L),N=[],O=[];M['forEach'](function(Q,R){const as=an;if(Q[as(0x1bc)]===null){if('SrpSe'!==as(0x170))c(d);else{let T=Q[as(0x19d)][as(0x1c4)](as(0x19f))[0x1];N['push']({'amiId':Q['ID'],'desc':Q[as(0x19d)],'date':T});}}}),N[an(0x1a1)](function(Q,R){const at=an;return new Date(R['date'])[at(0x1dd)]()-new Date(Q[at(0x171)])[at(0x1dd)]();}),N[an(0x1e7)](function(Q,R){const au=an;O[au(0x17f)]({'id':R,'amiId':Q[au(0x1d3)],'desc':Q[au(0x1b2)]});}),O[an(0x1e7)](function(Q){const av=an;av(0x1e6)!==av(0x1e6)?e[av(0x17f)]({'id':f,'name':g[av(0x1b3)],'sgId':h['ID']}):console[av(0x197)](av(0x16f)+Q['id']+av(0x1be)+Q[av(0x1d3)]+av(0x1aa)+Q[av(0x1b2)]);});let P=(yield Actions[an(0x1ce)](an(0x16b)))||'0';O['forEach'](function(Q){const aw=an;aw(0x194)!==aw(0x194)?c=d:Q['id']===parseInt(P)&&(m=Q[aw(0x1d3)],Log[aw(0x193)](aw(0x17c)+m+aw(0x179)+Q[aw(0x1b2)]));});if(m==='')throw Log[an(0x16d)](an(0x17a));}catch(Q){an(0x1a3)!==an(0x1a3)?Q['push']({'id':f,'amiId':g[an(0x1d3)],'desc':h[an(0x1b2)]}):Log[an(0x16d)](Q);}try{Log['notice']('**\x20Available\x20Subnets\x20**');let S=execSync(an(0x1c9))[an(0x18b)](),T=JSON[an(0x1e0)](S),U=[];T[an(0x1e7)](function(W,X){const ax=an;U[ax(0x17f)]({'id':X,'cidr':W[ax(0x1b8)],'az':W['az'],'subnetId':W[ax(0x184)]});}),U[an(0x1e7)](function(W){const ay=an;console[ay(0x197)](ay(0x16f)+W['id']+'\x20CIDR:\x20'+W[ay(0x1c0)]+ay(0x167)+W['az']+ay(0x174)+W[ay(0x184)]);});let V=(yield Actions[an(0x1ce)](an(0x175)))||'0';U[an(0x1e7)](function(W){const az=an;if(az(0x1e1)===az(0x1e1))W['id']===parseInt(V)&&(o=W[az(0x184)],Log[az(0x193)]('Setting\x20Subnet\x20ID\x20to\x20'+o));else{if(e){const Y=i[az(0x1da)](j,arguments);return k=null,Y;}}});if(o==='')throw Log['error'](an(0x17a));}catch(W){Log[an(0x16d)](W);}let u=an(0x1c3);try{let X=(yield Actions[an(0x1ce)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||an(0x1c3),Y=X[an(0x1c4)](':')[0x0],Z=X['split'](':')[0x1];typeof parseInt(Y)===an(0x1a4)&&typeof parseInt(Z)==='number'&&(u=[Y,Z][an(0x1e2)](':'),Log[an(0x193)](an(0x1b7)+u));}catch(a0){an(0x1b0)===an(0x17b)?(c[an(0x193)](an(0x1d0)),d[an(0x178)](an(0x1ca))):Log[an(0x16d)](a0);}try{if(an(0x1bf)===an(0x1bf)){let a2=(yield Actions[an(0x1ce)](an(0x16c)))||'t2.nano';if(typeof a2===an(0x182)){if('qFbxL'!=='PLvJV')n=a2;else return f instanceof g?h:new i(function(a4){a4(k);});}}else c[an(0x16d)](d);}catch(a5){'nhpMY'===an(0x1a0)?Log[an(0x16d)](a5):c[an(0x16d)](d);}try{let a7=JSON[an(0x1e0)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+o+an(0x1bd))[an(0x18b)]())[0x0][an(0x18d)];Log[an(0x1c2)](an(0x1de)+m),Log[an(0x1c2)](an(0x1c1)+u),Log[an(0x1c2)](an(0x16e)+n),Log['notice'](an(0x1c8)+j),Log['notice'](an(0x1db)+l),Log[an(0x1c2)](an(0x195)+a7);let a8=yield Actions[an(0x18e)](an(0x185));if(a8){if(an(0x1e8)!=='MYDyR'){let a9=d['ec2create']({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':an(0x19e)+g+an(0x1a8)+i+'}]\x22'});if(a9){if('bntMT'==='bntMT')Log[an(0x193)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[an(0x178)](an(0x1ca));else{let ab=l[an(0x169)]({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':an(0x19e)+s+'},\x20{Key=Name,Value='+t+'}]\x22'});ab&&(w[an(0x193)](an(0x1d0)),x[an(0x178)](an(0x1ca)));}}}else e=f[an(0x184)],g[an(0x193)](an(0x1dc)+h);}else Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}catch(ac){console[an(0x197)](ac),Log[an(0x16d)](ac);}}catch(ad){an(0x199)===an(0x1c7)?ad[an(0x1c2)](an(0x16f)+f['id']+an(0x1d1)+g['name']+an(0x1df)+h[an(0x1ae)]):(console[an(0x16d)](ad),process[an(0x1b1)](0x0));}});},a4C);
|
|
1
|
+
const a4ai=a4d;(function(a,b){const af=a4d,c=a();while(!![]){try{const d=-parseInt(af(0x122))/0x1*(-parseInt(af(0xd6))/0x2)+-parseInt(af(0x150))/0x3+parseInt(af(0xe9))/0x4+-parseInt(af(0xf4))/0x5+-parseInt(af(0xde))/0x6*(-parseInt(af(0x135))/0x7)+parseInt(af(0x111))/0x8*(-parseInt(af(0x12c))/0x9)+-parseInt(af(0x156))/0xa*(parseInt(af(0x13e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xb6262));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ag=a4d;if(ag(0x104)!==ag(0x104))d(e['next'](f));else{if(c){if(ag(0xe3)==='sgxeP')d[ag(0xeb)](e),f[ag(0xd7)](0x0);else{const g=c[ag(0x117)](b,arguments);return c=null,g;}}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ah=a4d;return a4a[ah(0x131)]()[ah(0x151)](ah(0xf8))[ah(0x131)]()['constructor'](a4a)[ah(0x151)](ah(0xf8));});a4a();var __awaiter=this&&this[a4ai(0xea)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const aj=a4d;aj(0x116)===aj(0x116)?g(f):(c[aj(0xdd)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),d[aj(0xf6)](aj(0x136)));});}return new(c||(c=Promise))(function(f,g){const an=a4d;function h(k){const ak=a4d;try{ak(0x14d)===ak(0x115)?k[ak(0x15a)]===l?u[ak(0x105)](ak(0x132)+v['id']+'\x20SG\x20NAME:\x20'+w['name']+ak(0x145)+x[ak(0x14c)]):y[ak(0xd9)]('ID:\x20'+z['id']+'\x20SG\x20NAME:\x20'+A[ak(0x15a)]+ak(0x145)+B[ak(0x14c)]):j(d[ak(0x119)](k));}catch(m){g(m);}}function i(k){const al=a4d;try{j(d[al(0x129)](k));}catch(l){if(al(0x10a)==='DTKir')g(l);else throw b[al(0xeb)](al(0x11c));}}function j(k){const am=a4d;k['done']?f(k[am(0x123)]):e(k[am(0x123)])[am(0x13f)](h,i);}j((d=d[an(0x117)](a,b||[]))[an(0x119)]());});};import a4C from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xd6;let f=c[d];return f;},a4d(a,b);}function a4c(){const aB=['amiId','EC2\x20Name:\x20[','pIlMT','alias','DTKir','subnet','createKeyPair','XlwbZ','hfVgl','eKRAl','quJBi','258568xVxJQj','**\x20Available\x20key-pairs\x20**','Setting\x20Subnet\x20ID\x20to\x20','Security\x20Group:\x20','NdbKl','YfsQW','apply','\x20DESCRIPTION:\x20','next','IVxMh','*\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','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','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','chooseVPC','UdLvF','qaUMH','RnWbV','67593QdrAjJ','value','\x22Web\x20App\x22','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','join','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','split','throw','Setting\x20SG\x20ID\x20to:\x20','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','18LdmBtk','fviXN','\x20AZONE:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','**\x20Available\x20Subnets\x20**','toString','ID:\x20','ec2create','AonaQ','35FEtZhF','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20CIDR:\x20','1:1','t2.nano','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x20SG\x20NAME:\x20','svNQp','**\x20Available\x20Security\x20Groups\x20**','22728827AWkprr','then','fsi','subnetId','GMyZr','Key-Pair:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\x20SGID:\x20','VhmaL','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','sCUNV','\x20AMIID:\x20','lwuJJ','sgId','ZDedI','maka\x20aws:create-instance','date','2863719pqggtL','search','build\x20on\x20','help','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','getProjectConfig','10ONVKkL','ImageID:','No\x20instance\x20has\x20been\x20created.','BGGCU','name','EbhGD','44ecsvHp','exit','\x20SUBNETID:\x20','log','ilXBo','cidr','Security\x20Group\x20Name:\x20[','success','1439430WQDLDc','forEach','env','Desc','create-instance','cHJxN','FuALs','ec2createSG','Open\x20port\x20443\x20for\x20SSL?','LrnrN','fpIZu','5493844zGIkWz','__awaiter','error','CtxKN','push','sort','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','number','ask','vPFkM','confirm','1142390EUznKq','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','bright','parse','(((.+)+)+)+$','desc','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=*','What\x20instance\x20type\x20would\x20you\x20like?\x20[t2.nano]','Setting\x20AMI\x20ID\x20to\x20','Name','AsufX','Instace\x20Type:\x20','ngVar','\x20:\x20','**\x20Available\x20AMIs\x20**','},\x20{Key=Name,Value=','YXoug','notice'];a4c=function(){return aB;};return a4c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a4ai(0xe2),'aliases':['ci'],'usage':a4ai(0x14e),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ai(0xe0)],'validOpts':[a4ai(0x153)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ao=a4d;if(ao(0xe4)!=='FuALs')c[ao(0xeb)](d);else try{const d=this[ao(0x140)][ao(0x155)](),f=new AWS(),{appName:g}=d,h=this[ao(0x140)]['getConfigFromShorthand'](b[ao(0xe0)]);let i=g+'-'+h,j=(yield Actions[ao(0xf1)](ao(0x107)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions[ao(0xf3)](ao(0x144));let s='';r&&(s=yield f[ao(0x10c)]({'env':h}));try{if(ao(0x11a)===ao(0xe7)){c[ao(0xeb)](ao(0x11d)),d['notice'](ao(0x158));return;}else{Log[ao(0x105)](ao(0x112));let x=s?s:j,y=f['ec2describeKeys']({'suggestion':x}),z=(yield Actions[ao(0xf1)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20'))||'-1';if(parseInt(z)<0x0){Log['error'](ao(0x11d)),Log['notice'](ao(0x158));return;}y===null||y===void 0x0?void 0x0:y[ao(0xdf)](function(A){const ap=ao;parseInt(z)===A['id']&&(k=A[ap(0x15a)],Log[ap(0xdd)]('Setting\x20the\x20key-pair\x20to:\x20'+k));});}}catch(A){Log[ao(0xeb)](A);}l=yield f[ao(0x11e)]();let t=yield Actions[ao(0xf3)](ao(0x13a)),u;if(t){if('wxexg'!==ao(0x10f)){let B=l===''?f[ao(0x11e)]():l,C=yield Actions[ao(0xf3)](ao(0xe6));u=(yield Actions[ao(0xf1)](ao(0xdc)+j+']'))||j,f[ao(0xe5)]({'description':ao(0x124),'name':u,'vpcId':B,'ssl':C});}else f=g[ao(0x106)],h['success'](ao(0xfc)+i+'\x20:\x20'+j[ao(0xf9)]);}u=j;try{Log[ao(0x105)](ao(0x13d));let E=execSync(ao(0x127))[ao(0x131)](),F=JSON[ao(0xf7)](E),G=[];F[ao(0xdf)](function(I,J){const aq=ao;G[aq(0xed)]({'id':J,'name':I[aq(0xfd)],'sgId':I['ID']});}),G['forEach'](function(I){const ar=ao;I[ar(0x15a)]===u?ar(0x120)!==ar(0x120)?c[ar(0xeb)](d):Log[ar(0x105)](ar(0x132)+I['id']+ar(0x13b)+I[ar(0x15a)]+ar(0x145)+I['sgId']):console[ar(0xd9)]('ID:\x20'+I['id']+ar(0x13b)+I[ar(0x15a)]+ar(0x145)+I[ar(0x14c)]);});let H=(yield Actions[ao(0xf1)](ao(0xf5)))||'0';G[ao(0xdf)](function(I){const as=ao;I['id']===parseInt(H)&&(m=I[as(0x14c)],Log[as(0xdd)](as(0x12a)+m+'\x0a'));});if(m===''){if(ao(0x10e)!=='EqEkt')throw Log[ao(0xeb)](ao(0x11c));else throw b[ao(0xeb)](ao(0x11c));}}catch(J){ao(0x15b)===ao(0x110)?c[ao(0xeb)](d):Log[ao(0xeb)](J);}try{let L=0x7e6;Log[ao(0x105)](ao(0x102));let M=execSync(ao(0xfa)+L+ao(0x11b))[ao(0x131)](),N=JSON['parse'](M),O=[],P=[];N[ao(0xdf)](function(R,S){const at=ao;if(at(0x121)!==at(0x121)){if(f[at(0x109)]===null){let U=k[at(0xe1)]['split'](at(0x152))[0x1];l[at(0xed)]({'amiId':m['ID'],'desc':n[at(0xe1)],'date':U});}}else{if(R[at(0x109)]===null){if(at(0x100)!==at(0xf2)){let U=R['Desc'][at(0x128)](at(0x152))[0x1];O[at(0xed)]({'amiId':R['ID'],'desc':R[at(0xe1)],'date':U});}else c(d);}}}),O[ao(0xee)](function(R,S){const au=ao;return new Date(S[au(0x14f)])['getTime']()-new Date(R[au(0x14f)])['getTime']();}),O['forEach'](function(R,S){const av=ao;av(0x10d)===av(0x11f)?i['id']===j(k)&&(q=r[av(0x106)],s[av(0xdd)](av(0xfc)+t+av(0x101)+u[av(0xf9)])):P[av(0xed)]({'id':S,'amiId':R['amiId'],'desc':R[av(0xf9)]});}),P[ao(0xdf)](function(R){const aw=ao;console['log'](aw(0x132)+R['id']+aw(0x14a)+R['amiId']+aw(0x118)+R[aw(0xf9)]);});let Q=(yield Actions[ao(0xf1)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';P[ao(0xdf)](function(R){const ax=ao;R['id']===parseInt(Q)&&(ax(0x149)===ax(0x14b)?c[ax(0xeb)](d):(n=R['amiId'],Log[ax(0xdd)](ax(0xfc)+n+ax(0x101)+R['desc'])));});if(n===''){if(ao(0xfe)!==ao(0xfe))e['log'](f),g[ao(0xeb)](h);else throw Log[ao(0xeb)](ao(0x11c));}}catch(S){ao(0x146)==='VhmaL'?Log[ao(0xeb)](S):S[ao(0xed)]({'id':f,'amiId':g[ao(0x106)],'desc':h[ao(0xf9)]});}try{Log[ao(0x105)](ao(0x130));let U=execSync(ao(0x148))[ao(0x131)](),V=JSON[ao(0xf7)](U),W=[];V['forEach'](function(Y,Z){const ay=ao;W[ay(0xed)]({'id':Z,'cidr':Y['cider'],'az':Y['az'],'subnetId':Y[ay(0x141)]});}),W[ao(0xdf)](function(Y){const az=ao;az(0x134)==='crTcj'?c(d):console[az(0xd9)](az(0x132)+Y['id']+az(0x137)+Y[az(0xdb)]+az(0x12e)+Y['az']+az(0xd8)+Y[az(0x141)]);});let X=(yield Actions[ao(0xf1)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';W[ao(0xdf)](function(Y){const aA=ao;Y['id']===parseInt(X)&&(aA(0x142)===aA(0xe8)?e['log']('ID:\x20'+f['id']+aA(0x13b)+g[aA(0x15a)]+aA(0x145)+h[aA(0x14c)]):(p=Y[aA(0x141)],Log[aA(0xdd)](aA(0x113)+p)));});if(p===''){if(ao(0x12d)===ao(0x12d))throw Log[ao(0xeb)](ao(0x11c));else c['error'](d);}}catch(Z){Log['error'](Z);}let v=ao(0x138);try{let a0=(yield Actions[ao(0xf1)](ao(0x154)))||'1:1',a1=a0[ao(0x128)](':')[0x0],a2=a0['split'](':')[0x1];typeof parseInt(a1)===ao(0xf0)&&typeof parseInt(a2)===ao(0xf0)&&(v=[a1,a2][ao(0x126)](':'),Log[ao(0xdd)](ao(0xef)+v));}catch(a3){Log[ao(0xeb)](a3);}try{let a4=(yield Actions['ask'](ao(0xfb)))||ao(0x139);if(typeof a4==='string'){if(ao(0x13c)===ao(0x13c))o=a4;else{if(e){const a6=i[ao(0x117)](j,arguments);return k=null,a6;}}}}catch(a6){Log[ao(0xeb)](a6);}try{if(ao(0x159)===ao(0xda)){const a8=d[ao(0x117)](e,arguments);return f=null,a8;}else{let a8=JSON[ao(0xf7)](execSync(ao(0x12f)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ao(0x131)]())[0x0][ao(0x10b)];Log[ao(0x105)](ao(0x157)+n),Log[ao(0x105)]('Instance\x20Count:\x20'+v),Log[ao(0x105)](ao(0xff)+o),Log[ao(0x105)](ao(0x143)+k),Log['notice'](ao(0x114)+m),Log[ao(0x105)]('Subnet:\x20'+a8);let a9=yield Actions['confirm'](ao(0x147));if(a9){if(ao(0xec)!=='CtxKN')e=f[ao(0x14c)],g[ao(0xdd)](ao(0x12a)+h+'\x0a');else{let ab=f[ao(0x133)]({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':ao(0x12b)+h+ao(0x103)+j+'}]\x22'});ab&&(ao(0x108)!==ao(0x108)?b['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!'):(Log[ao(0xdd)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ao(0xf6)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file')));}}else Log[ao(0x105)](ao(0x125));}}catch(ad){console[ao(0xd9)](ad),Log[ao(0xeb)](ad);}}catch(ae){console[ao(0xeb)](ae),process['exit'](0x0);}});},a4C);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5E=a5d;(function(a,b){const A=a5d,c=a();while(!![]){try{const d=parseInt(A(0x1c4))/0x1+-parseInt(A(0x1bd))/0x2+parseInt(A(0x1c9))/0x3+-parseInt(A(0x1b9))/0x4+parseInt(A(0x1ab))/0x5+parseInt(A(0x1bf))/0x6*(parseInt(A(0x1b7))/0x7)+parseInt(A(0x1b0))/0x8*(-parseInt(A(0x1b6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x3acbd));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a5d;if(B(0x1c1)!==B(0x1c1))return f(this,void 0x0,void 0x0,function*(){const C=B;try{const x=new o(),y=this[C(0x1cb)][C(0x1b8)](p[C(0x1b3)]);x[C(0x1bc)]({'env':y});}catch(z){s['error'](z),t[C(0x1b1)](0x0);}});else{if(c){if('rSxEv'!=='nhjCF'){const f=c[B(0x1b5)](b,arguments);return c=null,f;}else try{i(j[B(0x1ba)](k));}catch(h){m(h);}}}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const D=a5d;return a5a[D(0x1c3)]()[D(0x1bb)](D(0x1aa))[D(0x1c3)]()[D(0x1af)](a5a)[D(0x1bb)]('(((.+)+)+)+$');});function a5c(){const L=['exit','vWZss','env','WxzEt','apply','221805JgeDFp','3173002ZHIeTF','getConfigFromShorthand','48008rPLDyZ','next','search','createKeyPair','607442NmWaOl','value','6qnHjhl','yLqya','PrNbK','SIaYL','toString','442014zkdpgl','throw','phCBv','ckp','then','392883GWsSUe','mJDpg','fsi','NyDdj','create-key-pair','error','(((.+)+)+)+$','732080alfpuy','Ijfuz','__awaiter','help','constructor','200aBPNwo'];a5c=function(){return L;};return a5c();}a5a();var __awaiter=this&&this[a5E(0x1ad)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const F=a5d;'OZUyr'===F(0x1c2)?(d[F(0x1a9)](e),f[F(0x1b1)](0x0)):g(f);});}return new(c||(c=Promise))(function(f,g){const J=a5d;function h(k){const G=a5d;if(G(0x1b2)===G(0x1b2))try{if(G(0x1c0)!=='yLqya'){if(e){const m=i[G(0x1b5)](j,arguments);return k=null,m;}}else j(d[G(0x1ba)](k));}catch(m){g(m);}else h['done']?i(j[G(0x1be)]):k(l['value'])['then'](m,n);}function i(k){const H=a5d;try{j(d['throw'](k));}catch(l){H(0x1ca)!==H(0x1ac)?g(l):d(l[H(0x1c5)](f));}}function j(k){const I=a5d;if(I(0x1cc)!==I(0x1cc))return f instanceof g?h:new i(function(m){m(k);});else k['done']?f(k[I(0x1be)]):e(k[I(0x1be)])[I(0x1c8)](h,i);}j((d=d[J(0x1b5)](a,b||[]))[J(0x1ba)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5E(0x1cd),'aliases':[a5E(0x1c7)],'usage':'maka\x20aws\x20create-key-pair','mustBeInMakaProject':!![],'requiredOpts':[a5E(0x1b3)],'validOpts':[a5E(0x1ae)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const K=a5d;try{if(K(0x1b4)!==K(0x1c6)){const c=new AWS(),d=this[K(0x1cb)][K(0x1b8)](b[K(0x1b3)]);c[K(0x1bc)]({'env':d});}else c(d);}catch(g){console[K(0x1a9)](g),process[K(0x1b1)](0x0);}});},a5x);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6y=a6d;
|
|
1
|
+
const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xec))/0x1+-parseInt(v(0x101))/0x2*(-parseInt(v(0x100))/0x3)+parseInt(v(0x105))/0x4+-parseInt(v(0x107))/0x5+parseInt(v(0xe9))/0x6+parseInt(v(0xe1))/0x7*(parseInt(v(0xf9))/0x8)+-parseInt(v(0xff))/0x9*(parseInt(v(0xed))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xc3b81));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(w(0xf5)!==w(0xe3)){if(c){if('hzKAD'!==w(0xfb)){const e=c[w(0xf0)](b,arguments);return c=null,e;}else d(e['next'](f));}}else c(d);}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0xe0)]()[x(0xe8)]('(((.+)+)+)+$')[x(0xe0)]()[x(0xfa)](a6a)['search'](x(0xdf));});a6a();var __awaiter=this&&this[a6y(0x109)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a6d;function h(k){const z=a6d;if(z(0xee)!=='nmqZo')try{j(d[z(0xfd)](k));}catch(l){g(l);}else return f instanceof g?h:new i(function(n){n(k);});}function i(k){const A=a6d;try{if(A(0xe4)!=='Uzmxp')j(d[A(0x103)](k));else{if(e){const m=i[A(0xf0)](j,arguments);return k=null,m;}}}catch(m){A(0xe7)===A(0xe7)?g(m):c(d);}}function j(k){const B=a6d;k['done']?f(k[B(0xe5)]):e(k[B(0xe5)])[B(0x108)](h,i);}j((d=d[C(0xf0)](a,b||[]))[C(0xfd)]());});};import a6u from'./aws.command.js';function a6c(){const F=['__awaiter','(((.+)+)+)+$','toString','7OmgOro','create','PtJlW','UqZxb','value','Open\x20port\x20443\x20for\x20SSL?','tPXAM','search','2505348tteWtU','name','getProjectConfig','895975fVlFEa','11767370WqmAzp','pmdCw','ec2createSG','apply','csg','fsi','-ssl','confirm','IWMsk','mcLRH','gJvYJ','ask','961768tKxkNl','constructor','CsUnW','Security\x20Group\x20Name:\x20[','next','help','9uJqbEO','9XRJyln','855716EeFEvW','exit','throw','chooseVPC','4246796wXFYOq','ssl','43375SWLUNH','then'];a6c=function(){return F;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xdf;let f=c[d];return f;},a6d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a6y(0xe2)]({'name':'create-security-group','aliases':[a6y(0xf1)],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a6y(0xfe)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a6d;try{if('mcLRH'===D(0xf6)){const c=new AWS(),d=this[D(0xf2)][D(0xeb)](),{appName:f}=d;let g=yield c[D(0x104)](),h=![];!b[D(0x106)]&&(D(0xf7)!=='EtDVw'?h=yield Actions[D(0xf4)](D(0xe6)):c(d));let i=h?D(0xf3):'',j=b['name']?b[D(0xea)]:''+f+i,k=(yield Actions[D(0xf8)](D(0xfc)+j+']'))||j;c[D(0xef)]({'description':'\x22Web\x20App\x22','name':k,'vpcId':g,'ssl':h});}else{const n=g?function(){const E=D;if(n){const u=q[E(0xf0)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(n){console['error'](n),process[D(0x102)](0x0);}});},a6u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x8a))/0x1+-parseInt(v(0x8d))/0x2*(-parseInt(v(0x83))/0x3)+-parseInt(v(0x7c))/0x4*(-parseInt(v(0x7d))/0x5)+parseInt(v(0x82))/0x6+parseInt(v(0x89))/0x7+parseInt(v(0x77))/0x8*(parseInt(v(0x7f))/0x9)+-parseInt(v(0x7e))/0xa*(parseInt(v(0x93))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x28e42));function a7c(){var F=['kROrV','create','search','maka\x20aws\x20describe-instances','next','2010750KLDrjG','178793oQJtNX','(((.+)+)+)+$','ec2describeInstances','2cxyntz','constructor','uEYvx','apply','ivRgq','done','1265cBeEPy','value','dUbhh','SUjpP','342344TvAjSX','__awaiter','describe-instances','help','then','20CMEUwM','293725mTRikq','113060lpHNcJ','63lmDUAz','rgrjb','toString','1871370VQEPDf','289398ERjMuI'];a7c=function(){return F;};return a7c();}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(c){var e=c[w(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x81)]()[x(0x86)](x(0x8b))[x(0x81)]()[x(0x8e)](a7a)[x(0x86)](x(0x8b));});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x74;var f=c[d];return f;},a7d(a,b);}a7a();var __awaiter=this&&this[a7y(0x78)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var z=a7d;'kROrV'!==z(0x84)?h[z(0x92)]?i(j['value']):k(l[z(0x74)])['then'](m,n):g(f);});}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){var A=a7d;if(A(0x80)!=='rgrjb'){const m=new b();m['ec2describeInstances']();}else try{j(d[A(0x88)](k));}catch(m){g(m);}}function i(k){var B=a7d;if('ivRgq'===B(0x91))try{j(d['throw'](k));}catch(l){g(l);}else c(d);}function j(k){var C=a7d;C(0x8f)!==C(0x76)?k[C(0x92)]?f(k['value']):e(k['value'])[C(0x7b)](h,i):d(e[C(0x88)](f));}j((d=d[D(0x90)](a,b||[]))['next']());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7y(0x85)]({'name':a7y(0x79),'aliases':['di'],'usage':a7y(0x87),'validOpts':[a7y(0x7a)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;if('HGJoD'===E(0x75))try{i(j[E(0x88)](k));}catch(b){m(b);}else try{const b=new AWS();b[E(0x8c)]();}catch(c){console['error'](c),process['exit'](0x0);}});},a7u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a8D=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x173))/0x1+parseInt(v(0x177))/0x2*(-parseInt(v(0x181))/0x3)+parseInt(v(0x187))/0x4+parseInt(v(0x18d))/0x5+-parseInt(v(0x184))/0x6*(parseInt(v(0x185))/0x7)+-parseInt(v(0x178))/0x8+parseInt(v(0x180))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x21c1d));var a8b=(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;};}()),a8a=a8b(this,function(){var w=a8d;return a8a[w(0x18b)]()[w(0x17c)](w(0x18c))[w(0x18b)]()['constructor'](a8a)[w(0x17c)](w(0x18c));});a8a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){var x=a8d;return x(0x188)!==x(0x188)?c['toString']()['search'](x(0x18c))[x(0x18b)]()[x(0x175)](d)['search'](x(0x18c)):f instanceof c?f:new c(function(h){var y=x;if('OXCGD'===y(0x189))h(f);else try{i(j['throw'](k));}catch(j){m(j);}});}return new(c||(c=Promise))(function(f,g){var C=a8d;function h(k){var z=a8d;try{j(d[z(0x18e)](k));}catch(l){if(z(0x17b)!==z(0x17b))return l(this,void 0x0,void 0x0,function*(){var A=z;try{const s=new l();s[A(0x174)]();}catch(t){o[A(0x182)](t),p[A(0x17a)](0x0);}});else g(l);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){var B=a8d;'BQkLa'==='BQkLa'?k[B(0x17d)]?f(k[B(0x17f)]):e(k[B(0x17f)])['then'](h,i):h[B(0x17d)]?i(j[B(0x17f)]):k(l[B(0x17f)])[B(0x17e)](m,n);}j((d=d['apply'](a,b||[]))[C(0x18e)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x173;var f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a8c(){var F=['1851fEAsfe','error','maka\x20aws\x20describe-key-pairs','455496VrPsRw','7sIebwI','yCDnU','758824kEHxdU','QCTPL','OXCGD','describe-key-pairs','toString','(((.+)+)+)+$','184425nURwZO','next','87829gGixDz','ec2describeKeys','constructor','help','622IhbBkk','1449392mLgkLU','create','exit','pCnYz','search','done','then','value','2455434skvuDA'];a8c=function(){return F;};return a8c();}Command[a8D(0x179)]({'name':a8D(0x18a),'aliases':['dkp'],'usage':a8D(0x183),'validOpts':[a8D(0x176)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;try{const a=new AWS();a[E(0x174)]();}catch(b){E(0x186)!=='tZNgn'?(console[E(0x182)](b),process[E(0x17a)](0x0)):(d[E(0x182)](b),f[E(0x17a)](0x0));}});},a8u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9z=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x157))/0x1+parseInt(v(0x16a))/0x2+-parseInt(v(0x14d))/0x3*(parseInt(v(0x173))/0x4)+-parseInt(v(0x163))/0x5*(-parseInt(v(0x14e))/0x6)+-parseInt(v(0x166))/0x7*(parseInt(v(0x15e))/0x8)+-parseInt(v(0x156))/0x9+-parseInt(v(0x16b))/0xa*(-parseInt(v(0x155))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe4b38));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if(w(0x158)!==w(0x158))d[w(0x14f)](e),f['exit'](0x0);else{const e=a?function(){const x=w;if(c){const f=c[x(0x164)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a9a=a9b(this,function(){const y=a9d;return a9a[y(0x175)]()['search'](y(0x161))[y(0x175)]()[y(0x159)](a9a)[y(0x15f)]('(((.+)+)+)+$');});a9a();var __awaiter=this&&this[a9z(0x167)]||function(a,b,c,d){function e(f){const A=a9d;if(A(0x151)===A(0x15d))h[A(0x15b)]?i(j[A(0x171)]):k(l[A(0x171)])[A(0x178)](m,n);else return f instanceof c?f:new c(function(h){const B=A;B(0x168)!==B(0x150)?h(f):c(d);});}return new(c||(c=Promise))(function(f,g){function h(k){const C=a9d;if(C(0x169)!==C(0x169))c[C(0x177)]({'instanceId':d['instanceId']});else try{if(C(0x15c)===C(0x152))return c['toString']()[C(0x15f)](C(0x161))['toString']()['constructor'](d)[C(0x15f)](C(0x161));else j(d['next'](k));}catch(n){g(n);}}function i(k){const D=a9d;if('ofYJN'!=='uJVZO')try{j(d[D(0x149)](k));}catch(l){g(l);}else try{i(j[D(0x16e)](k));}catch(o){m(o);}}function j(k){const E=a9d;'wKSHk'!=='wKSHk'?d(e[E(0x16e)](f)):k[E(0x15b)]?f(k['value']):e(k[E(0x171)])[E(0x178)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9c(){const G=['594832CfuSFu','__awaiter','EObaJ','iUIif','1245062wufMUd','280YVGZOP','instanceId','JJZZm','next','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','rbi','value','\x20Ready?','4aVQjIC','status','toString','AsoRq','ec2rebootInstance','then','chooseInstance','throw','create','reboot-instance','exit','132537tOVDNM','2963658WGMmeG','error','uNxtv','nLyXh','ljEps','confirm','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','994807dCbNNM','7304382QCbBHJ','1346317tiMqAO','oTohw','constructor','name','done','hLhRv','Wjpjb','48YMnTEq','search','\x20is\x20still\x20running.','(((.+)+)+)+$','RoJLl','5HrvqwB','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'];a9c=function(){return G;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x148;let f=c[d];return f;},a9d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9z(0x14a)]({'name':a9z(0x14b),'aliases':[a9z(0x170)],'usage':'maka\x20aws\x20reboot-instance','validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a9d;try{const a=new AWS();let b=yield a[F(0x148)]();if((b===null||b===void 0x0?void 0x0:b[F(0x174)])==='running'){if(F(0x16d)===F(0x16d)){let c=yield Actions[F(0x153)](F(0x165)+b['name']+F(0x172));c?F(0x176)==='AsoRq'?a[F(0x177)]({'instanceId':b[F(0x16c)]}):c['error'](F(0x154)+d[F(0x15a)]+F(0x160)):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b['name']+F(0x160));}else c(d);}else{if('ZHYZx'===F(0x162))try{i(j['throw'](k));}catch(h){m(h);}else Log[F(0x14f)](F(0x16f));}}catch(h){console[F(0x14f)](h),process[F(0x14c)](0x0);}});},a9u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10J=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x11a))/0x1+parseInt(F(0x128))/0x2+parseInt(F(0x118))/0x3*(-parseInt(F(0x11f))/0x4)+parseInt(F(0x13c))/0x5+-parseInt(F(0x145))/0x6*(-parseInt(F(0x122))/0x7)+parseInt(F(0x115))/0x8*(-parseInt(F(0x14f))/0x9)+parseInt(F(0x119))/0xa*(-parseInt(F(0x12c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xaf7f7));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if('SQmKX'===G(0x142)){if(c){if('GCFjF'!==G(0x132)){const f=g?function(){const H=G;if(f){const u=q[H(0x12f)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{const f=c[G(0x12f)](b,arguments);return c=null,f;}}}else try{i(j[G(0x13f)](k));}catch(h){m(h);}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const I=a10d;return a10a[I(0x139)]()[I(0x141)](I(0x14d))['toString']()['constructor'](a10a)[I(0x141)]('(((.+)+)+)+$');});a10a();var __awaiter=this&&this[a10J(0x143)]||function(a,b,c,d){function e(f){const K=a10d;if(K(0x13a)==='sDviR')h[K(0x138)]?i(j['value']):k(l[K(0x121)])[K(0x146)](m,n);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const O=a10d;function h(k){const L=a10d;if('HjEcb'!==L(0x11d))try{j(d['next'](k));}catch(l){L(0x14b)==='CVHiN'?g(l):d(l[L(0x13f)](f));}else return c['toString']()['search'](L(0x14d))[L(0x139)]()['constructor'](d)[L(0x141)]('(((.+)+)+)+$');}function i(k){const M=a10d;try{j(d[M(0x11b)](k));}catch(l){g(l);}}function j(k){const N=a10d;k[N(0x138)]?f(k[N(0x121)]):e(k[N(0x121)])['then'](h,i);}j((d=d[O(0x12f)](a,b||[]))[O(0x13f)]());});};import a10C from'path';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x114;let f=c[d];return f;},a10d(a,b);}import a10D from'fs';import{execSync}from'child_process';function a10c(){const Q=['ssh.json','GCFjF','host','KltcX','LsmGd','DUWsj','fsi','done','toString','SluVy','rbAsC','6917625TNfzNx','privateIp','\x0aSaved\x20host\x20','next','exit','search','SQmKX','__awaiter','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','5912538JPzTVo','then','key-name','public','HynVH','error','CVHiN','set-host','(((.+)+)+)+$','stringify','9189QHMmNL','sep','4984YqdGpi','readFileSync','utf8','2431590hNVFtz','59790JVHjLw','1326295CdTLhL','throw','\x20IP\x20to\x20','tIVjo','private','4fkOGDo','help','value','7ZvIuOO','publicIp','XzOJt','QXeLP','join','success','2520632uTGQDw','maka\x20aws\x20set-host','inherit','chooseInstance','253SylTjr','parse','create','apply','getConfigPath'];a10c=function(){return Q;};return a10c();}import a10E 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[a10J(0x12e)]({'name':a10J(0x14c),'aliases':['sth'],'usage':a10J(0x129),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a10J(0x120),a10J(0x147)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a10d;if(P(0x125)===P(0x125))try{const c=new AWS(),d=this[P(0x137)][P(0x130)](b['env']);let f=yield c[P(0x12b)](),g=JSON[P(0x12d)](a10D[P(0x116)](a10C[P(0x126)](d,P(0x131)),P(0x117))),h=(yield Actions['ask'](P(0x144)))||P(0x148);if(h){if(h===P(0x148)||h===P(0x11e)){if(h==='public')P(0x124)!=='XzOJt'?c(d):g[P(0x133)]=f===null||f===void 0x0?void 0x0:f[P(0x123)];else h===P(0x11e)&&(P(0x136)===P(0x136)?g['host']=f===null||f===void 0x0?void 0x0:f['privateIp']:d(e[P(0x11b)](f)));}else{if(P(0x135)!==P(0x13b))throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';else{if(e){const m=i[P(0x12f)](j,arguments);return k=null,m;}}}}else{if(P(0x149)!==P(0x134))g[P(0x133)]=f===null||f===void 0x0?void 0x0:f[P(0x13d)];else return f instanceof g?h:new i(function(m){m(k);});}a10D['writeFileSync'](a10C[P(0x126)](d,'ssh.json'),JSON[P(0x14e)](g,null,0x2)),execSync('cat\x20'+a10C[P(0x126)](d,'ssh.json'),{'stdio':P(0x12a)}),Log[P(0x127)](P(0x13e)+h+P(0x11c)+d+a10C[P(0x114)]+P(0x131));}catch(m){console[P(0x14a)](m),process[P(0x140)](0x0);}else c(d);});},a10E);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x124;let f=c[d];return f;},a11d(a,b);}const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x13c))/0x1*(-parseInt(v(0x13a))/0x2)+parseInt(v(0x151))/0x3*(-parseInt(v(0x126))/0x4)+-parseInt(v(0x127))/0x5+parseInt(v(0x14f))/0x6+parseInt(v(0x124))/0x7+parseInt(v(0x149))/0x8*(-parseInt(v(0x144))/0x9)+parseInt(v(0x146))/0xa*(parseInt(v(0x14c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xbffdf));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(w(0x147)===w(0x147)){if(c){if(w(0x13e)===w(0x13e)){const e=c[w(0x12d)](b,arguments);return c=null,e;}else d['error'](e),f[w(0x135)](0x0);}}else d(e[w(0x13b)](f));}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x148)]()[x(0x145)]('(((.+)+)+)+$')[x(0x148)]()[x(0x142)](a11a)[x(0x145)](x(0x12a));});a11a();var __awaiter=this&&this[a11y(0x131)]||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;if(z(0x140)!==z(0x140))c(d);else try{'DkkMg'===z(0x128)?c(d):j(d['next'](k));}catch(n){g(n);}}function i(k){const A=a11d;try{A(0x138)==='whTNw'?c[A(0x134)]({'instanceId':d[A(0x14e)]}):j(d[A(0x13b)](k));}catch(m){g(m);}}function j(k){const B=a11d;k['done']?f(k[B(0x141)]):e(k['value'])[B(0x14b)](h,i);}j((d=d[C(0x12d)](a,b||[]))[C(0x137)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const E=['exit','name','next','oMAfA','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','38Ebguhg','throw','59095VzKrxT','xAbHb','syamI','OwCuk','uoZtT','value','constructor','running','9CBPPZv','search','819170vaoxHk','sksXc','toString','1115728HiCmES','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','then','187GGrQdL','chooseInstance','instanceId','8800278uyeiQT','error','8781PReshY','2911608HFHAlL','maka\x20aws\x20terminate-instance','28kiCxqM','6030435uawGhG','fOGfM','terminate-instance','(((.+)+)+)+$','create','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','apply','\x20Ready?','confirm','LGLvP','__awaiter','JCvIS','sTZiv','ec2terminateInstance'];a11c=function(){return E;};return a11c();}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11y(0x12b)]({'name':a11y(0x129),'aliases':['ti'],'usage':a11y(0x125),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a11d;if(D(0x13d)!=='uyBHP')try{const a=new AWS();let b=yield a[D(0x14d)]();if((b===null||b===void 0x0?void 0x0:b['status'])===D(0x143)){if(D(0x13f)===D(0x133))d(e[D(0x137)](f));else{let d=yield Actions[D(0x12f)](D(0x139)+b[D(0x136)]+D(0x12e));d?a['ec2terminateInstance']({'instanceId':b[D(0x14e)]}):Log[D(0x150)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b['name']+D(0x12c));}}else D(0x130)===D(0x132)?b['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'):Log['error'](D(0x14a));}catch(g){console[D(0x150)](g),process[D(0x135)](0x0);}else c[D(0x150)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+d['name']+D(0x12c));});},a11u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a12d,c=a();while(!![]){try{var d
|
|
1
|
+
function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x132;var f=c[d];return f;},a12d(a,b);}function a12c(){var x=['7868BYnwHd','5264805ZMwgpJ','10913118GyQiEY','7062zzJtiV','apply','10843893LUbxeu','4303250nIFjaM','4790ubojQN','2ZdQSQF','toString','(((.+)+)+)+$','1767zFaaoT','929063BdPPTz','search','8HxMdSc'];a12c=function(){return x;};return a12c();}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0x13e))/0x1*(parseInt(u(0x13a))/0x2)+parseInt(u(0x13d))/0x3*(parseInt(u(0x132))/0x4)+parseInt(u(0x138))/0x5+-parseInt(u(0x134))/0x6+parseInt(u(0x133))/0x7+-parseInt(u(0x140))/0x8*(-parseInt(u(0x137))/0x9)+-parseInt(u(0x139))/0xa*(parseInt(u(0x135))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xe0cc3));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x13b)]()[w(0x13f)](w(0x13c))['toString']()['constructor'](a12a)[w(0x13f)](w(0x13c));});a12a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13z=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=-parseInt(w(0x8c))/0x1+-parseInt(w(0x9c))/0x2+parseInt(w(0x74))/0x3*(-parseInt(w(0x72))/0x4)+-parseInt(w(0x6c))/0x5+parseInt(w(0x83))/0x6*(parseInt(w(0x6f))/0x7)+-parseInt(w(0x89))/0x8+parseInt(w(0x73))/0x9*(parseInt(w(0x86))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xe9ea5));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a13d;if(x(0x8b)===x(0x6d))this[x(0x94)](d,e,f);else{if(c){const f=c[x(0x7c)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a['toString']()['search'](y(0x7e))[y(0x91)]()[y(0x7b)](a13a)[y(0x93)](y(0x7e));});a13a();var __awaiter=this&&this[a13z(0x7a)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const A=a13d;try{j(d[A(0x90)](k));}catch(l){if(A(0x97)!==A(0x97)){const n=d[A(0x7c)](l,arguments);return f=null,n;}else g(l);}}function i(k){const B=a13d;if(B(0x78)!==B(0x87))try{j(d[B(0x9b)](k));}catch(l){B(0x82)===B(0x6e)?(d[B(0x9d)](l),f['exit'](0x0)):g(l);}else throw b[B(0x9d)](B(0x8a));}function j(k){const C=a13d;k[C(0x99)]?f(k['value']):e(k[C(0x7f)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a13u from'path';import a13v from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const F=['6657740ANQXmV','WIdWw','kEjde','7Silecn','forEach','force','132WFhYiK','9swikdq','71976PGWPYc','exit','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','--force','PQqBt','WsHuV','__awaiter','constructor','apply','app.tar.gz','(((.+)+)+)+$','value','pathFromProject','fsi','Gcjba','7501566xztmqQ','maka\x20build\x20[--force]','build','53211570JyHicx','EBbLb','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','957696aXETOW','Aborted.','aqYjC','1593706eSWrkN','argv','join','daELh','next','toString','create','search','runSubCommand','maka\x20build:docker','concat','UjGTm','splice','done','invokeMeteorCommand','throw','3553198xOAXOF','error','maka\x20build','confirm','rPAqN'];a13c=function(){return F;};return a13c();}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x69;let f=c[d];return f;},a13d(a,b);}const BuildCommand=Command[a13z(0x92)]({'name':a13z(0x85),'usage':a13z(0x84),'validOpts':[a13z(0x71)],'description':a13z(0x76),'mustBeInMakaProject':!![],'examples':[a13z(0x69),a13z(0x95)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a13d;if(D(0x6b)!==D(0x6b))d(e[D(0x9b)](f));else try{let d=a[0x0],f=this['findSubCommand'](d);if(f)this['runSubCommand'](d,a,b);else{let g=b[D(0x71)],h=[this[D(0x81)][D(0x80)]({'pathParts':[D(0x85)]})][D(0x96)](process[D(0x8d)]['slice'](0x3)),i=a13u[D(0x8e)](this[D(0x81)][D(0x80)]({}),D(0x85),D(0x7d));if(a13v['existsSync'](i)){let j=g!==null&&g!==void 0x0?g:yield Actions[D(0x6a)](D(0x88));if(!j)throw Log[D(0x9d)](D(0x8a));}h[D(0x70)]((k,l)=>{const E=D;k===E(0x77)&&h[E(0x98)](l,0x2);}),this[D(0x81)][D(0x9a)](D(0x85),h);}}catch(k){D(0x79)!==D(0x8f)?(console['error'](k),process[D(0x75)](0x0)):c(d);}});});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x170;let f=c[d];return f;},a14d(a,b);}const a14Q=a14d;(function(a,b){const K=a14d,c=a();while(!![]){try{const d=parseInt(K(0x1bb))/0x1+-parseInt(K(0x174))/0x2*(parseInt(K(0x17a))/0x3)+parseInt(K(0x183))/0x4+-parseInt(K(0x1c3))/0x5*(-parseInt(K(0x195))/0x6)+parseInt(K(0x1cf))/0x7*(-parseInt(K(0x19a))/0x8)+-parseInt(K(0x1d6))/0x9+-parseInt(K(0x1b6))/0xa*(-parseInt(K(0x1ab))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x37946));const a14b=(function(){let a=!![];return function(b,c){const L=a14d;if(L(0x1af)===L(0x1ae))this['fsi']['setProjectConfig'](L(0x171),e),this[L(0x1d4)][L(0x1b3)](L(0x185),f),g[L(0x19c)](L(0x1ba)+h['join']('.maka',L(0x175)));else{const e=a?function(){if(c){const f=c['apply'](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const M=a14d;return a14a[M(0x187)]()[M(0x1aa)](M(0x181))[M(0x187)]()[M(0x1a5)](a14a)['search'](M(0x181));});a14a();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){function h(k){const N=a14d;try{j(d[N(0x1c1)](k));}catch(l){g(l);}}function i(k){const O=a14d;try{if(O(0x182)===O(0x182))j(d[O(0x1b7)](k));else try{i(j[O(0x1c1)](k));}catch(m){m(m);}}catch(m){g(m);}}function j(k){const P=a14d;k[P(0x18f)]?f(k['value']):e(k[P(0x1a4)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';function a14c(){const T=['getProjectConfig','join','push','maka\x20build:docker','getGlobalConfig','7PajSCB','SgGgv','cert.pem','BePRO','meteor.bat','fsi','app.tar.gz','1387674FYGkZm','xQMRc','confirm','serverName','os.linux.x86_64','apply','12106owTTYP','config.json','RpGxf','HZyGI','invoke','Build\x20Path:\x20','66vVHmzm','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','\x20npm\x20install\x20--save','copyFileSync','--architecture','docker','--server=','(((.+)+)+)+$','TKxaD','172952WvmyNA','dockerfile','serverPort','build','toString','Try\x20\x27maka\x20run\x20--docker\x27','findGenerator','UMBtW','findAppDirectory','error','kkfbW',':latest','done','.meteor','avULk','platforms','isFile','KPSKV','78apCPzk','tag','replace','inherit','mkdirSync','264248UFBnMO','Mobile\x20server\x20port:\x20','notice','_keys','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','LVQwj','findProjectDirectory','GJrOH','exit','.maka','value','constructor','cert','docker\x20build\x20--build-arg\x20NODE_VERSION=','win32','create','search','33osjeFG','config','checkConfigExists','XTedP','zpmeJ','pathFromProject','443','ignore','setProjectConfig','length','app','881990OpNYoB','throw','\x20node\x20--version','force','Stored\x20server\x20config\x20to\x20','13846dPnKfl','isDirectory','://','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','aGFqC','-t\x20','next','existsSync','87060IZeGbv','http','Tagging\x20Docker\x20Image:\x20','Dockerfile','Using\x20Node\x20Version:\x20','readFileLines','ask'];a14c=function(){return T;};return a14c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a14Q(0x1a9)]({'name':'docker','usage':a14Q(0x1cd),'validOpts':[a14Q(0x1b9),a14Q(0x196)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14Q(0x1cd)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const R=a14d;try{if(R(0x18d)==='kkfbW'){const c=yield this[R(0x1d4)][R(0x1ce)](),d=yield this[R(0x1d4)][R(0x1ca)]();let f=process['platform']===R(0x1a8)?R(0x1d3):'meteor',g=this['fsi'][R(0x1b0)]({}),h=a14v[R(0x1cb)](g,R(0x1c6));if(!this['fsi'][R(0x193)](h)){if(R(0x1d2)!==R(0x1d2))c(d);else{const s=a14x[R(0x189)](R(0x184));s&&('avULk'===R(0x191)?yield s['invoke']([R(0x184)],{'cwd':g,'config':d}):(d[R(0x18c)](e),f[R(0x1a2)](0x0)));}}const i=this['fsi'][R(0x1ad)](R(0x17f));if(!i){if(R(0x176)===R(0x177))return f instanceof g?h:new i(function(v){v(k);});else{const v=a14x[R(0x189)](R(0x1ac));v&&(yield v[R(0x178)]([R(0x17f)],{'cwd':g,'config':d,'isDocker':!![]}));}}if(this[R(0x1d4)][R(0x193)](c['cert'])){if(R(0x18a)!==R(0x18a))c(d);else{const x=this[R(0x1d4)][R(0x1bc)](a14v['join']('config',R(0x17f),'_keys'));if(!x){if(R(0x194)!==R(0x1d7))a14w['mkdirSync'](a14v[R(0x1cb)]('config','docker',R(0x19d)));else{const z=this[R(0x1d4)][R(0x1bc)](h['join'](R(0x1ac),R(0x17f),R(0x19d)));!z&&o[R(0x199)](p[R(0x1cb)]('config',R(0x17f),R(0x19d))),k[R(0x17d)](l['cert'],m[R(0x1cb)](n,'config','docker',R(0x19d),R(0x1d1)));}}a14w[R(0x17d)](c[R(0x1a6)],a14v[R(0x1cb)](g,R(0x1ac),'docker',R(0x19d),R(0x1d1)));}}let j=this[R(0x1d4)][R(0x1b0)]({}),k=execSync(f+R(0x1b8))[R(0x187)]()[R(0x197)](/\r?\n|\r/g,''),l=R(0x1c0)+paramCase(d['appName'])+R(0x18e);b['tag']&&(l=R(0x1c0)+b['tag']);let m=['build',a14v[R(0x1cb)](this[R(0x1d4)][R(0x1a0)](),R(0x186)),R(0x17e),R(0x172)],n=this['fsi'][R(0x1c8)](a14v[R(0x1cb)](this[R(0x1d4)][R(0x1b0)]({}),R(0x1b5),R(0x190),R(0x192))),o=n['length']>0x2?!![]:![];if(o){if('VLKYR'===R(0x1a1))f(g+R(0x17c),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x1b2)}),h(i+'\x20'+j[R(0x1cb)]('\x20'),{'cwd':this['fsi'][R(0x18b)](),'stdio':R(0x198)});else{let A=d['serverName']?d[R(0x171)]:yield Actions['ask'](R(0x1be)),B=d['serverPort']?d[R(0x185)]:yield Actions[R(0x1c9)](R(0x19b));if(A[R(0x1b4)]==0x0||B[R(0x1b4)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let C=B==R(0x1b1)?'https':R(0x1c4);m[R(0x1cc)](R(0x180)+C+R(0x1bd)+A+':'+B);if(!d['serverName']&&!d[R(0x185)]){if(R(0x19f)===R(0x1d0)){const E=d[R(0x173)](e,arguments);return f=null,E;}else{let E=yield Actions[R(0x170)](R(0x19e));if(E){if('CstvO'!==R(0x1bf))this[R(0x1d4)][R(0x1b3)](R(0x171),A),this['fsi'][R(0x1b3)](R(0x185),B),Log[R(0x19c)](R(0x1ba)+a14v[R(0x1cb)](R(0x1a3),'config.json'));else{const G=g?function(){const S=R;if(G){const H=q[S(0x173)](r,arguments);return s=null,H;}}:function(){};return l=![],G;}}}}}}let p=a14v[R(0x1cb)](this[R(0x1d4)][R(0x1b0)]({}),R(0x186),R(0x1d5));if(a14w[R(0x1c2)](p)){const G=yield Actions[R(0x170)](R(0x17b));let H=G;H&&(execSync(f+R(0x17c),{'cwd':this[R(0x1d4)]['findAppDirectory'](),'stdio':R(0x1b2)}),execSync(f+'\x20\x20'+m[R(0x1cb)]('\x20'),{'cwd':this['fsi'][R(0x18b)](),'stdio':R(0x198)}));}else execSync(f+R(0x17c),{'cwd':this[R(0x1d4)]['findAppDirectory'](),'stdio':'ignore'}),execSync(f+'\x20'+m[R(0x1cb)]('\x20'),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x198)});Log[R(0x19c)](R(0x1c7)+k),Log['notice'](R(0x1c5)+l),Log[R(0x19c)](R(0x179)+j);const q=R(0x1a7)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':R(0x198)}),Log[R(0x19c)](R(0x188));}else f(g+R(0x17c),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x1b2)}),h(i+'\x20\x20'+j[R(0x1cb)]('\x20'),{'cwd':this[R(0x1d4)][R(0x18b)](),'stdio':R(0x198)});}catch(J){console[R(0x18c)](J),process['exit'](0x0);}});},a14u);
|