@maka/maka-cli 4.12.16 → 4.12.18

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 (159) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/templates/service/docker/Dockerfile +1 -1
  140. package/bundle/obf/src/tool.js +1 -1
  141. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  143. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  145. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  147. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/https/https.class.js +1 -1
  149. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  150. package/bundle/obf/src/tools/log/log.class.js +1 -1
  151. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/options/options.class.js +1 -1
  153. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  155. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  157. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  158. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  159. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "4.12.16",
3
+ "version": "4.12.18",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(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
+ const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x230))/0x1+-parseInt(n(0x223))/0x2*(parseInt(n(0x20a))/0x3)+-parseInt(n(0x206))/0x4+-parseInt(n(0x1fd))/0x5+parseInt(n(0x20f))/0x6*(parseInt(n(0x227))/0x7)+-parseInt(n(0x1eb))/0x8+parseInt(n(0x226))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xcfc00));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(0x1ea)]()[o(0x228)](o(0x1e6))[o(0x1ea)]()[o(0x209)](a0a)['search'](o(0x1e6));});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-0x1e5;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';function a0c(){const z=['error','(((.+)+)+)+$','addCommand','Command.create\x20requires\x20a\x20handler\x20function!','options','toString','13415992hsAqWy','minOptsLength','assign','Command\x20','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','create','call','validateMeteorInstall','Too\x20few\x20options','Please\x20run\x20\x22maka\x20login\x22','processAndRunCommand','murder','LIGHT','exit','name','validateMakaSubscription','header','DARK','4861375kHMQQy','run','generate','light','_handler','minArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','push','match','6534404acUFTn','validateParams','Command\x20format\x20is\x20incorrect','constructor','255879qUlkfz','length','usage','mustBeInMakaProject','Command\x20not\x20found','48XbxMXw','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','tableList','aliases','Sub-Commands:','join','shortDesc','invoke','notice','keys','pallet','bright','maxOptsLength','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','_commands','sort','fsi','Too\x20many\x20options','Too\x20few\x20arguments','Description','16BLAnXj','Too\x20many\x20arguments','Command.create\x20requires\x20some\x20options!','55038636LUOSZY','1222298wnusxS','search','maxArgLength','\x20not\x20found','find','function','validateMakaProject','number','slice','1696153xQeSzC'];a0c=function(){return z;};return a0c();}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0x1e9)];['_commands'];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x210));if(!a[q(0x1f9)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==q(0x22c))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[q(0x1e9)]=Object['assign']({},a),this[q(0x1f9)]=this['options'][q(0x1f9)],this['_commands']=[],this[q(0x201)]=b['bind'](this);}static[a0p(0x1f0)](a,b,c){const r=a0p;if(!a)throw new Error(r(0x225));if(typeof b!==r(0x22c))throw new Error(r(0x1e8));const d=new Command(a,b);return c=c||a0f,Object[r(0x1ed)](d,{'parent':c?.[r(0x1e9)]?.['name']}),c[r(0x1e7)](d),d;}[a0p(0x1e7)](a){const s=a0p;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this['_commands'][s(0x204)](a);}async[a0p(0x1fe)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x21f)]['getGlobalConfig'](),d=c[t(0x219)]===t(0x200)?ColorMode[t(0x1f7)]:ColorMode[t(0x1fc)];Log['setColorMode'](d),await this[t(0x1fa)](this);}catch(f){Log[t(0x1e5)](f),process[t(0x1f8)](0x0);}return await this[t(0x216)](a,b);}catch(g){process[t(0x1f8)](0x1);}}async['invoke'](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this['options']['name']!==u(0x1ff)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x20b)]===0x0)&&this[u(0x21d)][u(0x20b)]>=0x0,g=b['help']||b['h'];if(f&&g){if(this[u(0x21d)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x1e9)][u(0x20d)]){const h=this[u(0x22d)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x1e9)]['mustBeLoggedIn']){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[u(0x1e9)]['mustHaveMeteorInstalled']){const j=this[u(0x1f2)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0x1e9)][u(0x202)]===u(0x22e)){if(a['length']<this[u(0x1e9)][u(0x202)]){Log['error'](u(0x221));throw new UsageError();}}if(typeof this[u(0x1e9)]['maxArgLength']===u(0x22e)){if(a[u(0x20b)]>=this[u(0x1e9)][u(0x229)]){Log[u(0x1e5)](u(0x224));throw new UsageError();}}if(typeof this[u(0x1e9)][u(0x1ec)]==='number'){if(Object[u(0x218)](b)['length']<this[u(0x1e9)][u(0x1ec)]){Log[u(0x1e5)](u(0x1f3));throw new UsageError();}}if(typeof this['options']['maxOptsLength']==='number'){if(Object[u(0x218)](b)[u(0x20b)]>=this[u(0x1e9)][u(0x21b)]){Log[u(0x1e5)](u(0x220));throw new UsageError();}}}}b=await this[u(0x207)](a,b,this[u(0x1e9)]),_prevCmd=a[0x0];}return await this[u(0x201)][u(0x1f1)](this,a,b);}catch(k){Log[u(0x20c)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0x217)](u(0x213)),this[u(0x211)](this[u(0x21d)]),Log[u(0x1fb)](u(0x21c));else{if(k instanceof MustBeInProjectError)Log[u(0x1e5)](u(0x1ef));else{if(k instanceof NoMeteorFoundError)Log[u(0x1e5)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](u(0x203));else{if(k instanceof NoMeteorAppFoundError)Log[u(0x1e5)]('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log[u(0x1e5)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log[u(0x217)](u(0x1f4)));}}}process[u(0x1f8)](0x1);}}[a0p(0x211)](a){const v=a0p,b=new a0e({});b[v(0x204)](['Name','Alias',v(0x222)]),a[v(0x21e)]((c,d)=>{const w=v;return c[w(0x1f9)]['localeCompare'](d['name']);})['forEach'](c=>{const x=v;c[x(0x1f9)]!==x(0x1f6)&&c[x(0x1f9)]!=='play'&&b[x(0x204)]([c[x(0x1f9)],c[x(0x212)](),c[x(0x215)]()]);}),Log[v(0x21a)](b[v(0x1ea)]());}async[a0p(0x1f5)](a,b=[],c={}){const y=a0p;try{const d=a?.['split'](':');if(!d||d[y(0x20b)]===0x0)throw y(0x208);if(d[0x0]===y(0x1ff)||d[0x0]==='g'&&d['length']>0x1){const h=this[y(0x21d)][y(0x22b)](j=>j[y(0x205)](y(0x1ff)));if(!h)throw'Command\x20not\x20found';await this[y(0x1fa)](h);const i=d[y(0x22f)](0x1)[y(0x214)](':');return b['unshift'](i),await h['run'](b,c);}let f=this[y(0x21d)],g;for(const j of d){g=f[y(0x22b)](k=>k[y(0x205)](j));if(!g)try{await this[y(0x21f)]['maybeProxyCommandToMeteor']();}catch(k){throw y(0x1ee)+j+y(0x22a);}g&&(await this[y(0x1fa)](g),f=g[y(0x21d)]);}if(g){const l=await g[y(0x1fe)](b,c);return l;}else throw y(0x20e);}catch(m){Log['error'](m),process[y(0x1f8)](0x1);}}}
@@ -1 +1 @@
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
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x1dd))/0x1*(parseInt(f(0x1df))/0x2)+-parseInt(f(0x1e3))/0x3+parseInt(f(0x1d7))/0x4+-parseInt(f(0x1e2))/0x5+parseInt(f(0x1de))/0x6*(-parseInt(f(0x1db))/0x7)+parseInt(f(0x1e0))/0x8*(-parseInt(f(0x1da))/0x9)+parseInt(f(0x1e1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe0692));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0x1dc)]()[g(0x1d9)](g(0x1d8))[g(0x1dc)]()['constructor'](a1a)[g(0x1d9)](g(0x1d8));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1d7;var f=c[d];return f;},a1d(a,b);}import'./reconfig.js';import'./ssh.js';import'./ssl.js';function a1c(){var h=['34322470aOopsc','4238985ifwZWT','1894713OXHYnM','4886812uDvsvw','(((.+)+)+)+$','search','6363fvwViS','9254AocUHP','toString','5149cHYShn','2292YVUGFO','140VOZVvK','15728KFNfbd'];a1c=function(){return h;};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 +1 @@
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
+ const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x1cf))/0x1+-parseInt(h(0x1c7))/0x2+parseInt(h(0x1b3))/0x3+-parseInt(h(0x1c1))/0x4+parseInt(h(0x1cc))/0x5+-parseInt(h(0x1ce))/0x6+parseInt(h(0x1c3))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x8fe99));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x1d2)](j(0x1cb))[j(0x1b6)]()['constructor'](a2a)[j(0x1d2)](j(0x1cb));});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1af;let f=c[d];return f;},a2d(a,b);}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';function a2c(){const o=['search','message','cert','ChatGPT\x20style\x20AI\x20interface','openapikey','1841880eVdihe','exit','fsi','toString','GPT:\x20','parse','stdin','trim','toLowerCase','stdout','log','openai','error','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','2752056vOqqem','You:\x20','1285900sWLnET','Using\x20OpenAI\x20Key\x20','apply','cacert','2053252lZhemz','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','bright','(((.+)+)+)+$','4927355TxczDj','Using\x20CA\x20Cert\x20','2909184NNeweQ','1005838bUEHAs','isFile','notice'];a2c=function(){return o;};return a2c();}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(0x1b9)],'output':process[k(0x1bc)]});c['question'](k(0x1c2),async d=>{const l=k;if(d[l(0x1bb)]()===l(0x1b4)){c['close']();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1b8)](e['data']);if(f[l(0x1bf)])throw new Error(f[l(0x1bf)][l(0x1af)]);Log[l(0x1ca)](l(0x1b7)+f?.['choices'][0x0]?.['text'][l(0x1ba)]());}catch(g){Log['error'](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':a2m(0x1b1),'validOpts':['cacert',a2m(0x1b2)],'shortDesc':a2m(0x1b1),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x1c6)]&&(this[n(0x1b5)][n(0x1d0)](b[n(0x1c6)])?(c=b[n(0x1c6)],Log[n(0x1d1)](n(0x1cd)+c)):Log['error'](n(0x1c9)+c));const d=await this[n(0x1b5)]['getGlobalConfig']();if(d[n(0x1b0)]){if(this[n(0x1b5)]['isFile'](d[n(0x1b0)]))c=d[n(0x1b0)];else throw Log[n(0x1bf)](n(0x1c0)+c);}let f='';if(b[n(0x1b2)])f=b[n(0x1b2)],Log[n(0x1d1)](n(0x1c4)+f);else{if(d['openai'])f=d[n(0x1be)];else throw Log[n(0x1bf)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[n(0x1bd)](n(0x1c8)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1bf)](g),process[n(0x1b4)](0x1);}});
@@ -1 +1 @@
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
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0xf2))/0x1+parseInt(f(0xf7))/0x2+parseInt(f(0xf3))/0x3+parseInt(f(0xf0))/0x4+parseInt(f(0xef))/0x5+-parseInt(f(0xf4))/0x6+-parseInt(f(0xf1))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x83c68));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var g=a3d;return a3a[g(0xf6)]()[g(0xf5)](g(0xed))[g(0xf6)]()[g(0xee)](a3a)[g(0xf5)]('(((.+)+)+)+$');});function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xed;var f=c[d];return f;},a3d(a,b);}a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a3c(){var h=['2819046sUdwfi','3842832Oanpax','search','toString','1773982FzKQUQ','(((.+)+)+)+$','constructor','2583870twOMow','2661500BFtCfr','5762659emuXwl','1005361ZbbEEh'];a3c=function(){return h;};return a3c();}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
@@ -1 +1 @@
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
+ const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x6f))/0x1*(parseInt(f(0x78))/0x2)+parseInt(f(0x6e))/0x3*(parseInt(f(0x75))/0x4)+-parseInt(f(0x72))/0x5*(parseInt(f(0x74))/0x6)+-parseInt(f(0x7e))/0x7*(-parseInt(f(0x7d))/0x8)+-parseInt(f(0x7f))/0x9*(parseInt(f(0x80))/0xa)+parseInt(f(0x81))/0xb+parseInt(f(0x77))/0xc*(-parseInt(f(0x7b))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x64077));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x73)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x82)]()[h(0x71)](h(0x76))[h(0x82)]()['constructor'](a4a)[h(0x71)](h(0x76));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x6e;let f=c[d];return f;},a4d(a,b);}a4a();function a4c(){const j=['2935114MHgxjU','1338516fHTbeC','10SYNseO','3597253RckYId','toString','2165937sMvgFQ','33TnUufU','create','search','1706955orMVLP','apply','6SyBtEj','4IOIYwo','(((.+)+)+)+$','12YcbcXI','6454tikYyN','aws','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','8774493AAgVZN','maka\x20aws:<sub-command>','8CmWYUX'];a4c=function(){return j;};return a4c();}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x70)]({'name':a4i(0x79),'usage':a4i(0x7c),'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4i(0x7a)},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(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
+ const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0xae))/0x1+-parseInt(g(0xa6))/0x2+parseInt(g(0xad))/0x3+parseInt(g(0xac))/0x4+-parseInt(g(0xbe))/0x5+parseInt(g(0xbd))/0x6+-parseInt(g(0xb3))/0x7*(parseInt(g(0xba))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x369c8));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0xb1)]()[i(0xab)](i(0xbc))[i(0xb1)]()[i(0xb5)](a5a)[i(0xab)](i(0xbc));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xa6;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';function a5c(){const l=['280234xkbYBa','Create\x20an\x20Elastic\x20Container\x20Repository','success','name','region','search','651880rPWxcv','919161dYvqDK','10419EfiJna','error','apply','toString','create-ecr','7GiPqAT','repositoryUri','constructor','notice','ecrCreateRepository','cecr','Repository\x20URI:\x20','2691256BZKWjz','exit','(((.+)+)+)+$','1500060LzlNvU','147870Qwupzi','create','repository','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.'];a5c=function(){return l;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0xbf)]({'name':a5j(0xb2),'aliases':[a5j(0xb8)],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5j(0xa9)],'validOpts':[a5j(0xaa)],'shortDesc':a5j(0xa7),'examples':['maka\x20aws:create-ecr\x20--name=my-new-repo','maka\x20aws:cecr\x20--name=my-new-repo','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(0xb7)](b);d&&d['$metadata']['httpStatusCode']===0xc8&&d[k(0xc0)]?(Log[k(0xa8)]('Repository\x20created\x20successfully.'),Log[k(0xb6)](k(0xb9)+d[k(0xc0)][k(0xb4)])):Log[k(0xaf)](k(0xc1)),process[k(0xbb)](0x0);}catch(f){Log['error'](f),process[k(0xbb)](0x1);}},a5e);
@@ -1 +1 @@
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
+ const a6l=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xea;let f=c[d];return f;},a6d(a,b);}(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0xf6))/0x1*(parseInt(i(0xee))/0x2)+parseInt(i(0xea))/0x3*(-parseInt(i(0x102))/0x4)+-parseInt(i(0xfd))/0x5+parseInt(i(0xf5))/0x6*(-parseInt(i(0xf8))/0x7)+parseInt(i(0xf4))/0x8+-parseInt(i(0xfa))/0x9+parseInt(i(0xef))/0xa*(parseInt(i(0xff))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x91b59));function a6c(){const n=['8613800NuMxbI','6uSMtoo','211fiXUxr','confirm','1307474vOyyMt','linkEC2ToRoute53','2391723LktDpJ','maka\x20aws:chz\x20--domain=example.com','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','2432575IJImdb','Set\x20hosted\x20zone\x20to\x20an\x20instance?','1926991WTnwbY','error','constructor','4QbdPKF','domain','(((.+)+)+)+$','apply','1258665LjZMdd','publicIp','Instance\x20not\x20found','maka\x20aws:create-hosted-zone\x20--domain=example.com','1634QJqFMz','60NArjIf','chz','toString','create-hosted-zone','route53CreateHostedZone'];a6c=function(){return n;};return a6c();}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0xf1)]()['search']('(((.+)+)+)+$')[k(0xf1)]()[k(0x101)](a6a)['search'](k(0x104));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a6l(0xf2),'aliases':[a6l(0xf0)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0x103)],'validOpts':[],'shortDesc':a6l(0xfc),'examples':[a6l(0xed),a6l(0xfb)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0xf3)](c);const f=await Actions[m(0xf7)](m(0xfe));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0xeb)])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0xf9)](g['id'],g[m(0xeb)],c);}else throw m(0xec);}}catch(h){h&&Log[m(0x100)](h),process['exit'](0x0);}},a6e);
@@ -1 +1 @@
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
+ const a7ah=a7d;function a7c(){const au=['createKeyPair','search','23JPScZT','ask','t3.micro','constructor','sgId','ID:\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','Create\x20new\x20AWS\x20instance','Web\x20App','apply','confirm','createFile','ec2create','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','getTime','join','deleteSecurityGroup','ImageID:','sort','getMakaProjectConfig','string','maka\x20aws:create-instance','Creating\x20user\x20data\x20file\x20in\x20','parse','date','**\x20Available\x20Security\x20Groups\x20**','33SHXPdA','desc','2923464qQzwsS','2870brAlOy','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','EC2\x20Name:\x20[','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','cidr','768294XcdDta','Setting\x20AMI\x20ID\x20to\x20','deleteKeyPair','662880wrbBgM','1:1','notice','ec2createSG','unlinkSync','split','environment','User\x20Data:','Subnet:\x20','\x20AMIID:\x20','Security\x20Group\x20Name:\x20[','subnet','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','forEach','11505sGDGsI','(((.+)+)+)+$','error','6984wygBBl','Key-Pair:\x20','readFileSync','Setting\x20SG\x20ID\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','\x20DESCRIPTION:\x20','chooseVPC','Setting\x20the\x20key-pair\x20to:\x20','maka-cli','\x20CIDR:\x20','getSecurityGroups','\x20SG\x20NAME:\x20','exit','toString','name','log','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','No\x20instance\x20has\x20been\x20created.','Would\x20you\x20like\x20to\x20include\x20user\x20data?','success','amiId','31824wWGyXK','amazon','subnetId','env','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','bright','Desc','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','7RtWAgq','2499336ztUUPe','create','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','alias','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','428UqFdCm','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','**\x20Available\x20Subnets\x20**','push','Instace\x20Type:\x20','cider','build\x20on\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','maka\x20aws:create-instance\x20--env\x20dev','\x20SUBNETID:\x20','user-data','\x20AZONE:\x20','fsi'];a7c=function(){return au;};return a7c();}function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a7d(a,b);}(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x210))/0x1*(-parseInt(ae(0x1f0))/0x2)+parseInt(ae(0x1ca))/0x3+parseInt(ae(0x201))/0x4*(-parseInt(ae(0x1d8))/0x5)+-parseInt(ae(0x235))/0x6+-parseInt(ae(0x1fa))/0x7*(-parseInt(ae(0x22e))/0x8)+-parseInt(ae(0x1db))/0x9*(parseInt(ae(0x22f))/0xa)+-parseInt(ae(0x22c))/0xb*(-parseInt(ae(0x1fb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x3c9db));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x219)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x1e8)]()['search']('(((.+)+)+)+$')[ag(0x1e8)]()[ag(0x213)](a7a)[ag(0x20f)](ag(0x1d9));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x1fc)]({'name':'create-instance','aliases':['ci'],'usage':a7ah(0x227),'examples':[a7ah(0x209),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0x217),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a7ah;try{const c=this[ai(0x20d)][ai(0x225)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x20d)]['getConfigFromShorthand'](b[ai(0x1f3)]),i=this[ai(0x20d)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x211)](ai(0x231)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x21a)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x20e)]({'env':h});r=y,s=z,Log[ai(0x1ee)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0x1cc)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0x211)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1da)](ai(0x216)),Log[ai(0x1cc)](ai(0x1ec));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1e9)],Log['success'](aj(0x1e2)+r));});}catch(D){Log[ai(0x1da)](D);}l=await d[ai(0x1e1)]();const t=await Actions['confirm'](ai(0x200),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0x211)](ai(0x1d4)+k+']')||k;const F=await Actions['ask'](ai(0x208))||'22,80,443',G=F['split'](',');await d[ai(0x1cd)]({'description':ai(0x218),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1e5)](u);if(I===''){Log['notice'](ai(0x22b)),J[ai(0x1d7)](function(L){const ak=ai;L[ak(0x1e9)]===u?Log[ak(0x1cc)](ak(0x215)+L['id']+ak(0x1e6)+L[ak(0x1e9)]+'\x20SGID:\x20'+L['sgId']):Log[ak(0x1f7)](ak(0x215)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1e9)]+'\x20SGID:\x20'+L['sgId']);});const K=await Actions[ai(0x211)](ai(0x233)+H+']\x20')||H[ai(0x1e8)]();J[ai(0x1d7)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x214)],Log[al(0x1ee)](al(0x1de)+m+'\x0a'));});}else m=I,Log['success'](ai(0x1de)+m+'\x0a');if(m==='')throw Log[ai(0x1da)](ai(0x1f9));}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x1cc)]('**\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+ai(0x1f6))['toString'](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x1d7)](function(S){const am=ai;if(S[am(0x1ff)]===am(0x1f1)){const T=S[am(0x1f8)]['split'](am(0x207))[0x1];P[am(0x204)]({'amiId':S['ID'],'desc':S[am(0x1f8)],'date':T});}}),P[ai(0x224)](function(S,T){const an=ai;return new Date(T[an(0x22a)])[an(0x220)]()-new Date(S['date'])[an(0x220)]();}),P[ai(0x1d7)](function(S,T){const ao=ai;Q[ao(0x204)]({'id':T,'amiId':S[ao(0x1ef)],'desc':S['desc']});}),Q[ai(0x1d7)](function(S){const ap=ai;console[ap(0x1ea)](ap(0x215)+S['id']+ap(0x1d3)+S[ap(0x1ef)]+ap(0x1e0)+S[ap(0x22d)]);});const R=await Actions[ai(0x211)](ai(0x1f4))||'0';Q[ai(0x1d7)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1ef)],Log[aq(0x1ee)](aq(0x1c8)+n+'\x20:\x20'+S[aq(0x22d)]));});if(n==='')throw Log[ai(0x1da)](ai(0x1f9));}catch(S){Log[ai(0x1da)](S);}try{Log[ai(0x1cc)](ai(0x203));const T=execSync(ai(0x1fd))[ai(0x1e8)](),U=JSON['parse'](T),V=[];U[ai(0x1d7)](function(X,Y){const ar=ai;V[ar(0x204)]({'id':Y,'cidr':X[ar(0x206)],'az':X['az'],'subnetId':X[ar(0x1f2)]});}),V[ai(0x1d7)](function(X){const as=ai;console[as(0x1ea)](as(0x215)+X['id']+as(0x1e4)+X[as(0x234)]+as(0x20c)+X['az']+as(0x20a)+X[as(0x1f2)]);});const W=await Actions[ai(0x211)](ai(0x202))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1f2)],Log[at(0x1ee)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x1da)](ai(0x1f9));}catch(X){Log[ai(0x1da)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x211)](ai(0x232))||ai(0x1cb),Z=Y[ai(0x1cf)](':')[0x0],a0=Y[ai(0x1cf)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)==='number'&&Log[ai(0x1ee)](ai(0x1f5)+Z+':'+a0);}catch(a1){Log[ai(0x1da)](a1);}try{const a2=await Actions[ai(0x211)](ai(0x21f))||ai(0x212);typeof a2===ai(0x226)&&(o=a2);}catch(a3){Log[ai(0x1da)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0x1ed),![]);a4&&(x=a7f[ai(0x221)](i,ai(0x20b)),Log['notice'](ai(0x228)+x),await this['fsi'][ai(0x21b)]({'filePath':x,'data':''}),await Actions[ai(0x21a)](ai(0x1df)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x229)](execSync(ai(0x1d6)+p+ai(0x230))[ai(0x1e8)]())[0x0][ai(0x1d5)];Log[ai(0x1cc)](ai(0x223)+n),Log[ai(0x1cc)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x1cc)](ai(0x205)+o),Log[ai(0x1cc)](ai(0x1dc)+r),Log[ai(0x1cc)]('Security\x20Group:\x20'+m),Log['notice'](ai(0x1d2)+a6);if(x){Log[ai(0x1cc)](ai(0x1d1)+x);const a8=a7g[ai(0x1dd)](x)[ai(0x1e8)]();Log[ai(0x1cc)](a8);}const a7=await Actions['confirm'](ai(0x21d));if(a7){const a9=await d[ai(0x21c)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x1e3)},{'Key':ai(0x1d0),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1ee)](ai(0x1eb)),Log[ai(0x1f7)](ai(0x21e)));}else{Log[ai(0x1cc)](ai(0x1fe));const aa=await Actions[ai(0x21a)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x1c9)](r),f['isFile'](s)&&a7g[ai(0x1ce)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x222)](m);}}catch(ac){Log[ai(0x1da)](ac);}}catch(ad){ad&&Log[ai(0x1da)](ad),process[ai(0x1e7)](0x0);}},a7e);
@@ -1 +1 @@
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
+ const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x15b))/0x1+parseInt(g(0x150))/0x2+-parseInt(g(0x15f))/0x3+parseInt(g(0x158))/0x4*(-parseInt(g(0x163))/0x5)+-parseInt(g(0x151))/0x6+parseInt(g(0x157))/0x7*(parseInt(g(0x152))/0x8)+-parseInt(g(0x166))/0x9*(-parseInt(g(0x15c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xad593));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x159)]()[i(0x153)](i(0x15d))[i(0x159)]()['constructor'](a8a)[i(0x153)](i(0x15d));});a8a();function a8c(){const l=['6870900fxjYPw','3552056CzBurk','search','getConfigFromShorthand','fsi','create','21hrKvoo','5320HFKdzt','toString','ckp','1207344kusvNj','18890dHgJuD','(((.+)+)+)+$','error','143295LuVZND','exit','apply','create-key-pair','1330lmcnPE','maka\x20aws:ckp\x20--env\x20prod','env','4869VPsaYc','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','2220208fZhbcN'];a8c=function(){return l;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x14f;let f=c[d];return f;},a8d(a,b);}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(0x156)]({'name':a8j(0x162),'aliases':[a8j(0x15a)],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8j(0x164)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x165)],'validOpts':[],'shortDesc':a8j(0x14f),'description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x155)][k(0x154)](b[k(0x165)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[k(0x15e)](f),process[k(0x160)](0x0);}},a8e);
@@ -1 +1 @@
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
+ const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x157))/0x1+-parseInt(m(0x171))/0x2+parseInt(m(0x160))/0x3+-parseInt(m(0x16a))/0x4+parseInt(m(0x16e))/0x5*(-parseInt(m(0x161))/0x6)+-parseInt(m(0x164))/0x7*(parseInt(m(0x15c))/0x8)+parseInt(m(0x15b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x9adb8));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x165)]()[o(0x15a)](o(0x163))[o(0x165)]()[o(0x159)](a9a)[o(0x15a)]('(((.+)+)+)+$');});function a9c(){const s=['maka\x20aws:create-secuirty-group','25ATpBRy','exit','Security\x20Group\x20Name:\x20[','395342VGZsCl','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','22,80,443','name','create','21248muJWIf','create-security-group','constructor','search','17903880BJqKcf','2504648nNjBqK','fsi','\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','chooseVPC','99141ENwFNG','477582xOLBmN','csg','(((.+)+)+)+$','7odQhSi','toString','List\x20is\x20not\x20all\x20numbers','forEach','apply','ask','2002328VxmkLQ','error','match'];a9c=function(){return s;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x154;let f=c[d];return f;},a9d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x156)]({'name':a9p(0x158),'aliases':[a9p(0x162)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a9p(0x172),'description':a9p(0x15e),'examples':[a9p(0x16d),'maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x15d)]['getMakaProjectConfig'](),{appName:f}=d,g=await c[q(0x15f)](),h=b[q(0x155)]?b['name']:''+f,i=await Actions[q(0x169)](q(0x170)+h+']')||h,j=await Actions[q(0x169)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0x154),k=j['split'](',');k[q(0x167)](l=>{const r=q;if(!l[r(0x16c)](/^\d+$/))throw r(0x166);}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x16b)](l),process[q(0x16f)](0x1);}},a9e);
@@ -1 +1 @@
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
+ const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1a9))/0x1*(-parseInt(f(0x1b0))/0x2)+-parseInt(f(0x1b8))/0x3*(parseInt(f(0x1a4))/0x4)+-parseInt(f(0x1a8))/0x5*(-parseInt(f(0x1b9))/0x6)+parseInt(f(0x1a0))/0x7+-parseInt(f(0x1b3))/0x8*(parseInt(f(0x1a5))/0x9)+parseInt(f(0x1a6))/0xa+parseInt(f(0x1a3))/0xb*(parseInt(f(0x1a1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9ae5a));const a10b=(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;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0x19e)]()[g(0x1b4)](g(0x1af))[g(0x19e)]()[g(0x1bb)](a10a)[g(0x1b4)](g(0x1af));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x19e;let f=c[d];return f;},a10d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a10c(){const j=['(((.+)+)+)+$','614GsZbms','exit','name','3702376vworEp','search','ecrDeleteRepository','Repository\x20','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','3OVYpKR','5319114DUtTml','.\x20Error:\x20','constructor','decr','toString','create','6673107UuuVEJ','2498148nrzKir','Failed\x20to\x20delete\x20the\x20repository:\x20','22UqPBPm','3242324FOGuvS','9eYtRHd','673360PIjvwI','delete-ecr','5fSiHVg','1354YxlrLr','region','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','Delete\x20an\x20Elastic\x20Container\x20Repository','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','\x20deleted\x20successfully\x20in\x20region\x20'];a10c=function(){return j;};return a10c();}Command[a10h(0x19f)]({'name':a10h(0x1a7),'aliases':[a10h(0x1bc)],'usage':a10h(0x1ab),'requiredOpts':['name',a10h(0x1aa)],'validOpts':[],'shortDesc':a10h(0x1ac),'examples':[a10h(0x1b7),a10h(0x1ad)]},async function(a,b){const i=a10h;try{const c=new AWS();await c[i(0x1b5)]({'repoName':b['name'],'region':b[i(0x1aa)]}),Log['success'](i(0x1b6)+b[i(0x1b2)]+i(0x1ae)+b[i(0x1aa)]+'.'),process[i(0x1b1)](0x0);}catch(d){Log['error'](i(0x1a2)+b['name']+'\x20in\x20region\x20'+b['region']+i(0x1ba)+d),process[i(0x1b1)](0x1);}},a10e);
@@ -1 +1 @@
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
+ function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x145;let f=c[d];return f;},a11d(a,b);}const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x145))/0x1+-parseInt(f(0x14c))/0x2*(parseInt(f(0x152))/0x3)+parseInt(f(0x14f))/0x4*(parseInt(f(0x149))/0x5)+parseInt(f(0x14a))/0x6+-parseInt(f(0x150))/0x7*(parseInt(f(0x156))/0x8)+parseInt(f(0x151))/0x9*(-parseInt(f(0x14d))/0xa)+parseInt(f(0x14e))/0xb*(-parseInt(f(0x146))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x387c6));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const g=a11d;return a11a[g(0x154)]()[g(0x159)]('(((.+)+)+)+$')[g(0x154)]()['constructor'](a11a)[g(0x159)](g(0x155));});function a11c(){const j=['\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','622GtKjAg','389260NISybF','154aTYuAz','1631284iqnKzj','35KVJNdi','27lNrCTI','807behqHB','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','toString','(((.+)+)+)+$','615464vmkNeQ','ec2describeInstances','exit','search','error','138263muHyUW','57936QoYgUG','describe-instances','maka\x20aws:describe-instances','5lcVmLw','2027856YigdJI'];a11c=function(){return j;};return a11c();}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['create']({'name':a11h(0x147),'aliases':['di'],'usage':a11h(0x148),'validOpts':[],'shortDesc':a11h(0x153),'examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':a11h(0x14b)},async function(){const i=a11h;try{const a=new AWS();a[i(0x157)]();}catch(b){b&&Log[i(0x15a)](b),process[i(0x158)](0x1);}},a11e);
@@ -1 +1 @@
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
+ const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x1f1))/0x1*(-parseInt(f(0x1f8))/0x2)+parseInt(f(0x1f5))/0x3+-parseInt(f(0x200))/0x4+-parseInt(f(0x1f3))/0x5*(parseInt(f(0x1f4))/0x6)+-parseInt(f(0x1fa))/0x7*(parseInt(f(0x1ec))/0x8)+-parseInt(f(0x1fe))/0x9+parseInt(f(0x1ff))/0xa*(parseInt(f(0x1f6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x657ae));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0x1ee)]()[g(0x1fb)]('(((.+)+)+)+$')[g(0x1ee)]()[g(0x1fc)](a12a)['search'](g(0x1fd));});a12a();import a12e from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a12d(a,b);}import{Command}from'../../command.js';function a12c(){const j=['dkp','7OPJdFB','search','constructor','(((.+)+)+)+$','2201958lvkcOi','23740geyuSh','1325896zWCMOl','1064992fgWcSK','exit','toString','maka\x20aws:dkp','maka\x20aws:describe-key-pairs','1keHbtt','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','10mTEWbK','45636UiZQRa','2006454GOWUyS','737aquScs','create','624516FifOBX'];a12c=function(){return j;};return a12c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12h(0x1f7)]({'name':'describe-key-pairs','aliases':[a12h(0x1f9)],'usage':a12h(0x1f0),'validOpts':[],'shortDesc':a12h(0x1f2),'examples':[a12h(0x1f0),a12h(0x1ef)]},async function(){const i=a12h;try{const a=new AWS();a['ec2describeKeys']();}catch(b){b&&Log['error'](b),process[i(0x1ed)](0x0);}},a12e);
@@ -1 +1 @@
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
+ const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x172))/0x1*(parseInt(l(0x173))/0x2)+-parseInt(l(0x184))/0x3+parseInt(l(0x178))/0x4+parseInt(l(0x16e))/0x5+parseInt(l(0x180))/0x6*(parseInt(l(0x171))/0x7)+-parseInt(l(0x163))/0x8+-parseInt(l(0x16a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x8ac1c));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x164)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x174)]()['search'](n(0x17b))['toString']()[n(0x182)](a13a)[n(0x16c)](n(0x17b));});a13a();function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x161;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';function a13c(){const s=['594CdfCft','exit','constructor','sgId','292023uWDcsE','error','forEach','3614928YTdoUv','apply','maka\x20aws:delete-sg','notice','ask','\x20SGID:\x20','create','4918131gxACYC','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','search','delete-security-group','2827145utrthP','isMakaProject','dsg','40901dbWzNc','5XstWKG','196326zMJaIp','toString','\x20SG\x20NAME:\x20','appName','maka\x20aws:dsg','117252rgbUyA','getSecurityGroups','getMakaProjectConfig','(((.+)+)+)+$','name','Deleted\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','deleteSecurityGroup'];a13c=function(){return s;};return a13c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x169)]({'name':a13o(0x16d),'aliases':[a13o(0x170)],'usage':a13o(0x165),'validOpts':[],'shortDesc':a13o(0x16b),'examples':[a13o(0x165),a13o(0x177)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x16f)]();let d='';if(c){const j=b[p(0x17a)]();d=j[p(0x176)];}const {sgList:f}=await a[p(0x179)]();f[p(0x162)](function(k){const q=p;c&&k['name']['includes'](d)?Log[q(0x166)]('ID:\x20'+k['id']+q(0x175)+k[q(0x17c)]+q(0x168)+k[q(0x183)]):Log['bright']('ID:\x20'+k['id']+q(0x175)+k[q(0x17c)]+q(0x168)+k[q(0x183)]);});let g='';const h=await Actions[p(0x167)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x162)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x183)]);});if(!g)throw Log[p(0x161)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions['confirm']('Deleting\x20a\x20'+g+p(0x17e),![]);i?(await a[p(0x17f)](g),Log['success'](p(0x17d)+g)):Log[p(0x161)]('Not\x20deleting\x20secuirty\x20group'),process[p(0x181)](0x0);}catch(k){k&&Log[p(0x161)](k),process[p(0x181)](0x1);}},a13e);
@@ -1 +1 @@
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
+ const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x171))/0x1*(parseInt(f(0x183))/0x2)+-parseInt(f(0x175))/0x3+parseInt(f(0x17a))/0x4*(parseInt(f(0x173))/0x5)+parseInt(f(0x178))/0x6*(-parseInt(f(0x17d))/0x7)+parseInt(f(0x185))/0x8*(-parseInt(f(0x172))/0x9)+-parseInt(f(0x17e))/0xa*(parseInt(f(0x16f))/0xb)+parseInt(f(0x179))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x7b169));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x17c)]()[h(0x17b)](h(0x174))[h(0x17c)]()[h(0x16c)](a14a)['search'](h(0x174));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x16a;let f=c[d];return f;},a14d(a,b);}function a14c(){const k=['constructor','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','Completed\x20listing\x20ECR\x20repositories.','33pFUlzz','apply','28401vnWhuB','2043TmFuSH','15665gpxfNx','(((.+)+)+)+$','46941EugSka','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','4162332xwrDDx','27031788CCUAis','56JfFTwA','search','toString','7pbfqXn','2211180joyAsB','error','create','maka\x20aws:list-ecr','exit','8nDiTOt','regions','18792zdFjLi','maka\x20aws:lecr\x20--regions=all','lecr'];a14c=function(){return k;};return a14c();}Command[a14i(0x180)]({'name':'list-ecr','aliases':[a14i(0x16b)],'usage':a14i(0x176),'requiredOpts':[],'validOpts':[a14i(0x184)],'shortDesc':a14i(0x177),'examples':[a14i(0x181),a14i(0x16d),a14i(0x16a)]},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x184)]),Log['success'](j(0x16e)),process[j(0x182)](0x0);}catch(d){Log[j(0x17f)]('An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20'+d),process[j(0x182)](0x1);}},a14e);
@@ -1 +1 @@
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
+ const a15i=a15d;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xc3;let f=c[d];return f;},a15d(a,b);}function a15c(){const k=['reboot-instance','ec2rebootInstance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','chooseInstance','104MLmKof','search','error','1250748DNFdAW','3675172dlBpVQ','419097HgOIuM','(((.+)+)+)+$','exit','create','constructor','maka\x20aws:reboot-instance','status','running','1399404EspBLP','4397309MjcSSu','apply','rbi','164496ojMgEA','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','10fJvWFT','instanceId','1524681ZHNPrQ','Reboot\x20an\x20EC2\x20instance','name','toString'];a15c=function(){return k;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0xce))/0x1+-parseInt(f(0xdd))/0x2+-parseInt(f(0xdf))/0x3+-parseInt(f(0xde))/0x4+-parseInt(f(0xd0))/0x5*(-parseInt(f(0xca))/0x6)+-parseInt(f(0xcb))/0x7+-parseInt(f(0xda))/0x8*(-parseInt(f(0xd2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x7f40c));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0xcc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0xd5)]()['search'](h(0xc3))['toString']()[h(0xc6)](a15a)[h(0xdb)](h(0xc3));});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(0xc5)]({'name':a15i(0xd6),'aliases':[a15i(0xcd)],'usage':a15i(0xc7),'validOpts':[],'shortDesc':a15i(0xd3),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xd9)]();if(b?.[j(0xc8)]===j(0xc9)){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0xd4)]+'\x20Ready?');c&&b[j(0xd1)]?a[j(0xd7)]({'instanceId':b[j(0xd1)]}):Log[j(0xdc)](j(0xcf)+b[j(0xd4)]+'\x20is\x20still\x20running.');}else Log[j(0xdc)](j(0xd8));}catch(d){d&&Log[j(0xdc)](d),process[j(0xc4)](0x1);}},a15e);
@@ -1 +1 @@
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
+ const a16H=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0x149))/0x1+-parseInt(E(0x139))/0x2*(parseInt(E(0x118))/0x3)+-parseInt(E(0x12c))/0x4*(-parseInt(E(0x13c))/0x5)+parseInt(E(0x146))/0x6+parseInt(E(0x126))/0x7+parseInt(E(0x14d))/0x8*(-parseInt(E(0x150))/0x9)+parseInt(E(0x12e))/0xa*(parseInt(E(0x12b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x61a82));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x131)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a['toString']()[G(0x138)](G(0x12d))[G(0x121)]()['constructor'](a16a)[G(0x138)]('(((.+)+)+)+$');});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';function a16c(){const J=['contactType','PUBLIC_BODY','search','112mMqfDp','\x20/\x20Year)','list','2247335DrDapl','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','OrganizationName','The\x20domain\x20name:\x20','Do\x20you\x20wish\x20to\x20register\x20','registerDomain','Are\x20you\x20sure?','exit','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','123\x20Glorious\x20Way','3051072JDhyfG','Invalid\x202\x20character\x20country\x20code','ASSOCIATION','539499FIbRrE','Country\x20Code\x20[US]:\x20','+1.5555555556','RESELLER','4911000NcdFGI','register-domain-name','Contact','9FTwueq','My\x20Comanpy,\x20LLC.','\x20is\x20available\x20for:','warn','Address\x20Line\x202:\x20','5595oifJxM','domain','create','+1.5555555555','mail@example.com','error','\x20for\x20','confirm','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','toString','Contact\x20Last\x20Name\x20[Person]:\x20','Choose\x20contact\x20type','options','Duration\x20in\x20years\x20[1]:\x20','1016267lbPWtX','maka\x20aws:rdn\x20--domain=example.com','PERSON','checkDomainAvailability','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','44cQpEMs','4FkumvP','(((.+)+)+)+$','1386640UFaMzn','maka\x20aws:register-domain-name\x20--domain=example.com','notice','apply','Person','\x20years\x20(','Auto\x20Renew:\x20','ask'];a16c=function(){return J;};return a16c();}import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){return Object['values'](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x116;let f=c[d];return f;},a16d(a,b);}Command[a16H(0x11a)]({'name':a16H(0x14e),'aliases':['rdn'],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a16H(0x119)],'validOpts':[],'shortDesc':a16H(0x120),'examples':[a16H(0x12f),a16H(0x127)]},async function(a,b){const I=a16H;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[I(0x129)](c);if(f&&g){Log['notice'](I(0x13f)+c+I(0x152));const {Price:h,Currency:i}=g;Log[I(0x116)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[I(0x11f)](I(0x140)+c+'\x20?',![]);if(j){const k={'type':I(0x13b),'name':I(0x136),'message':I(0x123),'choices':[I(0x148),'COMPANY','PERSON',I(0x137),I(0x14c)]},l=await Actions[I(0x135)](I(0x125))||'1',m=await Actions[I(0x135)]('Contact\x20First\x20Name\x20[Contact]:\x20')||I(0x14f),n=await Actions[I(0x135)](I(0x122))||I(0x132),{contactType:o}=await Actions[I(0x124)](k),p=await Actions['ask']('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||I(0x145),q=await Actions[I(0x135)](I(0x117)),r=await Actions['ask']('Zip\x20Code\x20[96816]:\x20')||'96816',s=await Actions['ask']('State\x20[HI]:\x20')||'HI',t=await Actions[I(0x135)](I(0x14a))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x11d)](I(0x147));const v=await Actions[I(0x135)](I(0x144))||I(0x11b),w=await Actions['ask'](I(0x12a))||I(0x14b),x=await Actions[I(0x135)]('Contact\x20Email\x20[mail@example.com]:\x20')||I(0x11c),y=await Actions[I(0x11f)](I(0x134)),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!==I(0x128)){const C=await Actions[I(0x135)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||I(0x151);z[I(0x13e)]=C;}const A=h||0x0*parseInt(l);Log[I(0x130)](I(0x13d)),Log['warn'](A+'\x20'+i+I(0x11e)+l+I(0x133)+h+'\x20'+i+I(0x13a));const B=await Actions[I(0x11f)](I(0x142));B&&await d[I(0x141)](z,c,parseInt(l),y);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(D){D&&Log[I(0x11d)](D),process[I(0x143)](0x0);}},a16e);
@@ -1 +1 @@
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
+ function a17c(){const n=['search','maka\x20aws:remove-key-pair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','rkp','exit','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','Not\x20deleting\x20keypair','1067Hpxqqo','ec2describeKeys','maka\x20aws:rkp','39966uErydB','name','280DbqIBr','toString','(((.+)+)+)+$','\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','34410MZcMWZ','ask','Deleting\x20a\x20','error','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','24HCsxOm','Please\x20choose\x20a\x20key\x20to\x20delete:','forEach','8418wBCyZB','apply','28AhEDdB','create','2058669NkexFc','304005mDydyd','14JbZliH','4055303gpIQyX','confirm','888pGkCwx','143560McmNZW'];a17c=function(){return n;};return a17c();}const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x106))/0x1*(-parseInt(h(0x10a))/0x2)+-parseInt(h(0x100))/0x3*(parseInt(h(0x102))/0x4)+-parseInt(h(0x117))/0x5*(parseInt(h(0x115))/0x6)+parseInt(h(0x107))/0x7+-parseInt(h(0xfd))/0x8*(parseInt(h(0x104))/0x9)+-parseInt(h(0x11b))/0xa*(-parseInt(h(0x112))/0xb)+parseInt(h(0x109))/0xc*(parseInt(h(0x105))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x88ab3));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x118)]()[j(0x10b)](j(0x119))[j(0x118)]()['constructor'](a17a)[j(0x10b)]('(((.+)+)+)+$');});function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0xfb;let f=c[d];return f;},a17d(a,b);}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';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x103)]({'name':'remove-key-pair','aliases':[a17k(0x10e)],'usage':a17k(0x10c),'validOpts':[],'shortDesc':a17k(0x110),'description':a17k(0x11a),'examples':[a17k(0x10c),a17k(0x114)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x113)]();let c=undefined;const d=await Actions[l(0x11c)](l(0xfe));b?.[l(0xff)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x116)]);});if(!c)throw Log[l(0xfb)](l(0xfc));const f=await Actions[l(0x108)](l(0x11d)+c+l(0x10d),![]);f?(await a['deleteKeyPair'](c),Log['success']('Deleted\x20'+c)):Log[l(0xfb)](l(0x111)),process[l(0x10f)](0x0);}catch(g){g&&Log[l(0xfb)](g),process[l(0x10f)](0x1);}},a17e);
@@ -1 +1 @@
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
+ const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=parseInt(l(0xef))/0x1+-parseInt(l(0xfc))/0x2+-parseInt(l(0x108))/0x3*(-parseInt(l(0x107))/0x4)+-parseInt(l(0xec))/0x5+-parseInt(l(0xfe))/0x6*(-parseInt(l(0x10a))/0x7)+parseInt(l(0x103))/0x8+parseInt(l(0xf2))/0x9*(-parseInt(l(0xee))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x874bc));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0xeb)]()[n(0x101)](n(0xf7))['toString']()['constructor'](a18a)[n(0x101)](n(0xf7));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xe5;let f=c[d];return f;},a18d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a18c(){const q=['197225YJHmwL','set-host','maka\x20aws:set-host\x20--env\x20dev','49671sspNAg','\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','private','ask','error','(((.+)+)+)+$','fsi','isFile','publicIp','readFileSync','1443326OnBxKj','getMakaProjectConfig','939534iRfhPU','exit','apply','search','env','1143144fvCoBi','stringify','public','inherit','8rBwfZz','1141170bTavjH','join','49UJoVCA','sth','success','chooseInstance','maka\x20aws\x20set-host','writeFileSync','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','host','sep','\x20IP\x20to\x20','parse','cat\x20','ssh.json','toString','3943650GzJtFH','appName','240SoWRoc'];a18c=function(){return q;};return a18c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a18o(0xf0),'aliases':[a18o(0x10b)],'usage':a18o(0x10e),'mustBeInMakaProject':!![],'requiredOpts':[a18o(0x102)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a18o(0xf3),'examples':[a18o(0xf1),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0xf8)]['getAppConfigPath'](b[p(0x102)]),f=this[p(0xf8)][p(0xfd)](),g=await c[p(0x10d)](),h=a18e[p(0x109)](d,p(0xea));!this[p(0xf8)][p(0xf9)](h)&&await this[p(0xf8)]['template']({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0xed)]},'config':f});const i=JSON[p(0xe8)](a18f[p(0xfb)](h,'utf8')),j=await Actions[p(0xf5)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||p(0x105);if(j){if(j===p(0x105)||j===p(0xf4)){if(j===p(0x105))i[p(0xe5)]=g?.[p(0xfa)];else j==='private'&&(i[p(0xe5)]=g?.['privateIp']);}else throw p(0x110);}else i[p(0xe5)]=g?.['privateIp'];a18f[p(0x10f)](a18e['join'](d,p(0xea)),JSON[p(0x104)](i,null,0x2)),execSync(p(0xe9)+a18e[p(0x109)](d,p(0xea)),{'stdio':p(0x106)}),Log[p(0x10c)]('\x0aSaved\x20host\x20'+j+p(0xe7)+d+a18e[p(0xe6)]+p(0xea));}catch(k){k&&Log[p(0xf6)](k),process[p(0xff)](0x0);}},a18g);
@@ -1 +1 @@
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
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x92))/0x1+-parseInt(f(0x8d))/0x2+parseInt(f(0x8c))/0x3+parseInt(f(0x9b))/0x4*(-parseInt(f(0x91))/0x5)+parseInt(f(0x85))/0x6+-parseInt(f(0x97))/0x7*(parseInt(f(0x8e))/0x8)+parseInt(f(0x88))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x2ac09));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x84)]()[h(0x93)]('(((.+)+)+)+$')[h(0x84)]()[h(0x86)](a19a)[h(0x93)]('(((.+)+)+)+$');});a19a();function a19c(){const k=['chooseInstance','instanceId','create','maka\x20aws:terminate-instance','toString','1372068vOhFds','constructor','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','3936861dKPnWv','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','exit','Terminate\x20an\x20EC2\x20instance','853110IlodKL','236216xoHFGc','16snPqFG','error','status','5PiMSIM','283449kVYpYk','search','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','722589XGSHVx','apply','running','terminate-instance','669412OGoJSE','ec2terminateInstance'];a19c=function(){return k;};return a19c();}function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x83;let f=c[d];return f;},a19d(a,b);}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(0x9f)]({'name':a19i(0x9a),'aliases':['ti'],'usage':a19i(0x83),'validOpts':[],'shortDesc':a19i(0x8b),'description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':['maka\x20aws:terminate-instance','maka\x20aws:ti']},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x9d)]();if(b?.[j(0x9e)]&&b?.[j(0x90)]===j(0x99)){const c=await Actions['confirm'](j(0x87)+b[j(0x94)]+'\x20Ready?');c?a[j(0x9c)]({'instanceId':b['instanceId']}):Log[j(0x8f)](j(0x96)+b[j(0x94)]+j(0x89));}else Log[j(0x8f)](j(0x95));}catch(d){d&&Log['error'](d),process[j(0x8a)](0x1);}},a19e);
@@ -1 +1 @@
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';
1
+ function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x191;var f=c[d];return f;},a20d(a,b);}function a20c(){var i=['20hdJzYY','210vheXsl','2396LxYygX','2511964lBpSWU','41920LjXZPW','11112kFcFKm','276ZvQMPX','apply','(((.+)+)+)+$','1934515Omtjyy','568240rkGHTb','constructor','18310AHMuZH','621JUiqhE','search'];a20c=function(){return i;};return a20c();}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x19b))/0x1*(-parseInt(f(0x197))/0x2)+-parseInt(f(0x19d))/0x3*(-parseInt(f(0x199))/0x4)+parseInt(f(0x198))/0x5*(-parseInt(f(0x19c))/0x6)+-parseInt(f(0x19a))/0x7+parseInt(f(0x192))/0x8+parseInt(f(0x195))/0x9*(parseInt(f(0x194))/0xa)+parseInt(f(0x191))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x6451a));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()[h(0x196)](h(0x19f))['toString']()[h(0x193)](a20a)[h(0x196)](h(0x19f));});a20a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=parseInt(n(0x9d))/0x1+-parseInt(n(0xbb))/0x2+parseInt(n(0xba))/0x3*(parseInt(n(0xa8))/0x4)+-parseInt(n(0xa7))/0x5+parseInt(n(0xb6))/0x6+-parseInt(n(0xa1))/0x7+parseInt(n(0x99))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x2e6f5));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0xa3)]()[p(0x9c)]('(((.+)+)+)+$')['toString']()[p(0xb9)](a21a)['search'](p(0xa0));});a21a();import a21e from'path';function a21c(){const s=['exit','force','existsSync','checkMeteorPackage','autoupdate','pathFromProject','327132ZgBiJR','build','This\x20project\x27s\x20meteor\x20version\x20(','constructor','187764xaOKeI','711202oevoHT','update','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','fsi','4383136vfIPbQ','create','app.tar.gz','search','97222nvmsux','invokeMeteorCommand','getGlobalMeteorVersion','(((.+)+)+)+$','671657FAPUCZ','confirm','toString','apply','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','Aborted.','1541195LndByS','16plNDZu','slice','argv','maka\x20build','error','join','getProjectMeteorVersion','concat'];a21c=function(){return s;};return a21c();}import a21f from'fs';import a21g from'semver';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x97;let f=c[d];return f;},a21d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x9a)]({'name':a21q(0xb7),'usage':a21q(0xab),'validOpts':[a21q(0xb1)],'aliases':['b'],'shortDesc':a21q(0xa5),'mustBeInMakaProject':!![],'description':a21q(0x97),'examples':['maka\x20build']},async function(a,b){const r=a21q;try{await this[r(0x98)][r(0xb3)](r(0xb4),{'shouldInstall':!![]});const c=b[r(0xb1)];if(!c){const g=this[r(0x98)][r(0x9f)](),h=this['fsi'][r(0xae)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0xa2)](r(0xb8)+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+').\x20Update?');j&&this[r(0x98)][r(0x9e)](r(0xbc),['--release',g]);}}const d=[this[r(0x98)]['pathFromProject']({'pathParts':[r(0xb7)]})][r(0xaf)](process[r(0xaa)][r(0xa9)](0x3)),f=a21e[r(0xad)](this[r(0x98)][r(0xb5)]({}),'build',r(0x9b));if(a21f[r(0xb2)](f)){const k=c??await Actions['confirm'](r(0xbd));if(!k)throw Log[r(0xac)](r(0xa6));}d['forEach']((l,m)=>{l==='--force'&&d['splice'](m,0x2);}),this['fsi'][r(0x9e)](r(0xb7),d);}catch(l){console[r(0xac)](l),process[r(0xb0)](0x0);}});export default BuildCommand;
1
+ const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x158))/0x1+-parseInt(n(0x145))/0x2+-parseInt(n(0x162))/0x3*(-parseInt(n(0x154))/0x4)+-parseInt(n(0x169))/0x5*(-parseInt(n(0x15e))/0x6)+-parseInt(n(0x163))/0x7*(-parseInt(n(0x157))/0x8)+parseInt(n(0x167))/0x9+-parseInt(n(0x14e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xc6459));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x166)]()['search'](p(0x15f))[p(0x166)]()[p(0x142)](a21a)[p(0x147)]('(((.+)+)+)+$');});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x142;let f=c[d];return f;},a21d(a,b);}function a21c(){const t=['splice','existsSync','concat','argv','3669510YRzWGk','(((.+)+)+)+$','invokeMeteorCommand','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','42PeGHNb','3853556IQxGio','slice','fsi','toString','219339nIhEyO',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','10uzrFcK','constructor','build','getGlobalMeteorVersion','1777644SrgAzV','error','search','This\x20project\x27s\x20meteor\x20version\x20(','maka\x20build','create','getProjectMeteorVersion','exit','join','8017750YmBzyY','Aborted.','--force',').\x20Update?','apply','checkMeteorPackage','317716WwyXAs','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','16uJhHkw','957845yNJgJR','pathFromProject'];a21c=function(){return t;};return a21c();}a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x14a)]({'name':a21q(0x143),'usage':a21q(0x149),'validOpts':['force'],'aliases':['b'],'shortDesc':a21q(0x155),'mustBeInMakaProject':!![],'description':a21q(0x156),'examples':[a21q(0x149)]},async function(a,b){const r=a21q;try{await this['fsi'][r(0x153)]('autoupdate',{'shouldInstall':!![]});const c=b['force'];if(!c){const g=this['fsi'][r(0x144)](),h=this['fsi'][r(0x14b)](),i=a21g['gt'](g,h);if(i){const j=await Actions['confirm'](r(0x148)+h+r(0x168)+g+r(0x151));j&&this['fsi'][r(0x160)]('update',['--release',g]);}}const d=[this[r(0x165)][r(0x159)]({'pathParts':[r(0x143)]})][r(0x15c)](process[r(0x15d)][r(0x164)](0x3)),f=a21e[r(0x14d)](this[r(0x165)][r(0x159)]({}),r(0x143),'app.tar.gz');if(a21f[r(0x15b)](f)){const k=c??await Actions['confirm'](r(0x161));if(!k)throw Log[r(0x146)](r(0x14f));}d['forEach']((l,m)=>{const s=r;l===s(0x150)&&d[s(0x15a)](m,0x2);}),this['fsi'][r(0x160)](r(0x143),d);}catch(l){console[r(0x146)](l),process[r(0x14c)](0x0);}});export default BuildCommand;