@maka/maka-cli 4.12.15 → 4.12.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/tool.js +1 -1
  140. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  141. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/https/https.class.js +1 -1
  148. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  149. package/bundle/obf/src/tools/log/log.class.js +1 -1
  150. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/options/options.class.js +1 -1
  152. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  153. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  158. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "4.12.15",
3
+ "version": "4.12.16",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x1df))/0x1*(-parseInt(n(0x1c6))/0x2)+parseInt(n(0x1c1))/0x3+parseInt(n(0x1f8))/0x4+-parseInt(n(0x1de))/0x5+parseInt(n(0x1f9))/0x6+parseInt(n(0x1cf))/0x7+-parseInt(n(0x1e6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xa08ab));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x1bb)]()[p(0x1c0)](p(0x1b8))['toString']()[p(0x1e5)](a0a)[p(0x1c0)](p(0x1b8));});a0a();import a0e from'cli-table';function a0c(){const A=['6644407ackhBE','Command\x20requires\x20a\x20handler\x20function','mustHaveMeteorInstalled','call','processAndRunCommand','notice','bright','addCommand\x20requires\x20a\x20Command\x20instance','_commands','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Command.create\x20requires\x20some\x20options!','Too\x20few\x20options','apply','minArgLength','Too\x20many\x20options','638770TbIpkW','20241oJqSEJ','push','Name','setColorMode','validateParams','Too\x20few\x20arguments','constructor','18453536uTPKzE','options','sort','Command\x20not\x20found','mustBeInMakaProject','function','_handler','maxOptsLength','keys','error','pallet','tableList','murder','generate','fsi','Sub-Commands:','shortDesc','aliases','1526404LhttNx','3207420tMRxkM','minOptsLength','help','play','find','maxArgLength','match','length','header','getGlobalConfig','Alias','DARK','name','LIGHT','validateMakaSubscription','run','exit','maybeProxyCommandToMeteor','unshift','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','bind','(((.+)+)+)+$','Description','Please\x20run\x20\x22maka\x20install\x20meteor\x22','toString','validateUserIsLoggedIn','Command\x20requires\x20a\x20name','localeCompare','usage','search','461640lOmvna','light','addCommand','validateMakaProject','invoke','106ngjLcN','assign','Command\x20','Too\x20many\x20arguments','forEach','\x20not\x20found','validateMeteorInstall','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','number'];a0c=function(){return A;};return a0c();}import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a0d(a,b);}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x1e7)];[a0q(0x1d7)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x1b6));if(!a[r(0x1af)])throw new Error(r(0x1bd));if(typeof b!==r(0x1eb))throw new Error(r(0x1d0));this[r(0x1e7)]=Object[r(0x1c7)]({},a),this['name']=this[r(0x1e7)][r(0x1af)],this['_commands']=[],this[r(0x1ec)]=b[r(0x1b7)](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0x1d9));if(typeof b!==s(0x1eb))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[s(0x1e7)]?.['name']}),c[s(0x1c3)](d),d;}[a0q(0x1c3)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1d6));this[t(0x1d7)]['push'](a);}async[a0q(0x1b2)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this['fsi'][u(0x1ac)](),d=c[u(0x1f0)]===u(0x1c2)?ColorMode[u(0x1b0)]:ColorMode[u(0x1ae)];Log[u(0x1e2)](d),await this[u(0x1b1)](this);}catch(f){Log[u(0x1ef)](f),process['exit'](0x0);}return await this[u(0x1c5)](a,b);}catch(g){process[u(0x1b3)](0x1);}}async[a0q(0x1c5)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x1e7)];try{if(this['options'][v(0x1af)]!==v(0x1f3)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[v(0x1d7)][v(0x1aa)]>=0x0,g=b[v(0x1a5)]||b['h'];if(f&&g){if(this['_commands']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x1e7)][v(0x1ea)]){const h=this[v(0x1c4)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x1e7)]['mustBeLoggedIn']){const i=await this[v(0x1bc)]();if(!i)throw new MustBeLoggedIn();}if(this['options'][v(0x1d1)]){const j=this[v(0x1cc)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x1e7)][v(0x1dc)]===v(0x1ce)){if(a[v(0x1aa)]<this[v(0x1e7)][v(0x1dc)]){Log[v(0x1ef)](v(0x1e4));throw new UsageError();}}if(typeof this[v(0x1e7)]['maxArgLength']===v(0x1ce)){if(a[v(0x1aa)]>=this[v(0x1e7)][v(0x1a8)]){Log[v(0x1ef)](v(0x1c9));throw new UsageError();}}if(typeof this['options'][v(0x1a4)]===v(0x1ce)){if(Object[v(0x1ee)](b)['length']<this['options'][v(0x1a4)]){Log[v(0x1ef)](v(0x1da));throw new UsageError();}}if(typeof this['options'][v(0x1ed)]===v(0x1ce)){if(Object['keys'](b)[v(0x1aa)]>=this['options'][v(0x1ed)]){Log[v(0x1ef)](v(0x1dd));throw new UsageError();}}}}b=await this[v(0x1e3)](a,b,this[v(0x1e7)]),_prevCmd=a[0x0];}return await this['_handler'][v(0x1d2)](this,a,b);}catch(k){Log[v(0x1bf)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0x1d4)](v(0x1f5)),this[v(0x1f1)](this[v(0x1d7)]),Log[v(0x1ab)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(k instanceof MustBeInProjectError)Log[v(0x1ef)](v(0x1cd));else{if(k instanceof NoMeteorFoundError)Log[v(0x1ef)](v(0x1d8)),Log['notice'](v(0x1ba));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x1ef)]('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log[v(0x1ef)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log[v(0x1d4)]('Please\x20run\x20\x22maka\x20login\x22'));}}}process['exit'](0x1);}}[a0q(0x1f1)](a){const w=a0q,b=new a0e({});b['push']([w(0x1e1),w(0x1ad),w(0x1b9)]),a[w(0x1e8)]((c,d)=>{const x=w;return c[x(0x1af)][x(0x1be)](d['name']);})[w(0x1ca)](c=>{const y=w;c[y(0x1af)]!==y(0x1f2)&&c[y(0x1af)]!==y(0x1a6)&&b[y(0x1e0)]([c['name'],c[y(0x1f7)](),c[y(0x1f6)]()]);}),Log[w(0x1d5)](b[w(0x1bb)]());}async[a0q(0x1d3)](a,b=[],c={}){const z=a0q;try{const d=a?.['split'](':');if(!d||d['length']===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===z(0x1f3)||d[0x0]==='g'&&d[z(0x1aa)]>0x1){const h=this[z(0x1d7)][z(0x1a7)](j=>j[z(0x1a9)]('generate'));if(!h)throw z(0x1e9);await this[z(0x1b1)](h);const i=d['slice'](0x1)['join'](':');return b[z(0x1b5)](i),await h[z(0x1b2)](b,c);}let f=this[z(0x1d7)],g;for(const j of d){g=f[z(0x1a7)](k=>k[z(0x1a9)](j));if(!g)try{await this[z(0x1f4)][z(0x1b4)]();}catch(k){throw z(0x1c8)+j+z(0x1cb);}g&&(await this[z(0x1b1)](g),f=g[z(0x1d7)]);}if(g){const l=await g[z(0x1b2)](b,c);return l;}else throw z(0x1e9);}catch(m){Log['error'](m),process[z(0x1b3)](0x1);}}}
1
+ const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x186))/0x1*(parseInt(n(0x183))/0x2)+parseInt(n(0x19d))/0x3*(parseInt(n(0x15c))/0x4)+parseInt(n(0x18e))/0x5*(parseInt(n(0x16f))/0x6)+-parseInt(n(0x16d))/0x7*(-parseInt(n(0x159))/0x8)+parseInt(n(0x16e))/0x9*(-parseInt(n(0x17e))/0xa)+parseInt(n(0x195))/0xb+-parseInt(n(0x1a6))/0xc*(-parseInt(n(0x191))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb6938));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x16b)]()[o(0x184)](o(0x197))[o(0x16b)]()['constructor'](a0a)[o(0x184)](o(0x197));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x154;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0c(){const z=['validateMeteorInstall','Please\x20run\x20\x22maka\x20install\x20meteor\x22','validateMakaSubscription','Too\x20many\x20options','_commands','Command\x20requires\x20a\x20name','10456630HNKsuy','play','exit','processAndRunCommand','maxArgLength','464066tBWeDs','search','Command\x20requires\x20a\x20handler\x20function','1IblyPG','notice','match','pallet','call','invoke','Too\x20many\x20arguments','addCommand\x20requires\x20a\x20Command\x20instance','40xQbhvM','There\x20is\x20no\x20Meteor\x20application\x20here','Description','91BTVGgS','minOptsLength','help','Alias','1432992AESgyM','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','(((.+)+)+)+$','options','run','fsi','function','name','33Uueext','\x20not\x20found','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','number','assign','Too\x20few\x20arguments','header','mustHaveMeteorInstalled','forEach','550644LqKnsQ','join','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','shortDesc','LIGHT','error','usage','165328elMclj','sort','length','313956oEZvxl','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','push','mustBeInMakaProject','murder','minArgLength','addCommand','find','unshift','localeCompare','maxOptsLength','Sub-Commands:','Command.create\x20requires\x20a\x20handler\x20function!','tableList','Command\x20','toString','getGlobalConfig','14NFLlTE','9tJXDqm','502002ejLHBl','_handler','DARK','Please\x20run\x20\x22maka\x20login\x22','setColorMode','validateParams','Command\x20not\x20found','Command\x20format\x20is\x20incorrect','mustBeLoggedIn'];a0c=function(){return z;};return a0c();}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0x198)];[a0p(0x17c)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x19f));if(!a[q(0x19c)])throw new Error(q(0x17d));if(typeof b!==q(0x19b))throw new Error(q(0x185));this[q(0x198)]=Object[q(0x1a1)]({},a),this['name']=this[q(0x198)][q(0x19c)],this['_commands']=[],this[q(0x170)]=b['bind'](this);}static['create'](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x19b))throw new Error(r(0x168));const d=new Command(a,b);return c=c||a0f,Object[r(0x1a1)](d,{'parent':c?.['options']?.['name']}),c[r(0x162)](d),d;}[a0p(0x162)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x18d));this[s(0x17c)]['push'](a);}async[a0p(0x199)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x19a)][t(0x16c)](),d=c[t(0x189)]==='light'?ColorMode[t(0x156)]:ColorMode[t(0x171)];Log[t(0x173)](d),await this[t(0x17a)](this);}catch(f){Log[t(0x157)](f),process[t(0x180)](0x0);}return await this[t(0x18b)](a,b);}catch(g){process['exit'](0x1);}}async[a0p(0x18b)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[u(0x198)][u(0x19c)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x15b)]===0x0)&&this[u(0x17c)][u(0x15b)]>=0x0,g=b[u(0x193)]||b['h'];if(f&&g){if(this[u(0x17c)][u(0x15b)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x198)][u(0x15f)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[u(0x198)][u(0x177)]){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this['options'][u(0x1a4)]){const j=this[u(0x178)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0x198)][u(0x161)]===u(0x1a0)){if(a[u(0x15b)]<this[u(0x198)]['minArgLength']){Log['error'](u(0x1a2));throw new UsageError();}}if(typeof this[u(0x198)][u(0x182)]==='number'){if(a[u(0x15b)]>=this[u(0x198)][u(0x182)]){Log[u(0x157)](u(0x18c));throw new UsageError();}}if(typeof this[u(0x198)][u(0x192)]===u(0x1a0)){if(Object['keys'](b)['length']<this[u(0x198)][u(0x192)]){Log[u(0x157)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[u(0x198)][u(0x166)]===u(0x1a0)){if(Object['keys'](b)['length']>=this['options']['maxOptsLength']){Log['error'](u(0x17b));throw new UsageError();}}}}b=await this[u(0x174)](a,b,this['options']),_prevCmd=a[0x0];}return await this['_handler'][u(0x18a)](this,a,b);}catch(k){Log[u(0x158)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log['notice'](u(0x167)),this[u(0x169)](this[u(0x17c)]),Log[u(0x1a3)](u(0x196));else{if(k instanceof MustBeInProjectError)Log[u(0x157)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(k instanceof NoMeteorFoundError)Log[u(0x157)](u(0x15d)),Log[u(0x187)](u(0x179));else{if(k instanceof NoMeteorAppFoundError)Log[u(0x157)](u(0x18f));else k instanceof MustBeLoggedIn&&(Log[u(0x157)](u(0x154)),Log[u(0x187)](u(0x172)));}}}process['exit'](0x1);}}['tableList'](a){const v=a0p,b=new a0e({});b['push'](['Name',v(0x194),v(0x190)]),a[v(0x15a)]((c,d)=>{const w=v;return c['name'][w(0x165)](d['name']);})[v(0x1a5)](c=>{const x=v;c[x(0x19c)]!==x(0x160)&&c[x(0x19c)]!==x(0x17f)&&b[x(0x15e)]([c['name'],c['aliases'](),c[x(0x155)]()]);}),Log['bright'](b[v(0x16b)]());}async[a0p(0x181)](a,b=[],c={}){const y=a0p;try{const d=a?.['split'](':');if(!d||d[y(0x15b)]===0x0)throw y(0x176);if(d[0x0]==='generate'||d[0x0]==='g'&&d[y(0x15b)]>0x1){const h=this['_commands']['find'](j=>j[y(0x188)]('generate'));if(!h)throw y(0x175);await this[y(0x17a)](h);const i=d['slice'](0x1)[y(0x1a7)](':');return b[y(0x164)](i),await h[y(0x199)](b,c);}let f=this[y(0x17c)],g;for(const j of d){g=f[y(0x163)](k=>k[y(0x188)](j));if(!g)try{await this[y(0x19a)]['maybeProxyCommandToMeteor']();}catch(k){throw y(0x16a)+j+y(0x19e);}g&&(await this['validateMakaSubscription'](g),f=g[y(0x17c)]);}if(g){const l=await g['run'](b,c);return l;}else throw y(0x175);}catch(m){Log[y(0x157)](m),process[y(0x180)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1ee))/0x1*(parseInt(f(0x1e5))/0x2)+-parseInt(f(0x1ea))/0x3+parseInt(f(0x1f1))/0x4*(-parseInt(f(0x1ed))/0x5)+-parseInt(f(0x1ef))/0x6*(parseInt(f(0x1f0))/0x7)+parseInt(f(0x1e7))/0x8*(parseInt(f(0x1f2))/0x9)+parseInt(f(0x1e6))/0xa+parseInt(f(0x1e9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x7c3cd));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()['search'](h(0x1eb))[h(0x1ec)]()['constructor'](a1a)[h(0x1e4)]('(((.+)+)+)+$');});a1a();function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1e4;var f=c[d];return f;},a1d(a,b);}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';function a1c(){var i=['(((.+)+)+)+$','toString','50YFydXM','152RmPiey','78AmdgHf','140252NKbAou','227284czkZsF','4473suVhVd','search','1850hsjoFd','2751420NCYrRk','6672IdCdfY','apply','11076945Wtmxaf','1499040TQmiYe'];a1c=function(){return i;};return a1c();}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(0x1f6))/0x1+parseInt(f(0x1f5))/0x2*(parseInt(f(0x202))/0x3)+parseInt(f(0x201))/0x4*(-parseInt(f(0x1f9))/0x5)+parseInt(f(0x204))/0x6*(-parseInt(f(0x1fc))/0x7)+-parseInt(f(0x1f7))/0x8+-parseInt(f(0x203))/0x9*(parseInt(f(0x1fa))/0xa)+parseInt(f(0x1fd))/0xb*(parseInt(f(0x200))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xcad67));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1f8)]()[h(0x1fe)](h(0x1fb))[h(0x1f8)]()[h(0x1f4)](a1a)['search'](h(0x1fb));});a1a();import'./aws/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1f4;var f=c[d];return f;},a1d(a,b);}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 a1c(){var i=['1480983Eqpqlb','6138072EwwPLp','toString','7450UcLEuL','1270voZPob','(((.+)+)+)+$','7889371mPePMV','370854WxDZnS','search','apply','1164WxOGkP','3992sbVjGS','3vxArkV','79263gLMsPn','6IjTPAm','constructor','1158806gfGBTq'];a1c=function(){return i;};return a1c();}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
- function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a2d(a,b);}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x1b0))/0x1+-parseInt(h(0x1cf))/0x2*(parseInt(h(0x1b4))/0x3)+parseInt(h(0x1d0))/0x4*(-parseInt(h(0x1d5))/0x5)+parseInt(h(0x1c8))/0x6*(parseInt(h(0x1d2))/0x7)+parseInt(h(0x1bf))/0x8*(-parseInt(h(0x1b9))/0x9)+-parseInt(h(0x1b2))/0xa*(parseInt(h(0x1ce))/0xb)+parseInt(h(0x1ab))/0xc*(parseInt(h(0x1c6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x37c71));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()['search'](j(0x1c3))[j(0x1d3)]()[j(0x1c1)](a2a)[j(0x1b1)](j(0x1c3));});a2a();import{Command}from'../command.js';function a2c(){const o=['Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','18LRkrqm','fsi','trim','notice','exit','create','1522939kySZPA','4APZuss','81364mDDrdZ','log','356118eoidwO','toString','GPT:\x20','30ppNuYb','openapikey','isFile','12jbUcud','toLowerCase','stdin','data','stdout','408524VgOxeQ','search','10cRKZqB','ChatGPT\x20style\x20AI\x20interface','527961TzMADm','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','You:\x20','openai','Using\x20CA\x20Cert\x20','79740HbRWnq','parse','choices','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','cacert','error','104yDFqLs','message','constructor','apply','(((.+)+)+)+$','cert','question','5134584CrBOLU'];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';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process[k(0x1ad)],'output':process[k(0x1af)]});c[k(0x1c5)](k(0x1b6),async d=>{const l=k;if(d[l(0x1ac)]()===l(0x1cc)){c['close']();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1ba)](e[l(0x1ae)]);if(f[l(0x1be)])throw new Error(f[l(0x1be)][l(0x1c0)]);Log['bright'](l(0x1d4)+f?.[l(0x1bb)][0x0]?.['text'][l(0x1ca)]());}catch(g){Log[l(0x1be)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x1cd)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2m(0x1bd),a2m(0x1d6)],'shortDesc':a2m(0x1b3),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x1bd)]&&(this[n(0x1c9)][n(0x1d7)](b[n(0x1bd)])?(c=b['cacert'],Log[n(0x1cb)](n(0x1b8)+c)):Log['error']('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0x1c9)]['getGlobalConfig']();if(d['cert']){if(this[n(0x1c9)]['isFile'](d[n(0x1c4)]))c=d[n(0x1c4)];else throw Log[n(0x1be)](n(0x1bc)+c);}let f='';if(b[n(0x1d6)])f=b[n(0x1d6)],Log[n(0x1cb)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x1b7)])f=d['openai'];else throw Log[n(0x1be)](n(0x1b5));}console[n(0x1d1)](n(0x1c7)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x1cc)](0x1);}});
1
+ const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x110))/0x1*(parseInt(h(0x118))/0x2)+-parseInt(h(0x114))/0x3*(parseInt(h(0x107))/0x4)+parseInt(h(0xf7))/0x5+-parseInt(h(0xf5))/0x6+parseInt(h(0x100))/0x7*(-parseInt(h(0x116))/0x8)+parseInt(h(0xfc))/0x9+parseInt(h(0x11f))/0xa*(parseInt(h(0x10c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x58d76));function a2c(){const n=['isFile','cert','You:\x20','9226591NgCPoz','constructor','choices','fsi','10OHzWDs','openai','question','exit','830697BOgwOs','message','2607632rXlNaF','notice','48042SmiMdS','GPT:\x20','Using\x20CA\x20Cert\x20','cacert','data','bright','toString','10TbBnaA','530418aiacJI','text','1446630mPJbzl','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','search','openapikey','stdin','3997368VIKhfu','error','createInterface','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','7lXIiKq','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','(((.+)+)+)+$','askGPT','Using\x20OpenAI\x20Key\x20','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','log','8AwgcuX','trim'];a2c=function(){return n;};return a2c();}const a2b=(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;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x11e)]()[i(0xf9)](i(0x102))[i(0x11e)]()[i(0x10d)](a2a)['search'](i(0x102));});a2a();import{Command}from'../command.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xf5;let f=c[d];return f;},a2d(a,b);}import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0xfe)]({'input':process[j(0xfb)],'output':process['stdout']});c[j(0x112)](j(0x10b),async d=>{const k=j;if(d['toLowerCase']()===k(0x113)){c['close']();return;}try{const e=await HTTPS[k(0x103)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[k(0x11c)]);if(f[k(0xfd)])throw new Error(f[k(0xfd)][k(0x115)]);Log[k(0x11d)](k(0x119)+f?.[k(0x10e)][0x0]?.[k(0xf6)][k(0x108)]());}catch(g){Log['error'](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2l(0x11b),a2l(0xfa)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0x11b)]&&(this[m(0x10f)][m(0x109)](b[m(0x11b)])?(c=b[m(0x11b)],Log[m(0x117)](m(0x11a)+c)):Log[m(0xfd)](m(0x101)+c));const d=await this[m(0x10f)]['getGlobalConfig']();if(d[m(0x10a)]){if(this[m(0x10f)][m(0x109)](d[m(0x10a)]))c=d['cert'];else throw Log['error'](m(0x105)+c);}let f='';if(b[m(0xfa)])f=b[m(0xfa)],Log[m(0x117)](m(0x104)+f);else{if(d[m(0x111)])f=d[m(0x111)];else throw Log['error'](m(0xf8));}console[m(0x106)](m(0xff)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0xfd)](g),process[m(0x113)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x1b4))/0x1+parseInt(f(0x1ae))/0x2+parseInt(f(0x1ba))/0x3*(-parseInt(f(0x1ad))/0x4)+-parseInt(f(0x1b9))/0x5+-parseInt(f(0x1b7))/0x6*(parseInt(f(0x1b2))/0x7)+-parseInt(f(0x1b8))/0x8*(-parseInt(f(0x1b3))/0x9)+parseInt(f(0x1b1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x9863b));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x1b0)]()['search'](h(0x1b6))[h(0x1b0)]()[h(0x1b5)](a3a)['search'](h(0x1b6));});a3a();function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1ad;var f=c[d];return f;},a3d(a,b);}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';function a3c(){var i=['608875njPvah','constructor','(((.+)+)+)+$','6xStznJ','7168CclHFI','3124915dVVgsy','1541691fIytGp','4GuAEUP','275490unIjrJ','apply','toString','12129940tmAWtj','6525141EMrpwE','7389TjWeLU'];a3c=function(){return i;};return a3c();}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
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x1e7))/0x1*(-parseInt(f(0x1e3))/0x2)+parseInt(f(0x1e0))/0x3+parseInt(f(0x1e2))/0x4+parseInt(f(0x1de))/0x5*(-parseInt(f(0x1dd))/0x6)+-parseInt(f(0x1e8))/0x7+-parseInt(f(0x1db))/0x8+-parseInt(f(0x1e6))/0x9*(-parseInt(f(0x1dc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x56117));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()[h(0x1e1)](h(0x1e4))[h(0x1df)]()['constructor'](a3a)[h(0x1e1)]('(((.+)+)+)+$');});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1db;var f=c[d];return f;},a3d(a,b);}function a3c(){var i=['toString','1182417IkTZJH','search','189804EfnRui','93022OGGLNm','(((.+)+)+)+$','apply','9pAiXkh','7rcWbYK','528395WjlvRX','3624000LEVROo','5658530eXkQeZ','135600vMbDxf','100MZfnvU'];a3c=function(){return i;};return a3c();}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(0x104))/0x1*(-parseInt(f(0xf3))/0x2)+-parseInt(f(0xf2))/0x3+parseInt(f(0xf7))/0x4*(-parseInt(f(0xf8))/0x5)+parseInt(f(0xf5))/0x6*(parseInt(f(0x103))/0x7)+parseInt(f(0x102))/0x8+parseInt(f(0xf4))/0x9*(-parseInt(f(0xf9))/0xa)+parseInt(f(0xfc))/0xb*(parseInt(f(0xfb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xa94c5));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xf0;let f=c[d];return f;},a4d(a,b);}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()[h(0xfa)](h(0xfd))[h(0xfe)]()[h(0xf1)](a4a)['search'](h(0xfd));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xf0)]({'name':a4i(0xff),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0xf6),'description':a4i(0x101)},async function(){throw UsageError;});function a4c(){const j=['create','constructor','3492273MlIyjQ','22EncAiD','9ijRoOb','24VWLmGy','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','4449524ZcubRR','5noPzOQ','5653190JuFHhH','search','2874360gEeEep','22rxjKoh','(((.+)+)+)+$','toString','aws','apply','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','4994472VeweJu','2198693xefRkv','106861tRtEDu'];a4c=function(){return j;};return a4c();}export default AWSCommand;
1
+ const a4h=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x124;let f=c[d];return f;},a4d(a,b);}function a4c(){const i=['maka\x20aws:<sub-command>','(((.+)+)+)+$','978543LWjjfe','33268WZCOGo','2lqKHhr','703661EIFEAT','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','136852qViCiJ','77MfZYEz','create','10FrblDf','aws','toString','8HGceuL','1193889sbKeBu','1056245UxKXlS','729048iOqIZl','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','search','6CZbWix'];a4c=function(){return i;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x126))/0x1*(parseInt(f(0x127))/0x2)+-parseInt(f(0x131))/0x3+parseInt(f(0x12a))/0x4+parseInt(f(0x132))/0x5*(parseInt(f(0x136))/0x6)+parseInt(f(0x128))/0x7*(-parseInt(f(0x130))/0x8)+parseInt(f(0x125))/0x9*(parseInt(f(0x12d))/0xa)+-parseInt(f(0x12b))/0xb*(-parseInt(f(0x133))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x3c7a1));const a4b=(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;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0x12f)]()[g(0x135)](g(0x124))[g(0x12f)]()['constructor'](a4a)[g(0x135)](g(0x124));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0x12c)]({'name':a4h(0x12e),'usage':a4h(0x137),'validOpts':[],'shortDesc':a4h(0x134),'description':a4h(0x129)},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- const a5i=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x19c))/0x1*(-parseInt(g(0x19f))/0x2)+parseInt(g(0x1a9))/0x3*(parseInt(g(0x1a2))/0x4)+-parseInt(g(0x1b4))/0x5+parseInt(g(0x1af))/0x6*(parseInt(g(0x1aa))/0x7)+-parseInt(g(0x1ab))/0x8+-parseInt(g(0x1b3))/0x9*(parseInt(g(0x1b1))/0xa)+parseInt(g(0x1ad))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xd8576));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0x1a0)]()['search'](h(0x1a7))[h(0x1a0)]()[h(0x1ae)](a5a)['search'](h(0x1a7));});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x19c;let f=c[d];return f;},a5d(a,b);}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const k=['259GMifvO','12039320oEqdDM','create-ecr','49347232mazUsS','constructor','90102vuKzQL','maka\x20aws:create-ecr','33010ISMvJH','Repository\x20created\x20successfully.','216quVrHJ','6479010ocXFCX','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','ecrCreateRepository','$metadata','52xHMNlJ','repositoryUri','exit','59844poYbTm','toString','repository','2708OrvsPS','httpStatusCode','name','maka\x20aws:create-ecr\x20--name=my-new-repo','create','(((.+)+)+)+$','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','1242KKWuzi'];a5c=function(){return k;};return a5c();}import{Log}from'../../tools/log/log.class.js';Command[a5i(0x1a6)]({'name':a5i(0x1ac),'aliases':['cecr'],'usage':a5i(0x1b0),'requiredOpts':[a5i(0x1a4)],'validOpts':['region'],'shortDesc':'Create\x20an\x20Elastic\x20Container\x20Repository','examples':[a5i(0x1a5),'maka\x20aws:cecr\x20--name=my-new-repo',a5i(0x1a8)]},async function(a,b){const j=a5i;try{const c=new AWS(),d=await c[j(0x1b6)](b);d&&d[j(0x1b7)][j(0x1a3)]===0xc8&&d[j(0x1a1)]?(Log['success'](j(0x1b2)),Log['notice']('Repository\x20URI:\x20'+d['repository'][j(0x19d)])):Log['error'](j(0x1b5)),process[j(0x19e)](0x0);}catch(f){Log['error'](f),process[j(0x19e)](0x1);}},a5e);
1
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x1ea))/0x1*(-parseInt(g(0x1fa))/0x2)+-parseInt(g(0x1f0))/0x3+parseInt(g(0x1e3))/0x4+-parseInt(g(0x1ee))/0x5+-parseInt(g(0x1e9))/0x6+parseInt(g(0x1eb))/0x7+parseInt(g(0x1e8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x4e65c));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1f9)]()[i(0x1ec)](i(0x1e7))[i(0x1f9)]()[i(0x1f1)](a5a)[i(0x1ec)]('(((.+)+)+)+$');});a5a();function a5c(){const l=['Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','httpStatusCode','toString','1436ULRyUz','repository','exit','$metadata','maka\x20aws:cecr\x20--name=my-new-repo','1846516fqdzyV','create','cecr','error','(((.+)+)+)+$','2810432bCTLkj','728760iEsuIl','337tyQvlr','4296964kIvzzM','search','notice','1528330DSLviF','Create\x20an\x20Elastic\x20Container\x20Repository','1309731CnUEJl','constructor','maka\x20aws:create-ecr','apply','ecrCreateRepository','repositoryUri','maka\x20aws:create-ecr\x20--name=my-new-repo'];a5c=function(){return l;};return a5c();}import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0x1e4)]({'name':'create-ecr','aliases':[a5j(0x1e5)],'usage':a5j(0x1f2),'requiredOpts':['name'],'validOpts':['region'],'shortDesc':a5j(0x1ef),'examples':[a5j(0x1f6),a5j(0x1e2),'maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1']},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x1f4)](b);d&&d[k(0x1fd)][k(0x1f8)]===0xc8&&d[k(0x1fb)]?(Log['success']('Repository\x20created\x20successfully.'),Log[k(0x1ed)]('Repository\x20URI:\x20'+d[k(0x1fb)][k(0x1f5)])):Log[k(0x1e6)](k(0x1f7)),process[k(0x1fc)](0x0);}catch(f){Log['error'](f),process[k(0x1fc)](0x1);}},a5e);
@@ -1 +1 @@
1
- const a6k=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1db;let f=c[d];return f;},a6d(a,b);}(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0x1ea))/0x1*(-parseInt(i(0x1e3))/0x2)+-parseInt(i(0x1f3))/0x3*(-parseInt(i(0x1eb))/0x4)+-parseInt(i(0x1e8))/0x5+-parseInt(i(0x1dc))/0x6+parseInt(i(0x1ec))/0x7+parseInt(i(0x1e2))/0x8+parseInt(i(0x1e4))/0x9*(-parseInt(i(0x1de))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x98219));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(0x1ee)]()[j(0x1e5)](j(0x1f4))[j(0x1ee)]()[j(0x1e9)](a6a)['search'](j(0x1f4));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a6c(){const m=['search','maka\x20aws:create-hosted-zone','maka\x20aws:chz\x20--domain=example.com','1684115qBvHvO','constructor','463atOvJs','12LoXwCG','8612996GGLvwm','chooseInstance','toString','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','publicIp','create-hosted-zone','exit','178863IFvHcH','(((.+)+)+)+$','maka\x20aws:create-hosted-zone\x20--domain=example.com','error','Set\x20hosted\x20zone\x20to\x20an\x20instance?','3226344aqocBK','linkEC2ToRoute53','14477110fJsmLc','route53CreateHostedZone','chz','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','8425496eWIXWD','2086tcIFfS','9MHkNEj'];a6c=function(){return m;};return a6c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a6k(0x1f1),'aliases':[a6k(0x1e0)],'usage':a6k(0x1e6),'requiredOpts':['domain'],'validOpts':[],'shortDesc':a6k(0x1e1),'examples':[a6k(0x1f5),a6k(0x1e7)]},async function(a,b){const l=a6k;try{const c=b['domain'],d=new AWS();d[l(0x1df)](c);const f=await Actions['confirm'](l(0x1db));if(f){const g=await d[l(0x1ed)]();if(g?.['id']){if(!g['publicIp'])throw Log[l(0x1f6)](l(0x1ef));d[l(0x1dd)](g['id'],g[l(0x1f0)],c);}else throw'Instance\x20not\x20found';}}catch(h){h&&Log[l(0x1f6)](h),process[l(0x1f2)](0x0);}},a6e);
1
+ const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0xc9))/0x1+parseInt(i(0xcd))/0x2+parseInt(i(0xb6))/0x3+parseInt(i(0xb0))/0x4*(parseInt(i(0xb1))/0x5)+-parseInt(i(0xc4))/0x6*(parseInt(i(0xca))/0x7)+parseInt(i(0xb4))/0x8*(-parseInt(i(0xc0))/0x9)+parseInt(i(0xbd))/0xa*(-parseInt(i(0xc2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x23f70));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0xb5)]()['search'](k(0xc6))[k(0xb5)]()[k(0xbc)](a6a)[k(0xbb)](k(0xc6));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xb0;let f=c[d];return f;},a6d(a,b);}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';function a6c(){const n=['route53CreateHostedZone','538380yKkGOL','16RorElH','159905TpxPSR','domain','error','16816FIAJGo','toString','463374ZaOoDv','Instance\x20not\x20found','maka\x20aws:create-hosted-zone\x20--domain=example.com','chooseInstance','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','search','constructor','2296520HEFldl','linkEC2ToRoute53','publicIp','504lNZNAP','create-hosted-zone','11ErqrrZ','confirm','6mfDVgQ','apply','(((.+)+)+)+$','create','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','221650NBCoCE','1949822EpZsqa','exit'];a6c=function(){return n;};return a6c();}Command[a6l(0xc7)]({'name':a6l(0xc1),'aliases':['chz'],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0xb2)],'validOpts':[],'shortDesc':a6l(0xba),'examples':[a6l(0xb8),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a6l;try{const c=b[m(0xb2)],d=new AWS();d[m(0xcc)](c);const f=await Actions[m(0xc3)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[m(0xb9)]();if(g?.['id']){if(!g[m(0xbf)])throw Log[m(0xb3)](m(0xc8));d[m(0xbe)](g['id'],g[m(0xbf)],c);}else throw m(0xb7);}}catch(h){h&&Log['error'](h),process[m(0xcb)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x146))/0x1+parseInt(ae(0x139))/0x2*(-parseInt(ae(0x128))/0x3)+parseInt(ae(0x120))/0x4*(parseInt(ae(0x109))/0x5)+-parseInt(ae(0x159))/0x6*(parseInt(ae(0xf8))/0x7)+-parseInt(ae(0x131))/0x8*(parseInt(ae(0x13d))/0x9)+-parseInt(ae(0x124))/0xa*(-parseInt(ae(0x14e))/0xb)+parseInt(ae(0x11f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xbedd7));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x126)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x10c)]()[ag(0x107)](ag(0x125))[ag(0x10c)]()[ag(0x10a)](a7a)[ag(0x107)](ag(0x125));});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-0xef;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';function a7c(){const au=['Subnet:\x20','string','\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','ec2create','desc','parse','Setting\x20AMI\x20ID\x20to\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','**\x20Available\x20key-pairs\x20**','7fQHQky','environment','amiId','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','ask','created-by','cider','createFile','bright','22,80,443','forEach','maka\x20aws:create-instance\x20--env\x20dev','readFileSync','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','sort','search','ID:\x20','5yYVGhQ','constructor','cidr','toString','Setting\x20SG\x20ID\x20to:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','subnetId','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','1:1','EC2\x20Name:\x20[','subnet','env','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Name','error','maka-cli','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','**\x20Available\x20Security\x20Groups\x20**','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Would\x20you\x20like\x20to\x20include\x20user\x20data?','push','32840028XHlJdz','6070804wcJfgq','**\x20Available\x20Subnets\x20**','\x20DESCRIPTION:\x20','name','82960EhYRXO','(((.+)+)+)+$','apply','t3.micro','3dMZFdE','Remove\x20the\x20keypair\x20','deleteKeyPair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ImageID:','alias','notice','getTime','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','240wSHQeM','\x20SG\x20NAME:\x20','\x20AMIID:\x20','success','getSecurityGroups','maka\x20aws:ci\x20--env\x20prod','confirm','getAppConfigPath','1851978sYaAaH','Desc','user-data','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','286668FwFCYv','chooseVPC','\x20:\x20','create-instance','Security\x20Group:\x20','deleteSecurityGroup','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=*','Setting\x20Subnet\x20ID\x20to\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','1538627qafNTm','log','getMakaProjectConfig','Security\x20Group\x20Name:\x20[','sgId','maka\x20aws:create-instance','join','isFile','165nqizEA','createKeyPair','split','unlinkSync','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','\x20SGID:\x20','getConfigFromShorthand','fsi','Setting\x20the\x20key-pair\x20to:\x20','\x20SUBNETID:\x20','**\x20Available\x20AMIs\x20**','1061106KoSFEA','Remove\x20the\x20security\x20group\x20','\x20CIDR:\x20','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','number'];a7c=function(){return au;};return a7c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a7ah(0x140),'aliases':['ci'],'usage':a7ah(0x14b),'examples':[a7ah(0x103),a7ah(0x136)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x114)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0xf1)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x155)][ai(0x148)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x155)][ai(0x154)](b['env']),i=this['fsi'][ai(0x138)](h),j=g+'-'+h,k=await Actions[ai(0xfc)](ai(0x112)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x145),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x14f)]({'env':h});r=y,s=z,Log['success'](ai(0x156)+r);}else try{Log[ai(0x12e)](ai(0xf7));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x117)](ai(0x15c)),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x102)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x123)],Log[aj(0x134)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x117)](D);}l=await d[ai(0x13e)]();const t=await Actions[ai(0x137)](ai(0x110),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions['ask'](ai(0x149)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ai(0x101),G=F[ai(0x150)](',');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(0x135)](u);if(I===''){Log['notice'](ai(0x11b)),J[ai(0x102)](function(L){const ak=ai;L[ak(0x123)]===u?Log['notice'](ak(0x108)+L['id']+ak(0x132)+L['name']+ak(0x153)+L[ak(0x14a)]):Log[ak(0x100)](ak(0x108)+L['id']+ak(0x132)+L[ak(0x123)]+ak(0x153)+L['sgId']);});const K=await Actions[ai(0xfc)](ai(0x11c)+H+']\x20')||H[ai(0x10c)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x14a)],Log['success']('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log['success'](ai(0x10d)+m+'\x0a');if(m==='')throw Log['error'](ai(0x12b));}catch(L){Log[ai(0x117)](L);}try{const M=0x7e6;Log[ai(0x12e)](ai(0x158));const N=execSync(ai(0x143)+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')['toString'](),O=JSON[ai(0xf4)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x12d)]==='amazon'){const T=S['Desc'][am(0x150)]('build\x20on\x20')[0x1];P[am(0x11e)]({'amiId':S['ID'],'desc':S[am(0x13a)],'date':T});}}),P[ai(0x106)](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S['date'])[an(0x12f)]();}),P[ai(0x102)](function(S,T){const ao=ai;Q[ao(0x11e)]({'id':T,'amiId':S[ao(0xfa)],'desc':S[ao(0xf3)]});}),Q[ai(0x102)](function(S){const ap=ai;console[ap(0x147)](ap(0x108)+S['id']+ap(0x133)+S[ap(0xfa)]+ap(0x122)+S['desc']);});const R=await Actions[ai(0xfc)](ai(0x10e))||'0';Q[ai(0x102)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xfa)],Log[aq(0x134)](aq(0xf5)+n+aq(0x13f)+S[aq(0xf3)]));});if(n==='')throw Log['error'](ai(0x12b));}catch(S){Log[ai(0x117)](S);}try{Log[ai(0x12e)](ai(0x121));const T=execSync(ai(0x152))[ai(0x10c)](),U=JSON[ai(0xf4)](T),V=[];U[ai(0x102)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0xfe)],'az':X['az'],'subnetId':X[ar(0x10f)]});}),V['forEach'](function(X){const as=ai;console[as(0x147)](as(0x108)+X['id']+as(0x15b)+X[as(0x10b)]+'\x20AZONE:\x20'+X['az']+as(0x157)+X['subnetId']);});const W=await Actions[ai(0xfc)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x134)](at(0x144)+p));});if(p==='')throw Log[ai(0x117)](ai(0x12b));}catch(X){Log[ai(0x117)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xfc)](ai(0xfb))||ai(0x111),Z=Y[ai(0x150)](':')[0x0],a0=Y[ai(0x150)](':')[0x1];typeof parseInt(Z)===ai(0x15d)&&typeof parseInt(a0)===ai(0x15d)&&Log[ai(0x134)](ai(0x105)+Z+':'+a0);}catch(a1){Log[ai(0x117)](a1);}try{const a2=await Actions[ai(0xfc)](ai(0xf6))||ai(0x127);typeof a2===ai(0xf0)&&(o=a2);}catch(a3){Log[ai(0x117)](a3);}let x='';try{const a4=await Actions[ai(0x137)](ai(0x11d),![]);a4&&(x=a7f[ai(0x14c)](i,ai(0x13b)),Log[ai(0x12e)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this['fsi'][ai(0xff)]({'filePath':x,'data':''}),await Actions['confirm'](ai(0x13c)));}catch(a5){Log[ai(0x117)](a5);}try{const a6=JSON[ai(0xf4)](execSync(ai(0x119)+p+ai(0x11a))[ai(0x10c)]())[0x0][ai(0x113)];Log[ai(0x12e)](ai(0x12c)+n),Log[ai(0x12e)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x12e)]('Instace\x20Type:\x20'+o),Log['notice']('Key-Pair:\x20'+r),Log[ai(0x12e)](ai(0x141)+m),Log['notice'](ai(0xef)+a6);if(x){Log[ai(0x12e)]('User\x20Data:'+x);const a8=a7g[ai(0x104)](x)['toString']();Log[ai(0x12e)](a8);}const a7=await Actions[ai(0x137)](ai(0x130));if(a7){const a9=await d[ai(0xf2)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xfd),'Value':ai(0x118)},{'Key':ai(0xf9),'Value':h},{'Key':ai(0x116),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x134)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x100)](ai(0x115)));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0x129)+r+'\x20?',!![]);aa&&(d[ai(0x12a)](r),f[ai(0x14d)](s)&&a7g[ai(0x151)](s));const ab=await Actions[ai(0x137)](ai(0x15a)+m+'\x20?',!![]);ab&&d[ai(0x142)](m);}}catch(ac){Log[ai(0x117)](ac);}}catch(ad){ad&&Log[ai(0x117)](ad),process['exit'](0x0);}},a7e);
1
+ const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0xac))/0x1+parseInt(ae(0x81))/0x2+parseInt(ae(0xc3))/0x3*(parseInt(ae(0xa7))/0x4)+-parseInt(ae(0xa2))/0x5+-parseInt(ae(0xbd))/0x6+parseInt(ae(0x74))/0x7+-parseInt(ae(0x8b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x4f80a));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0xab)]()[ag(0xd8)](ag(0x72))[ag(0xab)]()[ag(0xbb)](a7a)[ag(0xd8)]('(((.+)+)+)+$');});function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x72;let f=c[d];return f;},a7d(a,b);}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';function a7c(){const au=['notice','success','build\x20on\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Instace\x20Type:\x20','cider','name','getAppConfigPath','Subnet:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Security\x20Group:\x20','getSecurityGroups','search','(((.+)+)+)+$','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','2720305QDUEqL','sgId','\x20SG\x20NAME:\x20','Web\x20App','ID:\x20','env','forEach','\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','createKeyPair','parse','t3.micro','Create\x20new\x20AWS\x20instance','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','49378KIZDBl','Setting\x20the\x20key-pair\x20to:\x20','ImageID:','error','fsi','split','\x20AZONE:\x20','amazon','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','exit','2604344dgxuXi','unlinkSync','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','create','created-by','subnet','\x20SGID:\x20','log','maka\x20aws:create-instance','getConfigFromShorthand','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x20AMIID:\x20','desc','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','apply','Remove\x20the\x20keypair\x20','\x20DESCRIPTION:\x20','Security\x20Group\x20Name:\x20[','ask','date','Instance\x20Count:\x20','isFile','1446710UhczjC','ec2create','join','ec2createSG','maka-cli','54572Annluq','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Setting\x20SG\x20ID\x20to:\x20','Creating\x20user\x20data\x20file\x20in\x20','toString','275986pttNgr','amiId','create-instance','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','\x20SUBNETID:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','User\x20Data:','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','push','subnetId','cidr','ec2describeKeys','sort','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','deleteKeyPair','constructor','No\x20instance\x20has\x20been\x20created.','211596QXUUXU','readFileSync','Desc','Key-Pair:\x20','getTime','environment','63brpNOB','confirm','bright','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','number','\x20CIDR:\x20','createFile','Setting\x20AMI\x20ID\x20to\x20','22,80,443'];a7c=function(){return au;};return a7c();}Command[a7ah(0x8e)]({'name':a7ah(0xae),'aliases':['ci'],'usage':a7ah(0x93),'examples':['maka\x20aws:create-instance\x20--env\x20dev','maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x79)}],'validOpts':[],'shortDesc':a7ah(0x7f),'description':a7ah(0x7b)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x85)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x85)][ai(0x94)](b[ai(0x79)]),i=this[ai(0x85)][ai(0xd3)](h),j=g+'-'+h,k=await Actions[ai(0x9e)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xc4)](ai(0xcf),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x7c)]({'env':h});r=y,s=z,Log['success'](ai(0x82)+r);}else try{Log[ai(0xcc)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0xb7)]({'suggestion':A}),C=await Actions[ai(0x9e)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x73)),Log[ai(0xcc)](ai(0xbc));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0xcd)](aj(0x82)+r));});}catch(D){Log['error'](D);}l=await d['chooseVPC']();const t=await Actions['confirm'](ai(0x95),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0x9e)](ai(0x9d)+k+']')||k;const F=await Actions[ai(0x9e)](ai(0x8d))||ai(0xcb),G=F[ai(0x86)](',');await d[ai(0xa5)]({'description':ai(0x77),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xd7)](u);if(I===''){Log[ai(0xcc)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x7a)](function(L){const ak=ai;L[ak(0xd2)]===u?Log[ak(0xcc)](ak(0x78)+L['id']+ak(0x76)+L['name']+ak(0x91)+L[ak(0x75)]):Log[ak(0xc5)](ak(0x78)+L['id']+ak(0x76)+L[ak(0xd2)]+ak(0x91)+L['sgId']);});const K=await Actions['ask'](ai(0xaf)+H+']\x20')||H[ai(0xab)]();J[ai(0x7a)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x75)],Log[al(0xcd)](al(0xa9)+m+'\x0a'));});}else m=I,Log['success'](ai(0xa9)+m+'\x0a');if(m==='')throw Log[ai(0x84)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0x84)](L);}try{const M=0x7e6;Log[ai(0xcc)]('**\x20Available\x20AMIs\x20**');const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+'*\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(0xab)](),O=JSON[ai(0x7d)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S['alias']===am(0x88)){const T=S[am(0xbf)][am(0x86)](am(0xce))[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0xbf)],'date':T});}}),P[ai(0xb8)](function(S,T){const an=ai;return new Date(T['date'])[an(0xc1)]()-new Date(S[an(0x9f)])[an(0xc1)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0xb4)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0x97)]});}),Q[ai(0x7a)](function(S){const ap=ai;console[ap(0x92)](ap(0x78)+S['id']+ap(0x96)+S[ap(0xad)]+ap(0x9c)+S[ap(0x97)]);});const R=await Actions[ai(0x9e)](ai(0xb3))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0xcd)](aq(0xca)+n+'\x20:\x20'+S['desc']));});if(n==='')throw Log[ai(0x84)](ai(0xb9));}catch(S){Log[ai(0x84)](S);}try{Log['notice']('**\x20Available\x20Subnets\x20**');const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0xab)](),U=JSON[ai(0x7d)](T),V=[];U[ai(0x7a)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0xd1)],'az':X['az'],'subnetId':X[ar(0xb5)]});}),V['forEach'](function(X){const as=ai;console[as(0x92)](as(0x78)+X['id']+as(0xc8)+X[as(0xb6)]+as(0x87)+X['az']+as(0xb0)+X[as(0xb5)]);});const W=await Actions[ai(0x9e)](ai(0x99))||'0';V[ai(0x7a)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xb5)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x84)](ai(0xb9));}catch(X){Log[ai(0x84)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x9e)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||'1:1',Z=Y[ai(0x86)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0xc7)&&typeof parseInt(a0)==='number'&&Log[ai(0xcd)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x84)](a1);}try{const a2=await Actions[ai(0x9e)](ai(0x80))||ai(0x7e);typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x84)](a3);}let x='';try{const a4=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a7f[ai(0xa4)](i,'user-data'),Log[ai(0xcc)](ai(0xaa)+x),await this['fsi'][ai(0xc9)]({'filePath':x,'data':''}),await Actions['confirm'](ai(0xb1)));}catch(a5){Log[ai(0x84)](a5);}try{const a6=JSON[ai(0x7d)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0xd5))['toString']())[0x0][ai(0x90)];Log[ai(0xcc)](ai(0x83)+n),Log['notice'](ai(0xa0)+v+':'+w),Log[ai(0xcc)](ai(0xd0)+o),Log[ai(0xcc)](ai(0xc0)+r),Log[ai(0xcc)](ai(0xd6)+m),Log['notice'](ai(0xd4)+a6);if(x){Log[ai(0xcc)](ai(0xb2)+x);const a8=a7g[ai(0xbe)](x)[ai(0xab)]();Log[ai(0xcc)](a8);}const a7=await Actions[ai(0xc4)](ai(0xc6));if(a7){const a9=await d[ai(0xa3)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x8f),'Value':ai(0xa6)},{'Key':ai(0xc2),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0x98)),Log['bright'](ai(0xa8)));}else{Log[ai(0xcc)](ai(0x89));const aa=await Actions[ai(0xc4)](ai(0x9b)+r+'\x20?',!![]);aa&&(d[ai(0xba)](r),f[ai(0xa1)](s)&&a7g[ai(0x8c)](s));const ab=await Actions[ai(0xc4)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log[ai(0x84)](ac);}}catch(ad){ad&&Log[ai(0x84)](ad),process[ai(0x8a)](0x0);}},a7e);
@@ -1 +1 @@
1
- function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xd1;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(0xd8))/0x1+-parseInt(g(0xdd))/0x2*(parseInt(g(0xe8))/0x3)+-parseInt(g(0xe0))/0x4+parseInt(g(0xd7))/0x5*(parseInt(g(0xe5))/0x6)+-parseInt(g(0xd3))/0x7*(parseInt(g(0xd2))/0x8)+parseInt(g(0xea))/0x9*(parseInt(g(0xeb))/0xa)+parseInt(g(0xe6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x1d605));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0xe1)]()[i(0xdb)](i(0xe2))['toString']()[i(0xec)](a8a)['search'](i(0xe2));});a8a();function a8c(){const l=['env','createKeyPair','659940HALYoH','toString','(((.+)+)+)+$','create','ckp','436314mssYRf','5265106TCuQRH','maka\x20aws:create-key-pair','9kfktyg','getConfigFromShorthand','3006LQjZwh','3380yFdFsS','constructor','\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','error','32erfcGa','293545zcdjTf','maka\x20aws:ckp\x20--env\x20prod','maka\x20aws:create-key-pair\x20--env\x20prod','apply','5uerVDg','59536jUbdRC','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','exit','search','fsi','101114ZFvVrd'];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(0xe3)]({'name':'create-key-pair','aliases':[a8j(0xe4)],'usage':a8j(0xe7),'examples':[a8j(0xd5),a8j(0xd4)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8j(0xd9),'description':a8j(0xed)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0xdc)][k(0xe9)](b[k(0xde)]);c[k(0xdf)]({'env':d});}catch(f){f&&Log[k(0xd1)](f),process[k(0xda)](0x0);}},a8e);
1
+ const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x1ed))/0x1*(parseInt(g(0x1df))/0x2)+parseInt(g(0x1f0))/0x3+-parseInt(g(0x1d7))/0x4*(-parseInt(g(0x1e4))/0x5)+parseInt(g(0x1eb))/0x6*(parseInt(g(0x1e6))/0x7)+parseInt(g(0x1ef))/0x8*(parseInt(g(0x1ec))/0x9)+-parseInt(g(0x1e1))/0xa*(-parseInt(g(0x1dd))/0xb)+-parseInt(g(0x1e5))/0xc*(parseInt(g(0x1e7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x68d50));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x1da)]()[i(0x1d9)](i(0x1ee))[i(0x1da)]()[i(0x1de)](a8a)[i(0x1d9)](i(0x1ee));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8c(){const l=['792216pbtqSb','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','error','env','12vrmctP','create','search','toString','maka\x20aws:ckp\x20--env\x20prod','apply','33aMnGNO','constructor','10NULUxz','\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','2143330QkjKnD','maka\x20aws:create-key-pair\x20--env\x20prod','getConfigFromShorthand','554420uCUdik','12KsGmhe','1056643curBhK','15456324FMGXOi','ckp','fsi','create-key-pair','30mDOnfZ','9iMxtCP','161149WtaEla','(((.+)+)+)+$','3436936ulWUIi'];a8c=function(){return l;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a8d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a8j(0x1d8)]({'name':a8j(0x1ea),'aliases':[a8j(0x1e8)],'usage':'maka\x20aws:create-key-pair','examples':[a8j(0x1e2),a8j(0x1db)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x1f3)],'validOpts':[],'shortDesc':a8j(0x1f1),'description':a8j(0x1e0)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x1e9)][k(0x1e3)](b[k(0x1f3)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[k(0x1f2)](f),process['exit'](0x0);}},a8e);
@@ -1 +1 @@
1
- const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x125))/0x1*(-parseInt(m(0x130))/0x2)+-parseInt(m(0x142))/0x3+-parseInt(m(0x135))/0x4*(parseInt(m(0x143))/0x5)+parseInt(m(0x12d))/0x6+parseInt(m(0x137))/0x7*(-parseInt(m(0x129))/0x8)+-parseInt(m(0x123))/0x9+parseInt(m(0x133))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xa9cde));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x139)](o(0x132))[o(0x131)]()[o(0x127)](a9a)[o(0x139)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x123;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(0x13f)]({'name':a9p(0x126),'aliases':['csg'],'usage':a9p(0x12b),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a9p(0x145),'examples':[a9p(0x12c),'maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x12f)][q(0x128)](),{appName:f}=d,g=await c[q(0x13a)](),h=b[q(0x144)]?b['name']:''+f,i=await Actions[q(0x134)](q(0x12e)+h+']')||h,j=await Actions[q(0x134)](q(0x136))||q(0x140),k=j[q(0x12a)](',');k[q(0x13c)](l=>{const r=q;if(!l[r(0x13d)](/^\d+$/))throw r(0x141);}),await c[q(0x124)]({'description':q(0x13e),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x13b)](l),process['exit'](0x1);}},a9e);function a9c(){const s=['22,80,443','List\x20is\x20not\x20all\x20numbers','3747486IcliMd','1914215rfCfVU','name','\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','4303350YePvHM','ec2createSG','2nHqXvJ','create-security-group','constructor','getMakaProjectConfig','8GCEIWz','split','maka\x20aws\x20create-security-group','maka\x20aws:create-secuirty-group','5415570yvdiUH','Security\x20Group\x20Name:\x20[','fsi','8718CZiHPm','toString','(((.+)+)+)+$','29535010xCxWdE','ask','4FPcYDZ','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','7413987UZiNIO','apply','search','chooseVPC','error','forEach','match','Web\x20App','create'];a9c=function(){return s;};return a9c();}
1
+ const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0xda))/0x1+-parseInt(m(0xe9))/0x2*(parseInt(m(0xe1))/0x3)+-parseInt(m(0xed))/0x4*(-parseInt(m(0xef))/0x5)+parseInt(m(0xdf))/0x6*(parseInt(m(0xd0))/0x7)+parseInt(m(0xec))/0x8+parseInt(m(0xe0))/0x9*(-parseInt(m(0xe6))/0xa)+parseInt(m(0xd2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xd8a0e));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0xd5)](o(0xd8))[o(0xe7)]()[o(0xd4)](a9a)[o(0xd5)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';function a9c(){const s=['maka\x20aws:create-secuirty-group','6HZgSsI','9pJTmfX','3810HAyWxD','create-security-group','maka\x20aws\x20create-security-group','csg','List\x20is\x20not\x20all\x20numbers','8678270bRFvlM','toString','chooseVPC','2362MUopBq','forEach','error','12865768GawAoZ','88404jNhmNV','\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','10tPcoWP','getMakaProjectConfig','split','2616684bdaecu','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','14669149EjbkDu','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','constructor','search','maka\x20aws:csg','ask','(((.+)+)+)+$','exit','104787UYPcYm','name','apply','fsi'];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';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xcf;let f=c[d];return f;},a9d(a,b);}Command['create']({'name':a9p(0xe2),'aliases':[a9p(0xe4)],'usage':a9p(0xe3),'validOpts':[],'shortDesc':a9p(0xd1),'description':a9p(0xee),'examples':[a9p(0xde),a9p(0xd6)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0xdd)][q(0xf0)](),{appName:f}=d,g=await c[q(0xe8)](),h=b[q(0xdb)]?b[q(0xdb)]:''+f,i=await Actions[q(0xd7)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0xd7)](q(0xd3))||'22,80,443',k=j[q(0xcf)](',');k[q(0xea)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0xe5);}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xeb)](l),process[q(0xd9)](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1bc))/0x1*(parseInt(f(0x1c4))/0x2)+parseInt(f(0x1cf))/0x3+-parseInt(f(0x1c9))/0x4*(-parseInt(f(0x1d4))/0x5)+parseInt(f(0x1cb))/0x6*(-parseInt(f(0x1d0))/0x7)+-parseInt(f(0x1d1))/0x8*(-parseInt(f(0x1c8))/0x9)+parseInt(f(0x1c3))/0xa*(-parseInt(f(0x1cc))/0xb)+-parseInt(f(0x1c2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x2f760));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1ce)]()[h(0x1c5)](h(0x1bd))[h(0x1ce)]()['constructor'](a10a)[h(0x1c5)]('(((.+)+)+)+$');});function a10c(){const k=['\x20deleted\x20successfully\x20in\x20region\x20','ecrDeleteRepository','\x20in\x20region\x20','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','2455056ztrOkO','3834190OZQWUV','422594HURFHN','search','name','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','92151yOzvmx','68AGZKDp','apply','1191444jiajQK','11QcAwLu','error','toString','493560peAyIB','7HHKKzF','296fJWfEo','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','region','66565ZoEGpm','exit','1cCNMlk','(((.+)+)+)+$'];a10c=function(){return k;};return a10c();}a10a();function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a10d(a,b);}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':['decr'],'usage':a10i(0x1c7),'requiredOpts':['name',a10i(0x1d3)],'validOpts':[],'shortDesc':'Delete\x20an\x20Elastic\x20Container\x20Repository','examples':[a10i(0x1d2),a10i(0x1c1)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x1bf)]({'repoName':b[j(0x1c6)],'region':b[j(0x1d3)]}),Log['success']('Repository\x20'+b['name']+j(0x1be)+b[j(0x1d3)]+'.'),process['exit'](0x0);}catch(d){Log[j(0x1cd)]('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[j(0x1c6)]+j(0x1c0)+b['region']+'.\x20Error:\x20'+d),process[j(0x1d5)](0x1);}},a10e);
1
+ const a10i=a10d;function a10c(){const k=['14104053QBXMYO','Failed\x20to\x20delete\x20the\x20repository:\x20','Delete\x20an\x20Elastic\x20Container\x20Repository','delete-ecr','248860oSAbiz','Repository\x20','296qZOQYo','decr','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','apply','287670mfyxWS','\x20deleted\x20successfully\x20in\x20region\x20','3189jBbMLG','6649338KWTnCF','.\x20Error:\x20','region','40CftKbo','constructor','35395CQzmeo','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','836tTcmBB','1409009WyahoW','429xrDyer','search','toString','name','success','(((.+)+)+)+$'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1fe))/0x1*(-parseInt(f(0x1f8))/0x2)+parseInt(f(0x1fc))/0x3+-parseInt(f(0x1ea))/0x4*(parseInt(f(0x1e8))/0x5)+parseInt(f(0x1e3))/0x6+parseInt(f(0x1eb))/0x7*(-parseInt(f(0x1e6))/0x8)+parseInt(f(0x1f2))/0x9+parseInt(f(0x1f6))/0xa*(parseInt(f(0x1ec))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xbf5fa));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1ee)]()[h(0x1ed)](h(0x1f1))[h(0x1ee)]()[h(0x1e7)](a10a)[h(0x1ed)](h(0x1f1));});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':a10i(0x1f5),'aliases':[a10i(0x1f9)],'usage':a10i(0x1e9),'requiredOpts':[a10i(0x1ef),a10i(0x1e5)],'validOpts':[],'shortDesc':a10i(0x1f4),'examples':[a10i(0x1fa),'maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1']},async function(a,b){const j=a10i;try{const c=new AWS();await c['ecrDeleteRepository']({'repoName':b[j(0x1ef)],'region':b[j(0x1e5)]}),Log[j(0x1f0)](j(0x1f7)+b[j(0x1ef)]+j(0x1fd)+b['region']+'.'),process['exit'](0x0);}catch(d){Log['error'](j(0x1f3)+b[j(0x1ef)]+'\x20in\x20region\x20'+b[j(0x1e5)]+j(0x1e4)+d),process['exit'](0x1);}},a10e);
@@ -1 +1 @@
1
- function a11c(){const j=['describe-instances','50HDGJbL','169725CmjGty','8AVqfPw','201053rsFfkw','72009EqPsqX','18IcWySi','exit','maka\x20aws:di','32RfshvH','339978yETgkW','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','127899ArrBQR','(((.+)+)+)+$','maka\x20aws:describe-instances','create','970794xbhdAI','search','38810JGvrlf'];a11c=function(){return j;};return a11c();}const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0xe8))/0x1+parseInt(f(0xdb))/0x2+parseInt(f(0xe6))/0x3*(parseInt(f(0xe7))/0x4)+-parseInt(f(0xe3))/0x5*(parseInt(f(0xea))/0x6)+-parseInt(f(0xe9))/0x7*(-parseInt(f(0xda))/0x8)+parseInt(f(0xdd))/0x9*(-parseInt(f(0xe5))/0xa)+parseInt(f(0xe1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x1c99b));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const g=a11d;return a11a['toString']()['search'](g(0xde))['toString']()['constructor'](a11a)[g(0xe2)](g(0xde));});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xd9;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11h(0xe0)]({'name':a11h(0xe4),'aliases':['di'],'usage':a11h(0xdf),'validOpts':[],'shortDesc':a11h(0xdc),'examples':[a11h(0xdf),a11h(0xd9)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const i=a11h;try{const a=new AWS();a['ec2describeInstances']();}catch(b){b&&Log['error'](b),process[i(0xeb)](0x1);}},a11e);
1
+ const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x1d7))/0x1+-parseInt(f(0x1dc))/0x2*(parseInt(f(0x1d1))/0x3)+parseInt(f(0x1d3))/0x4*(-parseInt(f(0x1d6))/0x5)+parseInt(f(0x1cd))/0x6*(-parseInt(f(0x1d8))/0x7)+-parseInt(f(0x1cf))/0x8*(-parseInt(f(0x1d0))/0x9)+parseInt(f(0x1ce))/0xa*(-parseInt(f(0x1e3))/0xb)+parseInt(f(0x1e0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xd7ab8));function a11c(){const k=['3041626XqlADQ','create','\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','describe-instances','43195236afgTNI','search','maka\x20aws:describe-instances','11lePdqF','51438ddlGXI','11496890ruYYpa','40WUoXll','2867769MbGFoZ','3gyqQDj','toString','455788yzFByV','(((.+)+)+)+$','apply','55ogNoKO','1046186DGQXyB','1169mowIny','error','ec2describeInstances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI'];a11c=function(){return k;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x1d2)]()[h(0x1e1)]('(((.+)+)+)+$')[h(0x1d2)]()['constructor'](a11a)[h(0x1e1)](h(0x1d4));});a11a();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(0x1dd)]({'name':a11i(0x1df),'aliases':['di'],'usage':a11i(0x1e2),'validOpts':[],'shortDesc':a11i(0x1db),'examples':[a11i(0x1e2),'maka\x20aws:di'],'description':a11i(0x1de)},async function(){const j=a11i;try{const a=new AWS();a[j(0x1da)]();}catch(b){b&&Log[j(0x1d9)](b),process['exit'](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xd4))/0x1+parseInt(f(0xcc))/0x2*(-parseInt(f(0xc3))/0x3)+-parseInt(f(0xc6))/0x4*(parseInt(f(0xcf))/0x5)+parseInt(f(0xd5))/0x6*(-parseInt(f(0xd7))/0x7)+-parseInt(f(0xd9))/0x8*(-parseInt(f(0xd0))/0x9)+parseInt(f(0xc2))/0xa*(parseInt(f(0xc1))/0xb)+-parseInt(f(0xc9))/0xc*(-parseInt(f(0xca))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xf29f5));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xd1)]()[h(0xce)](h(0xc7))[h(0xd1)]()[h(0xcb)](a12a)[h(0xce)](h(0xc7));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xc0;let f=c[d];return f;},a12d(a,b);}function a12c(){const k=['constructor','452TLhRIu','exit','search','5100565fEkOmc','29331eEJjbi','toString','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','error','1268021SymeQa','8414610KWDQyj','apply','7IRQbKd','describe-key-pairs','72FMBMAj','maka\x20aws:dkp','11VjgGPU','17562570PGRrzT','25032CcPKpF','dkp','ec2describeKeys','4wNHxOT','(((.+)+)+)+$','maka\x20aws:describe-key-pairs','28707036KNcowf','26tGOQWU'];a12c=function(){return k;};return a12c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12i(0xd8),'aliases':[a12i(0xc4)],'usage':a12i(0xc8),'validOpts':[],'shortDesc':a12i(0xd2),'examples':[a12i(0xc8),a12i(0xc0)]},async function(){const j=a12i;try{const a=new AWS();a[j(0xc5)]();}catch(b){b&&Log[j(0xd3)](b),process[j(0xcd)](0x0);}},a12e);
1
+ const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0xc2))/0x1*(parseInt(f(0xc0))/0x2)+parseInt(f(0xc1))/0x3+-parseInt(f(0xb0))/0x4*(-parseInt(f(0xbb))/0x5)+parseInt(f(0xb8))/0x6+parseInt(f(0xba))/0x7+parseInt(f(0xb1))/0x8+-parseInt(f(0xb6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xba72e));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xb5)]()[h(0xbd)](h(0xbc))['toString']()[h(0xbe)](a12a)[h(0xbd)](h(0xbc));});a12a();function a12c(){const k=['apply','dkp','toString','55971369MKqbrL','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','6355254MvEmmV','maka\x20aws:dkp','7122612VhuVqB','7603265JQtljq','(((.+)+)+)+$','search','constructor','maka\x20aws:describe-key-pairs','1462420eWHKeR','2111868YvpvbO','2TdcWSY','ec2describeKeys','describe-key-pairs','4qGiTEm','9751848xrsCyL','error'];a12c=function(){return k;};return a12c();}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';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xb0;let f=c[d];return f;},a12d(a,b);}Command['create']({'name':a12i(0xc4),'aliases':[a12i(0xb4)],'usage':a12i(0xbf),'validOpts':[],'shortDesc':a12i(0xb7),'examples':[a12i(0xbf),a12i(0xb9)]},async function(){const j=a12i;try{const a=new AWS();a[j(0xc3)]();}catch(b){b&&Log[j(0xb2)](b),process['exit'](0x0);}},a12e);
@@ -1 +1 @@
1
- function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a13d(a,b);}const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x1e8))/0x1+-parseInt(l(0x1ec))/0x2+-parseInt(l(0x1e6))/0x3+-parseInt(l(0x1d9))/0x4*(parseInt(l(0x1fa))/0x5)+-parseInt(l(0x1ea))/0x6*(parseInt(l(0x1ee))/0x7)+parseInt(l(0x1f4))/0x8+parseInt(l(0x1dc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xc7d13));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x1f5)]()[n(0x1d4)](n(0x1f7))[n(0x1f5)]()[n(0x1d7)](a13a)[n(0x1d4)](n(0x1f7));});function a13c(){const s=['29125755daimEK','dsg','error','name','forEach','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','bright','maka\x20aws:dsg','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','maka\x20aws:delete-sg','2960343SqPdZa','Deleting\x20a\x20','1212037VrgMLz','\x20SG\x20NAME:\x20','260976GqSTOi','delete-security-group','2890338xiSdxT','apply','35gXTTJN','ID:\x20','sgId','isMakaProject','success','ask','365528SmTJdg','toString','deleteSecurityGroup','(((.+)+)+)+$','\x20SGID:\x20','getMakaProjectConfig','15XUkgcu','getSecurityGroups','search','notice','confirm','constructor','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','1368056FcsPMi','create','Not\x20deleting\x20secuirty\x20group'];a13c=function(){return s;};return a13c();}a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x1da)]({'name':a13o(0x1eb),'aliases':[a13o(0x1dd)],'usage':a13o(0x1e5),'validOpts':[],'shortDesc':a13o(0x1e1),'examples':['maka\x20aws:delete-sg',a13o(0x1e3)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1f1)]();let d='';if(c){const j=b[p(0x1f9)]();d=j['appName'];}const {sgList:f}=await a[p(0x1fb)]();f[p(0x1e0)](function(k){const q=p;c&&k[q(0x1df)]['includes'](d)?Log[q(0x1d5)]('ID:\x20'+k['id']+q(0x1e9)+k['name']+q(0x1f8)+k[q(0x1f0)]):Log[q(0x1e2)](q(0x1ef)+k['id']+q(0x1e9)+k[q(0x1df)]+q(0x1f8)+k['sgId']);});let g='';const h=await Actions[p(0x1f3)](p(0x1d8));f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1f0)]);});if(!g)throw Log[p(0x1de)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x1d6)](p(0x1e7)+g+p(0x1e4),![]);i?(await a[p(0x1f6)](g),Log[p(0x1f2)]('Deleted\x20'+g)):Log[p(0x1de)](p(0x1db)),process['exit'](0x0);}catch(k){k&&Log[p(0x1de)](k),process['exit'](0x1);}},a13e);
1
+ const a13n=a13d;function a13c(){const r=['22996lPxRxr','560790tBptuG','create','confirm','23964tpAvGb','search','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','\x20SG\x20NAME:\x20','deleteSecurityGroup','5gRdWhi','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','maka\x20aws:dsg','toString','exit','1KVIsgp','getMakaProjectConfig','778253Ipbayx','2783871bPXejH','\x20SGID:\x20','appName','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','360784WljYkB','maka\x20aws:delete-sg','getSecurityGroups','sgId','913116xToRNY','(((.+)+)+)+$','4UhHQLf','name','dsg','error','ID:\x20','delete-security-group','success','99NXEpRI','forEach','includes','Deleted\x20','constructor'];a13c=function(){return r;};return a13c();}(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x17d))/0x1*(-parseInt(l(0x16f))/0x2)+-parseInt(l(0x173))/0x3*(parseInt(l(0x18a))/0x4)+-parseInt(l(0x178))/0x5*(parseInt(l(0x188))/0x6)+parseInt(l(0x17f))/0x7+parseInt(l(0x184))/0x8+-parseInt(l(0x180))/0x9+-parseInt(l(0x170))/0xa*(-parseInt(l(0x191))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x318f1));const a13b=(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;};}()),a13a=a13b(this,function(){const m=a13d;return a13a[m(0x17b)]()['search']('(((.+)+)+)+$')[m(0x17b)]()[m(0x16e)](a13a)[m(0x174)](m(0x189));});a13a();function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x16e;let f=c[d];return f;},a13d(a,b);}import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13n(0x171)]({'name':a13n(0x18f),'aliases':[a13n(0x18c)],'usage':a13n(0x185),'validOpts':[],'shortDesc':a13n(0x183),'examples':[a13n(0x185),a13n(0x17a)]},async function(){const o=a13n;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[o(0x17e)]();d=j[o(0x182)];}const {sgList:f}=await a[o(0x186)]();f[o(0x192)](function(k){const p=o;c&&k[p(0x18b)][p(0x193)](d)?Log['notice'](p(0x18e)+k['id']+p(0x176)+k[p(0x18b)]+p(0x181)+k[p(0x187)]):Log['bright'](p(0x18e)+k['id']+p(0x176)+k['name']+p(0x181)+k[p(0x187)]);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[o(0x192)](function(k){const q=o;k['id']===parseInt(h)&&(g=k[q(0x187)]);});if(!g)throw Log['error'](o(0x179));const i=await Actions[o(0x172)]('Deleting\x20a\x20'+g+o(0x175),![]);i?(await a[o(0x177)](g),Log[o(0x190)](o(0x194)+g)):Log['error']('Not\x20deleting\x20secuirty\x20group'),process['exit'](0x0);}catch(k){k&&Log[o(0x18d)](k),process[o(0x17c)](0x1);}},a13e);
@@ -1 +1 @@
1
- const a14h=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0xf5))/0x1+-parseInt(f(0x101))/0x2+parseInt(f(0xf4))/0x3*(parseInt(f(0xf3))/0x4)+parseInt(f(0xf6))/0x5+-parseInt(f(0xfb))/0x6+-parseInt(f(0xed))/0x7+parseInt(f(0xee))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x53bab));const a14b=(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;};}()),a14a=a14b(this,function(){const g=a14d;return a14a[g(0x104)]()[g(0xf0)](g(0xfe))[g(0x104)]()['constructor'](a14a)[g(0xf0)](g(0xfe));});function a14c(){const j=['maka\x20aws:list-ecr','error','lecr','success','988116XYZjby','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','(((.+)+)+)+$','listAllEcrRepositories','regions','1157188YtLHjh','exit','maka\x20aws:lecr\x20--regions=all','toString','767494pvCrAH','6986960pPxZyq','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','search','Completed\x20listing\x20ECR\x20repositories.','list-ecr','4MlMfyW','401493YEPBDm','35446ndhdBs','1120610bFPIZa'];a14c=function(){return j;};return a14c();}a14a();function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xed;let f=c[d];return f;},a14d(a,b);}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';Command['create']({'name':a14h(0xf2),'aliases':[a14h(0xf9)],'usage':a14h(0xef),'requiredOpts':[],'validOpts':[a14h(0x100)],'shortDesc':a14h(0xfd),'examples':[a14h(0xf7),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14h(0x103)]},async function(a,b){const i=a14h;try{const c=new AWS();await c[i(0xff)](b[i(0x100)]),Log[i(0xfa)](i(0xf1)),process['exit'](0x0);}catch(d){Log[i(0xf8)](i(0xfc)+d),process[i(0x102)](0x1);}},a14e);
1
+ const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0xd8))/0x1*(parseInt(f(0xdf))/0x2)+parseInt(f(0xdd))/0x3*(parseInt(f(0xec))/0x4)+-parseInt(f(0xda))/0x5+-parseInt(f(0xd6))/0x6*(-parseInt(f(0xe6))/0x7)+parseInt(f(0xdc))/0x8*(-parseInt(f(0xdb))/0x9)+parseInt(f(0xea))/0xa+-parseInt(f(0xe4))/0xb*(parseInt(f(0xe8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x8721b));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xd4;let f=c[d];return f;},a14d(a,b);}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0xee)]()[h(0xe9)]('(((.+)+)+)+$')[h(0xee)]()[h(0xe1)](a14a)[h(0xe9)](h(0xd9));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14c(){const k=['error','toString','lecr','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','78UVtqiq','create','113iQSBIR','(((.+)+)+)+$','191890CBohuX','3908727qGUcyU','8KvqTss','3HHniRc','maka\x20aws:list-ecr','3178QqITUY','maka\x20aws:lecr\x20--regions=all','constructor','Completed\x20listing\x20ECR\x20repositories.','apply','1854413uFTAWR','success','536074KKfqTv','list-ecr','60VYGfSX','search','3197950NlzcgO','regions','2933164iBBARQ'];a14c=function(){return k;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14i(0xd7)]({'name':a14i(0xe7),'aliases':[a14i(0xef)],'usage':a14i(0xd5),'requiredOpts':[],'validOpts':['regions'],'shortDesc':a14i(0xf0),'examples':[a14i(0xde),a14i(0xd4),a14i(0xe0)]},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0xeb)]),Log[j(0xe5)](j(0xe2)),process['exit'](0x0);}catch(d){Log[j(0xed)]('An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20'+d),process['exit'](0x1);}},a14e);
@@ -1 +1 @@
1
- function a15c(){const k=['\x20Ready?','maka\x20aws:reboot-instance','name','ec2rebootInstance','27ElgbSW','Reboot\x20an\x20EC2\x20instance','maka\x20aws:rbi','3639420LjoPiJ','122635sMJDSE','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','7332976WAriTR','create','84Ritwln','search','\x20is\x20still\x20running.','1462238xeLnOT','confirm','running','exit','reboot-instance','instanceId','apply','rbi','(((.+)+)+)+$','toString','10iKEBTS','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','status','29328937yrIAgI','8mXPZVM','chooseInstance','error','865588BCNGDR','83196lJEQWx'];a15c=function(){return k;};return a15c();}function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x11d;let f=c[d];return f;},a15d(a,b);}const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x13a))/0x1+parseInt(f(0x129))/0x2+parseInt(f(0x11e))/0x3*(-parseInt(f(0x13b))/0x4)+parseInt(f(0x122))/0x5*(parseInt(f(0x126))/0x6)+parseInt(f(0x124))/0x7+-parseInt(f(0x137))/0x8*(-parseInt(f(0x121))/0x9)+-parseInt(f(0x133))/0xa*(parseInt(f(0x136))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x837cf));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x132)]()[h(0x127)]('(((.+)+)+)+$')[h(0x132)]()['constructor'](a15a)[h(0x127)](h(0x131));});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(0x125)]({'name':a15i(0x12d),'aliases':[a15i(0x130)],'usage':a15i(0x13d),'validOpts':[],'shortDesc':a15i(0x11f),'examples':[a15i(0x13d),a15i(0x120)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x138)]();if(b?.[j(0x135)]===j(0x12b)){const c=await Actions[j(0x12a)](j(0x123)+b[j(0x13e)]+j(0x13c));c&&b[j(0x12e)]?a[j(0x11d)]({'instanceId':b['instanceId']}):Log[j(0x139)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0x13e)]+j(0x128));}else Log[j(0x139)](j(0x134));}catch(d){d&&Log[j(0x139)](d),process[j(0x12c)](0x1);}},a15e);
1
+ const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x1c1))/0x1+-parseInt(f(0x1d8))/0x2*(-parseInt(f(0x1de))/0x3)+-parseInt(f(0x1c5))/0x4*(parseInt(f(0x1d6))/0x5)+-parseInt(f(0x1dc))/0x6+parseInt(f(0x1cd))/0x7+parseInt(f(0x1c0))/0x8*(parseInt(f(0x1da))/0x9)+parseInt(f(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xaffb7));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x1d7)]()[h(0x1d3)]('(((.+)+)+)+$')['toString']()[h(0x1c3)](a15a)[h(0x1d3)]('(((.+)+)+)+$');});a15a();import a15e from'./aws.command.js';function a15c(){const k=['1336rXdoLM','Reboot\x20an\x20EC2\x20instance','running','ec2rebootInstance','15007890WeZEif','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','instanceId','chooseInstance','1907052igeSmO','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','error','create','rbi','search','reboot-instance','maka\x20aws:rbi','2165gNSuIq','toString','2XgKGuo','maka\x20aws:reboot-instance','9bDjjEP','name','7925220WUPunQ','confirm','116817eyRgxB','apply','status','2190744ueSLjo','100308labNFP','exit','constructor','\x20Ready?'];a15c=function(){return k;};return a15c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1be;let f=c[d];return f;},a15d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a15i(0x1d1)]({'name':a15i(0x1d4),'aliases':[a15i(0x1d2)],'usage':a15i(0x1d9),'validOpts':[],'shortDesc':a15i(0x1c6),'examples':[a15i(0x1d9),a15i(0x1d5)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x1cc)]();if(b?.[j(0x1bf)]===j(0x1c7)){const c=await Actions[j(0x1dd)](j(0x1cf)+b[j(0x1db)]+j(0x1c4));c&&b[j(0x1cb)]?a[j(0x1c8)]({'instanceId':b['instanceId']}):Log[j(0x1d0)](j(0x1ca)+b[j(0x1db)]+'\x20is\x20still\x20running.');}else Log[j(0x1d0)](j(0x1ce));}catch(d){d&&Log[j(0x1d0)](d),process[j(0x1c2)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0x9e))/0x1+parseInt(E(0xa4))/0x2*(-parseInt(E(0x95))/0x3)+-parseInt(E(0x9f))/0x4*(parseInt(E(0x8e))/0x5)+parseInt(E(0xab))/0x6*(-parseInt(E(0xa9))/0x7)+-parseInt(E(0x92))/0x8*(-parseInt(E(0x90))/0x9)+-parseInt(E(0x70))/0xa*(-parseInt(E(0x75))/0xb)+parseInt(E(0xa0))/0xc*(parseInt(E(0x71))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x52e07));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x6d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x83)]()['search'](G(0x77))[G(0x83)]()[G(0x6b)](a16a)['search'](G(0x77));});a16a();import a16e from'./aws.command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x6b;let f=c[d];return f;},a16d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function a16c(){const K=['notice','PERSON','55WBMVog','values','9ZGxgfL','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','4243888dMwhta','Duration\x20in\x20years\x20[1]:\x20','mail@example.com','2011956MGNjEg','+1.5555555556','create','Do\x20you\x20wish\x20to\x20register\x20','domain','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Contact\x20Email\x20[mail@example.com]:\x20','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','123\x20Glorious\x20Way','70861zeAxdf','93876HwoNgp','24bvgbtP','\x20/\x20Year\x20\x0a','Person','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','2pFxhXs','confirm','Contact\x20First\x20Name\x20[Contact]:\x20','PUBLIC_BODY','State\x20[HI]:\x20','3064271NPBIys','exit','6FbdGwV','\x20/\x20Year)','constructor','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','apply','error','My\x20Comanpy,\x20LLC.','10dJPtLU','7897903VdNogp','list','maka\x20aws:register-domain-name\x20--domain=example.com','\x20years\x20(','344740RodvKF','rdn','(((.+)+)+)+$','ASSOCIATION','Invalid\x202\x20character\x20country\x20code','The\x20domain\x20name:\x20','Domain\x20name\x20is\x20unavailable','96816','warn','options','COMPANY','OrganizationName','Choose\x20contact\x20type','Zip\x20Code\x20[96816]:\x20','toString','registerDomain','Country\x20Code\x20[US]:\x20','+1.5555555555','checkDomainAvailability','includes','Address\x20Line\x202:\x20','ask','maka\x20aws:rdn\x20--domain=example.com'];a16c=function(){return K;};return a16c();}function isValidCountryCode(a){const H=a16d;return Object[H(0x8f)](CountryCode)[H(0x88)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x97)]({'name':'register-domain-name','aliases':[a16I(0x76)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a16I(0x99)],'validOpts':[],'shortDesc':a16I(0x91),'examples':[a16I(0x73),a16I(0x8b)]},async function(a,b){const J=a16I;try{const c=b[J(0x99)],d=new AWS(),{available:f,cost:g}=await d[J(0x87)](c);if(f&&g){Log[J(0x8c)](J(0x7a)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0x7d)]('\x20\x20'+h+'\x20'+i+J(0xa1));const j=await Actions[J(0xa5)](J(0x98)+c+'\x20?',![]);if(j){const k={'type':J(0x72),'name':'contactType','message':J(0x81),'choices':[J(0x78),J(0x7f),J(0x8d),J(0xa7),'RESELLER']},l=await Actions['ask'](J(0x93))||'1',m=await Actions[J(0x8a)](J(0xa6))||'Contact',n=await Actions[J(0x8a)]('Contact\x20Last\x20Name\x20[Person]:\x20')||J(0xa2),{contactType:o}=await Actions[J(0x7e)](k),p=await Actions[J(0x8a)]('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||J(0x9d),q=await Actions['ask'](J(0x89)),r=await Actions['ask'](J(0x82))||J(0x7c),s=await Actions['ask'](J(0xa8))||'HI',t=await Actions[J(0x8a)](J(0x85))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x6e)](J(0x79));const v=await Actions[J(0x8a)](J(0xa3))||J(0x86),w=await Actions['ask'](J(0x9c))||J(0x96),x=await Actions['ask'](J(0x9b))||J(0x94),y=await Actions[J(0xa5)]('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!=='PERSON'){const C=await Actions[J(0x8a)](J(0x6c))||J(0x6f);z[J(0x80)]=C;}const A=h||0x0*parseInt(l);Log[J(0x8c)](J(0x9a)),Log[J(0x7d)](A+'\x20'+i+'\x20for\x20'+l+J(0x74)+h+'\x20'+i+J(0xac));const B=await Actions[J(0xa5)]('Are\x20you\x20sure?');B&&await d[J(0x84)](z,c,parseInt(l),y);}}else throw J(0x7b);}catch(D){D&&Log[J(0x6e)](D),process[J(0xaa)](0x0);}},a16e);
1
+ const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x183))/0x1*(-parseInt(E(0x18a))/0x2)+-parseInt(E(0x17f))/0x3+-parseInt(E(0x1b9))/0x4+parseInt(E(0x180))/0x5*(-parseInt(E(0x18c))/0x6)+-parseInt(E(0x17e))/0x7*(-parseInt(E(0x185))/0x8)+parseInt(E(0x1b2))/0x9*(-parseInt(E(0x196))/0xa)+parseInt(E(0x187))/0xb*(parseInt(E(0x190))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x18e4c));function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x17e;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(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x19d)]()[G(0x1ac)](G(0x182))['toString']()[G(0x1ae)](a16a)[G(0x1ac)](G(0x182));});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';function a16c(){const K=['2766afKRSW','123\x20Glorious\x20Way','64fZXpJL','confirm','444389CmyeAP','Duration\x20in\x20years\x20[1]:\x20','\x20/\x20Year\x20\x0a','12tKsMOq','\x20is\x20available\x20for:','14676sDNoaW','rdn','options','domain','120WHysmx','maka\x20aws:register-domain-name','My\x20Comanpy,\x20LLC.','Domain\x20name\x20is\x20unavailable','ask','Auto\x20Renew:\x20','460710bGdzkE','apply','notice','Zip\x20Code\x20[96816]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','contactType','+1.5555555556','toString','Person','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','Invalid\x202\x20character\x20country\x20code','maka\x20aws:rdn\x20--domain=example.com','list','registerDomain','PERSON','error','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','register-domain-name','Do\x20you\x20wish\x20to\x20register\x20','RESELLER','The\x20domain\x20name:\x20','search','Address\x20Line\x202:\x20','constructor','includes','\x20years\x20(','ASSOCIATION','27TrRhLN','Choose\x20contact\x20type','Contact\x20Last\x20Name\x20[Person]:\x20','OrganizationName','Country\x20Code\x20[US]:\x20','warn','mail@example.com','401724swOtql','checkDomainAvailability','36533xhydei','170220GvJzBo','65CovBLD','\x20for\x20','(((.+)+)+)+$'];a16c=function(){return K;};return a16c();}import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object['values'](CountryCode)[H(0x1af)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a16I(0x1a8),'aliases':[a16I(0x18d)],'usage':a16I(0x191),'requiredOpts':[a16I(0x18f)],'validOpts':[],'shortDesc':a16I(0x1a7),'examples':[a16I(0x1a0),a16I(0x1a2)]},async function(a,b){const J=a16I;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[J(0x1ba)](c);if(f&&g){Log['notice'](J(0x1ab)+c+J(0x18b));const {Price:h,Currency:i}=g;Log[J(0x1b7)]('\x20\x20'+h+'\x20'+i+J(0x189));const j=await Actions[J(0x186)](J(0x1a9)+c+'\x20?',![]);if(j){const k={'type':J(0x1a3),'name':J(0x19b),'message':J(0x1b3),'choices':[J(0x1b1),'COMPANY',J(0x1a5),'PUBLIC_BODY',J(0x1aa)]},l=await Actions[J(0x194)](J(0x188))||'1',m=await Actions[J(0x194)]('Contact\x20First\x20Name\x20[Contact]:\x20')||'Contact',n=await Actions['ask'](J(0x1b4))||J(0x19e),{contactType:o}=await Actions[J(0x18e)](k),p=await Actions[J(0x194)]('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||J(0x184),q=await Actions[J(0x194)](J(0x1ad)),r=await Actions[J(0x194)](J(0x199))||'96816',s=await Actions['ask']('State\x20[HI]:\x20')||'HI',t=await Actions[J(0x194)](J(0x1b6))||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x1a1));const v=await Actions[J(0x194)](J(0x19f))||'+1.5555555555',w=await Actions[J(0x194)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x19c),x=await Actions[J(0x194)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0x1b8),y=await Actions[J(0x186)](J(0x195)),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(0x1a5)){const C=await Actions[J(0x194)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||J(0x192);z[J(0x1b5)]=C;}const A=h||0x0*parseInt(l);Log[J(0x198)](J(0x19a)),Log[J(0x1b7)](A+'\x20'+i+J(0x181)+l+J(0x1b0)+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions['confirm']('Are\x20you\x20sure?');B&&await d[J(0x1a4)](z,c,parseInt(l),y);}}else throw J(0x193);}catch(D){D&&Log[J(0x1a6)](D),process['exit'](0x0);}},a16e);
@@ -1 +1 @@
1
- const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x153))/0x1*(parseInt(h(0x13e))/0x2)+-parseInt(h(0x14f))/0x3+-parseInt(h(0x13d))/0x4+parseInt(h(0x148))/0x5*(-parseInt(h(0x14c))/0x6)+parseInt(h(0x143))/0x7*(-parseInt(h(0x155))/0x8)+-parseInt(h(0x13f))/0x9*(parseInt(h(0x140))/0xa)+parseInt(h(0x146))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xb5c46));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x13b)]()[j(0x13c)](j(0x139))['toString']()[j(0x149)](a17a)[j(0x13c)](j(0x139));});a17a();import a17e from'./aws.command.js';function a17c(){const n=['\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','deleteKeyPair','Please\x20choose\x20a\x20key\x20to\x20delete:','apply','ec2describeKeys','(((.+)+)+)+$','Deleting\x20a\x20','toString','search','2770380vBlPTA','1794106tRcwUt','5465745PzFXdi','10mJqbhR','Deleted\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','41559tCXUbE','Not\x20deleting\x20keypair','error','33223047vWSjxC','create','40tmdZUK','constructor','exit','success','126102TJDTQV','remove-key-pair','maka\x20aws:remove-key-pair','2816709PSSaBt','\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','forEach','name','1PLoMIM','maka\x20aws:rkp','1032MDMMeM','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete'];a17c=function(){return n;};return a17c();}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';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x138;let f=c[d];return f;},a17d(a,b);}Command[a17k(0x147)]({'name':a17k(0x14d),'aliases':['rkp'],'usage':a17k(0x14e),'validOpts':[],'shortDesc':a17k(0x156),'description':a17k(0x150),'examples':[a17k(0x14e),a17k(0x154)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x138)]();let c=undefined;const d=await Actions['ask'](l(0x159));b?.[l(0x151)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x152)]);});if(!c)throw Log[l(0x145)](l(0x142));const f=await Actions['confirm'](l(0x13a)+c+l(0x157),![]);f?(await a[l(0x158)](c),Log[l(0x14b)](l(0x141)+c)):Log['error'](l(0x144)),process[l(0x14a)](0x0);}catch(g){g&&Log[l(0x145)](g),process[l(0x14a)](0x1);}},a17e);
1
+ const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0xee))/0x1+-parseInt(h(0xff))/0x2*(parseInt(h(0xe9))/0x3)+parseInt(h(0xf3))/0x4+parseInt(h(0xeb))/0x5*(-parseInt(h(0x102))/0x6)+parseInt(h(0xfd))/0x7+-parseInt(h(0xe8))/0x8*(-parseInt(h(0x103))/0x9)+-parseInt(h(0xf9))/0xa*(parseInt(h(0xf0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xf3eac));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0xf7)]()['search']('(((.+)+)+)+$')[j(0xf7)]()[j(0xf6)](a17a)[j(0xf2)]('(((.+)+)+)+$');});function a17c(){const n=['Deleting\x20a\x20','5326312BFkQqQ','21jwCvUw','deleteKeyPair','620PQOlRk','apply','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','1017444bftjvq','remove-key-pair','1023HogWDT','ask','search','6449152fkhhqu','exit','name','constructor','toString','confirm','87760nufCEU','error','success','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','8560965yngqNr','forEach','53608arRQKk','Please\x20choose\x20a\x20key\x20to\x20delete:','Deleted\x20','23262ihAZyI','9EwMChk','Not\x20deleting\x20keypair','maka\x20aws:remove-key-pair','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','rkp'];a17c=function(){return n;};return a17c();}a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0xe8;let f=c[d];return f;},a17d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a17k(0xef),'aliases':[a17k(0x107)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':a17k(0x106),'description':'\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','examples':[a17k(0x105),'maka\x20aws:rkp']},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[l(0xf1)](l(0x100));b?.[l(0xfe)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xf5)]);});if(!c)throw Log[l(0xfa)](l(0xfc));const f=await Actions[l(0xf8)](l(0x108)+c+l(0xed),![]);f?(await a[l(0xea)](c),Log[l(0xfb)](l(0x101)+c)):Log[l(0xfa)](l(0x104)),process[l(0xf4)](0x0);}catch(g){g&&Log[l(0xfa)](g),process[l(0xf4)](0x1);}},a17e);
@@ -1 +1 @@
1
- function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xbf;let f=c[d];return f;},a18d(a,b);}const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=parseInt(l(0xbf))/0x1+parseInt(l(0xe0))/0x2+parseInt(l(0xc1))/0x3*(-parseInt(l(0xe6))/0x4)+-parseInt(l(0xdf))/0x5+-parseInt(l(0xde))/0x6*(parseInt(l(0xc4))/0x7)+-parseInt(l(0xce))/0x8*(-parseInt(l(0xd1))/0x9)+parseInt(l(0xe4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xe8d29));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0xea)]()[n(0xcb)](n(0xd5))[n(0xea)]()[n(0xc8)](a18a)['search'](n(0xd5));});a18a();function a18c(){const q=['privateIp','1477002rPBgaX','7759120WpGSlp','421624RYGeft','public','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','set-host','1763060Xgjhif','apply','365764AoZQhj','isFile','create','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','toString','host','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','\x20IP\x20to\x20','appName','inherit','ssh.json','1662164qamsEG','join','15pczLnv','getMakaProjectConfig','sep','7cYinDM','stringify','maka\x20aws\x20set-host','parse','constructor','\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','chooseInstance','search','exit','template','299240xXeWFE','private','utf8','279VLYxUK','sth','maka\x20aws:set-host\x20--env\x20dev','env','(((.+)+)+)+$','success','writeFileSync','maka\x20aws:sth\x20--env\x20prod','ask','error','fsi','\x0aSaved\x20host\x20'];a18c=function(){return q;};return a18c();}import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a18o(0xe8)]({'name':a18o(0xe3),'aliases':[a18o(0xd2)],'usage':a18o(0xc6),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a18o(0xec),'description':a18o(0xc9),'examples':[a18o(0xd3),a18o(0xd8)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this['fsi']['getAppConfigPath'](b[p(0xd4)]),f=this[p(0xdb)][p(0xc2)](),g=await c[p(0xca)](),h=a18e[p(0xc0)](d,p(0xf0));!this['fsi'][p(0xe7)](h)&&await this[p(0xdb)][p(0xcd)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0xee)]},'config':f});const i=JSON[p(0xc7)](a18f['readFileSync'](h,p(0xd0))),j=await Actions[p(0xd9)](p(0xe9))||p(0xe1);if(j){if(j===p(0xe1)||j==='private'){if(j===p(0xe1))i[p(0xeb)]=g?.['publicIp'];else j===p(0xcf)&&(i['host']=g?.[p(0xdd)]);}else throw p(0xe2);}else i['host']=g?.['privateIp'];a18f[p(0xd7)](a18e['join'](d,'ssh.json'),JSON[p(0xc5)](i,null,0x2)),execSync('cat\x20'+a18e[p(0xc0)](d,p(0xf0)),{'stdio':p(0xef)}),Log[p(0xd6)](p(0xdc)+j+p(0xed)+d+a18e[p(0xc3)]+p(0xf0));}catch(k){k&&Log[p(0xda)](k),process[p(0xcc)](0x0);}},a18g);
1
+ const a18n=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0x148))/0x1*(parseInt(l(0x15b))/0x2)+-parseInt(l(0x152))/0x3*(parseInt(l(0x155))/0x4)+-parseInt(l(0x13b))/0x5+parseInt(l(0x149))/0x6*(parseInt(l(0x150))/0x7)+parseInt(l(0x141))/0x8*(parseInt(l(0x14e))/0x9)+-parseInt(l(0x136))/0xa+parseInt(l(0x142))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xdfb67));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const m=a18d;return a18a[m(0x14f)]()[m(0x13e)](m(0x143))[m(0x14f)]()[m(0x158)](a18a)[m(0x13e)](m(0x143));});a18a();import a18e from'path';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x135;let f=c[d];return f;},a18d(a,b);}import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a18c(){const p=['ssh.json','\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','parse','ask','sep','template','create','9632720ZzvJCL','private','writeFileSync','set-host','privateIp','6887965kLbeCW','\x20IP\x20to\x20','maka\x20aws:sth\x20--env\x20prod','search','sth','config/ssh.json','226856naEEmQ','9807930afkhaW','(((.+)+)+)+$','publicIp','maka\x20aws\x20set-host','fsi','host','2PJtqOD','10413318mFjxlR','isFile','join','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','getAppConfigPath','342ISZMVY','toString','7QOcALX','env','9HVCoqi','appName','cat\x20','128052dfRhei','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','error','constructor','maka\x20aws:set-host\x20--env\x20dev','success','351518lGNrzO','chooseInstance'];a18c=function(){return p;};return a18c();}Command[a18n(0x135)]({'name':a18n(0x139),'aliases':[a18n(0x13f)],'usage':a18n(0x145),'mustBeInMakaProject':!![],'requiredOpts':[a18n(0x151)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a18n(0x15e),'examples':[a18n(0x159),a18n(0x13d)]},async function(a,b){const o=a18n;try{const c=new AWS(),d=this[o(0x146)][o(0x14d)](b['env']),f=this[o(0x146)]['getMakaProjectConfig'](),g=await c[o(0x15c)](),h=a18e[o(0x14b)](d,o(0x15d));!this[o(0x146)][o(0x14a)](h)&&await this[o(0x146)][o(0x162)]({'srcPath':o(0x140),'destPath':h,'context':{'app':f[o(0x153)]},'config':f});const i=JSON[o(0x15f)](a18f['readFileSync'](h,'utf8')),j=await Actions[o(0x160)](o(0x14c))||'public';if(j){if(j==='public'||j===o(0x137)){if(j==='public')i[o(0x147)]=g?.[o(0x144)];else j===o(0x137)&&(i[o(0x147)]=g?.['privateIp']);}else throw o(0x156);}else i[o(0x147)]=g?.[o(0x13a)];a18f[o(0x138)](a18e[o(0x14b)](d,'ssh.json'),JSON['stringify'](i,null,0x2)),execSync(o(0x154)+a18e[o(0x14b)](d,o(0x15d)),{'stdio':'inherit'}),Log[o(0x15a)]('\x0aSaved\x20host\x20'+j+o(0x13c)+d+a18e[o(0x161)]+o(0x15d));}catch(k){k&&Log[o(0x157)](k),process['exit'](0x0);}},a18g);
@@ -1 +1 @@
1
- const a19i=a19d;function a19c(){const k=['maka\x20aws:ti','869476rICJDY','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','\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','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','Terminate\x20an\x20EC2\x20instance','16204xrhTok','toString','19944288GIcLUe','name','5949640Xsrhmn','6004600rntTIe','chooseInstance','apply','error','running','(((.+)+)+)+$','confirm','183fDNdGZ','status','search','create','instanceId','maka\x20aws:terminate-instance','7341450jSmuAP','constructor','terminate-instance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','exit','600102tlDEVN'];a19c=function(){return k;};return a19c();}(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0xe3))/0x1+-parseInt(f(0xff))/0x2+parseInt(f(0xf4))/0x3*(parseInt(f(0xe8))/0x4)+parseInt(f(0xec))/0x5+-parseInt(f(0xfa))/0x6+-parseInt(f(0xed))/0x7+parseInt(f(0xea))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xa5d05));function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xe3;let f=c[d];return f;},a19d(a,b);}const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0xe9)]()[h(0xf6)](h(0xf2))['toString']()[h(0xfb)](a19a)['search'](h(0xf2));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0xf7)]({'name':a19i(0xfc),'aliases':['ti'],'usage':a19i(0xf9),'validOpts':[],'shortDesc':a19i(0xe7),'description':a19i(0xe5),'examples':[a19i(0xf9),a19i(0x100)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0xee)]();if(b?.[j(0xf8)]&&b?.[j(0xf5)]===j(0xf1)){const c=await Actions[j(0xf3)](j(0xe6)+b[j(0xeb)]+'\x20Ready?');c?a['ec2terminateInstance']({'instanceId':b['instanceId']}):Log['error'](j(0xe4)+b[j(0xeb)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0xf0)](j(0xfd));}catch(d){d&&Log[j(0xf0)](d),process[j(0xfe)](0x1);}},a19e);
1
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x9b))/0x1*(-parseInt(f(0x92))/0x2)+parseInt(f(0x87))/0x3+parseInt(f(0x88))/0x4+parseInt(f(0x9d))/0x5*(parseInt(f(0x95))/0x6)+parseInt(f(0x91))/0x7+-parseInt(f(0x9f))/0x8+parseInt(f(0x8b))/0x9*(-parseInt(f(0x85))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x63943));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x89)]()[h(0x9e)](h(0x8e))[h(0x89)]()[h(0x99)](a19a)[h(0x9e)](h(0x8e));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x94)]({'name':a19i(0x90),'aliases':['ti'],'usage':a19i(0x9a),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19i(0x86),'examples':[a19i(0x9a),a19i(0xa2)]},async function(){const j=a19i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.['instanceId']&&b?.[j(0x84)]===j(0x9c)){const c=await Actions[j(0x8a)](j(0x8c)+b[j(0xa0)]+'\x20Ready?');c?a[j(0x93)]({'instanceId':b[j(0x97)]}):Log[j(0x96)](j(0x8d)+b[j(0xa0)]+j(0x98));}else Log[j(0x96)](j(0xa1));}catch(d){d&&Log[j(0x96)](d),process[j(0xa3)](0x1);}},a19e);function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x84;let f=c[d];return f;},a19d(a,b);}function a19c(){const k=['\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','constructor','maka\x20aws:terminate-instance','19nmhOHw','running','485gRJtBh','search','3710752sqEmjr','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:ti','exit','status','320NQnAJw','\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','1725075eyjvmE','976852tvydHH','toString','confirm','310122lBoUgo','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','(((.+)+)+)+$','apply','terminate-instance','1675933tCVgev','64606JFxZtr','ec2terminateInstance','create','18678EuSwQy','error','instanceId'];a19c=function(){return k;};return a19c();}
@@ -1 +1 @@
1
- function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x1da;var f=c[d];return f;},a20d(a,b);}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x1e2))/0x1+-parseInt(f(0x1e0))/0x2*(parseInt(f(0x1e7))/0x3)+parseInt(f(0x1e5))/0x4*(parseInt(f(0x1df))/0x5)+parseInt(f(0x1e4))/0x6+-parseInt(f(0x1dc))/0x7*(parseInt(f(0x1de))/0x8)+-parseInt(f(0x1e6))/0x9*(-parseInt(f(0x1dd))/0xa)+parseInt(f(0x1e8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xa4cae));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x1e3)]()[h(0x1db)](h(0x1e1))[h(0x1e3)]()['constructor'](a20a)[h(0x1db)](h(0x1e1));});a20a();import'./build.js';import'./docker.sub.cmd.js';function a20c(){var i=['455oTnMbF','10eEFipD','(((.+)+)+)+$','776217Zwhpab','toString','417354BOEINE','25924ejMlzy','981gmLUoa','565197ShTawY','2299781GgJYqo','apply','search','833ZITrWj','82730pQgIse','62480GNYnTl'];a20c=function(){return i;};return a20c();}
1
+ function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x76;var f=c[d];return f;},a20d(a,b);}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x78))/0x1+parseInt(f(0x7b))/0x2+-parseInt(f(0x7c))/0x3+parseInt(f(0x7d))/0x4+-parseInt(f(0x80))/0x5+-parseInt(f(0x76))/0x6+parseInt(f(0x7a))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x7041a));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x79)]()['search'](h(0x77))[h(0x79)]()['constructor'](a20a)[h(0x7e)](h(0x77));});function a20c(){var i=['toString','3543316eHwscf','1366588BPzTTx','1873851lVQgeb','2849708WdcMrg','search','apply','1442485inaPut','2913390mTtwcK','(((.+)+)+)+$','43428ORqTEX'];a20c=function(){return i;};return a20c();}a20a();import'./build.js';import'./docker.sub.cmd.js';