@maka/maka-cli 4.12.20 → 4.12.21

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 (160) 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/templates/meteor/config/docker-compose.yaml +1 -4
  140. package/bundle/obf/src/templates/service/docker/Dockerfile +5 -0
  141. package/bundle/obf/src/tool.js +1 -1
  142. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  143. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  144. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  146. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  148. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/https/https.class.js +1 -1
  150. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  151. package/bundle/obf/src/tools/log/log.class.js +1 -1
  152. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/options/options.class.js +1 -1
  154. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  155. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  156. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  158. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  160. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "4.12.20",
3
+ "version": "4.12.21",
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
- function a0c(){const z=['Alias','_commands','push','shortDesc','split','slice','fsi','\x20not\x20found','Sub-Commands:','generate','mustBeLoggedIn','Command\x20format\x20is\x20incorrect','Command.create\x20requires\x20a\x20handler\x20function!','notice','Command\x20requires\x20a\x20name','function','usage','796098wktrjm','sort','setColorMode','1169344pzRekU','invoke','processAndRunCommand','search','create','minOptsLength','run','3360390ojDUSm','unshift','toString','forEach','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Command\x20not\x20found','options','validateParams','number','validateMakaSubscription','bright','match','join','maxOptsLength','Command\x20requires\x20a\x20handler\x20function','3065379tZhbTX','length','error','mustBeInMakaProject','3181945Lykdvr','127190mlUXSn','getGlobalConfig','DARK','maybeProxyCommandToMeteor','localeCompare','Command\x20','validateUserIsLoggedIn','There\x20is\x20no\x20Meteor\x20application\x20here','tableList','minArgLength','murder','624752wuHqic','pallet','Too\x20few\x20arguments','Too\x20many\x20arguments','keys','addCommand\x20requires\x20a\x20Command\x20instance','name','_handler','header','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','assign','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','call','(((.+)+)+)+$','maxArgLength','find','976UICgfr','aliases','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','exit','Name'];a0c=function(){return z;};return a0c();}const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x11d))/0x1+-parseInt(n(0x11a))/0x2+parseInt(n(0x133))/0x3+parseInt(n(0xf3))/0x4+parseInt(n(0x137))/0x5+parseInt(n(0x124))/0x6+-parseInt(n(0x138))/0x7*(parseInt(n(0x104))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xe2cde));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['toString']()[o(0x120)](o(0x101))[o(0x126)]()['constructor'](a0a)['search'](o(0x101));});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xeb;let f=c[d];return f;},a0d(a,b);}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';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0p(0x10a)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x106));if(!a[q(0xf9)])throw new Error(q(0x117));if(typeof b!==q(0x118))throw new Error(q(0x132));this[q(0x12a)]=Object['assign']({},a),this['name']=this[q(0x12a)]['name'],this[q(0x10a)]=[],this[q(0xfa)]=b['bind'](this);}static[a0p(0x121)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x118))throw new Error(r(0x115));const d=new Command(a,b);return c=c||a0f,Object[r(0xfd)](d,{'parent':c?.[r(0x12a)]?.['name']}),c['addCommand'](d),d;}['addCommand'](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xf8));this[s(0x10a)]['push'](a);}async[a0p(0x123)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x10f)][t(0x139)](),d=c[t(0xf4)]==='light'?ColorMode['LIGHT']:ColorMode[t(0x13a)];Log[t(0x11c)](d),await this[t(0x12d)](this);}catch(f){Log[t(0x135)](f),process['exit'](0x0);}return await this[t(0x11e)](a,b);}catch(g){process[t(0x107)](0x1);}}async['invoke'](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x12a)];try{if(this[u(0x12a)][u(0xf9)]!==u(0x112)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x134)]===0x0)&&this[u(0x10a)][u(0x134)]>=0x0,g=b['help']||b['h'];if(f&&g){if(this[u(0x10a)][u(0x134)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][u(0x136)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this['options'][u(0x113)]){const i=await this[u(0xee)]();if(!i)throw new MustBeLoggedIn();}if(this['options']['mustHaveMeteorInstalled']){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0x12a)][u(0xf1)]==='number'){if(a[u(0x134)]<this[u(0x12a)][u(0xf1)]){Log[u(0x135)](u(0xf5));throw new UsageError();}}if(typeof this[u(0x12a)][u(0x102)]===u(0x12c)){if(a[u(0x134)]>=this[u(0x12a)][u(0x102)]){Log[u(0x135)](u(0xf6));throw new UsageError();}}if(typeof this['options']['minOptsLength']===u(0x12c)){if(Object[u(0xf7)](b)[u(0x134)]<this[u(0x12a)][u(0x122)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[u(0x12a)]['maxOptsLength']===u(0x12c)){if(Object['keys'](b)[u(0x134)]>=this['options'][u(0x131)]){Log[u(0x135)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[u(0x12b)](a,b,this[u(0x12a)]),_prevCmd=a[0x0];}return await this[u(0xfa)][u(0x100)](this,a,b);}catch(k){Log[u(0x119)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0x116)](u(0x111)),this['tableList'](this['_commands']),Log[u(0xfb)](u(0x128));else{if(k instanceof MustBeInProjectError)Log[u(0x135)](u(0xfc));else{if(k instanceof NoMeteorFoundError)Log[u(0x135)](u(0xfe)),Log[u(0x116)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(k instanceof NoMeteorAppFoundError)Log[u(0x135)](u(0xef));else k instanceof MustBeLoggedIn&&(Log['error'](u(0xff)),Log[u(0x116)]('Please\x20run\x20\x22maka\x20login\x22'));}}}process[u(0x107)](0x1);}}[a0p(0xf0)](a){const v=a0p,b=new a0e({});b[v(0x10b)]([v(0x108),v(0x109),'Description']),a[v(0x11b)]((c,d)=>{const w=v;return c[w(0xf9)][w(0xec)](d['name']);})[v(0x127)](c=>{const x=v;c[x(0xf9)]!==x(0xf2)&&c[x(0xf9)]!=='play'&&b[x(0x10b)]([c[x(0xf9)],c[x(0x105)](),c[x(0x10c)]()]);}),Log[v(0x12e)](b[v(0x126)]());}async[a0p(0x11f)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x10d)](':');if(!d||d[y(0x134)]===0x0)throw y(0x114);if(d[0x0]==='generate'||d[0x0]==='g'&&d[y(0x134)]>0x1){const h=this['_commands']['find'](j=>j[y(0x12f)](y(0x112)));if(!h)throw'Command\x20not\x20found';await this[y(0x12d)](h);const i=d[y(0x10e)](0x1)[y(0x130)](':');return b[y(0x125)](i),await h[y(0x123)](b,c);}let f=this[y(0x10a)],g;for(const j of d){g=f[y(0x103)](k=>k[y(0x12f)](j));if(!g)try{await this[y(0x10f)][y(0xeb)]();}catch(k){throw y(0xed)+j+y(0x110);}g&&(await this[y(0x12d)](g),f=g[y(0x10a)]);}if(g){const l=await g['run'](b,c);return l;}else throw y(0x129);}catch(m){Log[y(0x135)](m),process['exit'](0x1);}}}
1
+ const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x1f0))/0x1+-parseInt(n(0x231))/0x2+parseInt(n(0x21a))/0x3*(-parseInt(n(0x1f5))/0x4)+-parseInt(n(0x1ff))/0x5+parseInt(n(0x20d))/0x6*(parseInt(n(0x219))/0x7)+parseInt(n(0x214))/0x8+parseInt(n(0x216))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xd9edf));function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x237)]()[p(0x233)]('(((.+)+)+)+$')['toString']()[p(0x22e)](a0a)[p(0x233)]('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0c(){const A=['run','LIGHT','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','call','bind','672102QdwkqQ','validateMeteorInstall','join','maxOptsLength','Command\x20','126288TpeJZn','minArgLength','maxArgLength','Too\x20many\x20options','validateParams','shortDesc','addCommand','Command\x20not\x20found','header','sort','8761465fsBrrq','invoke','usage','aliases','murder','slice','minOptsLength','match','apply','options','play','Too\x20few\x20options','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Too\x20many\x20arguments','744048ZxiTWa','name','Command\x20requires\x20a\x20name','notice','fsi','assign','create','8589464YFsawQ','getGlobalConfig','1254537YZgvdm','Name','validateMakaSubscription','77BsXnQf','39vuNWDZ','length','pallet','exit','keys','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','error','find','split','Alias','mustBeLoggedIn','function','localeCompare','Command.create\x20requires\x20a\x20handler\x20function!','Description','mustHaveMeteorInstalled','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','addCommand\x20requires\x20a\x20Command\x20instance','generate','_handler','constructor','push','bright','387796LppyJX','Command\x20format\x20is\x20incorrect','search','Too\x20few\x20arguments','_commands','There\x20is\x20no\x20Meteor\x20application\x20here','toString','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Command.create\x20requires\x20some\x20options!','help','setColorMode','Command\x20requires\x20a\x20handler\x20function','mustBeInMakaProject','validateUserIsLoggedIn','DARK','number'];a0c=function(){return A;};return a0c();}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x208)];['_commands'];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x243));if(!a[r(0x20e)])throw new Error(r(0x20f));if(typeof b!==r(0x225))throw new Error(r(0x23c));this['options']=Object[r(0x212)]({},a),this[r(0x20e)]=this[r(0x208)][r(0x20e)],this[r(0x235)]=[],this[r(0x22d)]=b[r(0x1ef)](this);}static[a0q(0x213)](a,b,c){const s=a0q;if(!a)throw new Error(s(0x239));if(typeof b!==s(0x225))throw new Error(s(0x227));const d=new Command(a,b);return c=c||a0f,Object[s(0x212)](d,{'parent':c?.['options']?.[s(0x20e)]}),c[s(0x1fb)](d),d;}[a0q(0x1fb)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x22b));this[t(0x235)][t(0x22f)](a);}async[a0q(0x241)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x211)][u(0x215)](),d=c[u(0x21c)]==='light'?ColorMode[u(0x242)]:ColorMode[u(0x23f)];Log[u(0x23b)](d),await this[u(0x218)](this);}catch(f){Log[u(0x220)](f),process[u(0x21d)](0x0);}return await this[u(0x200)](a,b);}catch(g){process['exit'](0x1);}}async[a0q(0x200)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x208)];try{if(this['options'][v(0x20e)]!==v(0x22c)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x21b)]===0x0)&&this[v(0x235)][v(0x21b)]>=0x0,g=b[v(0x23a)]||b['h'];if(f&&g){if(this[v(0x235)][v(0x21b)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x208)][v(0x23d)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[v(0x208)][v(0x224)]){const i=await this[v(0x23e)]();if(!i)throw new MustBeLoggedIn();}if(this[v(0x208)][v(0x229)]){const j=this[v(0x1f1)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x208)][v(0x1f6)]==='number'){if(a[v(0x21b)]<this[v(0x208)][v(0x1f6)]){Log[v(0x220)](v(0x234));throw new UsageError();}}if(typeof this['options'][v(0x1f7)]===v(0x240)){if(a[v(0x21b)]>=this[v(0x208)][v(0x1f7)]){Log[v(0x220)](v(0x20c));throw new UsageError();}}if(typeof this[v(0x208)][v(0x205)]===v(0x240)){if(Object[v(0x21e)](b)[v(0x21b)]<this[v(0x208)]['minOptsLength']){Log[v(0x220)](v(0x20a));throw new UsageError();}}if(typeof this[v(0x208)]['maxOptsLength']===v(0x240)){if(Object[v(0x21e)](b)['length']>=this[v(0x208)][v(0x1f3)]){Log[v(0x220)](v(0x1f8));throw new UsageError();}}}}b=await this[v(0x1f9)](a,b,this['options']),_prevCmd=a[0x0];}return await this['_handler'][v(0x244)](this,a,b);}catch(k){Log[v(0x201)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0x210)]('Sub-Commands:'),this['tableList'](this['_commands']),Log[v(0x1fd)](v(0x238));else{if(k instanceof MustBeInProjectError)Log[v(0x220)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(k instanceof NoMeteorFoundError)Log[v(0x220)](v(0x22a)),Log['notice'](v(0x20b));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x220)](v(0x236));else k instanceof MustBeLoggedIn&&(Log[v(0x220)](v(0x21f)),Log[v(0x210)]('Please\x20run\x20\x22maka\x20login\x22'));}}}process['exit'](0x1);}}['tableList'](a){const w=a0q,b=new a0e({});b['push']([w(0x217),w(0x223),w(0x228)]),a[w(0x1fe)]((c,d)=>{const x=w;return c[x(0x20e)][x(0x226)](d['name']);})['forEach'](c=>{const y=w;c[y(0x20e)]!==y(0x203)&&c[y(0x20e)]!==y(0x209)&&b[y(0x22f)]([c[y(0x20e)],c[y(0x202)](),c[y(0x1fa)]()]);}),Log[w(0x230)](b[w(0x237)]());}async['processAndRunCommand'](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x222)](':');if(!d||d[z(0x21b)]===0x0)throw z(0x232);if(d[0x0]===z(0x22c)||d[0x0]==='g'&&d[z(0x21b)]>0x1){const h=this[z(0x235)][z(0x221)](j=>j[z(0x206)](z(0x22c)));if(!h)throw z(0x1fc);await this['validateMakaSubscription'](h);const i=d[z(0x204)](0x1)[z(0x1f2)](':');return b['unshift'](i),await h['run'](b,c);}let f=this[z(0x235)],g;for(const j of d){g=f[z(0x221)](k=>k['match'](j));if(!g)try{await this[z(0x211)]['maybeProxyCommandToMeteor']();}catch(k){throw z(0x1f4)+j+'\x20not\x20found';}g&&(await this[z(0x218)](g),f=g['_commands']);}if(g){const l=await g[z(0x241)](b,c);return l;}else throw'Command\x20not\x20found';}catch(m){Log[z(0x220)](m),process[z(0x21d)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x92))/0x1+parseInt(f(0x8e))/0x2+-parseInt(f(0x98))/0x3*(-parseInt(f(0x90))/0x4)+parseInt(f(0x94))/0x5+-parseInt(f(0x91))/0x6+parseInt(f(0x8d))/0x7+-parseInt(f(0x99))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xc025a));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x93)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x97)]()[h(0x8f)](h(0x96))[h(0x97)]()[h(0x95)](a1a)[h(0x8f)](h(0x96));});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';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x8d;var f=c[d];return f;},a1d(a,b);}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';function a1c(){var i=['search','7648zpLhwU','2947716WotUcX','122711quDTrc','apply','4202725mbAVmZ','constructor','(((.+)+)+)+$','toString','1002muHRnW','13108192xKKzfL','6957300Xplsma','642160AotBfZ'];a1c=function(){return i;};return a1c();}import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';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(0xc9))/0x1+-parseInt(f(0xcd))/0x2*(parseInt(f(0xd1))/0x3)+parseInt(f(0xc7))/0x4+parseInt(f(0xca))/0x5*(parseInt(f(0xcc))/0x6)+-parseInt(f(0xc5))/0x7*(parseInt(f(0xce))/0x8)+parseInt(f(0xc8))/0x9+parseInt(f(0xd0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x42713));var a1b=(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;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0xcf)]()[g(0xc6)](g(0xcb))[g(0xcf)]()['constructor'](a1a)[g(0xc6)](g(0xcb));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';function a1c(){var h=['search','89216sfMPGF','2276262XkevsZ','39961nTYPia','40LXUzgD','(((.+)+)+)+$','185064EdwiCg','8834AjlyII','8zgXyDw','toString','4498140IaVLWa','195uLdCjo','3167479HDnvQC'];a1c=function(){return h;};return a1c();}import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xc5;var f=c[d];return f;},a1d(a,b);}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
@@ -1 +1 @@
1
- const a2m=a2d;function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x116;let f=c[d];return f;},a2d(a,b);}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x130))/0x1*(parseInt(h(0x11e))/0x2)+-parseInt(h(0x127))/0x3*(parseInt(h(0x126))/0x4)+parseInt(h(0x118))/0x5*(-parseInt(h(0x12b))/0x6)+parseInt(h(0x12d))/0x7+-parseInt(h(0x119))/0x8+-parseInt(h(0x131))/0x9+parseInt(h(0x136))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xbd1f3));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x12c)]()[j(0x13b)](j(0x141))[j(0x12c)]()[j(0x13e)](a2a)[j(0x13b)](j(0x141));});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';function a2c(){const o=['constructor','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','Using\x20CA\x20Cert\x20','(((.+)+)+)+$','openai','Using\x20OpenAI\x20Key\x20','5EakxeQ','10932256pXkxYd','ChatGPT\x20style\x20AI\x20interface','trim','parse','getGlobalConfig','830ngIcGq','notice','createInterface','You:\x20','cacert','text','cert','stdin','228qbDLuM','74388txZsNR','bright','GPT:\x20','openapikey','8951970uwditr','toString','3163741tSdTwk','error','fsi','1397vdDCpm','2583405gaxGti','question','stdout','toLowerCase','data','54613790vXaYln','log','askGPT','exit','apply','search','create','isFile'];a2c=function(){return o;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x120)]({'input':process[k(0x125)],'output':process[k(0x133)]});c[k(0x132)](k(0x121),async d=>{const l=k;if(d[l(0x134)]()===l(0x139)){c['close']();return;}try{const e=await HTTPS[l(0x138)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x11c)](e[l(0x135)]);if(f[l(0x12e)])throw new Error(f['error']['message']);Log[l(0x128)](l(0x129)+f?.['choices'][0x0]?.[l(0x123)][l(0x11b)]());}catch(g){Log[l(0x12e)](g),process[l(0x139)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x13c)]({'name':'ai','description':a2m(0x11a),'validOpts':[a2m(0x122),'openapikey'],'shortDesc':a2m(0x11a),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x12f)][n(0x13d)](b[n(0x122)])?(c=b[n(0x122)],Log[n(0x11f)](n(0x140)+c)):Log[n(0x12e)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0x12f)][n(0x11d)]();if(d[n(0x124)]){if(this[n(0x12f)][n(0x13d)](d[n(0x124)]))c=d[n(0x124)];else throw Log[n(0x12e)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0x12a)])f=b['openapikey'],Log[n(0x11f)](n(0x117)+f);else{if(d[n(0x116)])f=d[n(0x116)];else throw Log[n(0x12e)](n(0x13f));}console[n(0x137)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x139)](0x1);}});
1
+ const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x1bc))/0x1+-parseInt(h(0x1b9))/0x2*(-parseInt(h(0x1a2))/0x3)+-parseInt(h(0x1a7))/0x4+parseInt(h(0x19c))/0x5*(parseInt(h(0x19e))/0x6)+-parseInt(h(0x1a8))/0x7*(-parseInt(h(0x1bb))/0x8)+parseInt(h(0x1a9))/0x9*(parseInt(h(0x1af))/0xa)+-parseInt(h(0x1ad))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x5a1d8));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x1a4)]()[j(0x1a0)](j(0x1a6))[j(0x1a4)]()['constructor'](a2a)['search'](j(0x1a6));});a2a();import{Command}from'../command.js';function a2c(){const o=['openai','GPT:\x20','stdout','log','choices','trim','You:\x20','730180bUVJnz','question','12BOedsy','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','search','notice','116526CXwDOH','ChatGPT\x20style\x20AI\x20interface','toString','message','(((.+)+)+)+$','2521436NdjYtN','7qcZpYq','1395loaJZX','fsi','getGlobalConfig','close','794541SidaLe','create','33080pKDQgg','error','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','toLowerCase','cert','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','exit','cacert','isFile','apply','32ylrkgP','openapikey','2542424zodexb','672385dSXgsn','text','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','data','parse','createInterface','Using\x20CA\x20Cert\x20'];a2c=function(){return o;};return a2c();}import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x198;let f=c[d];return f;},a2d(a,b);}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x1c1)]({'input':process['stdin'],'output':process[k(0x1c5)]});c[k(0x19d)](k(0x19b),async d=>{const l=k;if(d[l(0x1b2)]()===l(0x1b5)){c[l(0x1ac)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1c0)](e[l(0x1bf)]);if(f[l(0x1b0)])throw new Error(f['error'][l(0x1a5)]);Log['bright'](l(0x1c4)+f?.[l(0x199)][0x0]?.[l(0x1bd)][l(0x19a)]());}catch(g){Log[l(0x1b0)](g),process[l(0x1b5)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x1ae)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':['cacert','openapikey'],'shortDesc':a2m(0x1a3),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this['fsi'][n(0x1b7)](b[n(0x1b6)])?(c=b[n(0x1b6)],Log[n(0x1a1)](n(0x1c2)+c)):Log['error'](n(0x19f)+c));const d=await this[n(0x1aa)][n(0x1ab)]();if(d[n(0x1b3)]){if(this[n(0x1aa)]['isFile'](d[n(0x1b3)]))c=d['cert'];else throw Log[n(0x1b0)](n(0x1be)+c);}let f='';if(b['openapikey'])f=b[n(0x1ba)],Log['notice']('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x1c3)])f=d['openai'];else throw Log['error'](n(0x1b1));}console[n(0x198)](n(0x1b4)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1b0)](g),process[n(0x1b5)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x1e5))/0x1+-parseInt(f(0x1e4))/0x2*(parseInt(f(0x1ee))/0x3)+parseInt(f(0x1ed))/0x4+parseInt(f(0x1e9))/0x5*(-parseInt(f(0x1f0))/0x6)+parseInt(f(0x1e7))/0x7+parseInt(f(0x1e6))/0x8*(-parseInt(f(0x1ef))/0x9)+parseInt(f(0x1e8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x2fda7));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(0x1eb)]()['search'](g(0x1ea))[g(0x1eb)]()[g(0x1ec)](a3a)[g(0x1f1)](g(0x1ea));});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';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1e4;var f=c[d];return f;},a3d(a,b);}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';function a3c(){var h=['18qIQdrr','search','4xgdhsr','184221wBETei','240Sqouoe','2046779vgYCam','3148090rszmUZ','291470KBZbrt','(((.+)+)+)+$','toString','constructor','1110840JIrWQJ','6324nWLest','97677sNVVwP'];a3c=function(){return h;};return a3c();}import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x123))/0x1+-parseInt(f(0x127))/0x2+-parseInt(f(0x121))/0x3*(-parseInt(f(0x126))/0x4)+parseInt(f(0x12c))/0x5+parseInt(f(0x124))/0x6+-parseInt(f(0x129))/0x7*(-parseInt(f(0x12a))/0x8)+parseInt(f(0x12d))/0x9*(parseInt(f(0x120))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xe0d80));function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x11f;var f=c[d];return f;},a3d(a,b);}var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x12b)]()[h(0x122)](h(0x125))[h(0x12b)]()[h(0x11f)](a3a)['search']('(((.+)+)+)+$');});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';function a3c(){var i=['1401435hvKbHK','9OZEnZk','constructor','11295170yFPlca','160404GQrUsI','search','1285366aevfzC','5172834EChxFN','(((.+)+)+)+$','4MkmaZf','2990742RirNeI','apply','73542iTylwI','1048OrwBqT','toString'];a3c=function(){return i;};return a3c();}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';import'./lecr.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0xbe))/0x1+-parseInt(f(0xb7))/0x2*(-parseInt(f(0xbd))/0x3)+parseInt(f(0xbb))/0x4+-parseInt(f(0xc4))/0x5+-parseInt(f(0xbf))/0x6+parseInt(f(0xc1))/0x7+-parseInt(f(0xb9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd6f94));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()[h(0xc3)](h(0xb8))[h(0xba)]()[h(0xb6)](a4a)['search'](h(0xb8));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xb5;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a4c(){const j=['56026NOvGuD','(((.+)+)+)+$','5243488ueatGy','toString','6294268mBZqIi','maka\x20aws:<sub-command>','171uKElTt','262194ZpdIQu','10149732XwJDPj','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','8405992ZFyQpm','create','search','4406900Ezzgnq','apply','constructor'];a4c=function(){return j;};return a4c();}const AWSCommand=Command[a4i(0xc2)]({'name':'aws','usage':a4i(0xbc),'validOpts':[],'shortDesc':a4i(0xc0),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'},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(0x124))/0x1+-parseInt(f(0x116))/0x2*(-parseInt(f(0x117))/0x3)+parseInt(f(0x127))/0x4+parseInt(f(0x115))/0x5*(-parseInt(f(0x11f))/0x6)+parseInt(f(0x128))/0x7*(-parseInt(f(0x11e))/0x8)+-parseInt(f(0x119))/0x9+-parseInt(f(0x11b))/0xa*(parseInt(f(0x118))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x20a48));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x123)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()[h(0x11a)](h(0x126))[h(0x11d)]()[h(0x11c)](a4a)[h(0x11a)]('(((.+)+)+)+$');});a4a();import{Command}from'../../command.js';function a4c(){const j=['118024IWjDCn','138lNGQwW','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','create','apply','204911nZThsT','maka\x20aws:<sub-command>','(((.+)+)+)+$','881716OIsFMP','56mEqvgZ','40870RUbWXP','4doZCsg','228837UJMpef','11QtbiUo','23589WwvnxZ','search','1355470wKYPMt','constructor','toString'];a4c=function(){return j;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x115;let f=c[d];return f;},a4d(a,b);}import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x122)]({'name':'aws','usage':a4i(0x125),'validOpts':[],'shortDesc':a4i(0x121),'description':a4i(0x120)},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x1ed))/0x1*(-parseInt(g(0x1f9))/0x2)+parseInt(g(0x1f5))/0x3+parseInt(g(0x1ee))/0x4+parseInt(g(0x204))/0x5+parseInt(g(0x1fc))/0x6+parseInt(g(0x1f2))/0x7*(-parseInt(g(0x1f1))/0x8)+-parseInt(g(0x207))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe6b40));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x205)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1fb)]()[i(0x201)](i(0x1f6))[i(0x1fb)]()[i(0x20a)](a5a)['search']('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1eb;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(0x1f8)]({'name':a5j(0x1ff),'aliases':[a5j(0x1ec)],'usage':a5j(0x1fe),'requiredOpts':[a5j(0x208)],'validOpts':['region'],'shortDesc':a5j(0x1f3),'examples':[a5j(0x203),'maka\x20aws:cecr\x20--name=my-new-repo',a5j(0x1fa)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x200)](b);d&&d[k(0x1f4)]['httpStatusCode']===0xc8&&d[k(0x202)]?(Log[k(0x1ef)](k(0x1eb)),Log[k(0x1f7)](k(0x1fd)+d[k(0x202)]['repositoryUri'])):Log[k(0x209)](k(0x1f0)),process[k(0x206)](0x0);}catch(f){Log[k(0x209)](f),process[k(0x206)](0x1);}},a5e);function a5c(){const l=['create-ecr','ecrCreateRepository','search','repository','maka\x20aws:create-ecr\x20--name=my-new-repo','389410DEcvAk','apply','exit','5744952GiMKiQ','name','error','constructor','Repository\x20created\x20successfully.','cecr','6vdwJtj','6595628yPzTVY','success','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','1832SBjFPG','37681wXBEjf','Create\x20an\x20Elastic\x20Container\x20Repository','$metadata','5335242WhdvyE','(((.+)+)+)+$','notice','create','623972gLBybH','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','toString','7096248knSViB','Repository\x20URI:\x20','maka\x20aws:create-ecr'];a5c=function(){return l;};return a5c();}
1
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x1fe))/0x1*(-parseInt(g(0x1f9))/0x2)+parseInt(g(0x1e2))/0x3*(-parseInt(g(0x1f1))/0x4)+parseInt(g(0x1e1))/0x5*(parseInt(g(0x1f8))/0x6)+-parseInt(g(0x1ff))/0x7+-parseInt(g(0x1e6))/0x8+-parseInt(g(0x200))/0x9*(parseInt(g(0x1e4))/0xa)+-parseInt(g(0x1f6))/0xb*(-parseInt(g(0x202))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x57795));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1ef)]()['search']('(((.+)+)+)+$')[i(0x1ef)]()[i(0x1f0)](a5a)['search'](i(0x1fc));});a5a();function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a5d(a,b);}import a5e 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[a5j(0x1e8)]({'name':a5j(0x1f5),'aliases':['cecr'],'usage':a5j(0x1f7),'requiredOpts':[a5j(0x1e3)],'validOpts':[a5j(0x201)],'shortDesc':a5j(0x1ea),'examples':[a5j(0x1fa),a5j(0x1eb),a5j(0x1f2)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x1f3)](b);d&&d['$metadata'][k(0x1e5)]===0xc8&&d[k(0x1ed)]?(Log[k(0x1fd)](k(0x1ec)),Log['notice'](k(0x1e7)+d[k(0x1ed)][k(0x1fb)])):Log['error'](k(0x1e9)),process['exit'](0x0);}catch(f){Log['error'](f),process[k(0x1ee)](0x1);}},a5e);function a5c(){const l=['Repository\x20URI:\x20','create','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','Create\x20an\x20Elastic\x20Container\x20Repository','maka\x20aws:cecr\x20--name=my-new-repo','Repository\x20created\x20successfully.','repository','exit','toString','constructor','8JtbPeB','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','ecrCreateRepository','apply','create-ecr','176sMOohi','maka\x20aws:create-ecr','431286yrHHOL','1032736Munlib','maka\x20aws:create-ecr\x20--name=my-new-repo','repositoryUri','(((.+)+)+)+$','success','1xUxLik','4384457McZkNF','56439TnSBDb','region','1437804zJmBvu','10PxqjDY','54033DdlhmA','name','30UPbwnj','httpStatusCode','4039896XmdcQO'];a5c=function(){return l;};return a5c();}
@@ -1 +1 @@
1
- const a6k=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0xaf))/0x1*(-parseInt(i(0xaa))/0x2)+parseInt(i(0xa1))/0x3+-parseInt(i(0xb9))/0x4*(parseInt(i(0xb4))/0x5)+-parseInt(i(0xab))/0x6*(parseInt(i(0xb2))/0x7)+parseInt(i(0xa3))/0x8+-parseInt(i(0xb1))/0x9+-parseInt(i(0xad))/0xa*(-parseInt(i(0xa8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xa38f3));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(0xb7)]()[j(0xa7)](j(0xa9))[j(0xb7)]()['constructor'](a6a)[j(0xa7)](j(0xa9));});function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xa1;let f=c[d];return f;},a6d(a,b);}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[a6k(0xae)]({'name':'create-hosted-zone','aliases':[a6k(0xa5)],'usage':a6k(0xa6),'requiredOpts':[a6k(0xa2)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const l=a6k;try{const c=b['domain'],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions[l(0xb3)](l(0xb8));if(f){const g=await d[l(0xa4)]();if(g?.['id']){if(!g['publicIp'])throw Log[l(0xb0)](l(0xb5));d[l(0xb6)](g['id'],g['publicIp'],c);}else throw l(0xac);}}catch(h){h&&Log['error'](h),process['exit'](0x0);}},a6e);function a6c(){const m=['chooseInstance','chz','maka\x20aws:create-hosted-zone','search','11RFuECP','(((.+)+)+)+$','4aisLJL','16776TOskWC','Instance\x20not\x20found','5436980HWyvwG','create','296354Rfmjpm','error','11506545QTjLMe','749FVnjvZ','confirm','9155CjWazB','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','linkEC2ToRoute53','toString','Set\x20hosted\x20zone\x20to\x20an\x20instance?','648vzZLTD','3682209GAtYyA','domain','1443432gtfMRM'];a6c=function(){return m;};return a6c();}
1
+ const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0x14c))/0x1+parseInt(i(0x13e))/0x2+-parseInt(i(0x143))/0x3+parseInt(i(0x150))/0x4*(-parseInt(i(0x142))/0x5)+parseInt(i(0x13c))/0x6+parseInt(i(0x144))/0x7+parseInt(i(0x14a))/0x8*(parseInt(i(0x13b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x4f1e9));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x153)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x141)]()[k(0x147)](k(0x13f))[k(0x141)]()[k(0x14e)](a6a)[k(0x147)](k(0x13f));});a6a();function a6c(){const n=['apply','chooseInstance','route53CreateHostedZone','linkEC2ToRoute53','exit','8211573MgQINV','3884724xMOaBz','maka\x20aws:chz\x20--domain=example.com','314488ceRTlA','(((.+)+)+)+$','Set\x20hosted\x20zone\x20to\x20an\x20instance?','toString','487005ZZtsQt','1755384yQXbvE','106092mteUUL','confirm','maka\x20aws:create-hosted-zone\x20--domain=example.com','search','create','chz','8bDxfDZ','error','530847uSJsrj','publicIp','constructor','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','12PWeivM','domain','Instance\x20not\x20found'];a6c=function(){return n;};return a6c();}import a6e from'./aws.command.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x138;let f=c[d];return f;},a6d(a,b);}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(0x148)]({'name':'create-hosted-zone','aliases':[a6l(0x149)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0x151)],'validOpts':[],'shortDesc':a6l(0x14f),'examples':[a6l(0x146),a6l(0x13d)]},async function(a,b){const m=a6l;try{const c=b[m(0x151)],d=new AWS();d[m(0x138)](c);const f=await Actions[m(0x145)](m(0x140));if(f){const g=await d[m(0x154)]();if(g?.['id']){if(!g[m(0x14d)])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0x139)](g['id'],g[m(0x14d)],c);}else throw m(0x152);}}catch(h){h&&Log[m(0x14b)](h),process[m(0x13a)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7ah=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x122;let f=c[d];return f;},a7d(a,b);}(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x154))/0x1+-parseInt(ae(0x130))/0x2+parseInt(ae(0x16a))/0x3+-parseInt(ae(0x143))/0x4+-parseInt(ae(0x139))/0x5+-parseInt(ae(0x132))/0x6*(parseInt(ae(0x180))/0x7)+parseInt(ae(0x142))/0x8*(parseInt(ae(0x165))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x56507));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a['toString']()['search'](ag(0x136))[ag(0x12a)]()[ag(0x170)](a7a)[ag(0x12e)](ag(0x136));});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';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x159)]({'name':a7ah(0x133),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0x17b),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x17e)}],'validOpts':[],'shortDesc':a7ah(0x183),'description':a7ah(0x17c)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x155)][ai(0x172)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x155)]['getConfigFromShorthand'](b[ai(0x17e)]),i=this[ai(0x155)][ai(0x182)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x17a)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x169),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x14a)](ai(0x14e)+r);}else try{Log[ai(0x174)](ai(0x12c));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0x175)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x14d)](ai(0x156)),Log[ai(0x174)](ai(0x15b));return;}B?.[ai(0x17d)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x14a)](aj(0x14e)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x161)]();const t=await Actions[ai(0x135)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x161)]():l;u=await Actions[ai(0x175)](ai(0x17f)+k+']')||k;const F=await Actions['ask'](ai(0x16e))||'22,80,443',G=F[ai(0x14c)](',');await d['ec2createSG']({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x146)](u);if(I===''){Log[ai(0x174)](ai(0x145)),J[ai(0x17d)](function(L){const ak=ai;L[ak(0x176)]===u?Log[ak(0x174)](ak(0x163)+L['id']+ak(0x12f)+L[ak(0x176)]+ak(0x151)+L[ak(0x148)]):Log[ak(0x185)](ak(0x163)+L['id']+ak(0x12f)+L[ak(0x176)]+ak(0x151)+L[ak(0x148)]);});const K=await Actions[ai(0x175)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x12a)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x148)],Log[al(0x14a)](al(0x153)+m+'\x0a'));});}else m=I,Log[ai(0x14a)](ai(0x153)+m+'\x0a');if(m==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x174)](ai(0x186));const N=execSync(ai(0x162)+M+ai(0x134))[ai(0x12a)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x17d)](function(S){const am=ai;if(S[am(0x15e)]===am(0x164)){const T=S[am(0x14f)][am(0x14c)](am(0x13d))[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0x14f)],'date':T});}}),P[ai(0x149)](function(S,T){const an=ai;return new Date(T['date'])[an(0x12d)]()-new Date(S[an(0x131)])[an(0x12d)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x168)]({'id':T,'amiId':S[ao(0x15a)],'desc':S[ao(0x13f)]});}),Q[ai(0x17d)](function(S){const ap=ai;console[ap(0x13b)](ap(0x163)+S['id']+'\x20AMIID:\x20'+S[ap(0x15a)]+ap(0x13e)+S[ap(0x13f)]);});const R=await Actions[ai(0x175)](ai(0x157))||'0';Q[ai(0x17d)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x14a)](aq(0x171)+n+aq(0x173)+S[aq(0x13f)]));});if(n==='')throw Log[ai(0x14d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x14d)](S);}try{Log[ai(0x174)](ai(0x147));const T=execSync(ai(0x13a))[ai(0x12a)](),U=JSON[ai(0x125)](T),V=[];U[ai(0x17d)](function(X,Y){const ar=ai;V[ar(0x168)]({'id':Y,'cidr':X[ar(0x126)],'az':X['az'],'subnetId':X[ar(0x127)]});}),V[ai(0x17d)](function(X){const as=ai;console[as(0x13b)](as(0x163)+X['id']+as(0x13c)+X['cidr']+as(0x184)+X['az']+'\x20SUBNETID:\x20'+X[as(0x127)]);});const W=await Actions[ai(0x175)](ai(0x150))||'0';V[ai(0x17d)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x127)],Log[at(0x14a)](at(0x181)+p));});if(p==='')throw Log[ai(0x14d)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x14d)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x175)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x14b),Z=Y[ai(0x14c)](':')[0x0],a0=Y[ai(0x14c)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x122)&&Log[ai(0x14a)](ai(0x15c)+Z+':'+a0);}catch(a1){Log[ai(0x14d)](a1);}try{const a2=await Actions[ai(0x175)](ai(0x158))||ai(0x167);typeof a2===ai(0x179)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x135)](ai(0x16c),![]);a4&&(x=a7f[ai(0x152)](i,ai(0x138)),Log[ai(0x174)](ai(0x16f)+x),await this[ai(0x155)][ai(0x140)]({'filePath':x,'data':''}),await Actions['confirm'](ai(0x15d)));}catch(a5){Log[ai(0x14d)](a5);}try{const a6=JSON[ai(0x125)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x12b))[ai(0x12a)]())[0x0]['subnet'];Log[ai(0x174)]('ImageID:'+n),Log[ai(0x174)](ai(0x129)+v+':'+w),Log['notice'](ai(0x16b)+o),Log[ai(0x174)]('Key-Pair:\x20'+r),Log[ai(0x174)]('Security\x20Group:\x20'+m),Log[ai(0x174)]('Subnet:\x20'+a6);if(x){Log[ai(0x174)](ai(0x177)+x);const a8=a7g[ai(0x178)](x)[ai(0x12a)]();Log[ai(0x174)](a8);}const a7=await Actions['confirm']('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x160)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x15f)},{'Key':'environment','Value':h},{'Key':ai(0x141),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x14a)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x185)](ai(0x144)));}else{Log[ai(0x174)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0x166)+r+'\x20?',!![]);aa&&(d[ai(0x123)](r),f['isFile'](s)&&a7g[ai(0x124)](s));const ab=await Actions[ai(0x135)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x128)](m);}}catch(ac){Log[ai(0x14d)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x16d)](0x0);}},a7e);function a7c(){const au=['unlinkSync','parse','cider','subnetId','deleteSecurityGroup','Instance\x20Count:\x20','toString','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','**\x20Available\x20key-pairs\x20**','getTime','search','\x20SG\x20NAME:\x20','10548mccrcw','date','1668NqfnyZ','create-instance','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','confirm','(((.+)+)+)+$','apply','user-data','1381805uOiWxy','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','log','\x20CIDR:\x20','build\x20on\x20','\x20DESCRIPTION:\x20','desc','createFile','Name','181000zYDMHN','550808iZjtGr','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','**\x20Available\x20Security\x20Groups\x20**','getSecurityGroups','**\x20Available\x20Subnets\x20**','sgId','sort','success','1:1','split','error','Setting\x20the\x20key-pair\x20to:\x20','Desc','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SGID:\x20','join','Setting\x20SG\x20ID\x20to:\x20','257411fgvGOm','fsi','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','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','create','amiId','No\x20instance\x20has\x20been\x20created.','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','alias','maka-cli','ec2create','chooseVPC','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=*','ID:\x20','amazon','279GlCNXp','Remove\x20the\x20keypair\x20','t3.micro','push','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','468936KrOeLi','Instace\x20Type:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','exit','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Creating\x20user\x20data\x20file\x20in\x20','constructor','Setting\x20AMI\x20ID\x20to\x20','getMakaProjectConfig','\x20:\x20','notice','ask','name','User\x20Data:','readFileSync','string','EC2\x20Name:\x20[','maka\x20aws:create-instance\x20--env\x20dev','\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','forEach','env','Security\x20Group\x20Name:\x20[','8617AWqiYw','Setting\x20Subnet\x20ID\x20to\x20','getAppConfigPath','Create\x20new\x20AWS\x20instance','\x20AZONE:\x20','bright','**\x20Available\x20AMIs\x20**','number','deleteKeyPair'];a7c=function(){return au;};return a7c();}
1
+ const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x1c5))/0x1+-parseInt(ae(0x1b8))/0x2*(-parseInt(ae(0x1b5))/0x3)+parseInt(ae(0x194))/0x4+-parseInt(ae(0x1e7))/0x5*(parseInt(ae(0x1df))/0x6)+-parseInt(ae(0x1a3))/0x7*(-parseInt(ae(0x1dd))/0x8)+parseInt(ae(0x1e1))/0x9+-parseInt(ae(0x192))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xb1991));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x1b9)]()[ag(0x1ec)](ag(0x1b2))['toString']()[ag(0x1db)](a7a)[ag(0x1ec)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x191;let f=c[d];return f;},a7d(a,b);}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=['Setting\x20the\x20key-pair\x20to:\x20','subnetId','chooseVPC','create','isFile','deleteKeyPair','maka\x20aws:create-instance','21ZnEEYd','\x20AMIID:\x20','getTime','error','exit','Setting\x20Subnet\x20ID\x20to\x20','join','forEach','notice','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','alias','ask','bright','**\x20Available\x20key-pairs\x20**','\x20SGID:\x20','(((.+)+)+)+$','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','createKeyPair','3840849fcvmqo','deleteSecurityGroup','maka\x20aws:ci\x20--env\x20prod','2GYoRbE','toString','subnet','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getConfigFromShorthand','Security\x20Group:\x20','Remove\x20the\x20keypair\x20','t3.micro','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','name','Subnet:\x20','\x20CIDR:\x20','ec2create','613835JLRqRS','Would\x20you\x20like\x20to\x20include\x20user\x20data?','parse','env','Setting\x20AMI\x20ID\x20to\x20','User\x20Data:','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','getSecurityGroups','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','unlinkSync','environment','push','ID:\x20','1:1','readFileSync','create-instance','\x20DESCRIPTION:\x20','amazon','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','sgId','ec2createSG','split','constructor','Setting\x20SG\x20ID\x20to:\x20','3635096negySg','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','594dmizbt','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','9969363SyJJXa','\x20AZONE:\x20','user-data','number','log','date','71270hxhikM','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','22,80,443','Name','cider','search','fsi','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','sort','success','confirm','**\x20Available\x20Subnets\x20**','Web\x20App','\x20SG\x20NAME:\x20','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=*','amiId','\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','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','11558360PpPyFe','maka\x20aws:create-instance\x20--env\x20dev','628428TNvsrD','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Instance\x20Count:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Security\x20Group\x20Name:\x20[','apply','string'];a7c=function(){return au;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x19f)]({'name':a7ah(0x1d4),'aliases':['ci'],'usage':a7ah(0x1a2),'examples':[a7ah(0x193),a7ah(0x1b7)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x1c8)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0x1f7)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x1ed)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ai(0x1bc)](b[ai(0x1c8)]),i=this[ai(0x1ed)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1ae)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1f1)](ai(0x198),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1b4)]({'env':h});r=y,s=z,Log[ai(0x1f0)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0x1ab)](ai(0x1b0));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0x1ae)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1a6)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ai(0x1ab)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x1aa)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1c1)],Log['success'](aj(0x19c)+r));});}catch(D){Log[ai(0x1a6)](D);}l=await d[ai(0x19e)]();const t=await Actions[ai(0x1f1)](ai(0x1e0),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0x1ae)](ai(0x199)+k+']')||k;const F=await Actions[ai(0x1ae)](ai(0x1de))||ai(0x1e9),G=F[ai(0x1da)](',');await d[ai(0x1d9)]({'description':ai(0x1f3),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1cc)](u);if(I===''){Log[ai(0x1ab)]('**\x20Available\x20Security\x20Groups\x20**'),J['forEach'](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x1d1)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1c1)]+ak(0x1b1)+L[ak(0x1d8)]):Log[ak(0x1af)](ak(0x1d1)+L['id']+ak(0x1f4)+L[ak(0x1c1)]+ak(0x1b1)+L[ak(0x1d8)]);});const K=await Actions[ai(0x1ae)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x1b9)]();J[ai(0x1aa)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1d8)],Log[al(0x1f0)](al(0x1dc)+m+'\x0a'));});}else m=I,Log['success'](ai(0x1dc)+m+'\x0a');if(m==='')throw Log[ai(0x1a6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0x1a6)](L);}try{const M=0x7e6;Log['notice']('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x1f5)+M+'*\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')[ai(0x1b9)](),O=JSON[ai(0x1c7)](N),P=[],Q=[];O[ai(0x1aa)](function(S){const am=ai;if(S[am(0x1ad)]===am(0x1d6)){const T=S['Desc']['split']('build\x20on\x20')[0x1];P[am(0x1d0)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x1ef)](function(S,T){const an=ai;return new Date(T[an(0x1e6)])['getTime']()-new Date(S[an(0x1e6)])[an(0x1a5)]();}),P[ai(0x1aa)](function(S,T){const ao=ai;Q[ao(0x1d0)]({'id':T,'amiId':S[ao(0x1f6)],'desc':S['desc']});}),Q[ai(0x1aa)](function(S){const ap=ai;console[ap(0x1e5)]('ID:\x20'+S['id']+ap(0x1a4)+S['amiId']+ap(0x1d5)+S['desc']);});const R=await Actions[ai(0x1ae)](ai(0x1bb))||'0';Q[ai(0x1aa)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1f6)],Log[aq(0x1f0)](aq(0x1c9)+n+'\x20:\x20'+S['desc']));});if(n==='')throw Log[ai(0x1a6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x1a6)](S);}try{Log[ai(0x1ab)](ai(0x1f2));const T=execSync(ai(0x195))['toString'](),U=JSON['parse'](T),V=[];U[ai(0x1aa)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0x1eb)],'az':X['az'],'subnetId':X[ar(0x19d)]});}),V[ai(0x1aa)](function(X){const as=ai;console[as(0x1e5)](as(0x1d1)+X['id']+as(0x1c3)+X['cidr']+as(0x1e2)+X['az']+'\x20SUBNETID:\x20'+X[as(0x19d)]);});const W=await Actions['ask'](ai(0x196))||'0';V[ai(0x1aa)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log['success'](at(0x1a8)+p));});if(p==='')throw Log[ai(0x1a6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x1a6)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1ae)](ai(0x1cd))||ai(0x1d2),Z=Y[ai(0x1da)](':')[0x0],a0=Y[ai(0x1da)](':')[0x1];typeof parseInt(Z)===ai(0x1e4)&&typeof parseInt(a0)===ai(0x1e4)&&Log['success'](ai(0x191)+Z+':'+a0);}catch(a1){Log[ai(0x1a6)](a1);}try{const a2=await Actions['ask'](ai(0x1e8))||ai(0x1bf);typeof a2===ai(0x19b)&&(o=a2);}catch(a3){Log[ai(0x1a6)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0x1c6),![]);a4&&(x=a7f[ai(0x1a9)](i,ai(0x1e3)),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x1ed)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x1f1)](ai(0x1d7)));}catch(a5){Log[ai(0x1a6)](a5);}try{const a6=JSON[ai(0x1c7)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x1ac))[ai(0x1b9)]())[0x0][ai(0x1ba)];Log[ai(0x1ab)]('ImageID:'+n),Log['notice'](ai(0x197)+v+':'+w),Log[ai(0x1ab)]('Instace\x20Type:\x20'+o),Log[ai(0x1ab)]('Key-Pair:\x20'+r),Log[ai(0x1ab)](ai(0x1bd)+m),Log['notice'](ai(0x1c2)+a6);if(x){Log[ai(0x1ab)](ai(0x1ca)+x);const a8=a7g[ai(0x1d3)](x)[ai(0x1b9)]();Log[ai(0x1ab)](a8);}const a7=await Actions['confirm'](ai(0x1ee));if(a7){const a9=await d[ai(0x1c4)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':'maka-cli'},{'Key':ai(0x1cf),'Value':h},{'Key':ai(0x1ea),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1f0)](ai(0x1cb)),Log[ai(0x1af)](ai(0x1b3)));}else{Log['notice'](ai(0x1c0));const aa=await Actions[ai(0x1f1)](ai(0x1be)+r+'\x20?',!![]);aa&&(d[ai(0x1a1)](r),f[ai(0x1a0)](s)&&a7g[ai(0x1ce)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x1b6)](m);}}catch(ac){Log[ai(0x1a6)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x1a7)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0xe5))/0x1+parseInt(g(0xce))/0x2*(-parseInt(g(0xcd))/0x3)+-parseInt(g(0xd1))/0x4+parseInt(g(0xdb))/0x5*(-parseInt(g(0xd4))/0x6)+parseInt(g(0xdc))/0x7+-parseInt(g(0xe2))/0x8*(parseInt(g(0xe7))/0x9)+parseInt(g(0xd6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xab151));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()[i(0xdd)](i(0xd0))[i(0xde)]()[i(0xe4)](a8a)[i(0xdd)](i(0xd0));});a8a();import a8e 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':a8j(0xe6),'aliases':[a8j(0xd8)],'usage':a8j(0xda),'examples':[a8j(0xcf),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8j(0xdf),'description':a8j(0xe1)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0xd3)][k(0xe3)](b[k(0xd9)]);c[k(0xd2)]({'env':d});}catch(f){f&&Log[k(0xd7)](f),process[k(0xd5)](0x0);}},a8e);function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xcd;let f=c[d];return f;},a8d(a,b);}function a8c(){const l=['env','maka\x20aws:create-key-pair','891675CXmnym','1506792pthSdD','search','toString','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','apply','\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','1904GQMCLO','getConfigFromShorthand','constructor','1204498IsyZgJ','create-key-pair','50589EOvNTz','192561UxfXdk','2FxQWmT','maka\x20aws:create-key-pair\x20--env\x20prod','(((.+)+)+)+$','2927732gPLuzL','createKeyPair','fsi','18fpGLHA','exit','43589180zWQiHI','error','ckp'];a8c=function(){return l;};return a8c();}
1
+ function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x132;let f=c[d];return f;},a8d(a,b);}const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x13b))/0x1*(-parseInt(g(0x137))/0x2)+parseInt(g(0x13d))/0x3*(-parseInt(g(0x14c))/0x4)+parseInt(g(0x139))/0x5+-parseInt(g(0x136))/0x6*(-parseInt(g(0x135))/0x7)+-parseInt(g(0x140))/0x8+-parseInt(g(0x146))/0x9*(-parseInt(g(0x13a))/0xa)+parseInt(g(0x149))/0xb*(parseInt(g(0x13e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x45fd5));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x143)]()[i(0x134)](i(0x138))['toString']()['constructor'](a8a)[i(0x134)](i(0x138));});a8a();function a8c(){const l=['error','1376004EOInRJ','564AAplCJ','getConfigFromShorthand','1914768djBIHJ','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','env','toString','create','create-key-pair','638289vowKIx','exit','maka\x20aws:create-key-pair','156035HWYRml','fsi','apply','4SqDuqy','maka\x20aws:ckp\x20--env\x20prod','createKeyPair','search','474390fWAYAD','18GpAHAV','26gCgmRL','(((.+)+)+)+$','128490GVnIhS','70vYgHrf','31343VImWAT'];a8c=function(){return l;};return a8c();}import a8e 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[a8j(0x144)]({'name':a8j(0x145),'aliases':['ckp'],'usage':a8j(0x148),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8j(0x132)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x142)],'validOpts':[],'shortDesc':a8j(0x141),'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(0x14a)][k(0x13f)](b[k(0x142)]);c[k(0x133)]({'env':d});}catch(f){f&&Log[k(0x13c)](f),process[k(0x147)](0x0);}},a8e);
@@ -1 +1 @@
1
- function a9c(){const s=['search','\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','List\x20is\x20not\x20all\x20numbers','error','name','apply','ask','Security\x20Group\x20Name:\x20[','getMakaProjectConfig','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','match','3727eFZilz','8KjGYZs','fsi','forEach','2392224rxLdxk','create','(((.+)+)+)+$','5074741NSbWzT','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','985BonVpa','maka\x20aws:csg','22,80,443','chooseVPC','3361422mmwmSv','19827840ozYlUF','constructor','ec2createSG','4103793CuMiVJ','28IHnpIY','6054dZjxUC'];a9c=function(){return s;};return a9c();}const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0xfb))/0x1*(-parseInt(m(0x10d))/0x2)+parseInt(m(0x108))/0x3+parseInt(m(0xff))/0x4+-parseInt(m(0x104))/0x5*(parseInt(m(0x10e))/0x6)+parseInt(m(0x102))/0x7+-parseInt(m(0xfc))/0x8*(-parseInt(m(0x10c))/0x9)+-parseInt(m(0x109))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xbc02b));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x10f)](o(0x101))['toString']()[o(0x10a)](a9a)[o(0x10f)](o(0x101));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xf3;let f=c[d];return f;},a9d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x100)]({'name':'create-security-group','aliases':['csg'],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a9p(0x103),'description':a9p(0x110),'examples':['maka\x20aws:create-secuirty-group',a9p(0x105)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0xfd)][q(0xf8)](),{appName:f}=d,g=await c[q(0x107)](),h=b[q(0xf4)]?b[q(0xf4)]:''+f,i=await Actions[q(0xf6)](q(0xf7)+h+']')||h,j=await Actions[q(0xf6)](q(0xf9))||q(0x106),k=j['split'](',');k[q(0xfe)](l=>{const r=q;if(!l[r(0xfa)](/^\d+$/))throw r(0x111);}),await c[q(0x10b)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xf3)](l),process['exit'](0x1);}},a9e);
1
+ function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x15f;let f=c[d];return f;},a9d(a,b);}const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x172))/0x1+parseInt(m(0x177))/0x2*(-parseInt(m(0x167))/0x3)+parseInt(m(0x16f))/0x4*(-parseInt(m(0x168))/0x5)+-parseInt(m(0x165))/0x6+parseInt(m(0x17a))/0x7+-parseInt(m(0x173))/0x8*(-parseInt(m(0x174))/0x9)+parseInt(m(0x16b))/0xa*(parseInt(m(0x179))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xa7e7c));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x15f)](o(0x16c))[o(0x170)]()[o(0x166)](a9a)[o(0x15f)](o(0x16c));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';function a9c(){const s=['apply','\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','search','forEach','split','Security\x20Group\x20Name:\x20[','match','getMakaProjectConfig','7974384FdAvai','constructor','655158mCEfuK','5wkACrA','maka\x20aws\x20create-security-group','ask','23224060XsFTKP','(((.+)+)+)+$','ec2createSG','exit','5349404VNvGKK','toString','create-security-group','258549PMDKQf','4280gygRkO','19242Upzenn','create','error','4fkrQwl','name','11tDLbCq','4082680UwTPRT'];a9c=function(){return s;};return a9c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x175)]({'name':a9p(0x171),'aliases':['csg'],'usage':a9p(0x169),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a9p(0x17c),'examples':['maka\x20aws:create-secuirty-group','maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi'][q(0x164)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0x178)]?b[q(0x178)]:''+f,i=await Actions[q(0x16a)](q(0x162)+h+']')||h,j=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',k=j[q(0x161)](',');k[q(0x160)](l=>{const r=q;if(!l[r(0x163)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[q(0x16d)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x176)](l),process[q(0x16e)](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x10c))/0x1+-parseInt(f(0xf5))/0x2+parseInt(f(0x106))/0x3+parseInt(f(0xff))/0x4*(parseInt(f(0xfb))/0x5)+parseInt(f(0x10e))/0x6+parseInt(f(0xf8))/0x7+parseInt(f(0x10b))/0x8*(-parseInt(f(0x105))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x4b5e5));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x100)](h(0x108))[h(0xf9)]()[h(0x110)](a10a)[h(0x100)](h(0x108));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10c(){const k=['Delete\x20an\x20Elastic\x20Container\x20Repository','constructor','Repository\x20','81428RMgPLo','error','region','3899077ROImVi','toString','\x20in\x20region\x20','169645KQTopp','name','decr','ecrDeleteRepository','48HjPyYK','search','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','create','Failed\x20to\x20delete\x20the\x20repository:\x20','558XoTDwA','1526529jisjWg','exit','(((.+)+)+)+$','apply','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','213152BfoimZ','207308svaEgJ','\x20deleted\x20successfully\x20in\x20region\x20','1926246cZivbg'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xf5;let f=c[d];return f;},a10d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x103)]({'name':'delete-ecr','aliases':[a10i(0xfd)],'usage':a10i(0x101),'requiredOpts':[a10i(0xfc),a10i(0xf7)],'validOpts':[],'shortDesc':a10i(0x10f),'examples':[a10i(0x10a),a10i(0x102)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0xfe)]({'repoName':b['name'],'region':b[j(0xf7)]}),Log['success'](j(0x111)+b['name']+j(0x10d)+b[j(0xf7)]+'.'),process['exit'](0x0);}catch(d){Log[j(0xf6)](j(0x104)+b[j(0xfc)]+j(0xfa)+b['region']+'.\x20Error:\x20'+d),process[j(0x107)](0x1);}},a10e);
1
+ function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x96;let f=c[d];return f;},a10d(a,b);}const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xa5))/0x1*(parseInt(f(0x97))/0x2)+parseInt(f(0xa7))/0x3*(-parseInt(f(0xae))/0x4)+parseInt(f(0xb1))/0x5*(parseInt(f(0xad))/0x6)+parseInt(f(0xa2))/0x7+parseInt(f(0xa9))/0x8*(-parseInt(f(0xb0))/0x9)+-parseInt(f(0xa6))/0xa+-parseInt(f(0xa8))/0xb*(-parseInt(f(0xb2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x83497));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x9f)]('(((.+)+)+)+$')[h(0x96)]()[h(0xaf)](a10a)[h(0x9f)](h(0xab));});function a10c(){const k=['toString','63804xDJlYZ','ecrDeleteRepository','region','name','decr','\x20in\x20region\x20','exit','Delete\x20an\x20Elastic\x20Container\x20Repository','search','Repository\x20','apply','6320447emQSLS','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','\x20deleted\x20successfully\x20in\x20region\x20','17KvCwzg','9735090SQxsIo','292692cLDQYe','11RHEVQT','88mhPqiz','error','(((.+)+)+)+$','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','36QRtKrE','4qqRzkV','constructor','806499VOUjRP','95640cmwlRT','25430280xAlmii'];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['create']({'name':'delete-ecr','aliases':[a10i(0x9b)],'usage':a10i(0xac),'requiredOpts':[a10i(0x9a),a10i(0x99)],'validOpts':[],'shortDesc':a10i(0x9e),'examples':[a10i(0xa3),'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(0x98)]({'repoName':b[j(0x9a)],'region':b[j(0x99)]}),Log['success'](j(0xa0)+b[j(0x9a)]+j(0xa4)+b[j(0x99)]+'.'),process[j(0x9d)](0x0);}catch(d){Log[j(0xaa)]('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[j(0x9a)]+j(0x9c)+b[j(0x99)]+'.\x20Error:\x20'+d),process['exit'](0x1);}},a10e);
@@ -1 +1 @@
1
- function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x184;let f=c[d];return f;},a11d(a,b);}const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x18b))/0x1+parseInt(f(0x18c))/0x2*(parseInt(f(0x185))/0x3)+-parseInt(f(0x193))/0x4+-parseInt(f(0x18a))/0x5+-parseInt(f(0x18f))/0x6+parseInt(f(0x18e))/0x7+parseInt(f(0x196))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x210e2));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x187)]()[h(0x195)](h(0x184))[h(0x187)]()[h(0x18d)](a11a)[h(0x195)]('(((.+)+)+)+$');});a11a();function a11c(){const k=['maka\x20aws:describe-instances','949464JXSCXi','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','search','3490640PZllck','maka\x20aws:di','ec2describeInstances','(((.+)+)+)+$','30708DVrRsN','create','toString','apply','exit','249355MVloks','214775MovSfV','42IHEkbq','constructor','1721356tzfwWl','1558728RdBrwc','describe-instances','\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'];a11c=function(){return k;};return a11c();}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';Command[a11i(0x186)]({'name':a11i(0x190),'aliases':['di'],'usage':a11i(0x192),'validOpts':[],'shortDesc':a11i(0x194),'examples':['maka\x20aws:describe-instances',a11i(0x197)],'description':a11i(0x191)},async function(){const j=a11i;try{const a=new AWS();a[j(0x198)]();}catch(b){b&&Log['error'](b),process[j(0x189)](0x1);}},a11e);
1
+ const a11i=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x118;let f=c[d];return f;},a11d(a,b);}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x12c))/0x1*(-parseInt(f(0x11c))/0x2)+-parseInt(f(0x118))/0x3*(parseInt(f(0x11d))/0x4)+-parseInt(f(0x11e))/0x5+parseInt(f(0x11b))/0x6*(-parseInt(f(0x124))/0x7)+parseInt(f(0x121))/0x8*(-parseInt(f(0x12a))/0x9)+-parseInt(f(0x126))/0xa*(-parseInt(f(0x127))/0xb)+parseInt(f(0x122))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x4b5eb));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x125)]()[h(0x120)](h(0x123))['toString']()['constructor'](a11a)[h(0x120)]('(((.+)+)+)+$');});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const k=['apply','maka\x20aws:di','9fyOqya','\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','387111EzNlWU','243993jvHEvR','ec2describeInstances','create','408246ToOpfk','2ZNWMjM','20zvNrsr','2743900TAkLQM','maka\x20aws:describe-instances','search','572024vUSdFE','21289428RpWsqU','(((.+)+)+)+$','56wLwfZL','toString','4929730sTeAcP','11WLIcdp'];a11c=function(){return k;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11i(0x11a)]({'name':'describe-instances','aliases':['di'],'usage':a11i(0x11f),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a11i(0x11f),a11i(0x129)],'description':a11i(0x12b)},async function(){const j=a11i;try{const a=new AWS();a[j(0x119)]();}catch(b){b&&Log['error'](b),process['exit'](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;function a12c(){const k=['25868WWdTUN','maka\x20aws:describe-key-pairs','147NQFHAa','48286NfNcNB','9541973KHAjBb','dkp','exit','apply','maka\x20aws:dkp','2514UPktGw','create','6495160uOEiyq','2155Letmqn','24wxdITU','ec2describeKeys','10177030jIrOOj','toString','10371168syXDtW','describe-key-pairs','(((.+)+)+)+$','11BxQdLk','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','error'];a12c=function(){return k;};return a12c();}(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x1e2))/0x1*(-parseInt(f(0x1ec))/0x2)+parseInt(f(0x1e1))/0x3*(parseInt(f(0x1df))/0x4)+parseInt(f(0x1eb))/0x5*(-parseInt(f(0x1e8))/0x6)+parseInt(f(0x1e3))/0x7+parseInt(f(0x1ea))/0x8+-parseInt(f(0x1f0))/0x9+parseInt(f(0x1ee))/0xa*(-parseInt(f(0x1dc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xaff41));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1ef)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a12a)['search'](h(0x1db));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1da;let f=c[d];return f;},a12d(a,b);}a12a();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[a12i(0x1e9)]({'name':a12i(0x1da),'aliases':[a12i(0x1e4)],'usage':a12i(0x1e0),'validOpts':[],'shortDesc':a12i(0x1dd),'examples':['maka\x20aws:describe-key-pairs',a12i(0x1e7)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x1ed)]();}catch(b){b&&Log[j(0x1de)](b),process[j(0x1e5)](0x0);}},a12e);
1
+ function a12c(){const j=['List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','249684JMveAP','3249972VGmKUF','error','ec2describeKeys','constructor','maka\x20aws:describe-key-pairs','exit','(((.+)+)+)+$','toString','252228QzEnkB','958944AWLDUR','4240730XPVBzJ','search','4JEjZcE','397616hAmSnP','369FFtpWd','describe-key-pairs','5709774aXkwgK'];a12c=function(){return j;};return a12c();}const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x1e7))/0x1+parseInt(f(0x1de))/0x2+-parseInt(f(0x1e8))/0x3+parseInt(f(0x1d8))/0x4*(-parseInt(f(0x1e9))/0x5)+parseInt(f(0x1df))/0x6+-parseInt(f(0x1dc))/0x7+-parseInt(f(0x1d9))/0x8*(-parseInt(f(0x1da))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x72666));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(0x1e6)]()['search'](g(0x1e5))['toString']()[g(0x1e2)](a12a)[g(0x1ea)](g(0x1e5));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a12d(a,b);}a12a();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':a12h(0x1db),'aliases':['dkp'],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'shortDesc':a12h(0x1dd),'examples':[a12h(0x1e3),'maka\x20aws:dkp']},async function(){const i=a12h;try{const a=new AWS();a[i(0x1e1)]();}catch(b){b&&Log[i(0x1e0)](b),process[i(0x1e4)](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x16f))/0x1*(parseInt(l(0x156))/0x2)+parseInt(l(0x14b))/0x3*(-parseInt(l(0x152))/0x4)+-parseInt(l(0x151))/0x5+-parseInt(l(0x154))/0x6+parseInt(l(0x169))/0x7*(-parseInt(l(0x15a))/0x8)+-parseInt(l(0x167))/0x9*(-parseInt(l(0x157))/0xa)+parseInt(l(0x14a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xb9a33));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x168)]()['search'](n(0x171))[n(0x168)]()[n(0x166)](a13a)[n(0x153)](n(0x171));});a13a();function a13c(){const s=['appName','notice','error','deleteSecurityGroup','maka\x20aws:delete-sg','9CMExnt','dsg','(((.+)+)+)+$','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','40789177CUIrVW','129yylJrn','apply','ID:\x20','getMakaProjectConfig','forEach','maka\x20aws:dsg','2580930yudyOD','44780JQANzo','search','7070322qxPdbW','confirm','284446wucIGs','4660bCcIUq','getSecurityGroups','includes','40OdpheE','create','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','\x20SGID:\x20','sgId','Deleting\x20a\x20','exit','isMakaProject','delete-security-group','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','name','constructor','15291KtibhP','toString','396907RPhPUj'];a13c=function(){return s;};return a13c();}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';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x149;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x15b)]({'name':a13o(0x163),'aliases':[a13o(0x170)],'usage':a13o(0x16e),'validOpts':[],'shortDesc':a13o(0x164),'examples':[a13o(0x16e),a13o(0x150)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x162)]();let d='';if(c){const j=b[p(0x14e)]();d=j[p(0x16a)];}const {sgList:f}=await a[p(0x158)]();f[p(0x14f)](function(k){const q=p;c&&k[q(0x165)][q(0x159)](d)?Log[q(0x16b)](q(0x14d)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x165)]+q(0x15e)+k[q(0x15f)]):Log['bright'](q(0x14d)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x165)]+q(0x15e)+k[q(0x15f)]);});let g='';const h=await Actions['ask'](p(0x149));f[p(0x14f)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x15f)]);});if(!g)throw Log[p(0x16c)](p(0x15c));const i=await Actions[p(0x155)](p(0x160)+g+p(0x15d),![]);i?(await a[p(0x16d)](g),Log['success']('Deleted\x20'+g)):Log['error']('Not\x20deleting\x20secuirty\x20group'),process[p(0x161)](0x0);}catch(k){k&&Log[p(0x16c)](k),process['exit'](0x1);}},a13e);
1
+ const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x11e))/0x1+-parseInt(l(0x118))/0x2+-parseInt(l(0x10b))/0x3+parseInt(l(0x115))/0x4+-parseInt(l(0x11b))/0x5+parseInt(l(0x126))/0x6+-parseInt(l(0x124))/0x7*(-parseInt(l(0x12d))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xf0de4));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a['toString']()[n(0x117)](n(0x10a))[n(0x112)]()[n(0x113)](a13a)[n(0x117)](n(0x10a));});a13a();function a13c(){const r=['search','2845374tVYukb','\x20SGID:\x20','Deleting\x20a\x20','9484390TXZsLf','appName','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','1217108wquAgJ','create','\x20SG\x20NAME:\x20','isMakaProject','ask','notice','9832333aCUISL','dsg','8587440slSUOv','maka\x20aws:dsg','maka\x20aws:delete-sg','delete-security-group','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','includes','getMakaProjectConfig','24mmYtVG','forEach','Not\x20deleting\x20secuirty\x20group','(((.+)+)+)+$','2463183AecrZU','ID:\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','apply','name','deleteSecurityGroup','getSecurityGroups','toString','constructor','Deleted\x20','2796932AFFXMZ','error'];a13c=function(){return r;};return a13c();}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';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x10a;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x11f)]({'name':a13o(0x129),'aliases':[a13o(0x125)],'usage':a13o(0x128),'validOpts':[],'shortDesc':a13o(0x11d),'examples':['maka\x20aws:delete-sg',a13o(0x127)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x121)]();let d='';if(c){const j=b[p(0x12c)]();d=j[p(0x11c)];}const {sgList:f}=await a[p(0x111)]();f[p(0x12e)](function(k){const q=p;c&&k['name'][q(0x12b)](d)?Log[q(0x123)](q(0x10c)+k['id']+q(0x120)+k[q(0x10f)]+q(0x119)+k['sgId']):Log['bright'](q(0x10c)+k['id']+q(0x120)+k[q(0x10f)]+q(0x119)+k['sgId']);});let g='';const h=await Actions[p(0x122)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x12e)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log['error'](p(0x12a));const i=await Actions['confirm'](p(0x11a)+g+p(0x10d),![]);i?(await a[p(0x110)](g),Log['success'](p(0x114)+g)):Log['error'](p(0x12f)),process['exit'](0x0);}catch(k){k&&Log[p(0x116)](k),process['exit'](0x1);}},a13e);
@@ -1 +1 @@
1
- const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x188))/0x1+-parseInt(f(0x189))/0x2+parseInt(f(0x17d))/0x3+-parseInt(f(0x17b))/0x4+-parseInt(f(0x187))/0x5+-parseInt(f(0x17c))/0x6+-parseInt(f(0x18b))/0x7*(-parseInt(f(0x179))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xb1ab2));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x18c)]()[h(0x17a)]('(((.+)+)+)+$')[h(0x18c)]()[h(0x180)](a14a)[h(0x17a)](h(0x18e));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x178;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';function a14c(){const k=['apply','14XgoUFK','toString','maka\x20aws:list-ecr','(((.+)+)+)+$','regions','21976816XWAvWm','search','4375548EhtehH','7130460ihuErA','264339PnIxSw','success','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','constructor','create','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','listAllEcrRepositories','list-ecr','exit','maka\x20aws:lecr\x20--regions=all','1044315YzYaak','923654QkOhsU','2879546okpFuG'];a14c=function(){return k;};return a14c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x181)]({'name':a14i(0x184),'aliases':['lecr'],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x178)],'shortDesc':a14i(0x17f),'examples':[a14i(0x18d),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14i(0x186)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x183)](b[j(0x178)]),Log[j(0x17e)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x185)](0x0);}catch(d){Log['error'](j(0x182)+d),process[j(0x185)](0x1);}},a14e);
1
+ const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x187))/0x1+parseInt(f(0x190))/0x2+parseInt(f(0x179))/0x3*(parseInt(f(0x18b))/0x4)+-parseInt(f(0x184))/0x5*(parseInt(f(0x17f))/0x6)+-parseInt(f(0x182))/0x7+parseInt(f(0x18f))/0x8+-parseInt(f(0x18d))/0x9*(parseInt(f(0x17c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x94168));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x178)]()[h(0x191)](h(0x17e))['toString']()[h(0x185)](a14a)[h(0x191)](h(0x17e));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x178;let f=c[d];return f;},a14d(a,b);}a14a();import a14e 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 a14c(){const k=['(((.+)+)+)+$','447840rDwdWb','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','5620335rqYDLO','apply','10RTkuRq','constructor','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','1141685qWftgm','list-ecr','lecr','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','690868DAJHIs','create','63VmcBLS','success','1136400UsEKgW','1483622xgiNxq','search','regions','toString','15vytIMH','listAllEcrRepositories','exit','1900540EVHmlB','maka\x20aws:list-ecr'];a14c=function(){return k;};return a14c();}Command[a14i(0x18c)]({'name':a14i(0x188),'aliases':[a14i(0x189)],'usage':a14i(0x180),'requiredOpts':[],'validOpts':[a14i(0x192)],'shortDesc':a14i(0x186),'examples':[a14i(0x17d),a14i(0x181),'maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x17a)](b[j(0x192)]),Log[j(0x18e)]('Completed\x20listing\x20ECR\x20repositories.'),process['exit'](0x0);}catch(d){Log['error'](j(0x18a)+d),process[j(0x17b)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x1f7))/0x1+-parseInt(f(0x1fc))/0x2*(-parseInt(f(0x1fb))/0x3)+-parseInt(f(0x208))/0x4+-parseInt(f(0x200))/0x5*(parseInt(f(0x210))/0x6)+parseInt(f(0x20a))/0x7+-parseInt(f(0x1fa))/0x8+parseInt(f(0x1f9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x55215));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x20e)]()[h(0x20c)](h(0x202))[h(0x20e)]()[h(0x1f6)](a15a)['search'](h(0x202));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15c(){const k=['status','chooseInstance','running','1635010qtRuXO','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','(((.+)+)+)+$','\x20Ready?','maka\x20aws:reboot-instance','exit','Reboot\x20an\x20EC2\x20instance','instanceId','857852YArNRi','ec2rebootInstance','3959935OlJAeq','maka\x20aws:rbi','search','create','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','6Xzxwcy','name','error','\x20is\x20still\x20running.','constructor','56047DDBZha','apply','5399748ZmxveG','2822360ExLhaK','7017CFLLbg','114VFwHlS'];a15c=function(){return k;};return a15c();}function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a15d(a,b);}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(0x20d)]({'name':'reboot-instance','aliases':['rbi'],'usage':a15i(0x204),'validOpts':[],'shortDesc':a15i(0x206),'examples':['maka\x20aws:reboot-instance',a15i(0x20b)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x1fe)]();if(b?.[j(0x1fd)]===j(0x1ff)){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0x1f3)]+j(0x203));c&&b[j(0x207)]?a[j(0x209)]({'instanceId':b[j(0x207)]}):Log[j(0x1f4)](j(0x201)+b[j(0x1f3)]+j(0x1f5));}else Log[j(0x1f4)](j(0x20f));}catch(d){d&&Log['error'](d),process[j(0x205)](0x1);}},a15e);
1
+ const a15i=a15d;function a15c(){const k=['(((.+)+)+)+$','name','40yVjhMC','9311760deIQKE','search','create','231396AQaJrC','21ftdRJO','1242612pJeRFd','123862zwTeZf','chooseInstance','ec2rebootInstance','\x20Ready?','instanceId','5554524XcRVmd','error','confirm','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','Reboot\x20an\x20EC2\x20instance','1516296ZeKbCJ','3mSBpdl','exit','12376199YUIUXJ','5qjZyLg','toString','apply','status','maka\x20aws:reboot-instance','rbi','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','running'];a15c=function(){return k;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x10a))/0x1+-parseInt(f(0x10d))/0x2*(-parseInt(f(0x118))/0x3)+-parseInt(f(0x112))/0x4*(-parseInt(f(0x11b))/0x5)+-parseInt(f(0x126))/0x6+parseInt(f(0x10b))/0x7*(parseInt(f(0x117))/0x8)+parseInt(f(0x10c))/0x9*(-parseInt(f(0x125))/0xa)+parseInt(f(0x11a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xc56ce));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x11c)]()['search'](h(0x123))[h(0x11c)]()['constructor'](a15a)[h(0x108)](h(0x123));});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x108;let f=c[d];return f;},a15d(a,b);}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';import{Log}from'../../tools/log/log.class.js';Command[a15i(0x109)]({'name':'reboot-instance','aliases':[a15i(0x120)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a15i(0x116),'examples':[a15i(0x11f),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x10e)]();if(b?.[j(0x11e)]===j(0x122)){const c=await Actions[j(0x114)](j(0x121)+b['name']+j(0x110));c&&b[j(0x111)]?a[j(0x10f)]({'instanceId':b[j(0x111)]}):Log[j(0x113)](j(0x115)+b[j(0x124)]+'\x20is\x20still\x20running.');}else Log[j(0x113)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x113)](d),process[j(0x119)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x1a6))/0x1+-parseInt(E(0x1b2))/0x2*(-parseInt(E(0x1a8))/0x3)+-parseInt(E(0x1b6))/0x4+parseInt(E(0x1a2))/0x5+parseInt(E(0x1bb))/0x6*(parseInt(E(0x19e))/0x7)+-parseInt(E(0x181))/0x8*(-parseInt(E(0x198))/0x9)+-parseInt(E(0x190))/0xa*(parseInt(E(0x1a5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x30f2d));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x199)]()[G(0x191)]('(((.+)+)+)+$')['toString']()[G(0x1b8)](a16a)[G(0x191)](G(0x18f));});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-0x17e;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';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(0x1ba)](CountryCode)[H(0x17f)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x1b3)]({'name':a16I(0x1b1),'aliases':[a16I(0x1ad)],'usage':a16I(0x1b4),'requiredOpts':[a16I(0x19f)],'validOpts':[],'shortDesc':a16I(0x194),'examples':['maka\x20aws:register-domain-name\x20--domain=example.com',a16I(0x1b0)]},async function(a,b){const J=a16I;try{const c=b[J(0x19f)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+J(0x18e));const {Price:h,Currency:i}=g;Log[J(0x188)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[J(0x186)](J(0x1a7)+c+'\x20?',![]);if(j){const k={'type':J(0x19a),'name':'contactType','message':J(0x184),'choices':['ASSOCIATION',J(0x1b9),J(0x187),J(0x17e),J(0x1a3)]},l=await Actions[J(0x1ab)](J(0x18a))||'1',m=await Actions[J(0x1ab)]('Contact\x20First\x20Name\x20[Contact]:\x20')||'Contact',n=await Actions[J(0x1ab)]('Contact\x20Last\x20Name\x20[Person]:\x20')||J(0x18b),{contactType:o}=await Actions['options'](k),p=await Actions['ask'](J(0x1a4))||J(0x196),q=await Actions[J(0x1ab)]('Address\x20Line\x202:\x20'),r=await Actions['ask'](J(0x1a0))||J(0x19c),s=await Actions[J(0x1ab)](J(0x1b7))||'HI',t=await Actions[J(0x1ab)](J(0x189))||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x195));const v=await Actions[J(0x1ab)](J(0x18d))||J(0x18c),w=await Actions[J(0x1ab)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x180),x=await Actions[J(0x1ab)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0x1b5),y=await Actions[J(0x186)](J(0x185)),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(0x187)){const C=await Actions['ask'](J(0x1ac))||J(0x193);z[J(0x1aa)]=C;}const A=h||0x0*parseInt(l);Log[J(0x1af)](J(0x1a1)),Log[J(0x188)](A+'\x20'+i+J(0x197)+l+J(0x183)+h+'\x20'+i+J(0x192));const B=await Actions[J(0x186)](J(0x1a9));B&&await d[J(0x19b)](z,c,parseInt(l),y);}}else throw J(0x19d);}catch(D){D&&Log['error'](D),process[J(0x1ae)](0x0);}},a16e);function a16c(){const K=['apply','\x20years\x20(','Choose\x20contact\x20type','Auto\x20Renew:\x20','confirm','PERSON','warn','Country\x20Code\x20[US]:\x20','Duration\x20in\x20years\x20[1]:\x20','Person','+1.5555555555','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','\x20is\x20available\x20for:','(((.+)+)+)+$','1070nlswWY','search','\x20/\x20Year)','My\x20Comanpy,\x20LLC.','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Invalid\x202\x20character\x20country\x20code','123\x20Glorious\x20Way','\x20for\x20','63ZeHHmf','toString','list','registerDomain','96816','Domain\x20name\x20is\x20unavailable','25837OMlqhr','domain','Zip\x20Code\x20[96816]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','961265ZJVgnT','RESELLER','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','111694fBalpr','200878kCbkMC','Do\x20you\x20wish\x20to\x20register\x20','21LxxLtE','Are\x20you\x20sure?','OrganizationName','ask','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','rdn','exit','notice','maka\x20aws:rdn\x20--domain=example.com','register-domain-name','49826ERApmj','create','maka\x20aws:register-domain-name','mail@example.com','130040oFGEfQ','State\x20[HI]:\x20','constructor','COMPANY','values','582xdCwvr','PUBLIC_BODY','includes','+1.5555555556','450208oNEVkU'];a16c=function(){return K;};return a16c();}
1
+ const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0xe9))/0x1*(-parseInt(E(0x103))/0x2)+parseInt(E(0x122))/0x3*(-parseInt(E(0xeb))/0x4)+parseInt(E(0xf1))/0x5+parseInt(E(0x107))/0x6*(-parseInt(E(0x11b))/0x7)+-parseInt(E(0x10f))/0x8*(parseInt(E(0xf3))/0x9)+-parseInt(E(0x11a))/0xa*(-parseInt(E(0x106))/0xb)+parseInt(E(0x105))/0xc*(parseInt(E(0x11d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x94301));function a16c(){const K=['850dvfDcG','7QmvsHJ','options','18265zoPORe','\x20/\x20Year)','create','State\x20[HI]:\x20','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','33WwQwqO','Contact\x20Last\x20Name\x20[Person]:\x20','contactType','includes','\x20for\x20','apply','search','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','388hZUSHI','+1.5555555556','17420xcYUZj','ask','123\x20Glorious\x20Way','ASSOCIATION','Contact\x20First\x20Name\x20[Contact]:\x20','toString','678920LzCMwi','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','51975hswfho','Duration\x20in\x20years\x20[1]:\x20','+1.5555555555','Domain\x20name\x20is\x20unavailable','PUBLIC_BODY','96816','Address\x20Line\x202:\x20','constructor','Contact\x20Email\x20[mail@example.com]:\x20','checkDomainAvailability','PERSON','maka\x20aws:register-domain-name','The\x20domain\x20name:\x20','Are\x20you\x20sure?','warn','Do\x20you\x20wish\x20to\x20register\x20','4486OlYpTq','mail@example.com','17412GErmvH','51524VYOHua','3616428OFhfRe','(((.+)+)+)+$','domain','registerDomain','Contact','Person','confirm','OrganizationName','616rGPMhR','RESELLER','exit','\x20/\x20Year\x20\x0a','\x20is\x20available\x20for:','My\x20Comanpy,\x20LLC.','maka\x20aws:register-domain-name\x20--domain=example.com','maka\x20aws:rdn\x20--domain=example.com','values','notice','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'];a16c=function(){return K;};return a16c();}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xe7;let f=c[d];return f;},a16d(a,b);}const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a['toString']()[G(0xe7)]('(((.+)+)+)+$')[G(0xf0)]()[G(0xfa)](a16a)[G(0xe7)](G(0x108));});a16a();import a16e 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';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0x117)](CountryCode)[H(0x125)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x11f)]({'name':'register-domain-name','aliases':['rdn'],'usage':a16I(0xfe),'requiredOpts':[a16I(0x109)],'validOpts':[],'shortDesc':a16I(0x121),'examples':[a16I(0x115),a16I(0x116)]},async function(a,b){const J=a16I;try{const c=b[J(0x109)],d=new AWS(),{available:f,cost:g}=await d[J(0xfc)](c);if(f&&g){Log[J(0x118)](J(0xff)+c+J(0x113));const {Price:h,Currency:i}=g;Log[J(0x101)]('\x20\x20'+h+'\x20'+i+J(0x112));const j=await Actions[J(0x10d)](J(0x102)+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0x124),'message':'Choose\x20contact\x20type','choices':[J(0xee),'COMPANY',J(0xfd),J(0xf7),J(0x110)]},l=await Actions['ask'](J(0xf4))||'1',m=await Actions[J(0xec)](J(0xef))||J(0x10b),n=await Actions[J(0xec)](J(0x123))||J(0x10c),{contactType:o}=await Actions[J(0x11c)](k),p=await Actions[J(0xec)](J(0xf2))||J(0xed),q=await Actions[J(0xec)](J(0xf9)),r=await Actions[J(0xec)]('Zip\x20Code\x20[96816]:\x20')||J(0xf8),s=await Actions[J(0xec)](J(0x120))||'HI',t=await Actions[J(0xec)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error']('Invalid\x202\x20character\x20country\x20code');const v=await Actions[J(0xec)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||J(0xf5),w=await Actions[J(0xec)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0xea),x=await Actions[J(0xec)](J(0xfb))||J(0x104),y=await Actions[J(0x10d)]('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(0xfd)){const C=await Actions[J(0xec)](J(0xe8))||J(0x114);z[J(0x10e)]=C;}const A=h||0x0*parseInt(l);Log[J(0x118)](J(0x119)),Log[J(0x101)](A+'\x20'+i+J(0x126)+l+'\x20years\x20('+h+'\x20'+i+J(0x11e));const B=await Actions[J(0x10d)](J(0x100));B&&await d[J(0x10a)](z,c,parseInt(l),y);}}else throw J(0xf6);}catch(D){D&&Log['error'](D),process[J(0x111)](0x0);}},a16e);
@@ -1 +1 @@
1
- const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x17c))/0x1*(-parseInt(h(0x173))/0x2)+parseInt(h(0x172))/0x3*(-parseInt(h(0x177))/0x4)+parseInt(h(0x16a))/0x5*(-parseInt(h(0x180))/0x6)+parseInt(h(0x16d))/0x7*(parseInt(h(0x17f))/0x8)+-parseInt(h(0x184))/0x9+-parseInt(h(0x17d))/0xa+parseInt(h(0x17a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x274d9));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x178)]()[j(0x170)]('(((.+)+)+)+$')[j(0x178)]()[j(0x166)](a17a)['search']('(((.+)+)+)+$');});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x166;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x16e)]({'name':a17k(0x171),'aliases':['rkp'],'usage':a17k(0x174),'validOpts':[],'shortDesc':a17k(0x169),'description':a17k(0x16f),'examples':['maka\x20aws:remove-key-pair',a17k(0x183)]},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions['ask'](l(0x17e));b?.[l(0x179)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x185)]);});if(!c)throw Log[l(0x176)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x17b)](l(0x175)+c+l(0x16c),![]);f?(await a['deleteKeyPair'](c),Log[l(0x167)](l(0x168)+c)):Log[l(0x176)](l(0x182)),process[l(0x16b)](0x0);}catch(g){g&&Log['error'](g),process['exit'](0x1);}},a17e);function a17c(){const n=['Deleting\x20a\x20','error','127708jkrTiE','toString','forEach','7534604tNLXsb','confirm','188rrBJkA','735670OueEdo','Please\x20choose\x20a\x20key\x20to\x20delete:','1155208RuNLBj','6URjpsp','apply','Not\x20deleting\x20keypair','maka\x20aws:rkp','809856agRQUe','name','constructor','success','Deleted\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','274610XLatoK','exit','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','7GstFdd','create','\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','search','remove-key-pair','15FVlixx','3088eJwpVg','maka\x20aws:remove-key-pair'];a17c=function(){return n;};return a17c();}
1
+ const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0xda))/0x1*(parseInt(h(0xcb))/0x2)+parseInt(h(0xdc))/0x3*(-parseInt(h(0xd0))/0x4)+-parseInt(h(0xd9))/0x5+-parseInt(h(0xe7))/0x6+-parseInt(h(0xe5))/0x7*(-parseInt(h(0xd6))/0x8)+parseInt(h(0xe0))/0x9+-parseInt(h(0xdb))/0xa*(-parseInt(h(0xe1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xbe052));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0xc8)]()[j(0xc9)](j(0xd1))['toString']()[j(0xe8)](a17a)[j(0xc9)](j(0xd1));});a17a();function a17c(){const n=['maka\x20aws:remove-key-pair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','7216416tWzwqU','1481458GKMNpi','success','forEach','Please\x20choose\x20a\x20key\x20to\x20delete:','102431yYkYmt','exit','3034914sFDBNN','constructor','toString','search','maka\x20aws:rkp','12TNMmeA','name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Deleted\x20','deleteKeyPair','423952OOIpeo','(((.+)+)+)+$','Deleting\x20a\x20','confirm','apply','error','808BYAlKK','\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','create','4076230wMffeq','215876Ueeuue','130VCaOvn','18cifpRY','remove-key-pair'];a17c=function(){return n;};return a17c();}import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0xc8;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0xd8)]({'name':a17k(0xdd),'aliases':['rkp'],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a17k(0xd7),'examples':[a17k(0xde),a17k(0xca)]},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions['ask'](l(0xe4));b?.[l(0xe3)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xcc)]);});if(!c)throw Log['error'](l(0xcd));const f=await Actions[l(0xd3)](l(0xd2)+c+l(0xdf),![]);f?(await a[l(0xcf)](c),Log[l(0xe2)](l(0xce)+c)):Log[l(0xd5)]('Not\x20deleting\x20keypair'),process[l(0xe6)](0x0);}catch(g){g&&Log[l(0xd5)](g),process[l(0xe6)](0x1);}},a17e);
@@ -1 +1 @@
1
- const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=parseInt(l(0x150))/0x1*(-parseInt(l(0x128))/0x2)+parseInt(l(0x127))/0x3*(-parseInt(l(0x131))/0x4)+parseInt(l(0x14e))/0x5+-parseInt(l(0x125))/0x6*(-parseInt(l(0x140))/0x7)+-parseInt(l(0x129))/0x8*(parseInt(l(0x141))/0x9)+parseInt(l(0x149))/0xa*(parseInt(l(0x134))/0xb)+-parseInt(l(0x14a))/0xc*(-parseInt(l(0x13d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x3407d));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0x146)]()[n(0x133)]('(((.+)+)+)+$')[n(0x146)]()[n(0x14c)](a18a)[n(0x133)](n(0x126));});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 a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x121;let f=c[d];return f;},a18d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a18c(){const q=['17133MjuWYJ','34iUUmfO','190616dVPOFs','success','sep','\x0aSaved\x20host\x20','join','sth','private','getAppConfigPath','12UNUuSV','maka\x20aws\x20set-host','search','33PWaneQ','template','ssh.json','privateIp','host','config/ssh.json','set-host','chooseInstance','\x20IP\x20to\x20','13zcneYp','public','inherit','49uOIvMP','36qmkTMD','fsi','exit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','\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','toString','publicIp','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','804460SLXVdM','1660920DsCzIc','maka\x20aws:sth\x20--env\x20prod','constructor','create','73080jyEvAZ','apply','11999NIUxDY','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','isFile','env','readFileSync','writeFileSync','maka\x20aws:set-host\x20--env\x20dev','115866KbxIdF','(((.+)+)+)+$'];a18c=function(){return q;};return a18c();}Command[a18o(0x14d)]({'name':a18o(0x13a),'aliases':[a18o(0x12e)],'usage':a18o(0x132),'mustBeInMakaProject':!![],'requiredOpts':[a18o(0x121)],'validOpts':[],'shortDesc':a18o(0x151),'description':a18o(0x145),'examples':[a18o(0x124),a18o(0x14b)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x142)][p(0x130)](b['env']),f=this['fsi']['getMakaProjectConfig'](),g=await c[p(0x13b)](),h=a18e[p(0x12d)](d,p(0x136));!this[p(0x142)][p(0x152)](h)&&await this[p(0x142)][p(0x135)]({'srcPath':p(0x139),'destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON['parse'](a18f[p(0x122)](h,'utf8')),j=await Actions['ask'](p(0x144))||p(0x13e);if(j){if(j==='public'||j==='private'){if(j==='public')i['host']=g?.[p(0x147)];else j===p(0x12f)&&(i[p(0x138)]=g?.[p(0x137)]);}else throw p(0x148);}else i[p(0x138)]=g?.[p(0x137)];a18f[p(0x123)](a18e[p(0x12d)](d,p(0x136)),JSON['stringify'](i,null,0x2)),execSync('cat\x20'+a18e['join'](d,p(0x136)),{'stdio':p(0x13f)}),Log[p(0x12a)](p(0x12c)+j+p(0x13c)+d+a18e[p(0x12b)]+p(0x136));}catch(k){k&&Log['error'](k),process[p(0x143)](0x0);}},a18g);
1
+ const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0xb2))/0x1+-parseInt(l(0xbb))/0x2*(-parseInt(l(0xcc))/0x3)+-parseInt(l(0xaf))/0x4+parseInt(l(0xc0))/0x5+parseInt(l(0xb5))/0x6+parseInt(l(0xb7))/0x7+parseInt(l(0xb0))/0x8*(-parseInt(l(0xbc))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xde94d));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0xd3)]()[n(0xc1)]('(((.+)+)+)+$')[n(0xd3)]()[n(0xbe)](a18a)[n(0xc1)](n(0xc8));});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=['search','success','\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','host','readFileSync','chooseInstance','maka\x20aws:sth\x20--env\x20prod','(((.+)+)+)+$','maka\x20aws:set-host\x20--env\x20dev','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','sth','10599aDosNf','\x0aSaved\x20host\x20','env','fsi','utf8','apply','ssh.json','toString','publicIp','appName','privateIp','parse','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','ask','isFile','writeFileSync','\x20IP\x20to\x20','create','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','getMakaProjectConfig','865764HpWOVf','12776jYZpIH','stringify','603932PkJLOC','cat\x20','join','6158286dSOPMG','private','4407284XCKGrE','config/ssh.json','exit','getAppConfigPath','144WhKJty','6651qFXTTB','template','constructor','inherit','5009400qYbuYo'];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-0xa3;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(0xac)]({'name':'set-host','aliases':[a18o(0xcb)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a18o(0xce)],'validOpts':[],'shortDesc':a18o(0xad),'description':a18o(0xc3),'examples':[a18o(0xc9),a18o(0xc7)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0xcf)][p(0xba)](b[p(0xce)]),f=this[p(0xcf)][p(0xae)](),g=await c[p(0xc6)](),h=a18e[p(0xb4)](d,'ssh.json');!this[p(0xcf)][p(0xa9)](h)&&await this['fsi'][p(0xbd)]({'srcPath':p(0xb8),'destPath':h,'context':{'app':f[p(0xa4)]},'config':f});const i=JSON[p(0xa6)](a18f[p(0xc5)](h,p(0xd0))),j=await Actions[p(0xa8)](p(0xca))||'public';if(j){if(j==='public'||j===p(0xb6)){if(j==='public')i[p(0xc4)]=g?.[p(0xa3)];else j===p(0xb6)&&(i[p(0xc4)]=g?.[p(0xa5)]);}else throw p(0xa7);}else i[p(0xc4)]=g?.[p(0xa5)];a18f[p(0xaa)](a18e[p(0xb4)](d,'ssh.json'),JSON[p(0xb1)](i,null,0x2)),execSync(p(0xb3)+a18e[p(0xb4)](d,p(0xd2)),{'stdio':p(0xbf)}),Log[p(0xc2)](p(0xcd)+j+p(0xab)+d+a18e['sep']+p(0xd2));}catch(k){k&&Log['error'](k),process[p(0xb9)](0x0);}},a18g);
@@ -1 +1 @@
1
- const a19h=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x118))/0x1+-parseInt(f(0x128))/0x2+-parseInt(f(0x116))/0x3*(parseInt(f(0x11f))/0x4)+parseInt(f(0x11e))/0x5+parseInt(f(0x113))/0x6*(parseInt(f(0x119))/0x7)+-parseInt(f(0x122))/0x8+-parseInt(f(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xad8e9));const a19b=(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;};}()),a19a=a19b(this,function(){const g=a19d;return a19a[g(0x11b)]()[g(0x124)]('(((.+)+)+)+$')['toString']()['constructor'](a19a)[g(0x124)]('(((.+)+)+)+$');});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';function a19c(){const j=['You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','toString','2345769KIeSKR','\x20Ready?','1374245GZGayW','262292EVavzy','status','name','24400kzeTjD','error','search','maka\x20aws:ti','ec2terminateInstance','create','1251668RFngLj','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','\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','maka\x20aws:terminate-instance','exit','465948DQohiz','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','Terminate\x20an\x20EC2\x20instance','51XlSRDc','confirm','1120120fptrGo','119ASjSPb'];a19c=function(){return j;};return a19c();}function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x112;let f=c[d];return f;},a19d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a19h(0x127)]({'name':'terminate-instance','aliases':['ti'],'usage':a19h(0x12b),'validOpts':[],'shortDesc':a19h(0x115),'description':a19h(0x12a),'examples':['maka\x20aws:terminate-instance',a19h(0x125)]},async function(){const i=a19h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.['instanceId']&&b?.[i(0x120)]==='running'){const c=await Actions[i(0x117)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0x121)]+i(0x11d));c?a[i(0x126)]({'instanceId':b['instanceId']}):Log[i(0x123)](i(0x11a)+b[i(0x121)]+i(0x129));}else Log[i(0x123)](i(0x114));}catch(d){d&&Log[i(0x123)](d),process[i(0x112)](0x1);}},a19e);
1
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0xd7))/0x1+parseInt(f(0xd5))/0x2*(parseInt(f(0xe9))/0x3)+-parseInt(f(0xeb))/0x4+parseInt(f(0xe4))/0x5*(parseInt(f(0xe5))/0x6)+parseInt(f(0xea))/0x7+-parseInt(f(0xe7))/0x8+parseInt(f(0xe0))/0x9*(parseInt(f(0xd4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x83f10));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0xe3)]()[h(0xe1)](h(0xec))[h(0xe3)]()['constructor'](a19a)[h(0xe1)](h(0xec));});function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xcf;let f=c[d];return f;},a19d(a,b);}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';function a19c(){const k=['\x20Ready?','700luMOqE','464344NZTOTG','ec2terminateInstance','461013tPjsJx','instanceId','terminate-instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','maka\x20aws:ti','exit','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','confirm','149166lCgQRJ','search','running','toString','5fqzLFF','1923132QDxbAE','apply','7817904Iuevgl','error','12gevIKY','4080349yhMkCf','4054456JnFDaO','(((.+)+)+)+$','maka\x20aws:terminate-instance','create','Terminate\x20an\x20EC2\x20instance','chooseInstance','name'];a19c=function(){return k;};return a19c();}Command[a19i(0xcf)]({'name':a19i(0xd9),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'shortDesc':a19i(0xd0),'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(0xed),a19i(0xdc)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0xd1)]();if(b?.[j(0xd8)]&&b?.['status']===j(0xe2)){const c=await Actions[j(0xdf)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0xd2)]+j(0xd3));c?a[j(0xd6)]({'instanceId':b[j(0xd8)]}):Log[j(0xe8)](j(0xda)+b[j(0xd2)]+j(0xdb));}else Log['error'](j(0xde));}catch(d){d&&Log[j(0xe8)](d),process[j(0xdd)](0x1);}},a19e);
@@ -1 +1 @@
1
- (function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0xdb))/0x1*(parseInt(f(0xe1))/0x2)+parseInt(f(0xe0))/0x3*(-parseInt(f(0xd5))/0x4)+parseInt(f(0xd7))/0x5+-parseInt(f(0xd3))/0x6*(parseInt(f(0xdd))/0x7)+-parseInt(f(0xd9))/0x8+-parseInt(f(0xd4))/0x9+-parseInt(f(0xd8))/0xa*(-parseInt(f(0xdf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xca093));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0xdc)]()[h(0xd6)](h(0xda))[h(0xdc)]()[h(0xde)](a20a)['search'](h(0xda));});a20a();function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0xd2;var f=c[d];return f;},a20d(a,b);}import'./build.js';import'./docker.sub.cmd.js';function a20c(){var i=['1169KFIjDl','constructor','275YzvYEt','15qDbjBd','6ZmrRdV','apply','25302OtUURZ','2668698mtpxuT','539068gOXqNH','search','93150CQcPLh','878930TCpnvT','6796672rFPnHw','(((.+)+)+)+$','378588AWFmvZ','toString'];a20c=function(){return i;};return a20c();}
1
+ function a20c(){var i=['toString','search','2pZmGXJ','apply','5124556uLnhFc','6520052RNuyOU','11012688FciPRB','constructor','8189490lQZkAV','1741773McIQlT','(((.+)+)+)+$','5nOXEJb','2511354tMUusX','110UawWAp','1205167ZlrnpP','9VVNHgw'];a20c=function(){return i;};return a20c();}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0xb5))/0x1*(parseInt(f(0xb9))/0x2)+parseInt(f(0xb3))/0x3+-parseInt(f(0xbb))/0x4*(-parseInt(f(0xb2))/0x5)+parseInt(f(0xaf))/0x6+-parseInt(f(0xbc))/0x7+-parseInt(f(0xbd))/0x8*(-parseInt(f(0xb6))/0x9)+-parseInt(f(0xb4))/0xa*(parseInt(f(0xb0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xef986));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0xba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0xb7)]()[h(0xb8)](h(0xb1))[h(0xb7)]()[h(0xae)](a20a)[h(0xb8)](h(0xb1));});function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0xae;var f=c[d];return f;},a20d(a,b);}a20a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a21q=a21d;function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0xbb;let f=c[d];return f;},a21d(a,b);}(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0xd5))/0x1*(-parseInt(n(0xcd))/0x2)+parseInt(n(0xd8))/0x3+-parseInt(n(0xe0))/0x4*(-parseInt(n(0xc9))/0x5)+-parseInt(n(0xdd))/0x6*(-parseInt(n(0xe4))/0x7)+-parseInt(n(0xd3))/0x8*(-parseInt(n(0xd7))/0x9)+parseInt(n(0xdb))/0xa+parseInt(n(0xbc))/0xb*(-parseInt(n(0xe3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xe75a8));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0xc2)]()[p(0xc1)](p(0xdc))['toString']()['constructor'](a21a)[p(0xc1)](p(0xdc));});function a21c(){const t=['app.tar.gz','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','pathFromProject','exit','search','toString','apply',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','fsi','maka\x20build','\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','force','5JpyQBG','build','argv','This\x20project\x27s\x20meteor\x20version\x20(','1227332TqRlkS','--force','existsSync','invokeMeteorCommand','slice','Aborted.','1364136YBuvCO','concat','1snyahA','splice','81UXQrAr','5077167KocwwZ','update','create','7502320LoSAAh','(((.+)+)+)+$','1674cimWMC','confirm','join','3506788cmkcID','forEach','--release','18568860kdrGCi','3066jTIIme','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','33cXNIgP'];a21c=function(){return t;};return a21c();}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';const BuildCommand=Command[a21q(0xda)]({'name':a21q(0xca),'usage':a21q(0xc6),'validOpts':[a21q(0xc8)],'aliases':['b'],'shortDesc':a21q(0xbe),'mustBeInMakaProject':!![],'description':a21q(0xc7),'examples':[a21q(0xc6)]},async function(a,b){const r=a21q;try{await this[r(0xc5)]['checkMeteorPackage']('autoupdate',{'shouldInstall':!![]});const c=b[r(0xc8)];if(!c){const g=this['fsi']['getGlobalMeteorVersion'](),h=this[r(0xc5)]['getProjectMeteorVersion'](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0xde)](r(0xcc)+h+r(0xc4)+g+').\x20Update?');j&&this[r(0xc5)][r(0xd0)](r(0xd9),[r(0xe2),g]);}}const d=[this[r(0xc5)]['pathFromProject']({'pathParts':['build']})][r(0xd4)](process[r(0xcb)][r(0xd1)](0x3)),f=a21e[r(0xdf)](this[r(0xc5)][r(0xbf)]({}),r(0xca),r(0xbd));if(a21f[r(0xcf)](f)){const k=c??await Actions[r(0xde)](r(0xbb));if(!k)throw Log['error'](r(0xd2));}d[r(0xe1)]((l,m)=>{const s=r;l===s(0xce)&&d[s(0xd6)](m,0x2);}),this[r(0xc5)][r(0xd0)](r(0xca),d);}catch(l){console['error'](l),process[r(0xc0)](0x0);}});export default BuildCommand;
1
+ const a21q=a21d;function a21c(){const t=['search',').\x20Update?','constructor','slice','checkMeteorPackage','14GgktRZ','toString','concat','create','3552syQIfL','invokeMeteorCommand','splice','4554110caGnib','autoupdate','force','build','20KHYhBK','111806sDnVKu','update','2655344hhBTgD','getGlobalMeteorVersion','forEach','--force','confirm','9660yFIjmo','maka\x20build','(((.+)+)+)+$','error','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','apply','argv','fsi','120890cXHprh','getProjectMeteorVersion','pathFromProject','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','10IOBugc',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','2004rFIwGf','existsSync','exit','--release','\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','418797UKkANd','app.tar.gz','1086174LxNxhk'];a21c=function(){return t;};return a21c();}(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x127))/0x1*(-parseInt(n(0x10c))/0x2)+parseInt(n(0x113))/0x3*(-parseInt(n(0x126))/0x4)+parseInt(n(0x12e))/0x5*(-parseInt(n(0x11f))/0x6)+parseInt(n(0x11b))/0x7*(parseInt(n(0x129))/0x8)+-parseInt(n(0x115))/0x9+-parseInt(n(0x122))/0xa+parseInt(n(0x108))/0xb*(parseInt(n(0x10e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x9c568));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x11c)]()[p(0x116)](p(0x130))[p(0x11c)]()[p(0x118)](a21a)[p(0x116)]('(((.+)+)+)+$');});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';const BuildCommand=Command[a21q(0x11e)]({'name':a21q(0x125),'usage':a21q(0x12f),'validOpts':[a21q(0x124)],'aliases':['b'],'shortDesc':a21q(0x132),'mustBeInMakaProject':!![],'description':a21q(0x112),'examples':['maka\x20build']},async function(a,b){const r=a21q;try{await this[r(0x135)][r(0x11a)](r(0x123),{'shouldInstall':!![]});const c=b[r(0x124)];if(!c){const g=this[r(0x135)][r(0x12a)](),h=this[r(0x135)][r(0x109)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x12d)]('This\x20project\x27s\x20meteor\x20version\x20('+h+r(0x10d)+g+r(0x117));j&&this[r(0x135)]['invokeMeteorCommand'](r(0x128),[r(0x111),g]);}}const d=[this[r(0x135)][r(0x10a)]({'pathParts':[r(0x125)]})][r(0x11d)](process[r(0x134)][r(0x119)](0x3)),f=a21e['join'](this[r(0x135)]['pathFromProject']({}),r(0x125),r(0x114));if(a21f[r(0x10f)](f)){const k=c??await Actions[r(0x12d)](r(0x10b));if(!k)throw Log[r(0x131)]('Aborted.');}d[r(0x12b)]((l,m)=>{const s=r;l===s(0x12c)&&d[s(0x121)](m,0x2);}),this[r(0x135)][r(0x120)](r(0x125),d);}catch(l){console[r(0x131)](l),process[r(0x110)](0x0);}});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x108;let f=c[d];return f;},a21d(a,b);}export default BuildCommand;