@maka/maka-cli 4.12.27 → 4.13.0

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.
Files changed (158) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/tool.js +1 -1
  140. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  141. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/https/https.class.js +1 -1
  148. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  149. package/bundle/obf/src/tools/log/log.class.js +1 -1
  150. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/options/options.class.js +1 -1
  152. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  153. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  158. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "4.12.27",
3
+ "version": "4.13.0",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0xd2))/0x1+parseInt(n(0x101))/0x2+-parseInt(n(0xff))/0x3+-parseInt(n(0xf7))/0x4*(parseInt(n(0xed))/0x5)+-parseInt(n(0xfd))/0x6+-parseInt(n(0x11c))/0x7*(parseInt(n(0x111))/0x8)+parseInt(n(0xd9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x5a0a7));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0xfc)]()[o(0xe5)]('(((.+)+)+)+$')[o(0xfc)]()[o(0xf6)](a0a)[o(0xe5)](o(0x118));});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd0;let f=c[d];return f;},a0d(a,b);}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0c(){const z=['create','1632933OzaKkV','name','694986kGVfyR','unshift','function','forEach','Please\x20run\x20\x22maka\x20install\x20meteor\x22','bright','validateMakaSubscription','aliases','fsi','Too\x20many\x20arguments','generate','header','validateMeteorInstall','find','error','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','42424aCrxcx','pallet','keys','slice','_handler','setColorMode','_commands','(((.+)+)+)+$','addCommand','tableList','split','504iTJVTr','LIGHT','minArgLength','Too\x20few\x20options','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','run','murder','341197ZrUezF','localeCompare','Command\x20requires\x20a\x20name','DARK','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','play','minOptsLength','10085769gzuueD','Too\x20few\x20arguments','Command\x20format\x20is\x20incorrect','length','maxOptsLength','Command\x20not\x20found','invoke','getGlobalConfig','match','addCommand\x20requires\x20a\x20Command\x20instance','number','Too\x20many\x20options','search','validateParams','exit','Please\x20run\x20\x22maka\x20login\x22','\x20not\x20found','Command.create\x20requires\x20a\x20handler\x20function!','Description','usage','205eCUagt','Alias','help','push','assign','options','Command\x20','notice','maxArgLength','constructor','22572TMpXnE','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','validateMakaProject','mustBeInMakaProject','call','toString','1698204EyFrsm'];a0c=function(){return z;};return a0c();}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0xf2)];[a0p(0x117)];constructor(a,b){const q=a0p;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[q(0x100)])throw new Error(q(0xd4));if(typeof b!==q(0x103))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[q(0xf2)]=Object[q(0xf1)]({},a),this[q(0x100)]=this[q(0xf2)][q(0x100)],this[q(0x117)]=[],this['_handler']=b['bind'](this);}static[a0p(0xfe)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(r(0xea));const d=new Command(a,b);return c=c||a0f,Object[r(0xf1)](d,{'parent':c?.[r(0xf2)]?.['name']}),c[r(0x119)](d),d;}[a0p(0x119)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xe2));this[s(0x117)][s(0xf0)](a);}async['run'](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x109)][t(0xe0)](),d=c[t(0x112)]==='light'?ColorMode[t(0x11d)]:ColorMode[t(0xd5)];Log[t(0x116)](d),await this[t(0x107)](this);}catch(f){Log[t(0x10f)](f),process[t(0xe7)](0x0);}return await this[t(0xdf)](a,b);}catch(g){process['exit'](0x1);}}async[a0p(0xdf)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this['options']['name']!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[u(0x117)][u(0xdc)]>=0x0,g=b[u(0xef)]||b['h'];if(f&&g){if(this['_commands'][u(0xdc)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][u(0xfa)]){const h=this[u(0xf9)]();if(!h)throw new MustBeInProjectError();}if(this[u(0xf2)]['mustBeLoggedIn']){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[u(0xf2)]['mustHaveMeteorInstalled']){const j=this[u(0x10d)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0xf2)][u(0x11e)]==='number'){if(a[u(0xdc)]<this[u(0xf2)][u(0x11e)]){Log[u(0x10f)](u(0xda));throw new UsageError();}}if(typeof this[u(0xf2)][u(0xf5)]===u(0xe3)){if(a[u(0xdc)]>=this[u(0xf2)]['maxArgLength']){Log[u(0x10f)](u(0x10a));throw new UsageError();}}if(typeof this['options'][u(0xd8)]===u(0xe3)){if(Object[u(0x113)](b)[u(0xdc)]<this[u(0xf2)][u(0xd8)]){Log['error'](u(0x11f));throw new UsageError();}}if(typeof this[u(0xf2)][u(0xdd)]===u(0xe3)){if(Object[u(0x113)](b)['length']>=this[u(0xf2)][u(0xdd)]){Log['error'](u(0xe4));throw new UsageError();}}}}b=await this[u(0xe6)](a,b,this[u(0xf2)]),_prevCmd=a[0x0];}return await this[u(0x115)][u(0xfb)](this,a,b);}catch(k){Log[u(0xec)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0xf4)]('Sub-Commands:'),this[u(0x11a)](this[u(0x117)]),Log[u(0x10c)](u(0xd6));else{if(k instanceof MustBeInProjectError)Log[u(0x10f)](u(0x120));else{if(k instanceof NoMeteorFoundError)Log[u(0x10f)](u(0x110)),Log[u(0xf4)](u(0x105));else{if(k instanceof NoMeteorAppFoundError)Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log[u(0x10f)](u(0xf8)),Log[u(0xf4)](u(0xe8)));}}}process[u(0xe7)](0x1);}}[a0p(0x11a)](a){const v=a0p,b=new a0e({});b['push'](['Name',v(0xee),v(0xeb)]),a['sort']((c,d)=>{const w=v;return c[w(0x100)][w(0xd3)](d[w(0x100)]);})[v(0x104)](c=>{const x=v;c[x(0x100)]!==x(0xd1)&&c['name']!==x(0xd7)&&b[x(0xf0)]([c[x(0x100)],c[x(0x108)](),c['shortDesc']()]);}),Log[v(0x106)](b[v(0xfc)]());}async['processAndRunCommand'](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x11b)](':');if(!d||d[y(0xdc)]===0x0)throw y(0xdb);if(d[0x0]===y(0x10b)||d[0x0]==='g'&&d[y(0xdc)]>0x1){const h=this[y(0x117)][y(0x10e)](j=>j[y(0xe1)](y(0x10b)));if(!h)throw y(0xde);await this[y(0x107)](h);const i=d[y(0x114)](0x1)['join'](':');return b[y(0x102)](i),await h[y(0xd0)](b,c);}let f=this[y(0x117)],g;for(const j of d){g=f['find'](k=>k[y(0xe1)](j));if(!g)try{await this['fsi']['maybeProxyCommandToMeteor']();}catch(k){throw y(0xf3)+j+y(0xe9);}g&&(await this[y(0x107)](g),f=g[y(0x117)]);}if(g){const l=await g[y(0xd0)](b,c);return l;}else throw y(0xde);}catch(m){Log[y(0x10f)](m),process[y(0xe7)](0x1);}}}
1
+ const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0xd7))/0x1+parseInt(n(0xf2))/0x2*(parseInt(n(0x11b))/0x3)+-parseInt(n(0xf8))/0x4+-parseInt(n(0x10c))/0x5+parseInt(n(0xd9))/0x6+parseInt(n(0xea))/0x7+parseInt(n(0x10d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xa4ca0));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x118)]()[p(0x11d)]('(((.+)+)+)+$')[p(0x118)]()[p(0xdd)](a0a)[p(0x11d)](p(0x105));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd0;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x101)];[a0q(0x109)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0xfb));if(!a[r(0x11a)])throw new Error(r(0x103));if(typeof b!==r(0x10f))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[r(0x101)]=Object[r(0xeb)]({},a),this[r(0x11a)]=this[r(0x101)][r(0x11a)],this[r(0x109)]=[],this[r(0xf3)]=b[r(0xe5)](this);}static[a0q(0xdc)](a,b,c){const s=a0q;if(!a)throw new Error(s(0xe8));if(typeof b!=='function')throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[s(0xeb)](d,{'parent':c?.[s(0x101)]?.[s(0x11a)]}),c[s(0xf0)](d),d;}['addCommand'](a){const t=a0q;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[t(0x109)][t(0xfd)](a);}async[a0q(0xdb)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0xfa)][u(0x107)](),d=c[u(0x111)]===u(0x100)?ColorMode['LIGHT']:ColorMode['DARK'];Log[u(0xfc)](d),await this[u(0xef)](this);}catch(f){Log[u(0xff)](f),process['exit'](0x0);}return await this[u(0xf7)](a,b);}catch(g){process[u(0xd6)](0x1);}}async['invoke'](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[v(0x101)][v(0x11a)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[v(0x109)]['length']>=0x0,g=b[v(0x10a)]||b['h'];if(f&&g){if(this['_commands'][v(0xf6)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x101)][v(0x102)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[v(0x101)]['mustBeLoggedIn']){const i=await this[v(0x112)]();if(!i)throw new MustBeLoggedIn();}if(this[v(0x101)][v(0x110)]){const j=this[v(0xd3)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x101)][v(0x116)]===v(0x113)){if(a['length']<this['options'][v(0x116)]){Log[v(0xff)](v(0x117));throw new UsageError();}}if(typeof this[v(0x101)]['maxArgLength']==='number'){if(a[v(0xf6)]>=this[v(0x101)][v(0x119)]){Log[v(0xff)](v(0x11c));throw new UsageError();}}if(typeof this[v(0x101)][v(0xec)]==='number'){if(Object[v(0xf4)](b)[v(0xf6)]<this[v(0x101)][v(0xec)]){Log[v(0xff)](v(0xf1));throw new UsageError();}}if(typeof this[v(0x101)]['maxOptsLength']===v(0x113)){if(Object[v(0xf4)](b)[v(0xf6)]>=this[v(0x101)][v(0xde)]){Log[v(0xff)](v(0x114));throw new UsageError();}}}}b=await this[v(0xee)](a,b,this[v(0x101)]),_prevCmd=a[0x0];}return await this['_handler'][v(0xd2)](this,a,b);}catch(k){Log[v(0xe7)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0xf5)](v(0xfe)),this[v(0xe1)](this[v(0x109)]),Log['header'](v(0x10e));else{if(k instanceof MustBeInProjectError)Log[v(0xff)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(k instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[v(0xf5)](v(0xd0));else{if(k instanceof NoMeteorAppFoundError)Log['error'](v(0x115));else k instanceof MustBeLoggedIn&&(Log[v(0xff)](v(0x108)),Log['notice'](v(0xdf)));}}}process[v(0xd6)](0x1);}}[a0q(0xe1)](a){const w=a0q,b=new a0e({});b[w(0xfd)]([w(0xd1),w(0xed),w(0xe6)]),a[w(0xe9)]((c,d)=>{const x=w;return c[x(0x11a)]['localeCompare'](d[x(0x11a)]);})[w(0xd5)](c=>{const y=w;c[y(0x11a)]!=='murder'&&c[y(0x11a)]!=='play'&&b[y(0xfd)]([c[y(0x11a)],c['aliases'](),c[y(0xe4)]()]);}),Log['bright'](b[w(0x118)]());}async[a0q(0xe3)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0xe2)](':');if(!d||d[z(0xf6)]===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===z(0x106)||d[0x0]==='g'&&d[z(0xf6)]>0x1){const h=this[z(0x109)][z(0x104)](j=>j[z(0x11e)]('generate'));if(!h)throw z(0xd8);await this[z(0xef)](h);const i=d[z(0x10b)](0x1)['join'](':');return b['unshift'](i),await h[z(0xdb)](b,c);}let f=this[z(0x109)],g;for(const j of d){g=f['find'](k=>k[z(0x11e)](j));if(!g)try{await this[z(0xfa)][z(0xd4)]();}catch(k){throw z(0xda)+j+z(0xf9);}g&&(await this[z(0xef)](g),f=g['_commands']);}if(g){const l=await g[z(0xdb)](b,c);return l;}else throw z(0xd8);}catch(m){Log[z(0xff)](m),process['exit'](0x1);}}}function a0c(){const A=['usage','Command.create\x20requires\x20some\x20options!','sort','9408980vzqmUY','assign','minOptsLength','Alias','validateParams','validateMakaSubscription','addCommand','Too\x20few\x20options','525182VtwYyq','_handler','keys','notice','length','invoke','3634400ivTtxq','\x20not\x20found','fsi','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','setColorMode','push','Sub-Commands:','error','light','options','mustBeInMakaProject','Command\x20requires\x20a\x20name','find','(((.+)+)+)+$','generate','getGlobalConfig','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','_commands','help','slice','6427045YLUXno','6539032Nbmycw','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','function','mustHaveMeteorInstalled','pallet','validateUserIsLoggedIn','number','Too\x20many\x20options','There\x20is\x20no\x20Meteor\x20application\x20here','minArgLength','Too\x20few\x20arguments','toString','maxArgLength','name','6DxYFHy','Too\x20many\x20arguments','search','match','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Name','call','validateMeteorInstall','maybeProxyCommandToMeteor','forEach','exit','1147559dXwInN','Command\x20not\x20found','7979058hjGWWA','Command\x20','run','create','constructor','maxOptsLength','Please\x20run\x20\x22maka\x20login\x22','apply','tableList','split','processAndRunCommand','shortDesc','bind','Description'];a0c=function(){return A;};return a0c();}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xdb))/0x1*(-parseInt(f(0xe2))/0x2)+parseInt(f(0xe6))/0x3+parseInt(f(0xde))/0x4*(parseInt(f(0xdf))/0x5)+parseInt(f(0xe1))/0x6+parseInt(f(0xe0))/0x7+-parseInt(f(0xe7))/0x8+-parseInt(f(0xe3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xf3671));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xdc)]()[h(0xe5)](h(0xe8))[h(0xdc)]()[h(0xdd)](a1a)['search']('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xdb;var f=c[d];return f;},a1d(a,b);}import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';function a1c(){var i=['5FNUuES','13102257ebTdqa','11050902fUtgJm','19092AomaIU','16525827eGLSHM','apply','search','2106135hxwbqZ','4134224LOBtYQ','(((.+)+)+)+$','174wXzYot','toString','constructor','2381396tePHnG'];a1c=function(){return i;};return a1c();}import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x15a))/0x1*(parseInt(f(0x150))/0x2)+parseInt(f(0x152))/0x3*(-parseInt(f(0x14f))/0x4)+parseInt(f(0x14c))/0x5+parseInt(f(0x155))/0x6*(-parseInt(f(0x14e))/0x7)+-parseInt(f(0x156))/0x8*(parseInt(f(0x15b))/0x9)+-parseInt(f(0x159))/0xa*(parseInt(f(0x153))/0xb)+parseInt(f(0x14b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xb5875));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x158)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x157)]()[h(0x151)](h(0x154))[h(0x157)]()[h(0x14d)](a1a)[h(0x151)](h(0x154));});function a1c(){var i=['38552400xiUfeM','6110185LqUzWP','constructor','67354WskCit','12HVcThv','71866bbwKiZ','search','78159ZrrrJA','22ePRsjJ','(((.+)+)+)+$','780xzANDV','11412344XkPBqD','toString','apply','6115490TrUQdx','8jHKyAt','9LMsJUM'];a1c=function(){return i;};return a1c();}a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x14b;var f=c[d];return f;},a1d(a,b);}import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
@@ -1 +1 @@
1
- function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a2d(a,b);}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x1d1))/0x1*(parseInt(h(0x1cd))/0x2)+parseInt(h(0x1bf))/0x3*(-parseInt(h(0x1c4))/0x4)+-parseInt(h(0x1ab))/0x5*(-parseInt(h(0x1d3))/0x6)+-parseInt(h(0x1b5))/0x7*(parseInt(h(0x1ae))/0x8)+-parseInt(h(0x1d0))/0x9*(parseInt(h(0x1cc))/0xa)+parseInt(h(0x1cf))/0xb*(parseInt(h(0x1ba))/0xc)+parseInt(h(0x1aa))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x96f98));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x1d4)]('(((.+)+)+)+$')[j(0x1c5)]()[j(0x1bc)](a2a)[j(0x1d4)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x1c0)]({'input':process[k(0x1c1)],'output':process[k(0x1cb)]});c['question'](k(0x1c3),async d=>{const l=k;if(d[l(0x1be)]()===l(0x1ce)){c[l(0x1b6)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0x1bd)]);if(f['error'])throw new Error(f['error']['message']);Log[l(0x1b7)](l(0x1d5)+f?.[l(0x1b8)][0x0]?.['text'][l(0x1b4)]());}catch(g){Log[l(0x1c8)](g),process[l(0x1ce)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2c(){const o=['GPT:\x20','1766115LHDsoW','60LlffDh','fsi','openapikey','80qCOJTL','apply','cert','openai','ChatGPT\x20style\x20AI\x20interface','isFile','trim','104426vZXINB','close','bright','choices','log','12NcAzGX','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','constructor','data','toLowerCase','3QegtxR','createInterface','stdin','notice','You:\x20','657092oWRVmg','toString','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','create','error','Using\x20CA\x20Cert\x20','getGlobalConfig','stdout','1310dAbOgG','2FWxTGL','exit','12605989gXyECj','56268DnzzZT','710741uIBSKr','cacert','589872dfKnnk','search'];a2c=function(){return o;};return a2c();}Command[a2m(0x1c7)]({'name':'ai','description':a2m(0x1b2),'validOpts':[a2m(0x1d2),a2m(0x1ad)],'shortDesc':a2m(0x1b2),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x1d2)]&&(this[n(0x1ac)][n(0x1b3)](b['cacert'])?(c=b[n(0x1d2)],Log[n(0x1c2)](n(0x1c9)+c)):Log[n(0x1c8)](n(0x1bb)+c));const d=await this[n(0x1ac)][n(0x1ca)]();if(d[n(0x1b0)]){if(this[n(0x1ac)]['isFile'](d[n(0x1b0)]))c=d['cert'];else throw Log[n(0x1c8)](n(0x1c6)+c);}let f='';if(b[n(0x1ad)])f=b[n(0x1ad)],Log['notice']('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x1b1)])f=d['openai'];else throw Log[n(0x1c8)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[n(0x1b9)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1c8)](g),process[n(0x1ce)](0x1);}});
1
+ const a2m=a2d;function a2c(){const o=['openapikey','text','1443615PpMJuM','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','4YvADbm','(((.+)+)+)+$','7498580qQDslG','apply','openai','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','trim','Using\x20CA\x20Cert\x20','create','toString','GPT:\x20','fsi','2ZYhcnA','search','log','exit','63MhHgKU','58584NmvPbF','askGPT','notice','stdin','error','close','isFile','stdout','constructor','cert','bright','314034quoGFv','createInterface','Using\x20OpenAI\x20Key\x20','ChatGPT\x20style\x20AI\x20interface','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','cacert','1405782tpavSs','getGlobalConfig','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','2903346QhxnUn','17865pfNkts'];a2c=function(){return o;};return a2c();}function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x16d;let f=c[d];return f;},a2d(a,b);}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x185))/0x1+parseInt(h(0x196))/0x2*(-parseInt(h(0x17b))/0x3)+parseInt(h(0x18a))/0x4*(parseInt(h(0x188))/0x5)+-parseInt(h(0x181))/0x6+parseInt(h(0x16f))/0x7*(-parseInt(h(0x170))/0x8)+-parseInt(h(0x184))/0x9+parseInt(h(0x18c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x47978));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x197)](j(0x18b))[j(0x193)]()[j(0x178)](a2a)[j(0x197)](j(0x18b));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x17c)]({'input':process[k(0x173)],'output':process[k(0x177)]});c['question']('You:\x20',async d=>{const l=k;if(d['toLowerCase']()==='exit'){c[l(0x175)]();return;}try{const e=await HTTPS[l(0x171)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e['data']);if(f[l(0x174)])throw new Error(f[l(0x174)]['message']);Log[l(0x17a)](l(0x194)+f?.['choices'][0x0]?.[l(0x187)][l(0x190)]());}catch(g){Log[l(0x174)](g),process[l(0x16e)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x192)]({'name':'ai','description':a2m(0x17e),'validOpts':['cacert','openapikey'],'shortDesc':a2m(0x17e),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x180)]&&(this[n(0x195)][n(0x176)](b[n(0x180)])?(c=b[n(0x180)],Log['notice'](n(0x191)+c)):Log[n(0x174)](n(0x183)+c));const d=await this[n(0x195)][n(0x182)]();if(d[n(0x179)]){if(this[n(0x195)][n(0x176)](d[n(0x179)]))c=d[n(0x179)];else throw Log[n(0x174)](n(0x17f)+c);}let f='';if(b['openapikey'])f=b[n(0x186)],Log[n(0x172)](n(0x17d)+f);else{if(d['openai'])f=d[n(0x18e)];else throw Log['error'](n(0x189));}console[n(0x16d)](n(0x18f)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x16e)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x109))/0x1+-parseInt(f(0x10a))/0x2+parseInt(f(0x10d))/0x3*(parseInt(f(0x100))/0x4)+-parseInt(f(0x106))/0x5+-parseInt(f(0x108))/0x6+-parseInt(f(0x10c))/0x7*(-parseInt(f(0x103))/0x8)+-parseInt(f(0x104))/0x9*(-parseInt(f(0x102))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x2f75a));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x10b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x107)]()[h(0x105)](h(0x10e))[h(0x107)]()[h(0x101)](a3a)[h(0x105)](h(0x10e));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x100;var f=c[d];return f;},a3d(a,b);}function a3c(){var i=['683050lADTDy','apply','133UMqDHE','76341AhAeaE','(((.+)+)+)+$','8BPfZXF','constructor','20yNReym','7864gCVwKl','2214414eilKgq','search','331295jSLBpu','toString','11244TwyiJn','42389BuyHwn'];a3c=function(){return i;};return a3c();}import'./lecr.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0xbb))/0x1*(parseInt(f(0xbf))/0x2)+-parseInt(f(0xc1))/0x3*(-parseInt(f(0xc3))/0x4)+-parseInt(f(0xba))/0x5+-parseInt(f(0xb7))/0x6*(-parseInt(f(0xc0))/0x7)+-parseInt(f(0xbc))/0x8+parseInt(f(0xb9))/0x9+-parseInt(f(0xb8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x6fc5f));var a3b=(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;};}()),a3a=a3b(this,function(){var g=a3d;return a3a[g(0xbe)]()[g(0xbd)](g(0xc2))[g(0xbe)]()[g(0xc4)](a3a)[g(0xbd)]('(((.+)+)+)+$');});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xb7;var f=c[d];return f;},a3d(a,b);}function a3c(){var h=['13246800FAoeom','6538500jTDspA','1736725lgkAlC','131799vKBLzs','4028552rPuIzE','search','toString','8SIxTvw','4529JtpFqH','1800258GjOJoh','(((.+)+)+)+$','4rxnqyi','constructor','7230HUXxUC'];a3c=function(){return h;};return a3c();}import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a4d(a,b);}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1+parseInt(f(0x1db))/0x2+parseInt(f(0x1e0))/0x3*(-parseInt(f(0x1e6))/0x4)+parseInt(f(0x1df))/0x5+-parseInt(f(0x1e4))/0x6*(-parseInt(f(0x1d9))/0x7)+-parseInt(f(0x1ea))/0x8*(-parseInt(f(0x1de))/0x9)+-parseInt(f(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xcfd0d));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1eb)]()[h(0x1e7)]('(((.+)+)+)+$')['toString']()[h(0x1e5)](a4a)[h(0x1e7)](h(0x1e8));});function a4c(){const j=['aws','create','21271760PWjOyt','462978exxkEo','constructor','10700ULitMK','search','(((.+)+)+)+$','apply','160PbCEix','toString','154KnFUVU','maka\x20aws:<sub-command>','1488360VEryla','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','909552rYicEo','370206LgxGOv','5832600KaKFrF','609LMqPia'];a4c=function(){return j;};return a4c();}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x1e2)]({'name':a4i(0x1e1),'usage':a4i(0x1da),'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4i(0x1dc)},async function(){throw UsageError;});export default AWSCommand;
1
+ const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xd2))/0x1+parseInt(f(0xd1))/0x2+parseInt(f(0xd9))/0x3+-parseInt(f(0xd4))/0x4*(parseInt(f(0xd3))/0x5)+-parseInt(f(0xe0))/0x6*(parseInt(f(0xe3))/0x7)+parseInt(f(0xda))/0x8*(parseInt(f(0xde))/0x9)+-parseInt(f(0xe2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x95258));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xd7)]()[h(0xe4)](h(0xd8))['toString']()[h(0xdf)](a4a)[h(0xe4)](h(0xd8));});a4a();import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xd1;let f=c[d];return f;},a4d(a,b);}import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xd6)]({'name':a4i(0xdd),'usage':a4i(0xdb),'validOpts':[],'shortDesc':a4i(0xe1),'description':a4i(0xdc)},async function(){throw UsageError;});export default AWSCommand;function a4c(){const j=['12473990KKJlgm','260057dXBSPp','search','1509314pEZNrY','682310vtZpda','935WvrMgf','2092DeOIbq','apply','create','toString','(((.+)+)+)+$','2054217QPZXpA','27800HIiLMf','maka\x20aws:<sub-command>','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','aws','2169bUvxVW','constructor','162ISNefH','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs'];a4c=function(){return j;};return a4c();}
@@ -1 +1 @@
1
- function a5c(){const l=['42CdXUEk','1074xOxZRe','148396tyVzMG','maka\x20aws:create-ecr','success','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','56968SbfjBx','(((.+)+)+)+$','repository','$metadata','ecrCreateRepository','repositoryUri','834QheUbB','Repository\x20created\x20successfully.','1315930ArgXQe','cecr','region','httpStatusCode','74380YyKVEj','create-ecr','14SsQCos','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','apply','12818292xOjcvf','toString','create','365cHPLUs','306WNvhSv','name','search','exit','error','8185ZDAIBe'];a5c=function(){return l;};return a5c();}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xab))/0x1*(-parseInt(g(0x9d))/0x2)+-parseInt(g(0xb2))/0x3*(parseInt(g(0x93))/0x4)+-parseInt(g(0xb1))/0x5*(parseInt(g(0x92))/0x6)+parseInt(g(0xa5))/0x7*(parseInt(g(0x97))/0x8)+-parseInt(g(0xac))/0x9*(parseInt(g(0xa3))/0xa)+parseInt(g(0x9f))/0xb+parseInt(g(0xa8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x468c7));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xa7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0xa9)]()[i(0xae)](i(0x98))[i(0xa9)]()['constructor'](a5a)['search'](i(0x98));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x92;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0xaa)]({'name':a5j(0xa4),'aliases':[a5j(0xa0)],'usage':a5j(0x94),'requiredOpts':[a5j(0xad)],'validOpts':[a5j(0xa1)],'shortDesc':'Create\x20an\x20Elastic\x20Container\x20Repository','examples':['maka\x20aws:create-ecr\x20--name=my-new-repo','maka\x20aws:cecr\x20--name=my-new-repo',a5j(0xa6)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x9b)](b);d&&d[k(0x9a)][k(0xa2)]===0xc8&&d[k(0x99)]?(Log[k(0x95)](k(0x9e)),Log['notice']('Repository\x20URI:\x20'+d[k(0x99)][k(0x9c)])):Log[k(0xb0)](k(0x96)),process[k(0xaf)](0x0);}catch(f){Log[k(0xb0)](f),process[k(0xaf)](0x1);}},a5e);
1
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xe7))/0x1+parseInt(g(0xdd))/0x2+parseInt(g(0xe1))/0x3+-parseInt(g(0xea))/0x4+parseInt(g(0xdc))/0x5+parseInt(g(0xe6))/0x6*(parseInt(g(0xd9))/0x7)+parseInt(g(0xdb))/0x8*(-parseInt(g(0xe0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xdc770));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0xd7)]()['search'](i(0xf1))[i(0xd7)]()[i(0xdf)](a5a)[i(0xe8)](i(0xf1));});a5a();function a5c(){const l=['283941hULWkk','search','$metadata','3774824LhwJPX','success','Create\x20an\x20Elastic\x20Container\x20Repository','Repository\x20URI:\x20','repositoryUri','apply','error','(((.+)+)+)+$','name','region','maka\x20aws:create-ecr','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','maka\x20aws:cecr\x20--name=my-new-repo','Repository\x20created\x20successfully.','toString','cecr','21lxciPk','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','25224qWiYaf','8274470Uwurfq','1877874cESMOE','create','constructor','6246jESlGs','4355094ESgSbg','exit','maka\x20aws:create-ecr\x20--name=my-new-repo','repository','notice','546648CGQzzL'];a5c=function(){return l;};return a5c();}import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xd6;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0xde)]({'name':'create-ecr','aliases':[a5j(0xd8)],'usage':a5j(0xf4),'requiredOpts':[a5j(0xf2)],'validOpts':[a5j(0xf3)],'shortDesc':a5j(0xec),'examples':[a5j(0xe3),a5j(0xf6),a5j(0xda)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0xe9)]['httpStatusCode']===0xc8&&d['repository']?(Log[k(0xeb)](k(0xd6)),Log[k(0xe5)](k(0xed)+d[k(0xe4)][k(0xee)])):Log[k(0xf0)](k(0xf5)),process[k(0xe2)](0x0);}catch(f){Log[k(0xf0)](f),process[k(0xe2)](0x1);}},a5e);
@@ -1 +1 @@
1
- const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0x209))/0x1+parseInt(i(0x200))/0x2+-parseInt(i(0x1fa))/0x3*(-parseInt(i(0x1f2))/0x4)+-parseInt(i(0x20a))/0x5+parseInt(i(0x205))/0x6*(-parseInt(i(0x204))/0x7)+parseInt(i(0x1f8))/0x8+parseInt(i(0x1f7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x99c20));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1f5)]()['search']('(((.+)+)+)+$')[k(0x1f5)]()[k(0x1f6)](a6a)['search']('(((.+)+)+)+$');});function a6c(){const n=['create','apply','Instance\x20not\x20found','1510424wbbNUj','maka\x20aws:chz\x20--domain=example.com','exit','toString','constructor','8498601aaAcMo','4489840zfxZxh','chooseInstance','3XnUaAN','Set\x20hosted\x20zone\x20to\x20an\x20instance?','error','maka\x20aws:create-hosted-zone\x20--domain=example.com','domain','chz','1516332wnTCeD','create-hosted-zone','publicIp','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','245357njebzc','108WNmqSu','linkEC2ToRoute53','confirm','maka\x20aws:create-hosted-zone','1258231nkVNOz','611750UFynxM','route53CreateHostedZone'];a6c=function(){return n;};return a6c();}a6a();import a6e 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[a6l(0x20c)]({'name':a6l(0x201),'aliases':[a6l(0x1ff)],'usage':a6l(0x208),'requiredOpts':[a6l(0x1fe)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a6l(0x1fd),a6l(0x1f3)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x20b)](c);const f=await Actions[m(0x207)](m(0x1fb));if(f){const g=await d[m(0x1f9)]();if(g?.['id']){if(!g[m(0x202)])throw Log[m(0x1fc)](m(0x203));d[m(0x206)](g['id'],g['publicIp'],c);}else throw m(0x1f1);}}catch(h){h&&Log[m(0x1fc)](h),process[m(0x1f4)](0x0);}},a6e);
1
+ const a6k=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x8f))/0x1*(-parseInt(i(0x94))/0x2)+parseInt(i(0x8e))/0x3*(parseInt(i(0x8d))/0x4)+-parseInt(i(0x95))/0x5*(-parseInt(i(0x92))/0x6)+parseInt(i(0x93))/0x7+parseInt(i(0xa0))/0x8+parseInt(i(0x9b))/0x9+-parseInt(i(0x98))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x58015));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0x97)]()[j(0x86)](j(0x9a))[j(0x97)]()[j(0x90)](a6a)[j(0x86)](j(0x9a));});a6a();function a6c(){const m=['Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','(((.+)+)+)+$','4252554EtoSeX','domain','publicIp','exit','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','5362728LRjPWi','Set\x20hosted\x20zone\x20to\x20an\x20instance?','search','create-hosted-zone','route53CreateHostedZone','Instance\x20not\x20found','maka\x20aws:create-hosted-zone\x20--domain=example.com','linkEC2ToRoute53','create','1564152iwaQBo','3CGOyRq','407MeBlnE','constructor','confirm','1050618RDwUrl','2700159vRRpDz','1544xDjyRT','10ChKhhi','chz','toString','15951550qmCIlB'];a6c=function(){return m;};return a6c();}import a6e from'./aws.command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x86;let f=c[d];return f;},a6d(a,b);}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[a6k(0x8c)]({'name':a6k(0x87),'aliases':[a6k(0x96)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6k(0x9c)],'validOpts':[],'shortDesc':a6k(0x99),'examples':[a6k(0x8a),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const l=a6k;try{const c=b[l(0x9c)],d=new AWS();d[l(0x88)](c);const f=await Actions[l(0x91)](l(0xa1));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[l(0x9d)])throw Log['error'](l(0x9f));d[l(0x8b)](g['id'],g[l(0x9d)],c);}else throw l(0x89);}}catch(h){h&&Log['error'](h),process[l(0x9e)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x17c))/0x1*(-parseInt(ae(0x192))/0x2)+-parseInt(ae(0x16a))/0x3+-parseInt(ae(0x175))/0x4*(-parseInt(ae(0x126))/0x5)+-parseInt(ae(0x169))/0x6*(-parseInt(ae(0x15e))/0x7)+-parseInt(ae(0x148))/0x8*(-parseInt(ae(0x159))/0x9)+-parseInt(ae(0x15d))/0xa+-parseInt(ae(0x136))/0xb*(parseInt(ae(0x16c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xeb10c));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x137)]()[ag(0x144)]('(((.+)+)+)+$')['toString']()[ag(0x18e)](a7a)[ag(0x144)](ag(0x133));});a7a();function a7c(){const at=['**\x20Available\x20Subnets\x20**','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Web\x20App','ec2describeKeys','ID:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Subnet:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','getTime','split','Key-Pair:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','maka-cli','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','constructor','\x20SGID:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','readFileSync','1346892rqwXKV','24965XbKrIV','Desc','confirm','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','maka\x20aws:create-instance\x20--env\x20dev','t3.micro','Instance\x20Count:\x20','exit','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Name','create','Please\x20choose\x20a\x20key\x20to\x20use:\x20','unlinkSync','(((.+)+)+)+$','apply','\x20SG\x20NAME:\x20','56551IgejVJ','toString','subnetId','\x20AZONE:\x20','name','number','subnet','build\x20on\x20','bright','amazon','environment','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','search','getAppConfigPath','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=*','\x20:\x20','56Uydibl','fsi','\x20SUBNETID:\x20','desc','parse','chooseVPC','Setting\x20the\x20key-pair\x20to:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','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','**\x20Available\x20AMIs\x20**','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','ask','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','deleteKeyPair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','user-data','42138MwNPdN','getSecurityGroups','sgId','env','7681600ihUBHb','4232788IFMbJn','error','ec2createSG','notice','deleteSecurityGroup','Setting\x20AMI\x20ID\x20to\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','date','amiId','create-instance','maka\x20aws:create-instance','18HLWRvB','325977ZvbEVs','push','276WIIeJR','log','maka\x20aws:ci\x20--env\x20prod','Instace\x20Type:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','No\x20instance\x20has\x20been\x20created.','success','Setting\x20SG\x20ID\x20to:\x20','getMakaProjectConfig','1168VJYpsq','forEach','sort','cidr','*\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','ImageID:','Creating\x20user\x20data\x20file\x20in\x20','2rXzAHa','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','string','getEnvFromShorthand'];a7c=function(){return at;};return a7c();}import a7e from'./aws.command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x126;let f=c[d];return f;},a7d(a,b);}import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x130)]({'name':a7ah(0x167),'aliases':['ci'],'usage':a7ah(0x168),'examples':[a7ah(0x12a),a7ah(0x16e)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x15c)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0x142)},async function(a,b){const ai=a7ah;try{const c=this['fsi'][ai(0x174)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x149)][ai(0x17f)](b[ai(0x15c)]),i=this[ai(0x149)][ai(0x145)](h),j=g+'-'+h,k=await Actions[ai(0x154)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x128)](ai(0x190),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x172)](ai(0x14e)+r);}else try{Log[ai(0x161)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x183)]({'suggestion':A}),C=await Actions[ai(0x154)](ai(0x131))||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x151)),Log['notice'](ai(0x171));return;}B?.[ai(0x176)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x13a)],Log[aj(0x172)](aj(0x14e)+r));});}catch(D){Log[ai(0x15f)](D);}l=await d[ai(0x14d)]();const t=await Actions['confirm'](ai(0x170),!![]);let u;if(t){const E=l===''?await d[ai(0x14d)]():l;u=await Actions['ask']('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x154)](ai(0x187))||'22,80,443',G=F[ai(0x189)](',');await d[ai(0x160)]({'description':ai(0x182),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x15a)](u);if(I===''){Log['notice']('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x176)](function(L){const ak=ai;L[ak(0x13a)]===u?Log[ak(0x161)](ak(0x184)+L['id']+ak(0x135)+L['name']+ak(0x18f)+L[ak(0x15b)]):Log[ak(0x13e)](ak(0x184)+L['id']+ak(0x135)+L[ak(0x13a)]+ak(0x18f)+L[ak(0x15b)]);});const K=await Actions[ai(0x154)](ai(0x18d)+H+']\x20')||H[ai(0x137)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log['success'](al(0x173)+m+'\x0a'));});}else m=I,Log[ai(0x172)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x15f)](ai(0x157));}catch(L){Log[ai(0x15f)](L);}try{const M=0x7e6;Log['notice'](ai(0x152));const N=execSync(ai(0x146)+M+ai(0x179))['toString'](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S['alias']===am(0x13f)){const T=S[am(0x127)][am(0x189)](am(0x13d))[0x1];P[am(0x16b)]({'amiId':S['ID'],'desc':S[am(0x127)],'date':T});}}),P[ai(0x177)](function(S,T){const an=ai;return new Date(T[an(0x165)])[an(0x188)]()-new Date(S[an(0x165)])['getTime']();}),P[ai(0x176)](function(S,T){const ao=ai;Q[ao(0x16b)]({'id':T,'amiId':S[ao(0x166)],'desc':S[ao(0x14b)]});}),Q[ai(0x176)](function(S){const ap=ai;console[ap(0x16d)](ap(0x184)+S['id']+'\x20AMIID:\x20'+S['amiId']+'\x20DESCRIPTION:\x20'+S[ap(0x14b)]);});const R=await Actions[ai(0x154)](ai(0x185))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x166)],Log[aq(0x172)](aq(0x163)+n+aq(0x147)+S[aq(0x14b)]));});if(n==='')throw Log[ai(0x15f)](ai(0x157));}catch(S){Log[ai(0x15f)](S);}try{Log[ai(0x161)](ai(0x180));const T=execSync(ai(0x129))['toString'](),U=JSON[ai(0x14c)](T),V=[];U[ai(0x176)](function(X,Y){const ar=ai;V[ar(0x16b)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x138)]});}),V[ai(0x176)](function(X){const as=ai;console['log']('ID:\x20'+X['id']+'\x20CIDR:\x20'+X[as(0x178)]+as(0x139)+X['az']+as(0x14a)+X[as(0x138)]);});const W=await Actions[ai(0x154)](ai(0x155))||'0';V['forEach'](function(X){X['id']===parseInt(W)&&(p=X['subnetId'],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x15f)](ai(0x157));}catch(X){Log[ai(0x15f)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x154)](ai(0x181))||'1:1',Z=Y[ai(0x189)](':')[0x0],a0=Y[ai(0x189)](':')[0x1];typeof parseInt(Z)===ai(0x13b)&&typeof parseInt(a0)===ai(0x13b)&&Log[ai(0x172)](ai(0x12e)+Z+':'+a0);}catch(a1){Log[ai(0x15f)](a1);}try{const a2=await Actions[ai(0x154)](ai(0x141))||ai(0x12b);typeof a2===ai(0x17e)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x128)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a7f['join'](i,ai(0x158)),Log[ai(0x161)](ai(0x17b)+x),await this[ai(0x149)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x128)](ai(0x153)));}catch(a5){Log[ai(0x15f)](a5);}try{const a6=JSON[ai(0x14c)](execSync(ai(0x14f)+p+ai(0x143))[ai(0x137)]())[0x0][ai(0x13c)];Log[ai(0x161)](ai(0x17a)+n),Log[ai(0x161)](ai(0x12c)+v+':'+w),Log[ai(0x161)](ai(0x16f)+o),Log[ai(0x161)](ai(0x18a)+r),Log['notice']('Security\x20Group:\x20'+m),Log[ai(0x161)](ai(0x186)+a6);if(x){Log[ai(0x161)]('User\x20Data:'+x);const a8=a7g[ai(0x191)](x)['toString']();Log['notice'](a8);}const a7=await Actions[ai(0x128)](ai(0x17d));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x18c)},{'Key':ai(0x140),'Value':h},{'Key':ai(0x12f),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x172)](ai(0x18b)),Log['bright'](ai(0x164)));}else{Log[ai(0x161)](ai(0x150));const aa=await Actions[ai(0x128)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x156)](r),f['isFile'](s)&&a7g[ai(0x132)](s));const ab=await Actions[ai(0x128)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x162)](m);}}catch(ac){Log[ai(0x15f)](ac);}}catch(ad){ad&&Log[ai(0x15f)](ad),process[ai(0x12d)](0x0);}},a7e);
1
+ const a7ah=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x189;let f=c[d];return f;},a7d(a,b);}(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x1c4))/0x1+parseInt(ae(0x1c6))/0x2*(-parseInt(ae(0x1c0))/0x3)+parseInt(ae(0x1db))/0x4*(parseInt(ae(0x1d1))/0x5)+-parseInt(ae(0x1eb))/0x6+-parseInt(ae(0x1e8))/0x7+-parseInt(ae(0x1a9))/0x8*(-parseInt(ae(0x1da))/0x9)+-parseInt(ae(0x1c3))/0xa*(-parseInt(ae(0x1e4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xc1fc8));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x1a3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x1ba)]()['search'](ag(0x1ea))[ag(0x1ba)]()[ag(0x19a)](a7a)['search'](ag(0x1ea));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a7c(){const au=['\x20AMIID:\x20','Setting\x20SG\x20ID\x20to:\x20','16WQwphc','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','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','fsi','forEach','ec2describeKeys','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Would\x20you\x20like\x20to\x20include\x20user\x20data?','push','deleteKeyPair','Web\x20App','\x20AZONE:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','\x20SGID:\x20','getTime','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','toString','number','ID:\x20','Instance\x20Count:\x20','date','maka\x20aws:create-instance\x20--env\x20dev','3wJZfox','created-by','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=*','20290vFuTbP','43270mgUjZl','**\x20Available\x20Subnets\x20**','961626JadpVT','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Setting\x20the\x20key-pair\x20to:\x20','amiId','subnet','ask','Remove\x20the\x20keypair\x20','user-data','cidr','Security\x20Group\x20Name:\x20[','268955xxFlmM','create-instance','notice','error','ec2create','No\x20instance\x20has\x20been\x20created.','log','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20:\x20','3158145tnSnte','40HpGDpf','\x20DESCRIPTION:\x20','Subnet:\x20','subnetId','Security\x20Group:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','unlinkSync','join','bright','7711SDfubR','split','createFile','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','2386055CLQhMX','getEnvFromShorthand','(((.+)+)+)+$','6534438qMKoKV','success','name','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','1:1','isFile','getSecurityGroups','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','createKeyPair','sort','parse','confirm','maka-cli','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','amazon','chooseVPC','EC2\x20Name:\x20[','environment','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','desc','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','sgId','ImageID:','string','getMakaProjectConfig','Setting\x20Subnet\x20ID\x20to\x20','constructor','User\x20Data:','Remove\x20the\x20security\x20group\x20','create','ec2createSG','t3.micro','env','deleteSecurityGroup','readFileSync','apply','*\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','Desc','\x20CIDR:\x20'];a7c=function(){return au;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x19d)]({'name':a7ah(0x1d2),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0x1bf),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x1a0)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a7ah;try{const c=this[ai(0x1ac)][ai(0x198)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1ac)][ai(0x1e9)](b[ai(0x1a0)]),i=this[ai(0x1ac)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1cc)](ai(0x18f)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1f3)]({'env':h});r=y,s=z,Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0x1d3)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x1ae)]({'suggestion':A}),C=await Actions[ai(0x1cc)](ai(0x1c7))||'-1';if(parseInt(C)<0x0){Log[ai(0x1d4)](ai(0x1aa)),Log[ai(0x1d3)](ai(0x1d6));return;}B?.[ai(0x1ad)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1ed)],Log[aj(0x1ec)](aj(0x1c9)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x18e)]();const t=await Actions[ai(0x18a)](ai(0x1ab),!![]);let u;if(t){const E=l===''?await d[ai(0x18e)]():l;u=await Actions['ask'](ai(0x1d0)+k+']')||k;const F=await Actions[ai(0x1cc)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F['split'](',');await d[ai(0x19e)]({'description':ai(0x1b3),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1f1)](u);if(I===''){Log[ai(0x1d3)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x1ad)](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x1bc)+L['id']+'\x20SG\x20NAME:\x20'+L['name']+ak(0x1b7)+L[ak(0x195)]):Log[ak(0x1e3)]('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L['name']+ak(0x1b7)+L['sgId']);});const K=await Actions['ask'](ai(0x191)+H+']\x20')||H[ai(0x1ba)]();J[ai(0x1ad)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x1ec)](al(0x1a8)+m+'\x0a'));});}else m=I,Log[ai(0x1ec)](ai(0x1a8)+m+'\x0a');if(m==='')throw Log[ai(0x1d4)](ai(0x1e0));}catch(L){Log[ai(0x1d4)](L);}try{const M=0x7e6;Log[ai(0x1d3)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x1c2)+M+ai(0x1a4))[ai(0x1ba)](),O=JSON[ai(0x189)](N),P=[],Q=[];O[ai(0x1ad)](function(S){const am=ai;if(S['alias']===am(0x18d)){const T=S[am(0x1a5)][am(0x1e5)]('build\x20on\x20')[0x1];P[am(0x1b1)]({'amiId':S['ID'],'desc':S[am(0x1a5)],'date':T});}}),P[ai(0x1f4)](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S[an(0x1be)])[an(0x1b8)]();}),P[ai(0x1ad)](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S['amiId'],'desc':S[ao(0x193)]});}),Q[ai(0x1ad)](function(S){const ap=ai;console[ap(0x1d7)](ap(0x1bc)+S['id']+ap(0x1a7)+S['amiId']+ap(0x1dc)+S['desc']);});const R=await Actions['ask'](ai(0x1b5))||'0';Q[ai(0x1ad)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1ca)],Log[aq(0x1ec)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x1d9)+S['desc']));});if(n==='')throw Log[ai(0x1d4)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log['error'](S);}try{Log['notice'](ai(0x1c5));const T=execSync(ai(0x1b6))[ai(0x1ba)](),U=JSON[ai(0x189)](T),V=[];U[ai(0x1ad)](function(X,Y){const ar=ai;V[ar(0x1b1)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x1de)]});}),V[ai(0x1ad)](function(X){const as=ai;console[as(0x1d7)](as(0x1bc)+X['id']+as(0x1a6)+X[as(0x1cf)]+as(0x1b4)+X['az']+'\x20SUBNETID:\x20'+X[as(0x1de)]);});const W=await Actions['ask'](ai(0x194))||'0';V[ai(0x1ad)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1de)],Log[at(0x1ec)](at(0x199)+p));});if(p==='')throw Log[ai(0x1d4)](ai(0x1e0));}catch(X){Log[ai(0x1d4)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ai(0x1e7))||ai(0x1ef),Z=Y['split'](':')[0x0],a0=Y[ai(0x1e5)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x1bb)&&Log[ai(0x1ec)](ai(0x1c8)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ai(0x1cc)](ai(0x1b9))||ai(0x19f);typeof a2===ai(0x197)&&(o=a2);}catch(a3){Log[ai(0x1d4)](a3);}let x='';try{const a4=await Actions[ai(0x18a)](ai(0x1b0),![]);a4&&(x=a7f[ai(0x1e2)](i,ai(0x1ce)),Log[ai(0x1d3)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x1ac)][ai(0x1e6)]({'filePath':x,'data':''}),await Actions['confirm'](ai(0x18c)));}catch(a5){Log[ai(0x1d4)](a5);}try{const a6=JSON[ai(0x189)](execSync(ai(0x1d8)+p+ai(0x1f2))[ai(0x1ba)]())[0x0][ai(0x1cb)];Log['notice'](ai(0x196)+n),Log[ai(0x1d3)](ai(0x1bd)+v+':'+w),Log[ai(0x1d3)]('Instace\x20Type:\x20'+o),Log['notice']('Key-Pair:\x20'+r),Log['notice'](ai(0x1df)+m),Log['notice'](ai(0x1dd)+a6);if(x){Log['notice'](ai(0x19b)+x);const a8=a7g[ai(0x1a2)](x)[ai(0x1ba)]();Log['notice'](a8);}const a7=await Actions['confirm'](ai(0x1af));if(a7){const a9=await d[ai(0x1d5)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1c1),'Value':ai(0x18b)},{'Key':ai(0x190),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1ec)](ai(0x192)),Log[ai(0x1e3)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log['notice'](ai(0x1ee));const aa=await Actions[ai(0x18a)](ai(0x1cd)+r+'\x20?',!![]);aa&&(d[ai(0x1b2)](r),f[ai(0x1f0)](s)&&a7g[ai(0x1e1)](s));const ab=await Actions['confirm'](ai(0x19c)+m+'\x20?',!![]);ab&&d[ai(0x1a1)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ai(0x1d4)](ad),process['exit'](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8j=a8d;function a8c(){const l=['maka\x20aws:ckp\x20--env\x20prod','toString','exit','2825288jaBHRN','12340JSTtOr','8ezPAmR','env','48772070NlfZLT','getEnvFromShorthand','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','17936ZFkzeg','create-key-pair','1133009dcyQDf','4341483bUYZEM','(((.+)+)+)+$','4907dhCXog','apply','createKeyPair','maka\x20aws:create-key-pair','constructor','error','create','2126373vCBYKN','624ppdkhp','search'];a8c=function(){return l;};return a8c();}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x69))/0x1+-parseInt(g(0x79))/0x2+-parseInt(g(0x73))/0x3*(parseInt(g(0x7b))/0x4)+parseInt(g(0x7a))/0x5*(-parseInt(g(0x74))/0x6)+parseInt(g(0x6c))/0x7*(-parseInt(g(0x80))/0x8)+-parseInt(g(0x6a))/0x9+parseInt(g(0x7d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xd43a9));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x6d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()['search'](i(0x6b))[i(0x77)]()[i(0x70)](a8a)[i(0x75)](i(0x6b));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x69;let f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8j(0x72)]({'name':a8j(0x81),'aliases':['ckp'],'usage':a8j(0x6f),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8j(0x76)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x7c)],'validOpts':[],'shortDesc':a8j(0x7f),'description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const k=a8j;try{const c=new AWS(),d=this['fsi'][k(0x7e)](b[k(0x7c)]);c[k(0x6e)]({'env':d});}catch(f){f&&Log[k(0x71)](f),process[k(0x78)](0x0);}},a8e);
1
+ const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0xe4))/0x1*(parseInt(g(0xd8))/0x2)+parseInt(g(0xd0))/0x3*(-parseInt(g(0xcd))/0x4)+parseInt(g(0xe3))/0x5*(-parseInt(g(0xce))/0x6)+parseInt(g(0xd6))/0x7*(parseInt(g(0xca))/0x8)+parseInt(g(0xd3))/0x9+parseInt(g(0xdb))/0xa*(parseInt(g(0xcb))/0xb)+parseInt(g(0xe0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x6218c));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0xcf)]()[i(0xdf)](i(0xdc))[i(0xcf)]()[i(0xe5)](a8a)[i(0xdf)](i(0xdc));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xca;let f=c[d];return f;},a8d(a,b);}function a8c(){const l=['870DDrChc','148789WQOmEq','constructor','ckp','176PAROpS','46321ZtPksE','maka\x20aws:create-key-pair','3376jYGBjm','2934ZpzFTA','toString','2142zvVPGw','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','create-key-pair','6429843Znlics','create','fsi','251139iEVEEm','exit','10iVunKK','apply','createKeyPair','220lJbLNX','(((.+)+)+)+$','getEnvFromShorthand','env','search','2845056JzFcnm','maka\x20aws:ckp\x20--env\x20prod','maka\x20aws:create-key-pair\x20--env\x20prod'];a8c=function(){return l;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8j(0xd4)]({'name':a8j(0xd2),'aliases':[a8j(0xe6)],'usage':a8j(0xcc),'examples':[a8j(0xe2),a8j(0xe1)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8j(0xd1),'description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0xd5)][k(0xdd)](b[k(0xde)]);c[k(0xda)]({'env':d});}catch(f){f&&Log['error'](f),process[k(0xd7)](0x0);}},a8e);
@@ -1 +1 @@
1
- const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x150))/0x1+parseInt(m(0x136))/0x2*(parseInt(m(0x13f))/0x3)+parseInt(m(0x142))/0x4*(parseInt(m(0x155))/0x5)+parseInt(m(0x137))/0x6+parseInt(m(0x148))/0x7*(-parseInt(m(0x143))/0x8)+parseInt(m(0x14b))/0x9*(parseInt(m(0x135))/0xa)+-parseInt(m(0x146))/0xb*(parseInt(m(0x151))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x90c8e));function a9c(){const s=['65282COVmzb','Security\x20Group\x20Name:\x20[','maka\x20aws:create-secuirty-group','248634hCaDov','search','apply','22,80,443','split','617446SMBiDw','8012460LByCjf','ask','Web\x20App','toString','4770475VaGPVp','chooseVPC','ec2createSG','(((.+)+)+)+$','180MVRDue','8hvmCeB','1515606IpxUqs','fsi','name','maka\x20aws\x20create-security-group','csg','forEach','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','680409WEIaDL','maka\x20aws:csg','exit','4BPcedt','56huxErr','List\x20is\x20not\x20all\x20numbers','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','22LTRqpE','match'];a9c=function(){return s;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x14c)](o(0x134))[o(0x154)]()['constructor'](a9a)[o(0x14c)](o(0x134));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x134;let f=c[d];return f;},a9d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'create-security-group','aliases':[a9p(0x13b)],'usage':a9p(0x13a),'validOpts':[],'shortDesc':a9p(0x13e),'description':a9p(0x13d),'examples':[a9p(0x14a),a9p(0x140)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x138)]['getMakaProjectConfig'](),{appName:f}=d,g=await c[q(0x156)](),h=b[q(0x139)]?b[q(0x139)]:''+f,i=await Actions['ask'](q(0x149)+h+']')||h,j=await Actions[q(0x152)](q(0x145))||q(0x14e),k=j[q(0x14f)](',');k[q(0x13c)](l=>{const r=q;if(!l[r(0x147)](/^\d+$/))throw r(0x144);}),await c[q(0x157)]({'description':q(0x153),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process[q(0x141)](0x1);}},a9e);
1
+ const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x74))/0x1+-parseInt(m(0x6d))/0x2*(parseInt(m(0x73))/0x3)+parseInt(m(0x79))/0x4+parseInt(m(0x7c))/0x5+parseInt(m(0x81))/0x6+parseInt(m(0x78))/0x7*(parseInt(m(0x76))/0x8)+parseInt(m(0x88))/0x9*(parseInt(m(0x7b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x5b344));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x87)](o(0x6e))[o(0x8c)]()[o(0x83)](a9a)['search']('(((.+)+)+)+$');});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x6d;let f=c[d];return f;},a9d(a,b);}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a9c(){const s=['ask','Security\x20Group\x20Name:\x20[','name','List\x20is\x20not\x20all\x20numbers','5739QCzoih','738551jxxWKA','match','96CEzsiK','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','56476DSzOYm','860596jnhtEP','Web\x20App','370aznqll','1350665zOqmvH','csg','maka\x20aws\x20create-security-group','error','split','3779448xLnpXD','maka\x20aws:csg','constructor','ec2createSG','forEach','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','search','17118IcsLTq','maka\x20aws:create-secuirty-group','fsi','apply','toString','178iShoEv','(((.+)+)+)+$'];a9c=function(){return s;};return a9c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'create-security-group','aliases':[a9p(0x7d)],'usage':a9p(0x7e),'validOpts':[],'shortDesc':a9p(0x86),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a9p(0x89),a9p(0x82)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x8a)]['getMakaProjectConfig'](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0x71)]?b['name']:''+f,i=await Actions[q(0x6f)](q(0x70)+h+']')||h,j=await Actions[q(0x6f)](q(0x77))||'22,80,443',k=j[q(0x80)](',');k[q(0x85)](l=>{const r=q;if(!l[r(0x75)](/^\d+$/))throw r(0x72);}),await c[q(0x84)]({'description':q(0x7a),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x7f)](l),process['exit'](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x15b;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x16e))/0x1*(-parseInt(f(0x16d))/0x2)+parseInt(f(0x16c))/0x3+parseInt(f(0x15e))/0x4+parseInt(f(0x170))/0x5+parseInt(f(0x163))/0x6+-parseInt(f(0x166))/0x7+parseInt(f(0x168))/0x8*(-parseInt(f(0x16a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xeb648));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x15f)]()[h(0x171)](h(0x16b))[h(0x15f)]()[h(0x160)](a10a)['search']('(((.+)+)+)+$');});function a10c(){const k=['apply','\x20in\x20region\x20','\x20deleted\x20successfully\x20in\x20region\x20','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','decr','exit','Delete\x20an\x20Elastic\x20Container\x20Repository','5805296ckmTcx','toString','constructor','Repository\x20','create','6153486ojHgrf','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','name','5942594LltPXB','ecrDeleteRepository','25064920cqIUOm','region','9jLbDKv','(((.+)+)+)+$','1251762iYqxbe','2254810wLgvml','1ToySbf','delete-ecr','4623305FsmYEs','search','success'];a10c=function(){return k;};return a10c();}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x162)]({'name':a10i(0x16f),'aliases':[a10i(0x15b)],'usage':a10i(0x164),'requiredOpts':['name',a10i(0x169)],'validOpts':[],'shortDesc':a10i(0x15d),'examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10i(0x176)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x167)]({'repoName':b['name'],'region':b['region']}),Log[j(0x172)](j(0x161)+b[j(0x165)]+j(0x175)+b[j(0x169)]+'.'),process['exit'](0x0);}catch(d){Log['error']('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[j(0x165)]+j(0x174)+b[j(0x169)]+'.\x20Error:\x20'+d),process[j(0x15c)](0x1);}},a10e);
1
+ const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1f0;let f=c[d];return f;},a10d(a,b);}function a10c(){const k=['\x20deleted\x20successfully\x20in\x20region\x20','\x20in\x20region\x20','Failed\x20to\x20delete\x20the\x20repository:\x20','2289795wQftxG','exit','toString','constructor','(((.+)+)+)+$','success','apply','2902224xfWUpz','1342719ORgCGD','7482pTTqmc','.\x20Error:\x20','8TMkIMO','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','ecrDeleteRepository','region','469262hEJiRN','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','delete-ecr','decr','create','Delete\x20an\x20Elastic\x20Container\x20Repository','search','name','9793LxKZLv','11642931xxaJOI','Repository\x20','140tYMRES'];a10c=function(){return k;};return a10c();}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x201))/0x1+parseInt(f(0x1f9))/0x2+parseInt(f(0x1f3))/0x3*(-parseInt(f(0x204))/0x4)+-parseInt(f(0x208))/0x5+-parseInt(f(0x1f1))/0x6+-parseInt(f(0x1f2))/0x7+-parseInt(f(0x1f5))/0x8*(-parseInt(f(0x202))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x4d781));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x20a)]()['search'](h(0x20c))[h(0x20a)]()[h(0x20b)](a10a)[h(0x1ff)](h(0x20c));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x1fd)]({'name':a10i(0x1fb),'aliases':[a10i(0x1fc)],'usage':a10i(0x1f6),'requiredOpts':[a10i(0x200),a10i(0x1f8)],'validOpts':[],'shortDesc':a10i(0x1fe),'examples':[a10i(0x1fa),'maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1']},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x1f7)]({'repoName':b[j(0x200)],'region':b[j(0x1f8)]}),Log[j(0x20d)](j(0x203)+b[j(0x200)]+j(0x205)+b[j(0x1f8)]+'.'),process[j(0x209)](0x0);}catch(d){Log['error'](j(0x207)+b['name']+j(0x206)+b[j(0x1f8)]+j(0x1f4)+d),process[j(0x209)](0x1);}},a10e);
@@ -1 +1 @@
1
- const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x1aa))/0x1*(parseInt(f(0x19e))/0x2)+parseInt(f(0x1a8))/0x3+parseInt(f(0x1ab))/0x4*(-parseInt(f(0x1a5))/0x5)+parseInt(f(0x1a4))/0x6+parseInt(f(0x1a6))/0x7*(parseInt(f(0x196))/0x8)+parseInt(f(0x19b))/0x9*(parseInt(f(0x1a2))/0xa)+-parseInt(f(0x199))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x5369b));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const g=a11d;return a11a[g(0x1a0)]()[g(0x1a9)](g(0x19a))[g(0x1a0)]()[g(0x19d)](a11a)['search'](g(0x19a));});a11a();import a11e from'./aws.command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x195;let f=c[d];return f;},a11d(a,b);}import{Command}from'../../command.js';function a11c(){const j=['create','341646rYpIWS','17345mTrPwv','21aMeIbS','describe-instances','1390212BePmHV','search','10kyolfP','328iRLbUm','maka\x20aws:di','1663480HegQvj','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','ec2describeInstances','11885742ZdqouH','(((.+)+)+)+$','3489111joHgQE','error','constructor','34962gmfxAN','exit','toString','maka\x20aws:describe-instances','10CxRIEN'];a11c=function(){return j;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11h(0x1a3)]({'name':a11h(0x1a7),'aliases':['di'],'usage':a11h(0x1a1),'validOpts':[],'shortDesc':a11h(0x197),'examples':['maka\x20aws:describe-instances',a11h(0x195)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const i=a11h;try{const a=new AWS();a[i(0x198)]();}catch(b){b&&Log[i(0x19c)](b),process[i(0x19f)](0x1);}},a11e);
1
+ const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x18e))/0x1+-parseInt(f(0x19d))/0x2+parseInt(f(0x19c))/0x3+parseInt(f(0x19b))/0x4+parseInt(f(0x18d))/0x5+-parseInt(f(0x199))/0x6*(-parseInt(f(0x18c))/0x7)+parseInt(f(0x19a))/0x8*(-parseInt(f(0x18f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x496d2));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x192)]()['search'](h(0x198))[h(0x192)]()['constructor'](a11a)[h(0x191)](h(0x198));});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x18c;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a11c(){const k=['(((.+)+)+)+$','1044CKOoHB','1408KXNQPb','184364owdmde','1585395MpROUY','151342OSzWDr','2184MeAuFn','1019000pxHWBJ','95893XhJvHy','28233mgUVoS','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','search','toString','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','apply','ec2describeInstances','maka\x20aws:describe-instances','exit'];a11c=function(){return k;};return a11c();}Command['create']({'name':'describe-instances','aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'shortDesc':a11i(0x193),'examples':[a11i(0x196),'maka\x20aws:di'],'description':a11i(0x190)},async function(){const j=a11i;try{const a=new AWS();a[j(0x195)]();}catch(b){b&&Log['error'](b),process[j(0x197)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1fd))/0x1*(-parseInt(f(0x1f4))/0x2)+parseInt(f(0x1f3))/0x3+-parseInt(f(0x1fa))/0x4+parseInt(f(0x1ee))/0x5+-parseInt(f(0x1f0))/0x6+parseInt(f(0x1f1))/0x7*(-parseInt(f(0x1f5))/0x8)+-parseInt(f(0x1f2))/0x9*(-parseInt(f(0x1ef))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x79843));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0x1f7)]()[g(0x1f6)](g(0x1fb))[g(0x1f7)]()['constructor'](a12a)[g(0x1f6)](g(0x1fb));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12h(0x1ff),'aliases':[a12h(0x1fc)],'usage':a12h(0x1f9),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':['maka\x20aws:describe-key-pairs',a12h(0x1fe)]},async function(){const i=a12h;try{const a=new AWS();a[i(0x1f8)]();}catch(b){b&&Log['error'](b),process['exit'](0x0);}},a12e);function a12c(){const j=['1868199BrjboM','2HivQsR','8IWisbu','search','toString','ec2describeKeys','maka\x20aws:describe-key-pairs','1038212ZjzAoY','(((.+)+)+)+$','dkp','271580YwQvHC','maka\x20aws:dkp','describe-key-pairs','2207895XKKjgv','30HCBlIS','610548WtiYhx','1009421cyEgXO','631539RZCElw'];a12c=function(){return j;};return a12c();}
1
+ const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xd2))/0x1*(parseInt(f(0xc9))/0x2)+parseInt(f(0xd3))/0x3*(parseInt(f(0xce))/0x4)+parseInt(f(0xc3))/0x5+-parseInt(f(0xd1))/0x6*(parseInt(f(0xcc))/0x7)+-parseInt(f(0xcf))/0x8*(parseInt(f(0xcb))/0x9)+parseInt(f(0xd0))/0xa+parseInt(f(0xc7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xc94b4));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0xc8)]()[g(0xca)]('(((.+)+)+)+$')[g(0xc8)]()['constructor'](a12a)[g(0xca)](g(0xcd));});a12a();function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xc2;let f=c[d];return f;},a12d(a,b);}import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'describe-key-pairs','aliases':['dkp'],'usage':a12h(0xc6),'validOpts':[],'shortDesc':a12h(0xc4),'examples':[a12h(0xc6),a12h(0xd4)]},async function(){const i=a12h;try{const a=new AWS();a[i(0xd5)]();}catch(b){b&&Log[i(0xc2)](b),process[i(0xc5)](0x0);}},a12e);function a12c(){const j=['2779278ErqCFT','1GTTNIS','10011pKpcmM','maka\x20aws:dkp','ec2describeKeys','error','6444275IehSGL','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','exit','maka\x20aws:describe-key-pairs','6071131zSRQLJ','toString','3253526MBIjTt','search','333ycALly','7bBUTNB','(((.+)+)+)+$','1496sWjKaB','119632SoKRHd','3789600AWlgbS'];a12c=function(){return j;};return a12c();}
@@ -1 +1 @@
1
- const a13o=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a13d(a,b);}(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x1d7))/0x1+-parseInt(l(0x1cb))/0x2+parseInt(l(0x1bc))/0x3*(parseInt(l(0x1d0))/0x4)+-parseInt(l(0x1c6))/0x5+-parseInt(l(0x1d3))/0x6*(-parseInt(l(0x1c8))/0x7)+-parseInt(l(0x1cc))/0x8+-parseInt(l(0x1bd))/0x9*(-parseInt(l(0x1d5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xf10df));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x1c7)]()['search'](n(0x1ca))['toString']()[n(0x1c2)](a13a)[n(0x1d9)]('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const s=['exit','notice','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','ID:\x20','\x20SG\x20NAME:\x20','1529268DcezGr','15642iUfnFW','name','error','includes','delete-security-group','constructor','maka\x20aws:delete-sg','forEach','isMakaProject','2813930wPViSm','toString','1239fOlosS','deleteSecurityGroup','(((.+)+)+)+$','2787398LehNMC','5373208qYGUDN','dsg','sgId','appName','8TBHKbc','Not\x20deleting\x20secuirty\x20group','ask','31344WYJDei','apply','14020KIsWRU','getMakaProjectConfig','765341IapRTi','\x20SGID:\x20','search'];a13c=function(){return s;};return a13c();}import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a13o(0x1c1),'aliases':[a13o(0x1cd)],'usage':a13o(0x1c3),'validOpts':[],'shortDesc':a13o(0x1b8),'examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1c5)]();let d='';if(c){const j=b[p(0x1d6)]();d=j[p(0x1cf)];}const {sgList:f}=await a['getSecurityGroups']();f['forEach'](function(k){const q=p;c&&k[q(0x1be)][q(0x1c0)](d)?Log[q(0x1db)](q(0x1ba)+k['id']+q(0x1bb)+k['name']+q(0x1d8)+k[q(0x1ce)]):Log['bright']('ID:\x20'+k['id']+q(0x1bb)+k[q(0x1be)]+q(0x1d8)+k[q(0x1ce)]);});let g='';const h=await Actions[p(0x1d2)](p(0x1b9));f[p(0x1c4)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1ce)]);});if(!g)throw Log[p(0x1bf)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions['confirm']('Deleting\x20a\x20'+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x1c9)](g),Log['success']('Deleted\x20'+g)):Log[p(0x1bf)](p(0x1d1)),process[p(0x1da)](0x0);}catch(k){k&&Log[p(0x1bf)](k),process[p(0x1da)](0x1);}},a13e);
1
+ function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x68;let f=c[d];return f;},a13d(a,b);}const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x71))/0x1+parseInt(l(0x8a))/0x2+-parseInt(l(0x6c))/0x3*(parseInt(l(0x6e))/0x4)+parseInt(l(0x6a))/0x5+parseInt(l(0x7c))/0x6+-parseInt(l(0x6d))/0x7*(parseInt(l(0x75))/0x8)+-parseInt(l(0x85))/0x9*(parseInt(l(0x7d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xb5339));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a['toString']()[n(0x87)](n(0x69))['toString']()[n(0x76)](a13a)[n(0x87)]('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a13c(){const s=['search','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','getSecurityGroups','2865936rZFhAM','apply','maka\x20aws:dsg','exit','forEach','notice','\x20SG\x20NAME:\x20','(((.+)+)+)+$','6555440roYreb','create','501387IXkWry','9345581LOMlQZ','20gympXL','ID:\x20','\x20SGID:\x20','356763VDaTHl','sgId','name','error','8uraIWJ','constructor','Deleted\x20','appName','Not\x20deleting\x20secuirty\x20group','success','dsg','5819928yOcjoT','11578780BNUlMs','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','includes','deleteSecurityGroup','Deleting\x20a\x20','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','isMakaProject','9fNKYtP','confirm'];a13c=function(){return s;};return a13c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x6b)]({'name':'delete-security-group','aliases':[a13o(0x7b)],'usage':'maka\x20aws:delete-sg','validOpts':[],'shortDesc':a13o(0x7e),'examples':['maka\x20aws:delete-sg',a13o(0x8c)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x84)]();let d='';if(c){const j=b['getMakaProjectConfig']();d=j[p(0x78)];}const {sgList:f}=await a[p(0x89)]();f[p(0x8e)](function(k){const q=p;c&&k[q(0x73)][q(0x7f)](d)?Log[q(0x8f)](q(0x6f)+k['id']+q(0x68)+k[q(0x73)]+q(0x70)+k[q(0x72)]):Log['bright'](q(0x6f)+k['id']+q(0x68)+k[q(0x73)]+q(0x70)+k[q(0x72)]);});let g='';const h=await Actions['ask'](p(0x82));f[p(0x8e)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x72)]);});if(!g)throw Log[p(0x74)](p(0x88));const i=await Actions[p(0x86)](p(0x81)+g+p(0x83),![]);i?(await a[p(0x80)](g),Log[p(0x7a)](p(0x77)+g)):Log[p(0x74)](p(0x79)),process[p(0x8d)](0x0);}catch(k){k&&Log[p(0x74)](k),process[p(0x8d)](0x1);}},a13e);
@@ -1 +1 @@
1
- const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x15d))/0x1+parseInt(f(0x168))/0x2+parseInt(f(0x16a))/0x3+-parseInt(f(0x164))/0x4*(-parseInt(f(0x15a))/0x5)+parseInt(f(0x166))/0x6+parseInt(f(0x153))/0x7*(parseInt(f(0x162))/0x8)+-parseInt(f(0x15f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x385de));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x161)]()[h(0x157)](h(0x154))['toString']()[h(0x158)](a14a)['search'](h(0x154));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x153;let f=c[d];return f;},a14d(a,b);}function a14c(){const k=['3052413WpwLic','apply','toString','68576aRBSJP','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','58368KTyvRb','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','1218366pfyArC','lecr','699860yUUFyg','success','175569IDfYCo','regions','56zPBnHc','(((.+)+)+)+$','list-ecr','exit','search','constructor','create','120WvWZdV','maka\x20aws:list-ecr','error','460263BYZaef','maka\x20aws:lecr\x20--regions=all'];a14c=function(){return k;};return a14c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x159)]({'name':a14i(0x155),'aliases':[a14i(0x167)],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x16b)],'shortDesc':a14i(0x165),'examples':[a14i(0x15b),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14i(0x15e)]},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x16b)]),Log[j(0x169)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x156)](0x0);}catch(d){Log[j(0x15c)](j(0x163)+d),process[j(0x156)](0x1);}},a14e);
1
+ const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0xea))/0x1+parseInt(f(0xf7))/0x2*(-parseInt(f(0xe5))/0x3)+-parseInt(f(0xf0))/0x4+parseInt(f(0xf4))/0x5*(parseInt(f(0xe7))/0x6)+-parseInt(f(0xfd))/0x7+parseInt(f(0xf2))/0x8*(parseInt(f(0xfc))/0x9)+parseInt(f(0xf6))/0xa*(parseInt(f(0xff))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x7b47c));function a14c(){const k=['search','(((.+)+)+)+$','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','771628dRcOyS','listAllEcrRepositories','276248DtaXhz','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','15Asxesx','toString','394090uXAhJm','2PLtveO','Completed\x20listing\x20ECR\x20repositories.','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','regions','create','189TzBmQM','5017285RIzrJq','exit','517kAoUIa','error','apply','2413431JQEuKz','constructor','585738wuUgfi','maka\x20aws:lecr\x20--regions=all','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','651148fdoRlI','success','maka\x20aws:list-ecr'];a14c=function(){return k;};return a14c();}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0xf5)]()[h(0xed)](h(0xee))[h(0xf5)]()[h(0xe6)](a14a)['search']('(((.+)+)+)+$');});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xe3;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0xfb)]({'name':'list-ecr','aliases':['lecr'],'usage':a14i(0xef),'requiredOpts':[],'validOpts':[a14i(0xfa)],'shortDesc':a14i(0xf9),'examples':[a14i(0xec),a14i(0xf3),a14i(0xe8)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0xf1)](b[j(0xfa)]),Log[j(0xeb)](j(0xf8)),process['exit'](0x0);}catch(d){Log[j(0xe3)](j(0xe9)+d),process[j(0xfe)](0x1);}},a14e);
@@ -1 +1 @@
1
- function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x8b;let f=c[d];return f;},a15d(a,b);}const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x94))/0x1+parseInt(f(0x96))/0x2*(parseInt(f(0xa1))/0x3)+-parseInt(f(0x9c))/0x4*(-parseInt(f(0xa5))/0x5)+-parseInt(f(0x91))/0x6*(parseInt(f(0x98))/0x7)+parseInt(f(0x9d))/0x8+parseInt(f(0x8d))/0x9+-parseInt(f(0x9f))/0xa*(parseInt(f(0x93))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd7b42));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x9e)]()['search'](h(0xa4))[h(0x9e)]()[h(0x92)](a15a)[h(0x90)](h(0xa4));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a15c(){const k=['115SckoWw','chooseInstance','instanceId','exit','6912963bupBJn','apply','confirm','search','48tcUakX','constructor','11ucIOIe','1169438DxKlbU','status','302964NkZiXH','Reboot\x20an\x20EC2\x20instance','45521NqgqhZ','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','running','41612uneVqf','10890120XDQtbW','toString','30569790MMXdxu','maka\x20aws:reboot-instance','9vBXhZI','name','error','(((.+)+)+)+$'];a15c=function(){return k;};return a15c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':['rbi'],'usage':a15i(0xa0),'validOpts':[],'shortDesc':a15i(0x97),'examples':[a15i(0xa0),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xa6)]();if(b?.[j(0x95)]===j(0x9b)){const c=await Actions[j(0x8f)](j(0x99)+b[j(0xa2)]+'\x20Ready?');c&&b[j(0x8b)]?a['ec2rebootInstance']({'instanceId':b[j(0x8b)]}):Log[j(0xa3)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0xa2)]+'\x20is\x20still\x20running.');}else Log['error'](j(0x9a));}catch(d){d&&Log['error'](d),process[j(0x8c)](0x1);}},a15e);
1
+ const a15i=a15d;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a15d(a,b);}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x1c5))/0x1*(-parseInt(f(0x1dc))/0x2)+-parseInt(f(0x1d0))/0x3*(-parseInt(f(0x1c6))/0x4)+-parseInt(f(0x1cd))/0x5*(-parseInt(f(0x1ce))/0x6)+parseInt(f(0x1d7))/0x7+-parseInt(f(0x1db))/0x8*(-parseInt(f(0x1dd))/0x9)+parseInt(f(0x1c8))/0xa+-parseInt(f(0x1d3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x71cae));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1c9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x1c7)]()[h(0x1d1)](h(0x1d5))[h(0x1c7)]()['constructor'](a15a)[h(0x1d1)](h(0x1d5));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15c(){const k=['rbi','(((.+)+)+)+$','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','2303077NQWlHR','create','maka\x20aws:reboot-instance','maka\x20aws:rbi','2058488NAWcuo','8QuDngb','18tSjZjL','error','confirm','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','48913qIEbfM','2302008BfnjKz','toString','7173820SrTuox','apply','exit','running','name','350hsItti','78954MIkhri','\x20is\x20still\x20running.','3asHynK','search','reboot-instance','30659255sfPIzt'];a15c=function(){return k;};return a15c();}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[a15i(0x1d8)]({'name':a15i(0x1d2),'aliases':[a15i(0x1d4)],'usage':a15i(0x1d9),'validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a15i(0x1d9),a15i(0x1da)]},async function(){const j=a15i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.['status']===j(0x1cb)){const c=await Actions[j(0x1c3)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+'\x20Ready?');c&&b['instanceId']?a['ec2rebootInstance']({'instanceId':b['instanceId']}):Log[j(0x1de)](j(0x1d6)+b[j(0x1cc)]+j(0x1cf));}else Log[j(0x1de)](j(0x1c4));}catch(d){d&&Log['error'](d),process[j(0x1ca)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a16I=a16d;function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xf9;let f=c[d];return f;},a16d(a,b);}(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0xfd))/0x1*(parseInt(E(0x11e))/0x2)+-parseInt(E(0xfe))/0x3+-parseInt(E(0x10b))/0x4*(-parseInt(E(0x11f))/0x5)+parseInt(E(0x106))/0x6*(-parseInt(E(0x11b))/0x7)+-parseInt(E(0x123))/0x8+parseInt(E(0x104))/0x9+parseInt(E(0x12f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x96aea));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x126)]()[G(0x101)](G(0x10c))['toString']()[G(0x134)](a16a)[G(0x101)](G(0x10c));});a16a();import a16e from'./aws.command.js';function a16c(){const K=['15801030nFmlBb','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','123\x20Glorious\x20Way','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Do\x20you\x20wish\x20to\x20register\x20','constructor','Contact\x20Email\x20[mail@example.com]:\x20','maka\x20aws:register-domain-name','mail@example.com','maka\x20aws:rdn\x20--domain=example.com','11054AFKHIO','3508644jmYOPN','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','rdn','search','Domain\x20name\x20is\x20unavailable','Are\x20you\x20sure?','7353072oRttWz','OrganizationName','4865550ftiwoL','My\x20Comanpy,\x20LLC.','PERSON','Zip\x20Code\x20[96816]:\x20','The\x20domain\x20name:\x20','52812OSYOjM','(((.+)+)+)+$','Choose\x20contact\x20type','list','checkDomainAvailability','Country\x20Code\x20[US]:\x20','warn','maka\x20aws:register-domain-name\x20--domain=example.com','\x20/\x20Year)','Person','COMPANY','confirm','domain','\x20/\x20Year\x20\x0a','ask','PUBLIC_BODY','7sFQpJR','\x20for\x20','ASSOCIATION','34gVuPtN','370wVhozR','values','Auto\x20Renew:\x20','\x20years\x20(','4708384DODjze','Duration\x20in\x20years\x20[1]:\x20','Contact\x20Last\x20Name\x20[Person]:\x20','toString','notice','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Address\x20Line\x202:\x20','State\x20[HI]:\x20','RESELLER','error','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','apply'];a16c=function(){return K;};return a16c();}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';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0x120)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':'register-domain-name','aliases':[a16I(0x100)],'usage':a16I(0xfa),'requiredOpts':[a16I(0x117)],'validOpts':[],'shortDesc':a16I(0x132),'examples':[a16I(0x112),a16I(0xfc)]},async function(a,b){const J=a16I;try{const c=b[J(0x117)],d=new AWS(),{available:f,cost:g}=await d[J(0x10f)](c);if(f&&g){Log[J(0x127)](J(0x10a)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0x111)]('\x20\x20'+h+'\x20'+i+J(0x118));const j=await Actions[J(0x116)](J(0x133)+c+'\x20?',![]);if(j){const k={'type':J(0x10e),'name':'contactType','message':J(0x10d),'choices':[J(0x11d),J(0x115),J(0x108),J(0x11a),J(0x12b)]},l=await Actions['ask'](J(0x124))||'1',m=await Actions[J(0x119)]('Contact\x20First\x20Name\x20[Contact]:\x20')||'Contact',n=await Actions[J(0x119)](J(0x125))||J(0x114),{contactType:o}=await Actions['options'](k),p=await Actions['ask']('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||J(0x131),q=await Actions[J(0x119)](J(0x129)),r=await Actions[J(0x119)](J(0x109))||'96816',s=await Actions[J(0x119)](J(0x12a))||'HI',t=await Actions[J(0x119)](J(0x110))||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error']('Invalid\x202\x20character\x20country\x20code');const v=await Actions[J(0x119)](J(0x128))||'+1.5555555555',w=await Actions['ask'](J(0xff))||'+1.5555555556',x=await Actions[J(0x119)](J(0xf9))||J(0xfb),y=await Actions['confirm'](J(0x121)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!=='PERSON'){const C=await Actions['ask'](J(0x12d))||J(0x107);z[J(0x105)]=C;}const A=h||0x0*parseInt(l);Log[J(0x127)](J(0x130)),Log[J(0x111)](A+'\x20'+i+J(0x11c)+l+J(0x122)+h+'\x20'+i+J(0x113));const B=await Actions[J(0x116)](J(0x103));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw J(0x102);}catch(D){D&&Log[J(0x12c)](D),process['exit'](0x0);}},a16e);
1
+ const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x1f4))/0x1+parseInt(E(0x1e7))/0x2+parseInt(E(0x1df))/0x3+parseInt(E(0x1f0))/0x4+-parseInt(E(0x1ea))/0x5+parseInt(E(0x1f2))/0x6*(-parseInt(E(0x1d4))/0x7)+-parseInt(E(0x1eb))/0x8*(parseInt(E(0x1cf))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xba816));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x1d2)]()['search'](G(0x1fa))[G(0x1d2)]()[G(0x1f6)](a16a)['search'](G(0x1fa));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a16d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a16c(){const K=['4495482xbwASx','ask','exit','mail@example.com','Address\x20Line\x202:\x20','RESELLER','\x20/\x20Year\x20\x0a','notice','2880608ciFwhw','error','confirm','7011940mZCwLz','561368ezJbaP','96816','options','+1.5555555555','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','867240vKHnXR','list','6iEzWFj','Contact','484092yOLsBl','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','constructor','ASSOCIATION','Contact\x20Last\x20Name\x20[Person]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','(((.+)+)+)+$','State\x20[HI]:\x20','Contact\x20First\x20Name\x20[Contact]:\x20','values','checkDomainAvailability','\x20is\x20available\x20for:','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','domain','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','\x20/\x20Year)','rdn','Contact\x20Email\x20[mail@example.com]:\x20','Invalid\x202\x20character\x20country\x20code','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','117GsmnCA','maka\x20aws:register-domain-name','COMPANY','toString','create','3928141WiNQkJ','The\x20domain\x20name:\x20','OrganizationName','Duration\x20in\x20years\x20[1]:\x20','PERSON','123\x20Glorious\x20Way','contactType','\x20years\x20(','PUBLIC_BODY','Domain\x20name\x20is\x20unavailable','apply'];a16c=function(){return K;};return a16c();}import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0x1fd)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x1d3)]({'name':'register-domain-name','aliases':[a16I(0x1cb)],'usage':a16I(0x1d0),'requiredOpts':[a16I(0x201)],'validOpts':[],'shortDesc':a16I(0x200),'examples':[a16I(0x1f9),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const J=a16I;try{const c=b[J(0x201)],d=new AWS(),{available:f,cost:g}=await d[J(0x1fe)](c);if(f&&g){Log['notice'](J(0x1d5)+c+J(0x1ff));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0x1e5));const j=await Actions[J(0x1e9)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':J(0x1f1),'name':J(0x1da),'message':'Choose\x20contact\x20type','choices':[J(0x1f7),J(0x1d1),J(0x1d8),J(0x1dc),J(0x1e4)]},l=await Actions[J(0x1e0)](J(0x1d7))||'1',m=await Actions[J(0x1e0)](J(0x1fc))||J(0x1f3),n=await Actions[J(0x1e0)](J(0x1f8))||'Person',{contactType:o}=await Actions[J(0x1ed)](k),p=await Actions[J(0x1e0)](J(0x1c9))||J(0x1d9),q=await Actions[J(0x1e0)](J(0x1e3)),r=await Actions['ask']('Zip\x20Code\x20[96816]:\x20')||J(0x1ec),s=await Actions[J(0x1e0)](J(0x1fb))||'HI',t=await Actions[J(0x1e0)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x1cd));const v=await Actions[J(0x1e0)](J(0x1ce))||J(0x1ee),w=await Actions[J(0x1e0)](J(0x202))||'+1.5555555556',x=await Actions[J(0x1e0)](J(0x1cc))||J(0x1e2),y=await Actions[J(0x1e9)]('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0x1d8)){const C=await Actions[J(0x1e0)](J(0x1f5))||'My\x20Comanpy,\x20LLC.';z[J(0x1d6)]=C;}const A=h||0x0*parseInt(l);Log[J(0x1e6)](J(0x1ef)),Log['warn'](A+'\x20'+i+'\x20for\x20'+l+J(0x1db)+h+'\x20'+i+J(0x1ca));const B=await Actions[J(0x1e9)]('Are\x20you\x20sure?');B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw J(0x1dd);}catch(D){D&&Log[J(0x1e8)](D),process[J(0x1e1)](0x0);}},a16e);
@@ -1 +1 @@
1
- const a17j=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x195))/0x1*(-parseInt(h(0x17f))/0x2)+parseInt(h(0x190))/0x3+parseInt(h(0x181))/0x4*(parseInt(h(0x183))/0x5)+-parseInt(h(0x19e))/0x6*(-parseInt(h(0x185))/0x7)+parseInt(h(0x199))/0x8+-parseInt(h(0x19d))/0x9+-parseInt(h(0x18e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x854b0));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const i=a17d;return a17a['toString']()[i(0x18f)](i(0x17d))[i(0x18d)]()[i(0x188)](a17a)[i(0x18f)](i(0x17d));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17c(){const m=['constructor','exit','Deleted\x20','Deleting\x20a\x20','create','toString','15309480BlOegS','search','2979531aYYkML','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ask','maka\x20aws:remove-key-pair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','6263nJgQOp','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','error','rkp','5871480sYcSOL','deleteKeyPair','Not\x20deleting\x20keypair','Please\x20choose\x20a\x20key\x20to\x20delete:','5472882EZNzUJ','942VVYneP','forEach','(((.+)+)+)+$','confirm','94WQJVRR','maka\x20aws:rkp','548mzgdpL','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','33080FbyReh','success','15421aPAgUU','name','remove-key-pair'];a17c=function(){return m;};return a17c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x17c;let f=c[d];return f;},a17d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a17j(0x18c)]({'name':a17j(0x187),'aliases':[a17j(0x198)],'usage':a17j(0x193),'validOpts':[],'shortDesc':a17j(0x182),'description':a17j(0x196),'examples':[a17j(0x193),a17j(0x180)]},async function(){const k=a17j;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[k(0x192)](k(0x19c));b?.[k(0x17c)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x186)]);});if(!c)throw Log[k(0x197)](k(0x194));const f=await Actions[k(0x17e)](k(0x18b)+c+k(0x191),![]);f?(await a[k(0x19a)](c),Log[k(0x184)](k(0x18a)+c)):Log[k(0x197)](k(0x19b)),process[k(0x189)](0x0);}catch(g){g&&Log[k(0x197)](g),process[k(0x189)](0x1);}},a17e);
1
+ const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x1c6))/0x1+parseInt(h(0x1db))/0x2+parseInt(h(0x1d0))/0x3*(parseInt(h(0x1d2))/0x4)+-parseInt(h(0x1c9))/0x5+-parseInt(h(0x1de))/0x6*(-parseInt(h(0x1cc))/0x7)+parseInt(h(0x1d8))/0x8*(parseInt(h(0x1ca))/0x9)+-parseInt(h(0x1dd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x4fd5a));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x1dc)]()['search'](j(0x1c4))[j(0x1dc)]()[j(0x1c8)](a17a)[j(0x1d1)](j(0x1c4));});a17a();function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a17d(a,b);}import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a17c(){const m=['ask','7yBoPPG','forEach','exit','error','21201jCSFnk','search','140RCUFtM','Not\x20deleting\x20keypair','confirm','apply','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','8YTltDz','create','rkp','957092IHNIYQ','toString','2909800eCeCvU','2703198uVvthJ','maka\x20aws:rkp','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','remove-key-pair','maka\x20aws:remove-key-pair','deleteKeyPair','(((.+)+)+)+$','ec2describeKeys','645598fEeKMW','Deleted\x20','constructor','821495QOstZT','2263095SeoWIB'];a17c=function(){return m;};return a17c();}import{Log}from'../../tools/log/log.class.js';Command[a17k(0x1d9)]({'name':a17k(0x1c1),'aliases':[a17k(0x1da)],'usage':a17k(0x1c2),'validOpts':[],'shortDesc':a17k(0x1c0),'description':a17k(0x1d7),'examples':[a17k(0x1c2),a17k(0x1df)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x1c5)]();let c=undefined;const d=await Actions[l(0x1cb)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0x1cd)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x1cf)](l(0x1d6));const f=await Actions[l(0x1d4)]('Deleting\x20a\x20'+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[l(0x1c3)](c),Log['success'](l(0x1c7)+c)):Log[l(0x1cf)](l(0x1d3)),process[l(0x1ce)](0x0);}catch(g){g&&Log['error'](g),process[l(0x1ce)](0x1);}},a17e);
@@ -1 +1 @@
1
- const a18o=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(0x19d))/0x1+-parseInt(m(0x19b))/0x2*(-parseInt(m(0x1b9))/0x3)+-parseInt(m(0x1bd))/0x4*(-parseInt(m(0x197))/0x5)+-parseInt(m(0x1ac))/0x6+-parseInt(m(0x193))/0x7*(-parseInt(m(0x195))/0x8)+parseInt(m(0x19c))/0x9*(parseInt(m(0x1a7))/0xa)+parseInt(m(0x191))/0xb*(-parseInt(m(0x1be))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x7b4a0));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0x192)]()['search']('(((.+)+)+)+$')[n(0x192)]()['constructor'](a18a)[n(0x1bb)](n(0x1ba));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';function a18c(){const q=['set-host','62887StuAzA','toString','1393lklSlX','maka\x20aws:set-host\x20--env\x20dev','26704lgtAEa','maka\x20aws\x20set-host','541435ACOVmn','exit','writeFileSync','join','4766GBnBhs','36yEvZmk','204795BYKEqU','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','public','sth','getEnvFromShorthand','success','readFileSync','fsi','inherit','appName','246640RQRRrS','private','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','template','\x20IP\x20to\x20','2922738IHuGlv','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','getAppConfigPath','publicIp','create','config/ssh.json','getMakaProjectConfig','utf8','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','cat\x20','privateIp','sep','isFile','1203tZNpqt','(((.+)+)+)+$','search','host','16kbHgIX','2004kmdHTb','\x0aSaved\x20host\x20','env','stringify','ssh.json'];a18c=function(){return q;};return a18c();}import{AWS}from'../../tools/aws/aws.class.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x18d;let f=c[d];return f;},a18d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a18o(0x1b0)]({'name':a18o(0x190),'aliases':[a18o(0x1a0)],'usage':a18o(0x196),'mustBeInMakaProject':!![],'requiredOpts':[a18o(0x18d)],'validOpts':[],'shortDesc':a18o(0x19e),'description':a18o(0x1ad),'examples':[a18o(0x194),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x1a4)][p(0x1a1)](b[p(0x18d)]),f=this[p(0x1a4)][p(0x1ae)](d),g=this[p(0x1a4)][p(0x1b2)](),h=await c['chooseInstance'](),i=a18e[p(0x19a)](f,p(0x18f));!this[p(0x1a4)][p(0x1b8)](i)&&await this[p(0x1a4)][p(0x1aa)]({'srcPath':p(0x1b1),'destPath':i,'context':{'app':g[p(0x1a6)]},'config':g});const j=JSON['parse'](a18f[p(0x1a3)](i,p(0x1b3))),k=await Actions['ask'](p(0x1a9))||p(0x19f);if(k){if(k===p(0x19f)||k===p(0x1a8)){if(k==='public')j[p(0x1bc)]=h?.[p(0x1af)];else k===p(0x1a8)&&(j[p(0x1bc)]=h?.[p(0x1b6)]);}else throw p(0x1b4);}else j[p(0x1bc)]=h?.[p(0x1b6)];a18f[p(0x199)](a18e[p(0x19a)](f,p(0x18f)),JSON[p(0x18e)](j,null,0x2)),execSync(p(0x1b5)+a18e['join'](f,p(0x18f)),{'stdio':p(0x1a5)}),Log[p(0x1a2)](p(0x1bf)+k+p(0x1ab)+f+a18e[p(0x1b7)]+'ssh.json');}catch(l){l&&Log['error'](l),process[p(0x198)](0x0);}},a18g);
1
+ const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=parseInt(m(0xb5))/0x1+-parseInt(m(0x9c))/0x2+-parseInt(m(0xa7))/0x3+-parseInt(m(0xa9))/0x4+-parseInt(m(0xab))/0x5+-parseInt(m(0x9a))/0x6*(-parseInt(m(0xb3))/0x7)+parseInt(m(0xaa))/0x8*(parseInt(m(0xb7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x28931));function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x92;let f=c[d];return f;},a18d(a,b);}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0xb6)]()['search'](o(0xb8))[o(0xb6)]()[o(0x93)](a18a)['search'](o(0xb8));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g 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[a18p(0xa0)]({'name':'set-host','aliases':[a18p(0xbc)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a18p(0x99)],'validOpts':[],'shortDesc':a18p(0xb2),'description':a18p(0x98),'examples':[a18p(0x9e),a18p(0xa3)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this[q(0xbb)][q(0xa2)](b[q(0x99)]),f=this[q(0xbb)]['getAppConfigPath'](d),g=this['fsi']['getMakaProjectConfig'](),h=await c[q(0xad)](),i=a18e[q(0x95)](f,q(0xa5));!this['fsi']['isFile'](i)&&await this[q(0xbb)]['template']({'srcPath':q(0xa6),'destPath':i,'context':{'app':g['appName']},'config':g});const j=JSON[q(0xac)](a18f[q(0xb0)](i,q(0xa1))),k=await Actions[q(0xa8)](q(0x94))||'public';if(k){if(k===q(0x9d)||k===q(0x97)){if(k===q(0x9d))j['host']=h?.[q(0xb9)];else k===q(0x97)&&(j['host']=h?.[q(0x96)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else j[q(0xba)]=h?.['privateIp'];a18f[q(0x9f)](a18e[q(0x95)](f,q(0xa5)),JSON[q(0xae)](j,null,0x2)),execSync(q(0xa4)+a18e['join'](f,q(0xa5)),{'stdio':q(0xb4)}),Log[q(0x9b)](q(0x92)+k+q(0xbd)+f+a18e['sep']+q(0xa5));}catch(l){l&&Log['error'](l),process[q(0xb1)](0x0);}},a18g);function a18c(){const r=['stringify','apply','readFileSync','exit','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','87276tIERMJ','inherit','293948cGcHek','toString','53685SqkeAE','(((.+)+)+)+$','publicIp','host','fsi','sth','\x20IP\x20to\x20','\x0aSaved\x20host\x20','constructor','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','join','privateIp','private','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','env','84ZflVsQ','success','472692jzQraO','public','maka\x20aws:set-host\x20--env\x20dev','writeFileSync','create','utf8','getEnvFromShorthand','maka\x20aws:sth\x20--env\x20prod','cat\x20','ssh.json','config/ssh.json','821694YTjNNZ','ask','1198720sStTwR','1008YhExci','1219865cxEzyn','parse','chooseInstance'];a18c=function(){return r;};return a18c();}
@@ -1 +1 @@
1
- const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x1a5))/0x1+parseInt(f(0x19d))/0x2*(-parseInt(f(0x1ad))/0x3)+parseInt(f(0x1aa))/0x4+-parseInt(f(0x198))/0x5+-parseInt(f(0x1a7))/0x6+-parseInt(f(0x195))/0x7*(-parseInt(f(0x196))/0x8)+parseInt(f(0x19b))/0x9*(parseInt(f(0x1a2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xd22d9));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1a4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x1a6)]()['search'](h(0x19a))[h(0x1a6)]()[h(0x19f)](a19a)[h(0x1a3)](h(0x19a));});a19a();import a19e from'./aws.command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x195;let f=c[d];return f;},a19d(a,b);}import{Command}from'../../command.js';function a19c(){const k=['744176aImjkD','confirm','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','1788288ygZwfC','ec2terminateInstance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','name','running','exit','\x20Ready?','1638HxCdJq','43984aPumXO','terminate-instance','650610CJXZaa','chooseInstance','(((.+)+)+)+$','9387vwcTnk','maka\x20aws:ti','2HfOObj','Terminate\x20an\x20EC2\x20instance','constructor','instanceId','maka\x20aws:terminate-instance','19170okoTSO','search','apply','1111406lXkNcD','toString','4640964mxHjfp','error','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).'];a19c=function(){return k;};return a19c();}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['create']({'name':a19i(0x197),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'shortDesc':a19i(0x19e),'description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a19i(0x1a1),a19i(0x19c)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x199)]();if(b?.[j(0x1a0)]&&b?.['status']===j(0x1b1)){const c=await Actions[j(0x1ab)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+j(0x1b3));c?a[j(0x1ae)]({'instanceId':b[j(0x1a0)]}):Log[j(0x1a8)](j(0x1ac)+b[j(0x1b0)]+j(0x1a9));}else Log[j(0x1a8)](j(0x1af));}catch(d){d&&Log['error'](d),process[j(0x1b2)](0x1);}},a19e);
1
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x1f6))/0x1+parseInt(f(0x204))/0x2+-parseInt(f(0x208))/0x3*(-parseInt(f(0x1f9))/0x4)+-parseInt(f(0x1fc))/0x5*(-parseInt(f(0x1f5))/0x6)+-parseInt(f(0x1fa))/0x7+parseInt(f(0x1ef))/0x8+parseInt(f(0x1ee))/0x9*(-parseInt(f(0x1f0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x7af1d));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1fe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x206)]()[h(0x209)](h(0x1f4))[h(0x206)]()[h(0x1ed)](a19a)['search'](h(0x1f4));});function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a19d(a,b);}function a19c(){const k=['\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','toString','name','5685MxEeoB','search','\x20Ready?','constructor','1449zqVNAT','1326992XKcfQv','34940HwteLD','instanceId','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','ec2terminateInstance','(((.+)+)+)+$','961626IHWeKv','615347EmQZEr','chooseInstance','running','1012PpADxg','6754965JpfUHO','maka\x20aws:terminate-instance','10HhGUlg','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','apply','exit','terminate-instance','error','Terminate\x20an\x20EC2\x20instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','899824EecoUq'];a19c=function(){return k;};return a19c();}a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a19i(0x200),'aliases':['ti'],'usage':a19i(0x1fb),'validOpts':[],'shortDesc':a19i(0x202),'description':a19i(0x1f2),'examples':[a19i(0x1fb),'maka\x20aws:ti']},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x1f7)]();if(b?.[j(0x1f1)]&&b?.['status']===j(0x1f8)){const c=await Actions['confirm']('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x207)]+j(0x1ec));c?a[j(0x1f3)]({'instanceId':b[j(0x1f1)]}):Log[j(0x201)](j(0x1fd)+b[j(0x207)]+j(0x205));}else Log['error'](j(0x203));}catch(d){d&&Log[j(0x201)](d),process[j(0x1ff)](0x1);}},a19e);
@@ -1 +1 @@
1
- (function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x181))/0x1*(-parseInt(f(0x178))/0x2)+parseInt(f(0x175))/0x3*(parseInt(f(0x177))/0x4)+parseInt(f(0x180))/0x5*(parseInt(f(0x17d))/0x6)+-parseInt(f(0x182))/0x7+-parseInt(f(0x17c))/0x8*(-parseInt(f(0x184))/0x9)+parseInt(f(0x176))/0xa+-parseInt(f(0x17a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x3d80e));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x179)]()[h(0x17e)](h(0x17f))[h(0x179)]()[h(0x17b)](a20a)[h(0x17e)](h(0x17f));});a20a();import'./build.js';function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x175;var f=c[d];return f;},a20d(a,b);}import'./docker.sub.cmd.js';function a20c(){var i=['139122tsoKjI','4539030MqHvXD','36KEfxcq','22856avimft','toString','13664849cQLaBS','constructor','2808584MZXEmQ','6iFFneU','search','(((.+)+)+)+$','2222970hXrYmq','5hzQKyi','1609293VMyKpK','apply','9GOtCaZ'];a20c=function(){return i;};return a20c();}
1
+ (function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0xab))/0x1+parseInt(f(0xa6))/0x2+-parseInt(f(0xaf))/0x3+parseInt(f(0xa4))/0x4*(-parseInt(f(0xaa))/0x5)+parseInt(f(0xae))/0x6*(-parseInt(f(0xa5))/0x7)+parseInt(f(0xa3))/0x8*(parseInt(f(0xa9))/0x9)+parseInt(f(0xa8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x4a06a));var a20b=(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;};}()),a20a=a20b(this,function(){var g=a20d;return a20a[g(0xa7)]()[g(0xac)](g(0xad))[g(0xa7)]()['constructor'](a20a)[g(0xac)]('(((.+)+)+)+$');});a20a();import'./build.js';import'./docker.sub.cmd.js';function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0xa3;var f=c[d];return f;},a20d(a,b);}function a20c(){var h=['429540StJbya','32vEkNWj','4qhDfXq','3213980AWSxGb','179406CKnuYs','toString','6254810LFhzkV','613179KzWnjl','2660795JVMQLo','449981vadgjK','search','(((.+)+)+)+$','6uutBSf'];a20c=function(){return h;};return a20c();}
@@ -1 +1 @@
1
- const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=parseInt(n(0xf7))/0x1+-parseInt(n(0xfd))/0x2+parseInt(n(0x10a))/0x3+-parseInt(n(0x102))/0x4+parseInt(n(0x11c))/0x5+-parseInt(n(0x103))/0x6+parseInt(n(0x11d))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xb2262));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x113)]()[p(0x11a)]('(((.+)+)+)+$')[p(0x113)]()[p(0x109)](a21a)[p(0x11a)](p(0x104));});a21a();function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0xf7;let f=c[d];return f;},a21d(a,b);}import a21e from'path';function a21c(){const t=['333394caAJXe','pathFromProject','--release','autoupdate','slice','4446724kHTRzE','8402550lICrLt','(((.+)+)+)+$','create','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','invokeMeteorCommand',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','constructor','1508649RbHOwG','fsi','exit','--force','maka\x20build','splice','confirm','error','concat','toString','getGlobalMeteorVersion','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','apply','getProjectMeteorVersion','checkMeteorPackage','force','search','forEach','3764455NecQSA','11982817EOaLNm','440896gHdVGg','build','join','existsSync','update','app.tar.gz'];a21c=function(){return t;};return a21c();}import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x105)]({'name':a21q(0xf8),'usage':a21q(0x10e),'validOpts':[a21q(0x119)],'aliases':['b'],'shortDesc':a21q(0x106),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':[a21q(0x10e)]},async function(a,b){const r=a21q;try{await this['fsi'][r(0x118)](r(0x100),{'shouldInstall':!![]});const c=b['force'];if(!c){const g=this[r(0x10b)][r(0x114)](),h=this['fsi'][r(0x117)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x110)]('This\x20project\x27s\x20meteor\x20version\x20('+h+r(0x108)+g+').\x20Update?');j&&this[r(0x10b)][r(0x107)](r(0xfb),[r(0xff),g]);}}const d=[this[r(0x10b)][r(0xfe)]({'pathParts':[r(0xf8)]})][r(0x112)](process['argv'][r(0x101)](0x3)),f=a21e[r(0xf9)](this[r(0x10b)][r(0xfe)]({}),'build',r(0xfc));if(a21f[r(0xfa)](f)){const k=c??await Actions[r(0x110)](r(0x115));if(!k)throw Log[r(0x111)]('Aborted.');}d[r(0x11b)]((l,m)=>{const s=r;l===s(0x10d)&&d[s(0x10f)](m,0x2);}),this[r(0x10b)]['invokeMeteorCommand']('build',d);}catch(l){console['error'](l),process[r(0x10c)](0x0);}});export default BuildCommand;
1
+ function a21c(){const s=['pathFromProject','2606364BPZBCF','slice','update','getProjectMeteorVersion','build','(((.+)+)+)+$','checkMeteorPackage','114YhPpRO','27CklCJu','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','fsi','maka\x20build','app.tar.gz','17950617lwndYJ','argv','1694190SuvByv','concat','confirm','This\x20project\x27s\x20meteor\x20version\x20(','error','236845iASsrr','5950798TvKPqn','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','54606YSXsiU','--force','search','autoupdate','invokeMeteorCommand','existsSync','forEach','toString','join','exit','constructor','force','Aborted.','4093040tYGjcp'];a21c=function(){return s;};return a21c();}const a21p=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x1bf))/0x1*(-parseInt(n(0x1cf))/0x2)+parseInt(n(0x1c6))/0x3+parseInt(n(0x1de))/0x4+-parseInt(n(0x1cb))/0x5*(-parseInt(n(0x1be))/0x6)+-parseInt(n(0x1cc))/0x7+parseInt(n(0x1dc))/0x8+-parseInt(n(0x1c4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x7f144));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const o=a21d;return a21a[o(0x1d6)]()['search'](o(0x1bc))[o(0x1d6)]()[o(0x1d9)](a21a)[o(0x1d1)](o(0x1bc));});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a21d(a,b);}const BuildCommand=Command['create']({'name':'build','usage':a21p(0x1c2),'validOpts':['force'],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a21p(0x1c0),'examples':['maka\x20build']},async function(a,b){const q=a21p;try{await this[q(0x1c1)][q(0x1bd)](q(0x1d2),{'shouldInstall':!![]});const c=b[q(0x1da)];if(!c){const g=this[q(0x1c1)]['getGlobalMeteorVersion'](),h=this[q(0x1c1)][q(0x1e1)](),i=a21g['gt'](g,h);if(i){const j=await Actions[q(0x1c8)](q(0x1c9)+h+q(0x1ce)+g+').\x20Update?');j&&this[q(0x1c1)][q(0x1d3)](q(0x1e0),['--release',g]);}}const d=[this[q(0x1c1)][q(0x1dd)]({'pathParts':['build']})][q(0x1c7)](process[q(0x1c5)][q(0x1df)](0x3)),f=a21e[q(0x1d7)](this[q(0x1c1)]['pathFromProject']({}),q(0x1bb),q(0x1c3));if(a21f[q(0x1d4)](f)){const k=c??await Actions[q(0x1c8)](q(0x1cd));if(!k)throw Log[q(0x1ca)](q(0x1db));}d[q(0x1d5)]((l,m)=>{const r=q;l===r(0x1d0)&&d['splice'](m,0x2);}),this[q(0x1c1)][q(0x1d3)](q(0x1bb),d);}catch(l){console['error'](l),process[q(0x1d8)](0x0);}});export default BuildCommand;