@maka/maka-cli 4.12.16 → 4.12.17

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/meteor/config/docker-compose.yaml +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.17",
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 a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x22d))/0x1*(parseInt(n(0x233))/0x2)+parseInt(n(0x218))/0x3+parseInt(n(0x21f))/0x4+-parseInt(n(0x23c))/0x5+-parseInt(n(0x1fe))/0x6+parseInt(n(0x22f))/0x7*(-parseInt(n(0x213))/0x8)+-parseInt(n(0x22c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x373af));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1fc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x239)]()[p(0x20c)](p(0x21c))['toString']()[p(0x227)](a0a)[p(0x20c)](p(0x21c));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a0d(a,b);}function a0c(){const A=['find','197811rowbnt','1TjNvsI','Name','406OKMjHS','minArgLength','options','Too\x20few\x20options','367594QUQwKm','mustHaveMeteorInstalled','_handler','aliases','Command\x20not\x20found','pallet','toString','length','help','1451445Grbosz','localeCompare','bright','Command.create\x20requires\x20a\x20handler\x20function!','maybeProxyCommandToMeteor','exit','generate','light','validateMeteorInstall','processAndRunCommand','addCommand\x20requires\x20a\x20Command\x20instance','function','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','play','Command\x20requires\x20a\x20handler\x20function','addCommand','slice','keys','apply','push','958374GwpJrJ','Command\x20format\x20is\x20incorrect','DARK','notice','assign','maxOptsLength','minOptsLength','header','Please\x20run\x20\x22maka\x20install\x20meteor\x22','match','\x20not\x20found','murder','join','forEach','search','Please\x20run\x20\x22maka\x20login\x22','unshift','Command.create\x20requires\x20some\x20options!','invoke','sort','shortDesc','36760REraCO','_commands','call','tableList','maxArgLength','1176153MPSmVp','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Sub-Commands:','validateUserIsLoggedIn','(((.+)+)+)+$','fsi','LIGHT','1555528btUnSX','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','name','run','validateMakaSubscription','Command\x20','mustBeLoggedIn','error','constructor','Too\x20few\x20arguments','number','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details'];a0c=function(){return A;};return a0c();}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x231)];['_commands'];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x220));if(!a[r(0x221)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==r(0x1f5))throw new Error(r(0x1f8));this[r(0x231)]=Object[r(0x202)]({},a),this['name']=this[r(0x231)][r(0x221)],this[r(0x214)]=[],this[r(0x235)]=b['bind'](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0x20f));if(typeof b!==s(0x1f5))throw new Error(s(0x23f));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[s(0x231)]?.['name']}),c[s(0x1f9)](d),d;}[a0q(0x1f9)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1f4));this[t(0x214)]['push'](a);}async[a0q(0x222)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x21d)]['getGlobalConfig'](),d=c[u(0x238)]===u(0x1f1)?ColorMode[u(0x21e)]:ColorMode[u(0x200)];Log['setColorMode'](d),await this[u(0x223)](this);}catch(f){Log[u(0x226)](f),process[u(0x1ef)](0x0);}return await this[u(0x210)](a,b);}catch(g){process[u(0x1ef)](0x1);}}async[a0q(0x210)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[v(0x231)][v(0x221)]!==v(0x1f0)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x23a)]===0x0)&&this[v(0x214)][v(0x23a)]>=0x0,g=b[v(0x23b)]||b['h'];if(f&&g){if(this[v(0x214)][v(0x23a)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options']['mustBeInMakaProject']){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[v(0x231)][v(0x225)]){const i=await this[v(0x21b)]();if(!i)throw new MustBeLoggedIn();}if(this[v(0x231)][v(0x234)]){const j=this[v(0x1f2)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x231)][v(0x230)]===v(0x229)){if(a[v(0x23a)]<this['options']['minArgLength']){Log[v(0x226)](v(0x228));throw new UsageError();}}if(typeof this[v(0x231)][v(0x217)]===v(0x229)){if(a[v(0x23a)]>=this[v(0x231)][v(0x217)]){Log[v(0x226)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[v(0x231)]['minOptsLength']==='number'){if(Object[v(0x1fb)](b)[v(0x23a)]<this['options'][v(0x204)]){Log[v(0x226)](v(0x232));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===v(0x229)){if(Object['keys'](b)[v(0x23a)]>=this['options'][v(0x203)]){Log['error']('Too\x20many\x20options');throw new UsageError();}}}}b=await this['validateParams'](a,b,this[v(0x231)]),_prevCmd=a[0x0];}return await this[v(0x235)][v(0x215)](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log['notice'](v(0x21a)),this[v(0x216)](this[v(0x214)]),Log[v(0x205)](v(0x22a));else{if(k instanceof MustBeInProjectError)Log['error'](v(0x1f6));else{if(k instanceof NoMeteorFoundError)Log[v(0x226)](v(0x219)),Log[v(0x201)](v(0x206));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x226)]('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log[v(0x226)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log['notice'](v(0x20d)));}}}process[v(0x1ef)](0x1);}}[a0q(0x216)](a){const w=a0q,b=new a0e({});b[w(0x1fd)]([w(0x22e),'Alias','Description']),a[w(0x211)]((c,d)=>{const x=w;return c[x(0x221)][x(0x23d)](d['name']);})[w(0x20b)](c=>{const y=w;c[y(0x221)]!==y(0x209)&&c[y(0x221)]!==y(0x1f7)&&b[y(0x1fd)]([c[y(0x221)],c[y(0x236)](),c[y(0x212)]()]);}),Log[w(0x23e)](b['toString']());}async[a0q(0x1f3)](a,b=[],c={}){const z=a0q;try{const d=a?.['split'](':');if(!d||d['length']===0x0)throw z(0x1ff);if(d[0x0]==='generate'||d[0x0]==='g'&&d[z(0x23a)]>0x1){const h=this[z(0x214)]['find'](j=>j['match'](z(0x1f0)));if(!h)throw z(0x237);await this[z(0x223)](h);const i=d[z(0x1fa)](0x1)[z(0x20a)](':');return b[z(0x20e)](i),await h[z(0x222)](b,c);}let f=this[z(0x214)],g;for(const j of d){g=f[z(0x22b)](k=>k[z(0x207)](j));if(!g)try{await this[z(0x21d)][z(0x1ee)]();}catch(k){throw z(0x224)+j+z(0x208);}g&&(await this[z(0x223)](g),f=g[z(0x214)]);}if(g){const l=await g[z(0x222)](b,c);return l;}else throw z(0x237);}catch(m){Log[z(0x226)](m),process[z(0x1ef)](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(0x7d))/0x1*(parseInt(f(0x87))/0x2)+-parseInt(f(0x81))/0x3+parseInt(f(0x83))/0x4*(-parseInt(f(0x7f))/0x5)+-parseInt(f(0x84))/0x6*(parseInt(f(0x82))/0x7)+parseInt(f(0x85))/0x8*(parseInt(f(0x89))/0x9)+parseInt(f(0x8b))/0xa+parseInt(f(0x7e))/0xb*(-parseInt(f(0x8a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xdade6));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x86)]()['search'](h(0x80))[h(0x86)]()[h(0x8c)](a1a)['search'](h(0x80));});a1a();function a1c(){var i=['apply','3778479psskwz','113028TEzsGk','17749830TdiiDh','constructor','211HYAqcE','451qgoCfu','406585impCmt','(((.+)+)+)+$','390507CtMrka','770NxirZd','44zflAnC','29622uKDvuS','8gfNxZB','toString','6214sikfPf'];a1c=function(){return i;};return a1c();}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-0x7d;var f=c[d];return f;},a1d(a,b);}import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
@@ -1 +1 @@
1
- const 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(0x197))/0x1*(-parseInt(h(0x1ab))/0x2)+-parseInt(h(0x19e))/0x3+parseInt(h(0x1ad))/0x4+parseInt(h(0x1a9))/0x5+-parseInt(h(0x19f))/0x6*(-parseInt(h(0x1ba))/0x7)+parseInt(h(0x19a))/0x8+parseInt(h(0x1a5))/0x9*(-parseInt(h(0x198))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xa1f68));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x1a8)]()['search'](j(0x1a1))[j(0x1a8)]()[j(0x1b2)](a2a)[j(0x1b1)]('(((.+)+)+)+$');});a2a();function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x194;let f=c[d];return f;},a2d(a,b);}import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2c(){const o=['182GTKKcB','message','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','askGPT','trim','close','You:\x20','943444YCFjsQ','10RLeZkv','bright','8125056vWNCsA','openai','create','data','1565619Dwgppl','186186KuGRZO','cert','(((.+)+)+)+$','text','cacert','Using\x20OpenAI\x20Key\x20','21130497GOcsYw','stdin','isFile','toString','1384510bPQMoh','choices','2QCyAdu','createInterface','1961288bhMppw','openapikey','exit','toLowerCase','search','constructor','getGlobalConfig','question','notice','parse','apply','error','fsi'];a2c=function(){return o;};return a2c();}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x1ac)]({'input':process[k(0x1a6)],'output':process['stdout']});c[k(0x1b4)](k(0x196),async d=>{const l=k;if(d[l(0x1b0)]()===l(0x1af)){c[l(0x195)]();return;}try{const e=await HTTPS[l(0x1bd)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1b6)](e[l(0x19d)]);if(f[l(0x1b8)])throw new Error(f[l(0x1b8)][l(0x1bb)]);Log[l(0x199)]('GPT:\x20'+f?.[l(0x1aa)][0x0]?.[l(0x1a2)][l(0x194)]());}catch(g){Log[l(0x1b8)](g),process[l(0x1af)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x19c)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2m(0x1a3),a2m(0x1ae)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x1b9)][n(0x1a7)](b['cacert'])?(c=b[n(0x1a3)],Log[n(0x1b5)]('Using\x20CA\x20Cert\x20'+c)):Log[n(0x1b8)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0x1b9)][n(0x1b3)]();if(d[n(0x1a0)]){if(this['fsi'][n(0x1a7)](d['cert']))c=d[n(0x1a0)];else throw Log[n(0x1b8)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0x1ae)])f=b['openapikey'],Log[n(0x1b5)](n(0x1a4)+f);else{if(d['openai'])f=d[n(0x19b)];else throw Log[n(0x1b8)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console['log'](n(0x1bc)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1b8)](g),process[n(0x1af)](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(0xbf))/0x1+parseInt(f(0xbb))/0x2+parseInt(f(0xc3))/0x3+-parseInt(f(0xc4))/0x4*(-parseInt(f(0xc5))/0x5)+parseInt(f(0xc1))/0x6*(parseInt(f(0xbe))/0x7)+-parseInt(f(0xb7))/0x8*(-parseInt(f(0xbd))/0x9)+parseInt(f(0xb8))/0xa*(-parseInt(f(0xb6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xad15f));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()['search'](h(0xba))[h(0xb9)]()[h(0xc2)](a3a)[h(0xbc)](h(0xba));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';function a3c(){var i=['252KcwygG','constructor','887283iqwZaa','4yvDABc','3113590pUYqGP','15488wOJBZw','256Lgzids','18470arNTtv','toString','(((.+)+)+)+$','944824RNVOhc','search','347382UAvRcz','192136nuENHW','469308AceGRZ','apply'];a3c=function(){return i;};return a3c();}function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xb6;var f=c[d];return f;},a3d(a,b);}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(0xdb))/0x1+-parseInt(f(0xe5))/0x2*(-parseInt(f(0xe0))/0x3)+parseInt(f(0xeb))/0x4+-parseInt(f(0xe3))/0x5*(-parseInt(f(0xdf))/0x6)+-parseInt(f(0xe8))/0x7+-parseInt(f(0xea))/0x8*(parseInt(f(0xdd))/0x9)+-parseInt(f(0xdc))/0xa*(-parseInt(f(0xe2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x805c9));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xe1)]()[h(0xed)](h(0xe9))['toString']()[h(0xe7)](a4a)[h(0xed)](h(0xe9));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xdb;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xec)]({'name':a4i(0xe6),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0xe4),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'},async function(){throw UsageError;});export default AWSCommand;function a4c(){const j=['Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','22HqOjzz','aws','constructor','2600626rhMUiS','(((.+)+)+)+$','11608EGggMI','719416cBEzjw','create','search','402176oKzXRC','396510PZLWVZ','1827FpxJWa','apply','1881918LidbVe','53358hFjENh','toString','77eWsrNw','15VGnviA'];a4c=function(){return j;};return a4c();}
@@ -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(0x1d9))/0x1*(parseInt(g(0x1dc))/0x2)+parseInt(g(0x1c8))/0x3+-parseInt(g(0x1e3))/0x4+-parseInt(g(0x1db))/0x5*(-parseInt(g(0x1da))/0x6)+parseInt(g(0x1cc))/0x7+parseInt(g(0x1ca))/0x8*(-parseInt(g(0x1d0))/0x9)+parseInt(g(0x1d8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe20e3));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1e2)]()['search'](i(0x1d7))['toString']()[i(0x1d1)](a5a)[i(0x1d3)](i(0x1d7));});a5a();import a5e from'./aws.command.js';function a5c(){const l=['exit','toString','2381488okJWHX','maka\x20aws:create-ecr','5022828ircXNI','Repository\x20URI:\x20','3054440UGwwxI','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','1119377wQHgwI','cecr','name','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','36cgZEyo','constructor','Create\x20an\x20Elastic\x20Container\x20Repository','search','apply','create','$metadata','(((.+)+)+)+$','804650hwYvAS','19875vCfUrK','12dnbZhd','2387470clqzUG','18KnMLgi','repository','success','maka\x20aws:create-ecr\x20--name=my-new-repo','create-ecr'];a5c=function(){return l;};return a5c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a5d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a5j(0x1d5)]({'name':a5j(0x1e0),'aliases':[a5j(0x1cd)],'usage':a5j(0x1e4),'requiredOpts':[a5j(0x1ce)],'validOpts':['region'],'shortDesc':a5j(0x1d2),'examples':[a5j(0x1df),'maka\x20aws:cecr\x20--name=my-new-repo',a5j(0x1cb)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0x1d6)]['httpStatusCode']===0xc8&&d[k(0x1dd)]?(Log[k(0x1de)]('Repository\x20created\x20successfully.'),Log['notice'](k(0x1c9)+d[k(0x1dd)]['repositoryUri'])):Log['error'](k(0x1cf)),process[k(0x1e1)](0x0);}catch(f){Log['error'](f),process[k(0x1e1)](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(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x14c))/0x1*(-parseInt(i(0x14f))/0x2)+-parseInt(i(0x159))/0x3+-parseInt(i(0x157))/0x4*(parseInt(i(0x15d))/0x5)+parseInt(i(0x167))/0x6*(-parseInt(i(0x150))/0x7)+-parseInt(i(0x166))/0x8*(parseInt(i(0x15c))/0x9)+-parseInt(i(0x15e))/0xa*(parseInt(i(0x151))/0xb)+parseInt(i(0x154))/0xc*(parseInt(i(0x160))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9cab0));function a6c(){const n=['chooseInstance','10894767AXdrHj','(((.+)+)+)+$','chz','search','route53CreateHostedZone','apply','274648TnLJLP','193086HWveMG','5821TKUFNE','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','error','280KRjKfs','49PxhtpU','3259883bRRsSt','domain','maka\x20aws:chz\x20--domain=example.com','60adyeLo','exit','create','1172ebQYSS','publicIp','2738433rhBpMz','Set\x20hosted\x20zone\x20to\x20an\x20instance?','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','9BZfsAZ','21585YWjFPQ','10QsNrJh'];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(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a['toString']()['search'](k(0x161))['toString']()['constructor'](a6a)[k(0x163)](k(0x161));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x14c;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6l(0x156)]({'name':'create-hosted-zone','aliases':[a6l(0x162)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0x152)],'validOpts':[],'shortDesc':a6l(0x14d),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a6l(0x153)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x164)](c);const f=await Actions['confirm'](m(0x15a));if(f){const g=await d[m(0x15f)]();if(g?.['id']){if(!g[m(0x158)])throw Log[m(0x14e)](m(0x15b));d['linkEC2ToRoute53'](g['id'],g[m(0x158)],c);}else throw'Instance\x20not\x20found';}}catch(h){h&&Log[m(0x14e)](h),process[m(0x155)](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 a7ag=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x189))/0x1+-parseInt(ae(0x154))/0x2+-parseInt(ae(0x178))/0x3+parseInt(ae(0x151))/0x4*(parseInt(ae(0x14f))/0x5)+-parseInt(ae(0x143))/0x6*(parseInt(ae(0x18c))/0x7)+-parseInt(ae(0x150))/0x8*(-parseInt(ae(0x14c))/0x9)+parseInt(ae(0x186))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x7fc8d));const a7b=(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;};}()),a7a=a7b(this,function(){const af=a7d;return a7a[af(0x13e)]()[af(0x19a)](af(0x179))[af(0x13e)]()['constructor'](a7a)[af(0x19a)](af(0x179));});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x139;let f=c[d];return f;},a7d(a,b);}import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a7c(){const at=['Name','**\x20Available\x20AMIs\x20**','isFile','alias','User\x20Data:','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Instace\x20Type:\x20','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','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','22,80,443','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','ID:\x20','maka\x20aws:create-instance\x20--env\x20dev','getMakaProjectConfig','created-by','getSecurityGroups','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','**\x20Available\x20key-pairs\x20**','subnetId','toString','\x20AMIID:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','fsi','EC2\x20Name:\x20[','456ipzLPP','1:1','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=*','notice','Web\x20App','createFile','ImageID:','amiId','create-instance','9rBTOGT','split','No\x20instance\x20has\x20been\x20created.','25950QSJyXn','1604504ipXyVF','716PdbDqQ','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Create\x20new\x20AWS\x20instance','185210umXaeC','Instance\x20Count:\x20','chooseVPC','readFileSync','Key-Pair:\x20','forEach','createKeyPair','\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','exit','**\x20Available\x20Security\x20Groups\x20**','Would\x20you\x20like\x20to\x20include\x20user\x20data?','bright','Setting\x20the\x20key-pair\x20to:\x20','Desc','getConfigFromShorthand','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Creating\x20user\x20data\x20file\x20in\x20','subnet','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20SG\x20NAME:\x20','sgId','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','env','ask','log','deleteKeyPair','deleteSecurityGroup','Subnet:\x20','Setting\x20SG\x20ID\x20to:\x20','Security\x20Group:\x20','ec2describeKeys','confirm','Security\x20Group\x20Name:\x20[','\x20SGID:\x20','user-data','Remove\x20the\x20keypair\x20','2007804ntNhSB','(((.+)+)+)+$','push','maka-cli','parse','name','cidr','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','desc','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','unlinkSync','ec2create','\x20CIDR:\x20','getTime','7193000YJYhJV','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','success','228055fFmSQs','number','getAppConfigPath','30905KtyRSe','maka\x20aws:create-instance','error','t3.micro','*\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','date','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'];a7c=function(){return at;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a7ag(0x14b),'aliases':['ci'],'usage':a7ag(0x18d),'examples':[a7ag(0x1a0),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ag(0x153),'description':a7ag(0x15b)},async function(a,b){const ah=a7ag;try{const c=this[ah(0x141)][ah(0x1a1)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x141)][ah(0x162)](b[ah(0x16a)]),i=this[ah(0x141)][ah(0x18b)](h),j=g+'-'+h,k=await Actions[ah(0x16b)](ah(0x142)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x173)](ah(0x19e),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x15a)]({'env':h});r=y,s=z,Log[ah(0x188)](ah(0x160)+r);}else try{Log[ah(0x146)](ah(0x13c));const A=r?r:k,B=await d[ah(0x172)]({'suggestion':A}),C=await Actions[ah(0x16b)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log['error'](ah(0x19b)),Log[ah(0x146)](ah(0x14e));return;}B?.[ah(0x159)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x17d)],Log[ai(0x188)](ai(0x160)+r));});}catch(D){Log[ah(0x18e)](D);}l=await d['chooseVPC']();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ah(0x156)]():l;u=await Actions[ah(0x16b)](ah(0x174)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x19d),G=F[ah(0x14d)](',');await d['ec2createSG']({'description':ah(0x147),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0x13a)](u);if(I===''){Log[ah(0x146)](ah(0x15d)),J[ah(0x159)](function(L){const aj=ah;L['name']===u?Log[aj(0x146)]('ID:\x20'+L['id']+aj(0x167)+L[aj(0x17d)]+aj(0x175)+L[aj(0x168)]):Log[aj(0x15f)](aj(0x19f)+L['id']+aj(0x167)+L[aj(0x17d)]+aj(0x175)+L[aj(0x168)]);});const K=await Actions[ah(0x16b)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ah(0x13e)]();J['forEach'](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L['sgId'],Log[ak(0x188)](ak(0x170)+m+'\x0a'));});}else m=I,Log[ah(0x188)](ah(0x170)+m+'\x0a');if(m==='')throw Log['error'](ah(0x166));}catch(L){Log[ah(0x18e)](L);}try{const M=0x7e6;Log[ah(0x146)](ah(0x194));const N=execSync(ah(0x145)+M+ah(0x190))[ah(0x13e)](),O=JSON[ah(0x17c)](N),P=[],Q=[];O['forEach'](function(S){const al=ah;if(S[al(0x196)]==='amazon'){const T=S[al(0x161)]['split']('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0x161)],'date':T});}}),P['sort'](function(S,T){const am=ah;return new Date(T[am(0x191)])[am(0x185)]()-new Date(S[am(0x191)])[am(0x185)]();}),P[ah(0x159)](function(S,T){const an=ah;Q[an(0x17a)]({'id':T,'amiId':S[an(0x14a)],'desc':S[an(0x180)]});}),Q[ah(0x159)](function(S){const ao=ah;console[ao(0x16c)](ao(0x19f)+S['id']+ao(0x13f)+S[ao(0x14a)]+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions[ah(0x16b)](ah(0x192))||'0';Q[ah(0x159)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S['amiId'],Log[ap(0x188)]('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+S[ap(0x180)]));});if(n==='')throw Log[ah(0x18e)](ah(0x166));}catch(S){Log[ah(0x18e)](S);}try{Log[ah(0x146)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x19c))[ah(0x13e)](),U=JSON[ah(0x17c)](T),V=[];U[ah(0x159)](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x13d)]});}),V[ah(0x159)](function(X){const ar=ah;console[ar(0x16c)]('ID:\x20'+X['id']+ar(0x184)+X[ar(0x17e)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[ar(0x13d)]);});const W=await Actions[ah(0x16b)](ah(0x152))||'0';V[ah(0x159)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x13d)],Log[as(0x188)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ah(0x18e)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x169))||ah(0x144),Z=Y[ah(0x14d)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ah(0x18a)&&typeof parseInt(a0)===ah(0x18a)&&Log[ah(0x188)](ah(0x13b)+Z+':'+a0);}catch(a1){Log[ah(0x18e)](a1);}try{const a2=await Actions[ah(0x16b)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ah(0x18f);typeof a2==='string'&&(o=a2);}catch(a3){Log[ah(0x18e)](a3);}let x='';try{const a4=await Actions['confirm'](ah(0x15e),![]);a4&&(x=a7f['join'](i,ah(0x176)),Log['notice'](ah(0x164)+x),await this[ah(0x141)][ah(0x148)]({'filePath':x,'data':''}),await Actions[ah(0x173)](ah(0x187)));}catch(a5){Log['error'](a5);}try{const a6=JSON['parse'](execSync(ah(0x181)+p+ah(0x140))[ah(0x13e)]())[0x0][ah(0x165)];Log['notice'](ah(0x149)+n),Log['notice'](ah(0x155)+v+':'+w),Log[ah(0x146)](ah(0x199)+o),Log[ah(0x146)](ah(0x158)+r),Log[ah(0x146)](ah(0x171)+m),Log[ah(0x146)](ah(0x16f)+a6);if(x){Log['notice'](ah(0x197)+x);const a8=a7g[ah(0x157)](x)[ah(0x13e)]();Log[ah(0x146)](a8);}const a7=await Actions[ah(0x173)](ah(0x198));if(a7){const a9=await d[ah(0x183)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x139),'Value':ah(0x17b)},{'Key':'environment','Value':h},{'Key':ah(0x193),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x188)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ah(0x17f)));}else{Log['notice'](ah(0x163));const aa=await Actions['confirm'](ah(0x177)+r+'\x20?',!![]);aa&&(d[ah(0x16d)](r),f[ah(0x195)](s)&&a7g[ah(0x182)](s));const ab=await Actions[ah(0x173)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ah(0x16e)](m);}}catch(ac){Log[ah(0x18e)](ac);}}catch(ad){ad&&Log[ah(0x18e)](ad),process[ah(0x15c)](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 a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x7c))/0x1*(parseInt(g(0x87))/0x2)+-parseInt(g(0x85))/0x3*(-parseInt(g(0x8f))/0x4)+parseInt(g(0x77))/0x5*(-parseInt(g(0x79))/0x6)+parseInt(g(0x7b))/0x7*(-parseInt(g(0x8d))/0x8)+-parseInt(g(0x92))/0x9*(-parseInt(g(0x80))/0xa)+parseInt(g(0x93))/0xb*(-parseInt(g(0x82))/0xc)+-parseInt(g(0x90))/0xd*(-parseInt(g(0x83))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x7a0d0));function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x77;let f=c[d];return f;},a8d(a,b);}const a8b=(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;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x89)]()[h(0x91)]('(((.+)+)+)+$')[h(0x89)]()[h(0x8c)](a8a)['search'](h(0x7a));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8c(){const k=['9ggvgAf','42691RzVnqH','22070SAkDag','maka\x20aws:create-key-pair','1206oqEFHf','(((.+)+)+)+$','9611OfvOFk','5581npwGRD','maka\x20aws:ckp\x20--env\x20prod','ckp','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','3516740JoPiNh','error','1164vtORuO','16772UoBhFZ','env','5889xipMPS','getConfigFromShorthand','194jRRygX','exit','toString','maka\x20aws:create-key-pair\x20--env\x20prod','create','constructor','4632yAwljV','fsi','1292dvayyW','11193KvjRiF','search'];a8c=function(){return k;};return a8c();}import{Log}from'../../tools/log/log.class.js';Command[a8i(0x8b)]({'name':'create-key-pair','aliases':[a8i(0x7e)],'usage':a8i(0x78),'examples':[a8i(0x8a),a8i(0x7d)],'mustBeInMakaProject':!![],'requiredOpts':[a8i(0x84)],'validOpts':[],'shortDesc':a8i(0x7f),'description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const j=a8i;try{const c=new AWS(),d=this[j(0x8e)][j(0x86)](b['env']);c['createKeyPair']({'env':d});}catch(f){f&&Log[j(0x81)](f),process[j(0x88)](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
+ function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xb2;let f=c[d];return f;},a9d(a,b);}const a9p=a9d;function a9c(){const s=['ask','6uHDRBp','1760780RJPszr','42581WdMhlr','error','toString','chooseVPC','2643325IEzwfw','getMakaProjectConfig','8zbNuXH','create-security-group','csg','List\x20is\x20not\x20all\x20numbers','22,80,443','Web\x20App','split','5640ABeKmm','maka\x20aws:csg','name','(((.+)+)+)+$','6sSPFVI','450408Qebuxw','forEach','maka\x20aws\x20create-security-group','\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','Security\x20Group\x20Name:\x20[','3iUDMAR','match','216085dOJTEE','create','1345473YnVeUC','1272172xjSfWv','exit','apply','search'];a9c=function(){return s;};return a9c();}(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0xc8))/0x1*(parseInt(m(0xd0))/0x2)+-parseInt(m(0xc6))/0x3*(parseInt(m(0xcb))/0x4)+-parseInt(m(0xb3))/0x5*(parseInt(m(0xc0))/0x6)+parseInt(m(0xc1))/0x7+-parseInt(m(0xb5))/0x8*(-parseInt(m(0xca))/0x9)+-parseInt(m(0xd1))/0xa+-parseInt(m(0xd2))/0xb*(-parseInt(m(0xbc))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x586ba));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0xd4)]()[o(0xce)](o(0xbf))[o(0xd4)]()['constructor'](a9a)['search'](o(0xbf));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0xc9)]({'name':a9p(0xb6),'aliases':[a9p(0xb7)],'usage':a9p(0xc3),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a9p(0xc4),'examples':['maka\x20aws:create-secuirty-group',a9p(0xbd)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi'][q(0xb4)](),{appName:f}=d,g=await c[q(0xb2)](),h=b[q(0xbe)]?b[q(0xbe)]:''+f,i=await Actions[q(0xcf)](q(0xc5)+h+']')||h,j=await Actions[q(0xcf)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0xb9),k=j[q(0xbb)](',');k[q(0xc2)](l=>{const r=q;if(!l[r(0xc7)](/^\d+$/))throw r(0xb8);}),await c['ec2createSG']({'description':q(0xba),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xd3)](l),process[q(0xcc)](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
+ function a10c(){const k=['exit','942360geYRJA','9848542aRJevI','success','(((.+)+)+)+$','5465316YQoejz','Delete\x20an\x20Elastic\x20Container\x20Repository','Failed\x20to\x20delete\x20the\x20repository:\x20','67806MptOQT','create','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','6QmTkCQ','error','485937uSoyYw','search','36uZmBBR','decr','constructor','10nfeLpB','6629784xbWDmh','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','toString','104lPrpHP','Repository\x20','529035fcKvii','apply','ecrDeleteRepository','region','name'];a10c=function(){return k;};return a10c();}const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x13b;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x13c))/0x1+parseInt(f(0x146))/0x2*(-parseInt(f(0x148))/0x3)+parseInt(f(0x14a))/0x4*(-parseInt(f(0x153))/0x5)+-parseInt(f(0x140))/0x6+parseInt(f(0x14e))/0x7+parseInt(f(0x151))/0x8*(parseInt(f(0x143))/0x9)+-parseInt(f(0x14d))/0xa*(-parseInt(f(0x13d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x82492));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x150)]()[h(0x149)](h(0x13f))[h(0x150)]()[h(0x14c)](a10a)[h(0x149)](h(0x13f));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x144)]({'name':'delete-ecr','aliases':[a10i(0x14b)],'usage':a10i(0x14f),'requiredOpts':['name','region'],'validOpts':[],'shortDesc':a10i(0x141),'examples':[a10i(0x145),'maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1']},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x155)]({'repoName':b['name'],'region':b[j(0x156)]}),Log[j(0x13e)](j(0x152)+b[j(0x157)]+'\x20deleted\x20successfully\x20in\x20region\x20'+b[j(0x156)]+'.'),process[j(0x13b)](0x0);}catch(d){Log[j(0x147)](j(0x142)+b[j(0x157)]+'\x20in\x20region\x20'+b['region']+'.\x20Error:\x20'+d),process[j(0x13b)](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 a11c(){const k=['1197792XXLRDC','search','maka\x20aws:describe-instances','162492mkNiZN','toString','\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','27uyMmzv','6705340AWHWSA','7728895wlUtRM','apply','196946XuPhat','constructor','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','24167700srivni','describe-instances','create','ec2describeInstances','14tUrkhJ','maka\x20aws:di','12215040HNqzBw','(((.+)+)+)+$'];a11c=function(){return k;};return a11c();}const a11i=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xf9;let f=c[d];return f;},a11d(a,b);}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x103))/0x1+-parseInt(f(0x10a))/0x2*(parseInt(f(0x106))/0x3)+parseInt(f(0x107))/0x4+-parseInt(f(0x108))/0x5+-parseInt(f(0x100))/0x6*(-parseInt(f(0xfc))/0x7)+-parseInt(f(0xfe))/0x8+parseInt(f(0x10d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xeb77b));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a['toString']()[h(0x101)](h(0xff))[h(0x104)]()[h(0x10b)](a11a)[h(0x101)](h(0xff));});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(0xfa)]({'name':a11i(0xf9),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'shortDesc':a11i(0x10c),'examples':[a11i(0x102),a11i(0xfd)],'description':a11i(0x105)},async function(){const j=a11i;try{const a=new AWS();a[j(0xfb)]();}catch(b){b&&Log['error'](b),process['exit'](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(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 a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1*(-parseInt(f(0x1ec))/0x2)+parseInt(f(0x1ee))/0x3+parseInt(f(0x1ea))/0x4+parseInt(f(0x1e4))/0x5*(-parseInt(f(0x1e1))/0x6)+-parseInt(f(0x1e8))/0x7*(parseInt(f(0x1dc))/0x8)+-parseInt(f(0x1e9))/0x9*(parseInt(f(0x1de))/0xa)+-parseInt(f(0x1d9))/0xb*(-parseInt(f(0x1e0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x41ef4));function a12c(){const k=['search','6661424DARfgQ','create','exit','8JUPsdT','22KiqHwW','3325450Bqjsmy','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','12NizJkh','6EyggKj','constructor','toString','275155rsmTqS','error','maka\x20aws:dkp','apply','3730846CLTrUf','9RfphWO','686276WANAMy','maka\x20aws:describe-key-pairs','29186GFUGjM','ec2describeKeys','277269OXHFuo'];a12c=function(){return k;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1e3)]()[h(0x1d8)]('(((.+)+)+)+$')['toString']()[h(0x1e2)](a12a)[h(0x1d8)]('(((.+)+)+)+$');});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a12i(0x1da)]({'name':'describe-key-pairs','aliases':['dkp'],'usage':a12i(0x1eb),'validOpts':[],'shortDesc':a12i(0x1df),'examples':[a12i(0x1eb),a12i(0x1e6)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x1ed)]();}catch(b){b&&Log[j(0x1e5)](b),process[j(0x1db)](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(0x84))/0x1+parseInt(l(0x73))/0x2+-parseInt(l(0x87))/0x3+parseInt(l(0x67))/0x4+parseInt(l(0x66))/0x5*(-parseInt(l(0x78))/0x6)+-parseInt(l(0x68))/0x7*(-parseInt(l(0x65))/0x8)+parseInt(l(0x7d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xdfedf));function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x65;let f=c[d];return f;},a13d(a,b);}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x7e)]()[n(0x7f)](n(0x85))[n(0x7e)]()['constructor'](a13a)[n(0x7f)](n(0x85));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a13c(){const s=['10PBhOmy','4151080cnUqgP','7wKRSri','Not\x20deleting\x20secuirty\x20group','maka\x20aws:delete-sg','Deleting\x20a\x20','success','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','exit','Deleted\x20','maka\x20aws:dsg','sgId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','2553760tRsXjb','error','ask','delete-security-group','apply','3306642bggjiD','getMakaProjectConfig','\x20SG\x20NAME:\x20','includes','confirm','5457375fXzWRr','toString','search','dsg','ID:\x20','create','bright','551162llSBcq','(((.+)+)+)+$','notice','1456044MihMSI','\x20SGID:\x20','name','1079312OpHkQJ'];a13c=function(){return s;};return a13c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x82)]({'name':a13o(0x76),'aliases':[a13o(0x80)],'usage':a13o(0x6a),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a13o(0x6a),a13o(0x70)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x79)]();d=j['appName'];}const {sgList:f}=await a['getSecurityGroups']();f['forEach'](function(k){const q=p;c&&k['name'][q(0x7b)](d)?Log[q(0x86)](q(0x81)+k['id']+q(0x7a)+k[q(0x89)]+q(0x88)+k[q(0x71)]):Log[q(0x83)]('ID:\x20'+k['id']+q(0x7a)+k['name']+q(0x88)+k[q(0x71)]);});let g='';const h=await Actions[p(0x75)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x71)]);});if(!g)throw Log[p(0x74)](p(0x72));const i=await Actions[p(0x7c)](p(0x6b)+g+p(0x6d),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x6c)](p(0x6f)+g)):Log[p(0x74)](p(0x69)),process[p(0x6e)](0x0);}catch(k){k&&Log[p(0x74)](k),process[p(0x6e)](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(0x195))/0x1*(-parseInt(f(0x192))/0x2)+parseInt(f(0x19f))/0x3+parseInt(f(0x19c))/0x4+parseInt(f(0x1a2))/0x5+-parseInt(f(0x193))/0x6+-parseInt(f(0x19e))/0x7+-parseInt(f(0x196))/0x8*(parseInt(f(0x19b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x88eb0));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x194)]()[h(0x1a1)](h(0x19d))[h(0x194)]()[h(0x1a5)](a14a)[h(0x1a1)]('(((.+)+)+)+$');});a14a();import a14e from'./aws.command.js';function a14c(){const k=['List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','constructor','exit','success','apply','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','listAllEcrRepositories','9192mEVwiZ','991248WNOPzN','toString','163SzdObS','472936lOodjX','error','maka\x20aws:list-ecr','Completed\x20listing\x20ECR\x20repositories.','regions','9wHrjrT','3874496CeTLjo','(((.+)+)+)+$','508270uBhdwN','1726710sNOuTo','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','search','313525UtjJOe'];a14c=function(){return k;};return a14c();}import{Command}from'../../command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x18e;let f=c[d];return f;},a14d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'list-ecr','aliases':['lecr'],'usage':a14i(0x1a0),'requiredOpts':[],'validOpts':[a14i(0x19a)],'shortDesc':a14i(0x1a3),'examples':[a14i(0x198),a14i(0x190),'maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x191)](b[j(0x19a)]),Log[j(0x18e)](j(0x199)),process[j(0x1a6)](0x0);}catch(d){Log[j(0x197)](j(0x1a4)+d),process[j(0x1a6)](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 a15h=a15d;function a15c(){const j=['confirm','\x20is\x20still\x20running.','name','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','Reboot\x20an\x20EC2\x20instance','203253pNpbAJ','(((.+)+)+)+$','status','exit','instanceId','8937313PCHqRP','\x20Ready?','error','6636160eqIoVA','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','chooseInstance','668459wkMPeZ','maka\x20aws:rbi','822hWLncY','1877328AOHuFj','ec2rebootInstance','30115NSjpPH','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','9Gucnco','4dgaMtP','running','search','maka\x20aws:reboot-instance','36275100GRCRIx'];a15c=function(){return j;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x19c))/0x1+-parseInt(f(0x181))/0x2+parseInt(f(0x190))/0x3*(-parseInt(f(0x186))/0x4)+parseInt(f(0x183))/0x5*(-parseInt(f(0x19e))/0x6)+-parseInt(f(0x195))/0x7+parseInt(f(0x198))/0x8+parseInt(f(0x185))/0x9*(parseInt(f(0x18a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xa6136));const a15b=(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;};}()),a15a=a15b(this,function(){const g=a15d;return a15a[g(0x199)]()['search']('(((.+)+)+)+$')[g(0x199)]()['constructor'](a15a)[g(0x188)](g(0x191));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x181;let f=c[d];return f;},a15d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':['rbi'],'usage':a15h(0x189),'validOpts':[],'shortDesc':a15h(0x18f),'examples':[a15h(0x189),a15h(0x19d)]},async function(){const i=a15h;try{const a=new AWS(),b=await a[i(0x19b)]();if(b?.[i(0x192)]===i(0x187)){const c=await Actions[i(0x18b)](i(0x184)+b['name']+i(0x196));c&&b['instanceId']?a[i(0x182)]({'instanceId':b[i(0x194)]}):Log['error'](i(0x18e)+b[i(0x18d)]+i(0x18c));}else Log[i(0x197)](i(0x19a));}catch(d){d&&Log[i(0x197)](d),process[i(0x193)](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 a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0xa5))/0x1+parseInt(E(0xa3))/0x2+parseInt(E(0x70))/0x3+parseInt(E(0x89))/0x4*(-parseInt(E(0x91))/0x5)+parseInt(E(0x7f))/0x6*(parseInt(E(0x81))/0x7)+parseInt(E(0x98))/0x8*(parseInt(E(0xaa))/0x9)+-parseInt(E(0xab))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x65a27));function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x6e;let f=c[d];return f;},a16d(a,b);}function a16c(){const K=['Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','\x20for\x20','ask','rdn','registerDomain','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','register-domain-name','63464caLoaQ','State\x20[HI]:\x20','The\x20domain\x20name:\x20','Invalid\x202\x20character\x20country\x20code','OrganizationName','(((.+)+)+)+$','PUBLIC_BODY','confirm','220HofsEy','maka\x20aws:rdn\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','notice','domain','Contact\x20Email\x20[mail@example.com]:\x20','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','2568712CneEnv','maka\x20aws:register-domain-name\x20--domain=example.com','apply','exit','maka\x20aws:register-domain-name','Person','Are\x20you\x20sure?','create','123\x20Glorious\x20Way','values','PERSON','777296wkwNAO','ASSOCIATION','486752ZBkrEO','My\x20Comanpy,\x20LLC.','\x20/\x20Year)','error','Choose\x20contact\x20type','9RngHLl','2707170LDDOjq','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Domain\x20name\x20is\x20unavailable','1228473lxjBmD','mail@example.com','list','COMPANY','Zip\x20Code\x20[96816]:\x20','Contact','Contact\x20Last\x20Name\x20[Person]:\x20','checkDomainAvailability','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','options','constructor','96816','toString','\x20is\x20available\x20for:','24tQjSNK','Address\x20Line\x202:\x20','1317120TUQlzF'];a16c=function(){return K;};return a16c();}const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x7d)]()['search'](G(0x8e))[G(0x7d)]()[G(0x7b)](a16a)['search'](G(0x8e));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0xa1)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x9f)]({'name':a16I(0x88),'aliases':[a16I(0x85)],'usage':a16I(0x9c),'requiredOpts':[a16I(0x95)],'validOpts':[],'shortDesc':a16I(0x6e),'examples':[a16I(0x99),a16I(0x92)]},async function(a,b){const J=a16I;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[J(0x77)](c);if(f&&g){Log[J(0x94)](J(0x8b)+c+J(0x7e));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions['confirm']('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':J(0x72),'name':'contactType','message':J(0xa9),'choices':[J(0xa4),J(0x73),J(0xa2),J(0x8f),'RESELLER']},l=await Actions[J(0x84)]('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0x84)](J(0x93))||J(0x75),n=await Actions[J(0x84)](J(0x76))||J(0x9d),{contactType:o}=await Actions[J(0x7a)](k),p=await Actions[J(0x84)](J(0x82))||J(0xa0),q=await Actions['ask'](J(0x80)),r=await Actions['ask'](J(0x74))||J(0x7c),s=await Actions[J(0x84)](J(0x8a))||'HI',t=await Actions[J(0x84)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x8c));const v=await Actions[J(0x84)](J(0x78))||'+1.5555555555',w=await Actions[J(0x84)](J(0x97))||'+1.5555555556',x=await Actions[J(0x84)](J(0x96))||J(0x71),y=await Actions[J(0x90)]('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0xa2)){const C=await Actions['ask'](J(0x79))||J(0xa6);z[J(0x8d)]=C;}const A=h||0x0*parseInt(l);Log[J(0x94)](J(0x87)),Log['warn'](A+'\x20'+i+J(0x83)+l+'\x20years\x20('+h+'\x20'+i+J(0xa7));const B=await Actions['confirm'](J(0x9e));B&&await d[J(0x86)](z,c,parseInt(l),y);}}else throw J(0x6f);}catch(D){D&&Log[J(0xa8)](D),process[J(0x9b)](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
+ const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x12a))/0x1+parseInt(h(0x116))/0x2+parseInt(h(0x111))/0x3*(parseInt(h(0x124))/0x4)+parseInt(h(0x11d))/0x5+-parseInt(h(0x114))/0x6+-parseInt(h(0x118))/0x7*(-parseInt(h(0x112))/0x8)+-parseInt(h(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x5c5bd));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a['toString']()[j(0x122)](j(0x12e))[j(0x11a)]()[j(0x113)](a17a)['search'](j(0x12e));});a17a();function a17c(){const n=['name','toString','forEach','6890292frbUHc','3342350WGOMIV','create','maka\x20aws:rkp','exit','remove-key-pair','search','Not\x20deleting\x20keypair','275564RZaHvF','deleteKeyPair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','\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','success','apply','482750vGnZvS','Deleting\x20a\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','error','(((.+)+)+)+$','Please\x20choose\x20a\x20key\x20to\x20delete:','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','21TsGyRr','3934040akXsmN','constructor','2135166dUdetX','maka\x20aws:remove-key-pair','680076XMRRKE','confirm','7CmIUJb'];a17c=function(){return n;};return a17c();}import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x111;let f=c[d];return f;},a17d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x11e)]({'name':a17k(0x121),'aliases':['rkp'],'usage':a17k(0x115),'validOpts':[],'shortDesc':a17k(0x12c),'description':a17k(0x127),'examples':[a17k(0x115),a17k(0x11f)]},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions['ask'](l(0x12f));b?.[l(0x11b)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x119)]);});if(!c)throw Log['error'](l(0x130));const f=await Actions[l(0x117)](l(0x12b)+c+l(0x126),![]);f?(await a[l(0x125)](c),Log[l(0x128)]('Deleted\x20'+c)):Log['error'](l(0x123)),process[l(0x120)](0x0);}catch(g){g&&Log[l(0x12d)](g),process[l(0x120)](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(0x1b5))/0x1*(-parseInt(l(0x1af))/0x2)+-parseInt(l(0x1bd))/0x3+parseInt(l(0x1ab))/0x4+-parseInt(l(0x1a8))/0x5+parseInt(l(0x1a2))/0x6*(-parseInt(l(0x1c5))/0x7)+-parseInt(l(0x1ac))/0x8*(parseInt(l(0x1b4))/0x9)+parseInt(l(0x1bb))/0xa*(parseInt(l(0x1c9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x2d2d3));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a['toString']()[n(0x19c)](n(0x1c3))[n(0x1ad)]()[n(0x1a7)](a18a)[n(0x19c)](n(0x1c3));});function a18c(){const q=['11olhGVr','search','sep','join','host','maka\x20aws:set-host\x20--env\x20dev','\x0aSaved\x20host\x20','6sAzmzc','exit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','sth','private','constructor','1053340kzPZjV','utf8','\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','933980TFFUmP','1208aLMYTy','toString','apply','120oiaCwQ','set-host','getMakaProjectConfig','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','parse','17829oOiyQi','2460gOCUrs','ssh.json','appName','ask','cat\x20','public','10589360pQhlmD','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','337056YheeXd','maka\x20aws:sth\x20--env\x20prod','writeFileSync','isFile','privateIp','env','(((.+)+)+)+$','fsi','2363459yhMceG','success','inherit','getAppConfigPath'];a18c=function(){return q;};return a18c();}a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x19c;let f=c[d];return f;},a18d(a,b);}import a18g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a18o(0x1b0),'aliases':[a18o(0x1a5)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a18o(0x1c2)],'validOpts':[],'shortDesc':a18o(0x1bc),'description':a18o(0x1aa),'examples':[a18o(0x1a0),a18o(0x1be)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x1c4)][p(0x1c8)](b[p(0x1c2)]),f=this[p(0x1c4)][p(0x1b1)](),g=await c['chooseInstance'](),h=a18e[p(0x19e)](d,'ssh.json');!this[p(0x1c4)][p(0x1c0)](h)&&await this[p(0x1c4)]['template']({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x1b7)]},'config':f});const i=JSON[p(0x1b3)](a18f['readFileSync'](h,p(0x1a9))),j=await Actions[p(0x1b8)](p(0x1a4))||p(0x1ba);if(j){if(j===p(0x1ba)||j===p(0x1a6)){if(j==='public')i[p(0x19f)]=g?.['publicIp'];else j===p(0x1a6)&&(i[p(0x19f)]=g?.['privateIp']);}else throw p(0x1b2);}else i[p(0x19f)]=g?.[p(0x1c1)];a18f[p(0x1bf)](a18e[p(0x19e)](d,'ssh.json'),JSON['stringify'](i,null,0x2)),execSync(p(0x1b9)+a18e[p(0x19e)](d,p(0x1b6)),{'stdio':p(0x1c7)}),Log[p(0x1c6)](p(0x1a1)+j+'\x20IP\x20to\x20'+d+a18e[p(0x19d)]+p(0x1b6));}catch(k){k&&Log['error'](k),process[p(0x1a3)](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 a19c(){const k=['search','9FIIMvq','50HLkEmB','\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','status','constructor','291352hxmxAX','\x20Ready?','9SWkPun','11mAujDq','name','354600otniFU','instanceId','3777eBYKqi','Terminate\x20an\x20EC2\x20instance','ec2terminateInstance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:ti','(((.+)+)+)+$','3839032hoYjBq','running','exit','10743036pxqeqD','confirm','terminate-instance','764005QMvUZW','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','apply','error','168rtygmV','create','maka\x20aws:terminate-instance','99043IVImPf'];a19c=function(){return k;};return a19c();}(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x84))/0x1*(parseInt(f(0x79))/0x2)+parseInt(f(0x7f))/0x3*(-parseInt(f(0x7d))/0x4)+-parseInt(f(0x6f))/0x5+-parseInt(f(0x73))/0x6*(-parseInt(f(0x76))/0x7)+parseInt(f(0x8a))/0x8*(-parseInt(f(0x78))/0x9)+-parseInt(f(0x82))/0xa+parseInt(f(0x80))/0xb*(parseInt(f(0x6c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x4bc4a));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x71)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a['toString']()[h(0x77)]('(((.+)+)+)+$')['toString']()[h(0x7c)](a19a)[h(0x77)](h(0x89));});a19a();function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x6a;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(0x74)]({'name':a19i(0x6e),'aliases':['ti'],'usage':a19i(0x75),'validOpts':[],'shortDesc':a19i(0x85),'description':a19i(0x7a),'examples':[a19i(0x75),a19i(0x88)]},async function(){const j=a19i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.['instanceId']&&b?.[j(0x7b)]===j(0x6a)){const c=await Actions[j(0x6d)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x81)]+j(0x7e));c?a[j(0x86)]({'instanceId':b[j(0x83)]}):Log[j(0x72)](j(0x70)+b[j(0x81)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x72)](j(0x87));}catch(d){d&&Log[j(0x72)](d),process[j(0x6b)](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(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x91))/0x1+-parseInt(f(0x90))/0x2*(parseInt(f(0x9c))/0x3)+parseInt(f(0x9e))/0x4*(-parseInt(f(0x99))/0x5)+-parseInt(f(0x95))/0x6*(-parseInt(f(0x8f))/0x7)+parseInt(f(0x96))/0x8*(-parseInt(f(0x9a))/0x9)+parseInt(f(0x92))/0xa*(-parseInt(f(0x9b))/0xb)+parseInt(f(0x98))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xdf6e1));function a20c(){var h=['66JzuPxm','21hHqNWf','search','114828RDvxqR','7kRrIjG','418056VkQitB','1683363JEAUCW','628700InggUn','(((.+)+)+)+$','toString','6856356idiapG','48WHuIsY','constructor','24400140MzzdQZ','175gknuTT','1648656VPWpfk'];a20c=function(){return h;};return a20c();}var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var g=a20d;return a20a['toString']()['search'](g(0x93))[g(0x94)]()[g(0x97)](a20a)[g(0x9d)](g(0x93));});a20a();function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x8f;var f=c[d];return f;},a20d(a,b);}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(0x144))/0x1+-parseInt(n(0x15d))/0x2*(parseInt(n(0x153))/0x3)+parseInt(n(0x14a))/0x4+-parseInt(n(0x143))/0x5+-parseInt(n(0x161))/0x6+parseInt(n(0x15b))/0x7*(parseInt(n(0x15e))/0x8)+parseInt(n(0x151))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x8bbb4));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x164)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x152)]()[p(0x162)](p(0x15a))[p(0x152)]()['constructor'](a21a)[p(0x162)]('(((.+)+)+)+$');});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x143;let f=c[d];return f;},a21d(a,b);}a21a();import a21e from'path';import a21f from'fs';function a21c(){const t=['search','slice','apply','join','3687450jRZQwc','897757xyjSrn','maka\x20build',').\x20Update?','splice','concat','error','968316kSfZmc','force','invokeMeteorCommand','fsi','confirm','create','build','15069960papoOQ','toString','21ZTaQNV','getGlobalMeteorVersion','argv','app.tar.gz','checkMeteorPackage','\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','pathFromProject','(((.+)+)+)+$','4102KgndTB','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','1078MSMhID','4376zxhchB','--release','existsSync','154206ZzFgrH'];a21c=function(){return t;};return a21c();}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(0x14f)]({'name':a21q(0x150),'usage':a21q(0x145),'validOpts':[a21q(0x14b)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a21q(0x158),'examples':[a21q(0x145)]},async function(a,b){const r=a21q;try{await this[r(0x14d)][r(0x157)]('autoupdate',{'shouldInstall':!![]});const c=b[r(0x14b)];if(!c){const g=this[r(0x14d)][r(0x154)](),h=this['fsi']['getProjectMeteorVersion'](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x14e)]('This\x20project\x27s\x20meteor\x20version\x20('+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+r(0x146));j&&this[r(0x14d)][r(0x14c)]('update',[r(0x15f),g]);}}const d=[this[r(0x14d)][r(0x159)]({'pathParts':[r(0x150)]})][r(0x148)](process[r(0x155)][r(0x163)](0x3)),f=a21e[r(0x165)](this[r(0x14d)][r(0x159)]({}),'build',r(0x156));if(a21f[r(0x160)](f)){const k=c??await Actions[r(0x14e)](r(0x15c));if(!k)throw Log[r(0x149)]('Aborted.');}d['forEach']((l,m)=>{const s=r;l==='--force'&&d[s(0x147)](m,0x2);}),this[r(0x14d)]['invokeMeteorCommand'](r(0x150),d);}catch(l){console[r(0x149)](l),process['exit'](0x0);}});export default BuildCommand;