@maka/maka-cli 4.12.3 → 4.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/bundle/obf/package.json +1 -16
  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 -0
  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 -0
  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 -0
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/tool.js +1 -1
  140. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  141. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/https/https.class.js +1 -1
  148. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  149. package/bundle/obf/src/tools/log/log.class.js +1 -1
  150. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/options/options.class.js +1 -1
  152. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  153. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  158. package/package.json +1 -16
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "4.12.3",
3
+ "version": "4.12.4",
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.",
@@ -102,25 +102,10 @@
102
102
  "javascript-obfuscator": "^4.1.0",
103
103
  "jest": "^29.7.0",
104
104
  "mkdirp": "^3.0.1",
105
- "pkg": "^5.8.1",
106
105
  "ts-jest": "^29.1.1",
107
106
  "typescript": "^5.2.2",
108
107
  "wait-on": "^7.0.1"
109
108
  },
110
- "pkg": {
111
- "assets": [
112
- "package.json",
113
- ".npmrc",
114
- "bundle/typescript/src/commands",
115
- "bundle/typescript/src/generators",
116
- "bundle/typescript/src/templates",
117
- "bundle/typescript/src/tools"
118
- ],
119
- "scripts": [
120
- "typescript/**/*.js",
121
- "typescript/**/*.d.js"
122
- ]
123
- },
124
109
  "engines": {
125
110
  "node": ">=14.0.0"
126
111
  }
@@ -1 +1 @@
1
- const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x171))/0x1*(-parseInt(n(0x19b))/0x2)+parseInt(n(0x18e))/0x3+-parseInt(n(0x189))/0x4+parseInt(n(0x198))/0x5+parseInt(n(0x188))/0x6+-parseInt(n(0x169))/0x7*(-parseInt(n(0x186))/0x8)+-parseInt(n(0x1a8))/0x9*(parseInt(n(0x163))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xc14ce));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x18b)]()[p(0x168)](p(0x199))['toString']()[p(0x19a)](a0a)[p(0x168)](p(0x199));});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x161;let f=c[d];return f;},a0d(a,b);}a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';function a0c(){const A=['maxOptsLength','Name','Command\x20not\x20found','32xSoaKO','_handler','2946846bXvlmG','3571888UjVzge','bind','toString','apply','validateMakaProject','6129PTgqiS','addCommand','usage','exit','options','minOptsLength','Too\x20many\x20options','Command.create\x20requires\x20a\x20handler\x20function!','sort','maybeProxyCommandToMeteor','6248910EnldLy','(((.+)+)+)+$','constructor','2HIzxbL','Command\x20','error','minArgLength','invoke','mustHaveMeteorInstalled','Description','run','help','processAndRunCommand','call','mustBeLoggedIn','unshift','189DQeTVM','function','name','Command\x20requires\x20a\x20name','header','tableList','validateMakaSubscription','Command\x20format\x20is\x20incorrect','addCommand\x20requires\x20a\x20Command\x20instance','maxArgLength','shortDesc','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Alias','fsi','Too\x20few\x20arguments','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateMeteorInstall','764510njEZUs','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','split','notice','keys','search','2577806XyxZKs','Too\x20few\x20options','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','slice','Command.create\x20requires\x20some\x20options!','_commands','mustBeInMakaProject','aliases','74203JhRnis','match','find','generate','number','push','There\x20is\x20no\x20Meteor\x20application\x20here','LIGHT','getGlobalConfig','DARK','murder','length','light','setColorMode','assign','forEach','pallet','Command\x20requires\x20a\x20handler\x20function'];a0c=function(){return A;};return a0c();}let _prevCmd='';export class Command extends Tool{[a0q(0x192)];[a0q(0x16e)];constructor(a,b){const r=a0q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[r(0x1aa)])throw new Error(r(0x1ab));if(typeof b!=='function')throw new Error(r(0x182));this[r(0x192)]=Object[r(0x17f)]({},a),this[r(0x1aa)]=this[r(0x192)][r(0x1aa)],this[r(0x16e)]=[],this[r(0x187)]=b[r(0x18a)](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0x16d));if(typeof b!==s(0x1a9))throw new Error(s(0x195));const d=new Command(a,b);return c=c||a0f,Object[s(0x17f)](d,{'parent':c?.[s(0x192)]?.['name']}),c['addCommand'](d),d;}[a0q(0x18f)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1b0));this[t(0x16e)][t(0x176)](a);}async[a0q(0x1a2)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x1b5)][u(0x179)](),d=c[u(0x181)]===u(0x17d)?ColorMode[u(0x178)]:ColorMode[u(0x17a)];Log[u(0x17e)](d),await this[u(0x1ae)](this);}catch(f){Log[u(0x19d)](f),process[u(0x191)](0x0);}return await this['invoke'](a,b);}catch(g){process['exit'](0x1);}}async[a0q(0x19f)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x192)];try{if(this[v(0x192)][v(0x1aa)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[v(0x16e)][v(0x17c)]>=0x0,g=b[v(0x1a3)]||b['h'];if(f&&g){if(this[v(0x16e)][v(0x17c)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][v(0x16f)]){const h=this[v(0x18d)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x192)][v(0x1a6)]){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this['options'][v(0x1a0)]){const j=this[v(0x162)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x192)][v(0x19e)]==='number'){if(a['length']<this['options'][v(0x19e)]){Log[v(0x19d)](v(0x1b6));throw new UsageError();}}if(typeof this[v(0x192)]['maxArgLength']===v(0x175)){if(a[v(0x17c)]>=this['options'][v(0x1b1)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[v(0x192)][v(0x193)]===v(0x175)){if(Object['keys'](b)[v(0x17c)]<this[v(0x192)][v(0x193)]){Log['error'](v(0x16a));throw new UsageError();}}if(typeof this[v(0x192)][v(0x183)]===v(0x175)){if(Object[v(0x167)](b)[v(0x17c)]>=this[v(0x192)][v(0x183)]){Log[v(0x19d)](v(0x194));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[v(0x192)]),_prevCmd=a[0x0];}return await this[v(0x187)][v(0x1a5)](this,a,b);}catch(k){Log[v(0x190)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[v(0x1ad)](this[v(0x16e)]),Log[v(0x1ac)](v(0x164));else{if(k instanceof MustBeInProjectError)Log['error'](v(0x16b));else{if(k instanceof NoMeteorFoundError)Log[v(0x19d)](v(0x161)),Log['notice'](v(0x1b3));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x19d)](v(0x177));else k instanceof MustBeLoggedIn&&(Log[v(0x19d)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log[v(0x166)]('Please\x20run\x20\x22maka\x20login\x22'));}}}process[v(0x191)](0x1);}}[a0q(0x1ad)](a){const w=a0q,b=new a0e({});b[w(0x176)]([w(0x184),w(0x1b4),w(0x1a1)]),a[w(0x196)]((c,d)=>{const x=w;return c[x(0x1aa)]['localeCompare'](d['name']);})[w(0x180)](c=>{const y=w;c[y(0x1aa)]!==y(0x17b)&&c[y(0x1aa)]!=='play'&&b[y(0x176)]([c[y(0x1aa)],c[y(0x170)](),c[y(0x1b2)]()]);}),Log['bright'](b[w(0x18b)]());}async[a0q(0x1a4)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x165)](':');if(!d||d[z(0x17c)]===0x0)throw z(0x1af);if(d[0x0]==='generate'||d[0x0]==='g'&&d[z(0x17c)]>0x1){const h=this['_commands'][z(0x173)](j=>j[z(0x172)](z(0x174)));if(!h)throw z(0x185);await this['validateMakaSubscription'](h);const i=d[z(0x16c)](0x1)['join'](':');return b[z(0x1a7)](i),await h[z(0x1a2)](b,c);}let f=this[z(0x16e)],g;for(const j of d){g=f[z(0x173)](k=>k['match'](j));if(!g)try{await this[z(0x1b5)][z(0x197)]();}catch(k){throw z(0x19c)+j+'\x20not\x20found';}g&&(await this[z(0x1ae)](g),f=g[z(0x16e)]);}if(g){const l=await g[z(0x1a2)](b,c);return l;}else throw'Command\x20not\x20found';}catch(m){Log[z(0x19d)](m),process['exit'](0x1);}}}
1
+ const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x1e6))/0x1*(-parseInt(n(0x22a))/0x2)+parseInt(n(0x205))/0x3+-parseInt(n(0x203))/0x4+parseInt(n(0x1fa))/0x5+-parseInt(n(0x1e7))/0x6*(parseInt(n(0x1f5))/0x7)+parseInt(n(0x209))/0x8+-parseInt(n(0x1fe))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x8f939));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(0x236)]()[o(0x22f)](o(0x1f9))[o(0x236)]()['constructor'](a0a)['search'](o(0x1f9));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0c(){const z=['validateMakaProject','aliases','keys','validateMeteorInstall','maxArgLength','notice','bind','run','Command.create\x20requires\x20a\x20handler\x20function!','forEach','call','Please\x20run\x20\x22maka\x20login\x22','join','unshift','getGlobalConfig','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','light','Please\x20run\x20\x22maka\x20install\x20meteor\x22','function','_handler','push','processAndRunCommand','error','assign','_commands','split','localeCompare','options','murder','match','2nmKAfH','mustBeInMakaProject','fsi','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','search','usage','help','Too\x20few\x20options','number','maxOptsLength','find','toString','validateMakaSubscription','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','setColorMode','Too\x20many\x20arguments','pallet','427657aNVwLC','2120658DgTffl','play','Command\x20not\x20found','mustHaveMeteorInstalled','length','minArgLength','create','validateUserIsLoggedIn','Name','exit','generate','bright','invoke','\x20not\x20found','7uZFjYw','Command\x20requires\x20a\x20name','slice','Sub-Commands:','(((.+)+)+)+$','1397015qCGQiA','Alias','name','maybeProxyCommandToMeteor','375876BbwWNF','addCommand\x20requires\x20a\x20Command\x20instance','validateParams','There\x20is\x20no\x20Meteor\x20application\x20here','minOptsLength','4214108gDbUiM','header','3163884mwANYJ','Command\x20requires\x20a\x20handler\x20function','shortDesc','Too\x20many\x20options','2201080HaQYNc','addCommand','tableList'];a0c=function(){return z;};return a0c();}function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0x227)];['_commands'];constructor(a,b){const q=a0p;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[q(0x1fc)])throw new Error(q(0x1f6));if(typeof b!==q(0x21e))throw new Error(q(0x206));this['options']=Object[q(0x223)]({},a),this[q(0x1fc)]=this['options'][q(0x1fc)],this[q(0x224)]=[],this[q(0x21f)]=b[q(0x212)](this);}static[a0p(0x1ed)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x21e))throw new Error(r(0x214));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.['options']?.[r(0x1fc)]}),c['addCommand'](d),d;}[a0p(0x20a)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x1ff));this['_commands'][s(0x220)](a);}async[a0p(0x213)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x22c)][t(0x21a)](),d=c[t(0x1e5)]===t(0x21c)?ColorMode['LIGHT']:ColorMode['DARK'];Log[t(0x1e3)](d),await this[t(0x237)](this);}catch(f){Log[t(0x222)](f),process[t(0x1f0)](0x0);}return await this[t(0x1f3)](a,b);}catch(g){process['exit'](0x1);}}async['invoke'](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[u(0x227)][u(0x1fc)]!==u(0x1f1)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x1eb)]===0x0)&&this['_commands'][u(0x1eb)]>=0x0,g=b[u(0x231)]||b['h'];if(f&&g){if(this[u(0x224)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x227)][u(0x22b)]){const h=this[u(0x20c)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x227)]['mustBeLoggedIn']){const i=await this[u(0x1ee)]();if(!i)throw new MustBeLoggedIn();}if(this[u(0x227)][u(0x1ea)]){const j=this[u(0x20f)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0x227)]['minArgLength']===u(0x233)){if(a[u(0x1eb)]<this['options'][u(0x1ec)]){Log[u(0x222)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[u(0x227)][u(0x210)]===u(0x233)){if(a[u(0x1eb)]>=this[u(0x227)]['maxArgLength']){Log['error'](u(0x1e4));throw new UsageError();}}if(typeof this['options']['minOptsLength']===u(0x233)){if(Object[u(0x20e)](b)['length']<this[u(0x227)][u(0x202)]){Log['error'](u(0x232));throw new UsageError();}}if(typeof this[u(0x227)][u(0x234)]==='number'){if(Object[u(0x20e)](b)['length']>=this[u(0x227)][u(0x234)]){Log['error'](u(0x208));throw new UsageError();}}}}b=await this[u(0x200)](a,b,this[u(0x227)]),_prevCmd=a[0x0];}return await this[u(0x21f)][u(0x216)](this,a,b);}catch(k){Log[u(0x230)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0x211)](u(0x1f8)),this[u(0x20b)](this[u(0x224)]),Log[u(0x204)](u(0x22e));else{if(k instanceof MustBeInProjectError)Log[u(0x222)](u(0x238));else{if(k instanceof NoMeteorFoundError)Log['error'](u(0x21b)),Log[u(0x211)](u(0x21d));else{if(k instanceof NoMeteorAppFoundError)Log[u(0x222)](u(0x201));else k instanceof MustBeLoggedIn&&(Log['error'](u(0x22d)),Log[u(0x211)](u(0x217)));}}}process['exit'](0x1);}}[a0p(0x20b)](a){const v=a0p,b=new a0e({});b[v(0x220)]([v(0x1ef),v(0x1fb),'Description']),a['sort']((c,d)=>{const w=v;return c[w(0x1fc)][w(0x226)](d[w(0x1fc)]);})[v(0x215)](c=>{const x=v;c[x(0x1fc)]!==x(0x228)&&c[x(0x1fc)]!==x(0x1e8)&&b['push']([c[x(0x1fc)],c[x(0x20d)](),c[x(0x207)]()]);}),Log[v(0x1f2)](b[v(0x236)]());}async[a0p(0x221)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x225)](':');if(!d||d[y(0x1eb)]===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===y(0x1f1)||d[0x0]==='g'&&d[y(0x1eb)]>0x1){const h=this[y(0x224)][y(0x235)](j=>j[y(0x229)](y(0x1f1)));if(!h)throw'Command\x20not\x20found';await this[y(0x237)](h);const i=d[y(0x1f7)](0x1)[y(0x218)](':');return b[y(0x219)](i),await h[y(0x213)](b,c);}let f=this[y(0x224)],g;for(const j of d){g=f[y(0x235)](k=>k['match'](j));if(!g)try{await this[y(0x22c)][y(0x1fd)]();}catch(k){throw'Command\x20'+j+y(0x1f4);}g&&(await this['validateMakaSubscription'](g),f=g[y(0x224)]);}if(g){const l=await g[y(0x213)](b,c);return l;}else throw y(0x1e9);}catch(m){Log[y(0x222)](m),process['exit'](0x1);}}}
@@ -1 +1 @@
1
- function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x16d;var f=c[d];return f;},a1d(a,b);}(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x178))/0x1*(-parseInt(f(0x176))/0x2)+parseInt(f(0x17c))/0x3+parseInt(f(0x174))/0x4+-parseInt(f(0x170))/0x5*(parseInt(f(0x16e))/0x6)+parseInt(f(0x179))/0x7*(-parseInt(f(0x16f))/0x8)+-parseInt(f(0x175))/0x9*(-parseInt(f(0x17b))/0xa)+-parseInt(f(0x171))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x20acf));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x173)]()[h(0x17a)](h(0x16d))[h(0x173)]()[h(0x172)](a1a)[h(0x17a)](h(0x16d));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';function a1c(){var i=['1AvDwWz','389627ZkmmSS','search','250TokDOG','127611euPPMz','(((.+)+)+)+$','24wwGMue','16wgfqPm','69590uwgvjy','3234385Eewmew','constructor','toString','1050400enIzvO','32040nzsawK','401462YHUrcx','apply'];a1c=function(){return i;};return a1c();}import'./register.js';import'./patreon.js';import'./profile.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1d3))/0x1*(parseInt(f(0x1da))/0x2)+parseInt(f(0x1d0))/0x3+parseInt(f(0x1d6))/0x4+parseInt(f(0x1d2))/0x5*(parseInt(f(0x1d5))/0x6)+parseInt(f(0x1cd))/0x7+parseInt(f(0x1d9))/0x8+-parseInt(f(0x1d4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x27f12));function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1cd;var f=c[d];return f;},a1d(a,b);}var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1d1)]()[h(0x1cf)](h(0x1d7))['toString']()[h(0x1d8)](a1a)['search'](h(0x1d7));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';function a1c(){var i=['6oXRSjV','804660dEzNIe','(((.+)+)+)+$','constructor','358512JLGxih','2foeXta','1419481NzJqvw','apply','search','711393CAdsPU','toString','866415FGjQZo','23249PsDtAn','6469407CMMyzr'];a1c=function(){return i;};return a1c();}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
@@ -1 +1 @@
1
- const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x179))/0x1+-parseInt(h(0x177))/0x2*(parseInt(h(0x16c))/0x3)+parseInt(h(0x158))/0x4*(-parseInt(h(0x159))/0x5)+-parseInt(h(0x154))/0x6+parseInt(h(0x16b))/0x7*(parseInt(h(0x16f))/0x8)+parseInt(h(0x164))/0x9+-parseInt(h(0x160))/0xa*(-parseInt(h(0x170))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x9018a));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x15b)]()[j(0x174)]('(((.+)+)+)+$')[j(0x15b)]()['constructor'](a2a)['search'](j(0x171));});a2a();import{Command}from'../command.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x154;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 k=a2d,c=a2e[k(0x162)]({'input':process[k(0x176)],'output':process[k(0x17e)]});c[k(0x178)](k(0x165),async d=>{const l=k;if(d['toLowerCase']()===l(0x16a)){c[l(0x169)]();return;}try{const e=await HTTPS[l(0x17f)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x161)](e['data']);if(f['error'])throw new Error(f[l(0x15f)][l(0x180)]);Log[l(0x17a)](l(0x15e)+f?.[l(0x172)][0x0]?.['text'][l(0x173)]());}catch(g){Log[l(0x15f)](g),process[l(0x16a)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2c(){const o=['search','cert','stdin','4414gGYkiz','question','466598nCJOgt','bright','openapikey','openai','ChatGPT\x20style\x20AI\x20interface','stdout','askGPT','message','3817062vxESSE','notice','isFile','Using\x20CA\x20Cert\x20','2580296KUkNQy','5wtmPTj','Using\x20OpenAI\x20Key\x20','toString','create','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','GPT:\x20','error','4721390JheZrj','parse','createInterface','cacert','310266XkGPnj','You:\x20','apply','fsi','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','close','exit','567OtZzTs','705DRRpma','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','log','48PleCbl','44xvlwWF','(((.+)+)+)+$','choices','trim'];a2c=function(){return o;};return a2c();}Command[a2m(0x15c)]({'name':'ai','description':a2m(0x17d),'validOpts':[a2m(0x163),a2m(0x17b)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x163)]&&(this[n(0x167)]['isFile'](b[n(0x163)])?(c=b[n(0x163)],Log[n(0x155)](n(0x157)+c)):Log[n(0x15f)](n(0x15d)+c));const d=await this['fsi']['getGlobalConfig']();if(d[n(0x175)]){if(this[n(0x167)][n(0x156)](d[n(0x175)]))c=d[n(0x175)];else throw Log[n(0x15f)](n(0x168)+c);}let f='';if(b[n(0x17b)])f=b[n(0x17b)],Log[n(0x155)](n(0x15a)+f);else{if(d[n(0x17c)])f=d[n(0x17c)];else throw Log['error'](n(0x16d));}console[n(0x16e)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x15f)](g),process['exit'](0x1);}});
1
+ const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0xfd))/0x1*(parseInt(h(0x11a))/0x2)+-parseInt(h(0x108))/0x3*(parseInt(h(0x114))/0x4)+parseInt(h(0x10d))/0x5*(parseInt(h(0x128))/0x6)+parseInt(h(0x12a))/0x7*(parseInt(h(0x10e))/0x8)+-parseInt(h(0x106))/0x9*(-parseInt(h(0x118))/0xa)+parseInt(h(0x10a))/0xb*(-parseInt(h(0x105))/0xc)+-parseInt(h(0x115))/0xd*(parseInt(h(0x111))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xd296f));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(0x104)]()[i(0x10f)](i(0x11c))[i(0x104)]()[i(0x12b)](a2a)[i(0x10f)](i(0x11c));});function a2c(){const n=['openapikey','text','Using\x20OpenAI\x20Key\x20','stdin','cert','6ziYxiu','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','4555824ESiWjw','constructor','error','53778MJCBeA','createInterface','log','Using\x20CA\x20Cert\x20','ChatGPT\x20style\x20AI\x20interface','data','cacert','toString','2739624ZzosWC','1476QieXNb','toLowerCase','536196ETZJpb','isFile','55dxxBSP','askGPT','choices','6508470ACDnqh','8iKqXmZ','search','openai','2643382HGwnTb','create','question','20zpUHnA','13IvACVX','getGlobalConfig','fsi','62590POHpGV','parse','4tgCKOj','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','(((.+)+)+)+$','exit','trim','close','bright','stdout','GPT:\x20'];a2c=function(){return n;};return a2c();}a2a();import{Command}from'../command.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xfd;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(0x126)],'output':process[j(0x121)]});c[j(0x113)]('You:\x20',async d=>{const k=j;if(d[k(0x107)]()==='exit'){c[k(0x11f)]();return;}try{const e=await HTTPS[k(0x10b)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x119)](e[k(0x102)]);if(f['error'])throw new Error(f[k(0x12c)]['message']);Log[k(0x120)](k(0x122)+f?.[k(0x10c)][0x0]?.[k(0x124)][k(0x11e)]());}catch(g){Log[k(0x12c)](g),process[k(0x11d)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x112)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':['cacert',a2l(0x123)],'shortDesc':a2l(0x101),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this['fsi'][m(0x109)](b[m(0x103)])?(c=b['cacert'],Log['notice'](m(0x100)+c)):Log['error']('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[m(0x117)][m(0x116)]();if(d[m(0x127)]){if(this[m(0x117)][m(0x109)](d[m(0x127)]))c=d[m(0x127)];else throw Log[m(0x12c)](m(0x11b)+c);}let f='';if(b[m(0x123)])f=b['openapikey'],Log['notice'](m(0x125)+f);else{if(d[m(0x110)])f=d[m(0x110)];else throw Log[m(0x12c)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[m(0xff)](m(0x129)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x12c)](g),process[m(0x11d)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0xe9))/0x1+-parseInt(f(0xeb))/0x2*(parseInt(f(0xe7))/0x3)+parseInt(f(0xe8))/0x4*(-parseInt(f(0xe0))/0x5)+-parseInt(f(0xe1))/0x6+-parseInt(f(0xe3))/0x7*(-parseInt(f(0xec))/0x8)+-parseInt(f(0xe4))/0x9+parseInt(f(0xe2))/0xa*(parseInt(f(0xea))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xbbafa));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xe6)]()[h(0xed)]('(((.+)+)+)+$')[h(0xe6)]()[h(0xe5)](a3a)[h(0xed)]('(((.+)+)+)+$');});a3a();function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xdf;var f=c[d];return f;},a3d(a,b);}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';function a3c(){var i=['11xsArKe','2PRliZk','16Chimte','search','apply','10FKsRFU','8922582pPnYWL','11321070hOIbFw','3029551yakAkU','685971LqRGQG','constructor','toString','2235741emSfBi','327748CcjNtE','1243506MUODuE'];a3c=function(){return i;};return a3c();}import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x14b))/0x1*(-parseInt(f(0x146))/0x2)+parseInt(f(0x14f))/0x3*(parseInt(f(0x153))/0x4)+-parseInt(f(0x147))/0x5+-parseInt(f(0x154))/0x6*(-parseInt(f(0x149))/0x7)+parseInt(f(0x145))/0x8+parseInt(f(0x151))/0x9*(-parseInt(f(0x152))/0xa)+parseInt(f(0x14d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x89ec6));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x14c)]()['search'](h(0x150))['toString']()[h(0x14e)](a3a)[h(0x148)](h(0x150));});a3a();import'./aws.command.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x145;var f=c[d];return f;},a3d(a,b);}import'./ci.sub.cmd.js';function a3c(){var i=['toString','3704085FBLbPO','constructor','9XPCLqb','(((.+)+)+)+$','162BLQXCG','102310PFEUxK','1407388qtsmVn','6LjKpoW','2704800WNYjhB','124526icjpwo','4019515umUdeL','search','501697sWMkay','apply','4IQwfeo'];a3c=function(){return i;};return a3c();}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;function a4c(){const j=['10OkRPXu','131290PojIsy','(((.+)+)+)+$','aws','toString','42JNOFtP','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','apply','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','constructor','55659Brioms','create','maka\x20aws:<sub-command>','745254eFkqnP','143hmNSmf','16zadTbI','528665tyvzyA','14575236RoThGI','search','4pBJhMB','212646pEEBIo','1434830YfpqNM'];a4c=function(){return j;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x7d))/0x1+-parseInt(f(0x83))/0x2*(-parseInt(f(0x77))/0x3)+-parseInt(f(0x80))/0x4*(parseInt(f(0x82))/0x5)+parseInt(f(0x88))/0x6*(-parseInt(f(0x81))/0x7)+-parseInt(f(0x7c))/0x8*(-parseInt(f(0x7a))/0x9)+parseInt(f(0x84))/0xa*(-parseInt(f(0x7b))/0xb)+parseInt(f(0x7e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x42e6a));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x8a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x87)]()[h(0x7f)](h(0x85))[h(0x87)]()[h(0x76)](a4a)[h(0x7f)]('(((.+)+)+)+$');});a4a();import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x76;let f=c[d];return f;},a4d(a,b);}import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x78)]({'name':a4i(0x86),'usage':a4i(0x79),'validOpts':[],'shortDesc':a4i(0x89),'description':a4i(0x8b)},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(0xc7))/0x1+-parseInt(f(0xd9))/0x2+-parseInt(f(0xd7))/0x3*(parseInt(f(0xd3))/0x4)+-parseInt(f(0xcb))/0x5+-parseInt(f(0xd1))/0x6*(parseInt(f(0xd5))/0x7)+parseInt(f(0xc6))/0x8*(parseInt(f(0xce))/0x9)+-parseInt(f(0xd0))/0xa*(-parseInt(f(0xd2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x41359));function a4c(){const j=['28075YRMhrC','create','constructor','99OmsMJK','search','50WtevrA','3093474GPWtEm','798820zjKlta','28XLIqMX','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','7IbmhuK','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','62628pWxaoy','aws','220584nCZSeI','363464BTSaei','181852OQDMtJ','(((.+)+)+)+$','toString','apply'];a4c=function(){return j;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xc9)]()['search'](h(0xc8))[h(0xc9)]()[h(0xcd)](a4a)[h(0xcf)]('(((.+)+)+)+$');});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xc6;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xcc)]({'name':a4i(0xd8),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0xd4),'description':a4i(0xd6)},async function(){throw UsageError;});export default AWSCommand;
@@ -0,0 +1 @@
1
+ const a5i=a5d;function a5c(){const k=['Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','cecr','exit','Repository\x20created\x20successfully.','constructor','2ateceM','12msjWzG','maka\x20aws:cecr\x20--name=my-new-repo','Repository\x20URI:\x20','search','3460935NalNEn','success','38549mWjXZp','toString','httpStatusCode','error','171764ISIhwJ','create','(((.+)+)+)+$','maka\x20aws:create-ecr\x20--name=my-new-repo','59030NnHgkh','24MbVKLN','700624vGbbBR','repository','repositoryUri','4764024xsQqva','Create\x20an\x20Elastic\x20Container\x20Repository','1727TNcSrD','24ndnGkJ','6TpOZvM','create-ecr','35406982IUBuqc','ecrCreateRepository'];a5c=function(){return k;};return a5c();}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xd7))/0x1*(parseInt(g(0xe8))/0x2)+-parseInt(g(0xcd))/0x3*(parseInt(g(0xe2))/0x4)+-parseInt(g(0xdc))/0x5*(parseInt(g(0xce))/0x6)+-parseInt(g(0xde))/0x7*(parseInt(g(0xe7))/0x8)+parseInt(g(0xeb))/0x9+parseInt(g(0xe6))/0xa*(-parseInt(g(0xed))/0xb)+parseInt(g(0xd8))/0xc*(parseInt(g(0xd0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x8bf87));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0xdf)]()['search'](h(0xe4))[h(0xdf)]()[h(0xd6)](a5a)[h(0xdb)](h(0xe4));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xcd;let f=c[d];return f;},a5d(a,b);}Command[a5i(0xe3)]({'name':a5i(0xcf),'aliases':[a5i(0xd3)],'usage':'maka\x20aws:create-ecr','requiredOpts':['name'],'validOpts':[],'shortDesc':a5i(0xec),'examples':[a5i(0xe5),a5i(0xd9)]},async function(a,b){const j=a5i;try{const c=new AWS(),d=await c[j(0xd1)](b);d&&d['$metadata'][j(0xe0)]===0xc8&&d[j(0xe9)]?(Log[j(0xdd)](j(0xd5)),Log['notice'](j(0xda)+d[j(0xe9)][j(0xea)])):Log['error'](j(0xd2)),process[j(0xd4)](0x0);}catch(f){Log[j(0xe1)](f),process[j(0xd4)](0x1);}},a5e);
@@ -1 +1 @@
1
- const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0x1f0))/0x1+-parseInt(i(0x1ed))/0x2*(parseInt(i(0x202))/0x3)+parseInt(i(0x1f3))/0x4*(parseInt(i(0x1e8))/0x5)+parseInt(i(0x1ea))/0x6*(-parseInt(i(0x1ef))/0x7)+parseInt(i(0x1ff))/0x8*(parseInt(i(0x1f6))/0x9)+-parseInt(i(0x1f5))/0xa*(parseInt(i(0x1ec))/0xb)+-parseInt(i(0x1e9))/0xc*(-parseInt(i(0x201))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x730fa));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x1f8)]()[k(0x1fa)](k(0x1ee))[k(0x1f8)]()['constructor'](a5a)[k(0x1fa)](k(0x1ee));});a5a();function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a5d(a,b);}import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const n=['search','create-hosted-zone','maka\x20aws:create-hosted-zone\x20--domain=example.com','chz','publicIp','5459792updpIM','domain','39DqnDxj','1266648UlJMpF','exit','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','route53CreateHostedZone','3165zWNiEm','6716976txPiSa','3424998GzlEwb','create','11YzhLSL','4jbMKOs','(((.+)+)+)+$','7xSIBEV','342675qITPcE','chooseInstance','error','4724rVIfSk','Instance\x20not\x20found','8800610kYvudb','9LqYzip','apply','toString','Set\x20hosted\x20zone\x20to\x20an\x20instance?'];a5c=function(){return n;};return a5c();}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[a5l(0x1eb)]({'name':a5l(0x1fb),'aliases':[a5l(0x1fd)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a5l(0x200)],'validOpts':[],'shortDesc':a5l(0x204),'examples':[a5l(0x1fc),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b[m(0x200)],d=new AWS();d[m(0x1e7)](c);const f=await Actions['confirm'](m(0x1f9));if(f){const g=await d[m(0x1f1)]();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x1f2)](m(0x205));d['linkEC2ToRoute53'](g['id'],g[m(0x1fe)],c);}else throw m(0x1f4);}}catch(h){h&&Log[m(0x1f2)](h),process[m(0x203)](0x0);}},a5e);
1
+ const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x1e0))/0x1+parseInt(i(0x1cf))/0x2*(parseInt(i(0x1e8))/0x3)+-parseInt(i(0x1de))/0x4*(-parseInt(i(0x1db))/0x5)+parseInt(i(0x1e6))/0x6+-parseInt(i(0x1e2))/0x7*(parseInt(i(0x1cd))/0x8)+parseInt(i(0x1e4))/0x9*(parseInt(i(0x1d6))/0xa)+-parseInt(i(0x1d0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xdae05));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cc;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1d7)]()[k(0x1dd)](k(0x1df))[k(0x1d7)]()[k(0x1e7)](a6a)[k(0x1dd)](k(0x1df));});function a6c(){const n=['route53CreateHostedZone','maka\x20aws:chz\x20--domain=example.com','create-hosted-zone','88rmjlpZ','publicIp','10bsjTSv','15982538Ahpewn','Instance\x20not\x20found','chooseInstance','exit','confirm','maka\x20aws:create-hosted-zone','40730KUhakl','toString','maka\x20aws:create-hosted-zone\x20--domain=example.com','domain','error','15tmfona','create','search','1492724eZwkEX','(((.+)+)+)+$','28763JIOWiH','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','675017VlwadZ','Set\x20hosted\x20zone\x20to\x20an\x20instance?','2007LuvYZF','apply','5499246ZSGwVP','constructor','262254fizCbf','chz'];a6c=function(){return n;};return a6c();}a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6l(0x1dc)]({'name':a6l(0x1cc),'aliases':[a6l(0x1e9)],'usage':a6l(0x1d5),'requiredOpts':[a6l(0x1d9)],'validOpts':[],'shortDesc':a6l(0x1e1),'examples':[a6l(0x1d8),a6l(0x1eb)]},async function(a,b){const m=a6l;try{const c=b[m(0x1d9)],d=new AWS();d[m(0x1ea)](c);const f=await Actions[m(0x1d4)](m(0x1e3));if(f){const g=await d[m(0x1d2)]();if(g?.['id']){if(!g[m(0x1ce)])throw Log[m(0x1da)]('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d['linkEC2ToRoute53'](g['id'],g[m(0x1ce)],c);}else throw m(0x1d1);}}catch(h){h&&Log[m(0x1da)](h),process[m(0x1d3)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x1aa))/0x1*(-parseInt(ae(0x151))/0x2)+-parseInt(ae(0x1ae))/0x3+-parseInt(ae(0x1a4))/0x4*(-parseInt(ae(0x154))/0x5)+-parseInt(ae(0x16f))/0x6+-parseInt(ae(0x1b4))/0x7+parseInt(ae(0x16c))/0x8+parseInt(ae(0x1af))/0x9*(parseInt(ae(0x1a2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xc88c3));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x151;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const af=a6d;return a6a[af(0x17a)]()[af(0x175)]('(((.+)+)+)+$')[af(0x17a)]()['constructor'](a6a)['search']('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';function a6c(){const at=['toString','**\x20Available\x20Security\x20Groups\x20**','EC2\x20Name:\x20[','Web\x20App','create-instance','number','User\x20Data:','readFileSync','join','Instance\x20Count:\x20','build\x20on\x20','string','ec2describeKeys','*\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','Security\x20Group\x20Name:\x20[','alias','No\x20instance\x20has\x20been\x20created.','\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','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Create\x20new\x20AWS\x20instance','fsi','user-data','deleteKeyPair','maka\x20aws:create-instance\x20--env\x20dev','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','confirm','cider','exit','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','t3.micro','sort','ec2create','environment','Remove\x20the\x20security\x20group\x20','chooseVPC','\x20:\x20','Setting\x20SG\x20ID\x20to:\x20','Instace\x20Type:\x20','4299990IfDzIj','cidr','3022736qVlCBi','name','\x20CIDR:\x20','create','maka-cli','\x20DESCRIPTION:\x20','1638761qlMFCo','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','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','isFile','1858863MbtSGL','9PUYxht','\x20SG\x20NAME:\x20','amazon','Would\x20you\x20like\x20to\x20include\x20user\x20data?','\x20SUBNETID:\x20','10444917IjABsL','1:1','getTime','Security\x20Group:\x20','env','forEach','split','ImageID:','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','getMakaProjectConfig','2QTZsCO','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','subnetId','5rCUtAM','ID:\x20','bright','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','22,80,443','ec2createSG','success','created-by','push','date','deleteSecurityGroup','getConfigFromShorthand','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SGID:\x20','Name','unlinkSync','createFile','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20the\x20key-pair\x20to:\x20','ask','log','notice','Subnet:\x20','12338840SauFfb','parse','sgId','8601624kCbyAY','Creating\x20user\x20data\x20file\x20in\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','desc','error','\x20AMIID:\x20','search','Desc','amiId','**\x20Available\x20Subnets\x20**','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20'];a6c=function(){return at;};return a6c();}import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ag(0x1a7)]({'name':a6ag(0x17e),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ag(0x193),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a6ag(0x18f),'description':a6ag(0x18b)},async function(a,b){const ah=a6ag;try{const c=this['fsi'][ah(0x1bd)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ah(0x15f)](b[ah(0x1b8)]),i=this[ah(0x190)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions['ask'](ah(0x17c)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x195)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ah(0x15a)](ah(0x167)+r);}else try{Log[ah(0x16a)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ah(0x186)]({'suggestion':A}),C=await Actions[ah(0x168)](ah(0x171))||'-1';if(parseInt(C)<0x0){Log[ah(0x173)](ah(0x1ab)),Log['notice'](ah(0x18a));return;}B?.[ah(0x1b9)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D['name'],Log[ai(0x15a)](ai(0x167)+r));});}catch(D){Log[ah(0x173)](D);}l=await d[ah(0x19e)]();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ah(0x19e)]():l;u=await Actions[ah(0x168)](ah(0x188)+k+']')||k;const F=await Actions[ah(0x168)](ah(0x179))||ah(0x158),G=F[ah(0x1ba)](',');await d[ah(0x159)]({'description':ah(0x17d),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x16a)](ah(0x17b)),J[ah(0x1b9)](function(L){const aj=ah;L[aj(0x1a5)]===u?Log[aj(0x16a)](aj(0x155)+L['id']+aj(0x1b0)+L[aj(0x1a5)]+aj(0x161)+L[aj(0x16e)]):Log[aj(0x156)](aj(0x155)+L['id']+'\x20SG\x20NAME:\x20'+L['name']+aj(0x161)+L[aj(0x16e)]);});const K=await Actions[ah(0x168)](ah(0x165)+H+']\x20')||H[ah(0x17a)]();J[ah(0x1b9)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L['sgId'],Log[ak(0x15a)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ah(0x15a)](ah(0x1a0)+m+'\x0a');if(m==='')throw Log[ah(0x173)](ah(0x157));}catch(L){Log[ah(0x173)](L);}try{const M=0x7e6;Log['notice']('**\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+ah(0x187))[ah(0x17a)](),O=JSON[ah(0x16d)](N),P=[],Q=[];O[ah(0x1b9)](function(S){const al=ah;if(S[al(0x189)]===al(0x1b1)){const T=S[al(0x176)]['split'](al(0x184))[0x1];P[al(0x15c)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ah(0x19a)](function(S,T){const am=ah;return new Date(T['date'])[am(0x1b6)]()-new Date(S[am(0x15d)])[am(0x1b6)]();}),P['forEach'](function(S,T){const an=ah;Q[an(0x15c)]({'id':T,'amiId':S[an(0x177)],'desc':S[an(0x172)]});}),Q[ah(0x1b9)](function(S){const ao=ah;console['log'](ao(0x155)+S['id']+ao(0x174)+S[ao(0x177)]+ao(0x1a9)+S[ao(0x172)]);});const R=await Actions[ah(0x168)](ah(0x166))||'0';Q[ah(0x1b9)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x177)],Log[ap(0x15a)]('Setting\x20AMI\x20ID\x20to\x20'+n+ap(0x19f)+S[ap(0x172)]));});if(n==='')throw Log[ah(0x173)](ah(0x157));}catch(S){Log['error'](S);}try{Log[ah(0x16a)](ah(0x178));const T=execSync(ah(0x18e))[ah(0x17a)](),U=JSON[ah(0x16d)](T),V=[];U[ah(0x1b9)](function(X,Y){const aq=ah;V[aq(0x15c)]({'id':Y,'cidr':X[aq(0x196)],'az':X['az'],'subnetId':X['subnetId']});}),V[ah(0x1b9)](function(X){const ar=ah;console[ar(0x169)](ar(0x155)+X['id']+ar(0x1a6)+X[ar(0x1a3)]+'\x20AZONE:\x20'+X['az']+ar(0x1b3)+X['subnetId']);});const W=await Actions[ah(0x168)](ah(0x160))||'0';V[ah(0x1b9)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x153)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ah(0x173)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x168)](ah(0x18d))||ah(0x1b5),Z=Y[ah(0x1ba)](':')[0x0],a0=Y[ah(0x1ba)](':')[0x1];typeof parseInt(Z)===ah(0x17f)&&typeof parseInt(a0)===ah(0x17f)&&Log['success'](ah(0x198)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ah(0x168)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ah(0x199);typeof a2===ah(0x185)&&(o=a2);}catch(a3){Log[ah(0x173)](a3);}let x='';try{const a4=await Actions[ah(0x195)](ah(0x1b2),![]);a4&&(x=a6f[ah(0x182)](i,ah(0x191)),Log[ah(0x16a)](ah(0x170)+x),await this[ah(0x190)][ah(0x164)]({'filePath':x,'data':''}),await Actions[ah(0x195)](ah(0x1bc)));}catch(a5){Log[ah(0x173)](a5);}try{const a6=JSON['parse'](execSync(ah(0x18c)+p+ah(0x152))[ah(0x17a)]())[0x0]['subnet'];Log[ah(0x16a)](ah(0x1bb)+n),Log[ah(0x16a)](ah(0x183)+v+':'+w),Log['notice'](ah(0x1a1)+o),Log[ah(0x16a)]('Key-Pair:\x20'+r),Log['notice'](ah(0x1b7)+m),Log['notice'](ah(0x16b)+a6);if(x){Log[ah(0x16a)](ah(0x180)+x);const a8=a6g[ah(0x181)](x)[ah(0x17a)]();Log[ah(0x16a)](a8);}const a7=await Actions[ah(0x195)](ah(0x1ac));if(a7){const a9=await d[ah(0x19b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x15b),'Value':ah(0x1a8)},{'Key':ah(0x19c),'Value':h},{'Key':ah(0x162),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x15a)](ah(0x194)),Log[ah(0x156)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ah(0x16a)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ah(0x195)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ah(0x192)](r),f[ah(0x1ad)](s)&&a6g[ah(0x163)](s));const ab=await Actions[ah(0x195)](ah(0x19d)+m+'\x20?',!![]);ab&&d[ah(0x15e)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ah(0x173)](ad),process[ah(0x197)](0x0);}},a6e);
1
+ function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x167;let f=c[d];return f;},a7d(a,b);}const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x173))/0x1*(parseInt(ae(0x1d4))/0x2)+parseInt(ae(0x190))/0x3+-parseInt(ae(0x1b5))/0x4*(-parseInt(ae(0x192))/0x5)+parseInt(ae(0x184))/0x6+-parseInt(ae(0x1d0))/0x7+-parseInt(ae(0x194))/0x8*(parseInt(ae(0x1cb))/0x9)+parseInt(ae(0x1ce))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x22622));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x176)]()[ag(0x1c6)](ag(0x18c))[ag(0x176)]()[ag(0x1b9)](a7a)[ag(0x1c6)](ag(0x18c));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a7c(){const au=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','435540UoAkQm','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Creating\x20user\x20data\x20file\x20in\x20','Instance\x20Count:\x20','554HxjOze','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','ImageID:','\x20SUBNETID:\x20','log','desc','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ask','\x20:\x20','Key-Pair:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','cider','827hWcHiC','confirm','**\x20Available\x20AMIs\x20**','toString','getSecurityGroups','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20SGID:\x20','\x20CIDR:\x20','push','Subnet:\x20','Setting\x20the\x20key-pair\x20to:\x20','\x20DESCRIPTION:\x20','split','**\x20Available\x20Subnets\x20**','Remove\x20the\x20keypair\x20','Desc','ID:\x20','1281960IWhFmn','readFileSync','**\x20Available\x20key-pairs\x20**','sort','maka\x20aws:ci\x20--env\x20prod','build\x20on\x20','ec2create','\x20AZONE:\x20','(((.+)+)+)+$','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','\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','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','487707zStABW','getMakaProjectConfig','57165oEMLgD','getConfigFromShorthand','1448zvzKlf','env','ec2createSG','isFile','forEach','EC2\x20Name:\x20[','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','number','maka\x20aws:create-instance\x20--env\x20dev','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','maka\x20aws:create-instance','Would\x20you\x20like\x20to\x20include\x20user\x20data?','subnetId','maka-cli','fsi','user-data','Security\x20Group\x20Name:\x20[','No\x20instance\x20has\x20been\x20created.','22,80,443','Create\x20new\x20AWS\x20instance','deleteKeyPair','deleteSecurityGroup','notice','error','apply','join','subnet','exit','\x20SG\x20NAME:\x20','sgId','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=*','8eeeWHG','success','create-instance','bright','constructor','ec2describeKeys','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','name','Setting\x20Subnet\x20ID\x20to\x20','Setting\x20SG\x20ID\x20to:\x20','amiId','getTime','create','**\x20Available\x20Security\x20Groups\x20**','unlinkSync','parse','cidr','search','Security\x20Group:\x20','Setting\x20AMI\x20ID\x20to\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','chooseVPC','2781gwVzuF','alias','Name','889670Dgzpjf'];a7c=function(){return au;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x1c1)]({'name':a7ah(0x1b7),'aliases':['ci'],'usage':a7ah(0x1a0),'examples':[a7ah(0x19e),a7ah(0x188)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0x1a9),'description':a7ah(0x18e)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x1a4)][ai(0x191)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1a4)][ai(0x193)](b[ai(0x195)]),i=this[ai(0x1a4)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x16e)](ai(0x199)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x1b6)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0x1ac)](ai(0x186));const A=r?r:k,B=await d[ai(0x1ba)]({'suggestion':A}),C=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1ad)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log['notice'](ai(0x1a7));return;}B?.[ai(0x198)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x1b6)](aj(0x17d)+r));});}catch(D){Log[ai(0x1ad)](D);}l=await d[ai(0x1ca)]();const t=await Actions[ai(0x174)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x1ca)]():l;u=await Actions[ai(0x16e)](ai(0x1a6)+k+']')||k;const F=await Actions[ai(0x16e)](ai(0x1cf))||ai(0x1a8),G=F[ai(0x17f)](',');await d[ai(0x196)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x177)](u);if(I===''){Log['notice'](ai(0x1c2)),J[ai(0x198)](function(L){const ak=ai;L[ak(0x1bc)]===u?Log[ak(0x1ac)](ak(0x183)+L['id']+ak(0x1b2)+L[ak(0x1bc)]+ak(0x179)+L[ak(0x1b3)]):Log[ak(0x1b8)](ak(0x183)+L['id']+ak(0x1b2)+L[ak(0x1bc)]+'\x20SGID:\x20'+L[ak(0x1b3)]);});const K=await Actions[ai(0x16e)](ai(0x19c)+H+']\x20')||H[ai(0x176)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1b3)],Log[al(0x1b6)](al(0x1be)+m+'\x0a'));});}else m=I,Log[ai(0x1b6)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1ad)](ai(0x1d1));}catch(L){Log[ai(0x1ad)](L);}try{const M=0x7e6;Log[ai(0x1ac)](ai(0x175));const N=execSync(ai(0x1b4)+M+ai(0x19a))[ai(0x176)](),O=JSON[ai(0x1c4)](N),P=[],Q=[];O[ai(0x198)](function(S){const am=ai;if(S[am(0x1cc)]==='amazon'){const T=S[am(0x182)]['split'](am(0x189))[0x1];P[am(0x17b)]({'amiId':S['ID'],'desc':S[am(0x182)],'date':T});}}),P[ai(0x187)](function(S,T){const an=ai;return new Date(T['date'])[an(0x1c0)]()-new Date(S['date'])['getTime']();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x17b)]({'id':T,'amiId':S[ao(0x1bf)],'desc':S['desc']});}),Q[ai(0x198)](function(S){const ap=ai;console[ap(0x16b)]('ID:\x20'+S['id']+'\x20AMIID:\x20'+S[ap(0x1bf)]+ap(0x17e)+S[ap(0x16c)]);});const R=await Actions[ai(0x16e)](ai(0x18f))||'0';Q[ai(0x198)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1bf)],Log[aq(0x1b6)](aq(0x1c8)+n+aq(0x16f)+S['desc']));});if(n==='')throw Log[ai(0x1ad)](ai(0x1d1));}catch(S){Log[ai(0x1ad)](S);}try{Log[ai(0x1ac)](ai(0x180));const T=execSync(ai(0x171))[ai(0x176)](),U=JSON[ai(0x1c4)](T),V=[];U[ai(0x198)](function(X,Y){const ar=ai;V[ar(0x17b)]({'id':Y,'cidr':X[ar(0x172)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x198)](function(X){const as=ai;console['log']('ID:\x20'+X['id']+as(0x17a)+X[as(0x1c5)]+as(0x18b)+X['az']+as(0x16a)+X[as(0x1a2)]);});const W=await Actions[ai(0x16e)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x198)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1a2)],Log[at(0x1b6)](at(0x1bd)+p));});if(p==='')throw Log[ai(0x1ad)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x1ad)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x16e)](ai(0x168))||'1:1',Z=Y[ai(0x17f)](':')[0x0],a0=Y[ai(0x17f)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x19d)&&Log[ai(0x1b6)](ai(0x1bb)+Z+':'+a0);}catch(a1){Log[ai(0x1ad)](a1);}try{const a2=await Actions['ask'](ai(0x16d))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x1ad)](a3);}let x='';try{const a4=await Actions[ai(0x174)](ai(0x1a1),![]);a4&&(x=a7f[ai(0x1af)](i,ai(0x1a5)),Log['notice'](ai(0x1d2)+x),await this[ai(0x1a4)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x174)](ai(0x167)));}catch(a5){Log[ai(0x1ad)](a5);}try{const a6=JSON[ai(0x1c4)](execSync(ai(0x178)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x176)]())[0x0][ai(0x1b0)];Log[ai(0x1ac)](ai(0x169)+n),Log[ai(0x1ac)](ai(0x1d3)+v+':'+w),Log[ai(0x1ac)]('Instace\x20Type:\x20'+o),Log[ai(0x1ac)](ai(0x170)+r),Log[ai(0x1ac)](ai(0x1c7)+m),Log['notice'](ai(0x17c)+a6);if(x){Log['notice']('User\x20Data:'+x);const a8=a7g[ai(0x185)](x)[ai(0x176)]();Log[ai(0x1ac)](a8);}const a7=await Actions['confirm'](ai(0x18d));if(a7){const a9=await d[ai(0x18a)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x1a3)},{'Key':'environment','Value':h},{'Key':ai(0x1cd),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0x19f)),Log[ai(0x1b8)](ai(0x19b)));}else{Log[ai(0x1ac)](ai(0x1c9));const aa=await Actions[ai(0x174)](ai(0x181)+r+'\x20?',!![]);aa&&(d[ai(0x1aa)](r),f[ai(0x197)](s)&&a7g[ai(0x1c3)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x1ab)](m);}}catch(ac){Log[ai(0x1ad)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x1b1)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a7j=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x186;let f=c[d];return f;},a7d(a,b);}(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x193))/0x1+parseInt(g(0x19b))/0x2+parseInt(g(0x187))/0x3+-parseInt(g(0x18d))/0x4*(-parseInt(g(0x192))/0x5)+parseInt(g(0x19c))/0x6+-parseInt(g(0x198))/0x7*(parseInt(g(0x19a))/0x8)+-parseInt(g(0x186))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xaccff));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x194)]()[i(0x188)](i(0x19e))[i(0x194)]()[i(0x189)](a7a)[i(0x188)](i(0x19e));});function a7c(){const l=['15fwpgxP','346007kCcAlg','toString','createKeyPair','create','exit','785967NXkWah','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','24RrXPHK','629888wWjHPa','6409530MNaKTA','\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','(((.+)+)+)+$','2498454QTQPim','401067AGeEMz','search','constructor','fsi','maka\x20aws:ckp\x20--env\x20prod','env','201876TUJoTl','maka\x20aws:create-key-pair\x20--env\x20prod','apply','create-key-pair','ckp'];a7c=function(){return l;};return a7c();}a7a();import a7e 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[a7j(0x196)]({'name':a7j(0x190),'aliases':[a7j(0x191)],'usage':'maka\x20aws:create-key-pair','examples':[a7j(0x18e),a7j(0x18b)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x18c)],'validOpts':[],'shortDesc':a7j(0x199),'description':a7j(0x19d)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x18a)]['getConfigFromShorthand'](b['env']);c[k(0x195)]({'env':d});}catch(f){f&&Log['error'](f),process[k(0x197)](0x0);}},a7e);
1
+ function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x14e;let f=c[d];return f;},a8d(a,b);}const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x155))/0x1*(parseInt(g(0x167))/0x2)+-parseInt(g(0x164))/0x3*(parseInt(g(0x154))/0x4)+-parseInt(g(0x159))/0x5+-parseInt(g(0x15c))/0x6*(-parseInt(g(0x157))/0x7)+-parseInt(g(0x150))/0x8*(-parseInt(g(0x14f))/0x9)+parseInt(g(0x152))/0xa*(parseInt(g(0x15b))/0xb)+-parseInt(g(0x15e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x5c80c));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(0x163)]()[h(0x165)](h(0x160))[h(0x163)]()['constructor'](a8a)['search'](h(0x160));});a8a();function a8c(){const k=['toString','27177wXRopC','search','create-key-pair','6oDlCNW','error','29439rRHAbh','616tnwGLk','\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','1170QhcRtf','ckp','312thbgPt','95116bPfJhV','exit','175IvpEBW','getConfigFromShorthand','85965RpDCYM','maka\x20aws:create-key-pair','41569cARwTf','179130cUMJzu','env','628200mxBFth','maka\x20aws:ckp\x20--env\x20prod','(((.+)+)+)+$','maka\x20aws:create-key-pair\x20--env\x20prod','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance'];a8c=function(){return k;};return a8c();}import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8i(0x166),'aliases':[a8i(0x153)],'usage':a8i(0x15a),'examples':[a8i(0x161),a8i(0x15f)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8i(0x162),'description':a8i(0x151)},async function(a,b){const j=a8i;try{const c=new AWS(),d=this['fsi'][j(0x158)](b[j(0x15d)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[j(0x14e)](f),process[j(0x156)](0x0);}},a8e);
@@ -1 +1 @@
1
- const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0xda))/0x1+parseInt(m(0xe8))/0x2+-parseInt(m(0xef))/0x3+parseInt(m(0xf0))/0x4*(parseInt(m(0xe1))/0x5)+-parseInt(m(0xe2))/0x6+-parseInt(m(0xf4))/0x7*(-parseInt(m(0xee))/0x8)+-parseInt(m(0xed))/0x9*(-parseInt(m(0xe0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xf1ac5));function a8c(){const s=['ask','split','7KYIWoV','chooseVPC','forEach','maka\x20aws:create-secuirty-group','(((.+)+)+)+$','Security\x20Group\x20Name:\x20[','22,80,443','1633333BjiJwl','name','create','csg','apply','error','3150470gOnXLd','10UAOEpK','9083544idAOgT','constructor','toString','search','maka\x20aws:csg','match','1331994FHTfgD','Web\x20App','exit','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','fsi','9QOhRAZ','1516608lTDgyl','2554122yJoaai','1102476Xpqmob','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2'];a8c=function(){return s;};return a8c();}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0xe4)]()['search'](o(0xd7))[o(0xe4)]()[o(0xe3)](a8a)[o(0xe5)](o(0xd7));});a8a();import a8e from'./aws.command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xd7;let f=c[d];return f;},a8d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8p(0xdc)]({'name':'create-security-group','aliases':[a8p(0xdd)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a8p(0xf1),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a8p(0xf7),a8p(0xe6)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0xec)]['getMakaProjectConfig'](),{appName:f}=d,g=await c[q(0xf5)](),h=b['name']?b[q(0xdb)]:''+f,i=await Actions[q(0xf2)](q(0xd8)+h+']')||h,j=await Actions[q(0xf2)](q(0xeb))||q(0xd9),k=j[q(0xf3)](',');k[q(0xf6)](l=>{const r=q;if(!l[r(0xe7)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c['ec2createSG']({'description':q(0xe9),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xdf)](l),process[q(0xea)](0x1);}},a8e);
1
+ const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0xaf))/0x1*(parseInt(m(0xb3))/0x2)+parseInt(m(0xb6))/0x3*(-parseInt(m(0xb4))/0x4)+-parseInt(m(0xc5))/0x5+parseInt(m(0xb8))/0x6+-parseInt(m(0xbe))/0x7+parseInt(m(0xb2))/0x8*(-parseInt(m(0xcc))/0x9)+parseInt(m(0xc2))/0xa*(parseInt(m(0xc9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x27271));function a9c(){const s=['chooseVPC','create','22JZtMcw','forEach','getMakaProjectConfig','7245dxZJur','maka\x20aws:create-secuirty-group','search','ask','257036BJJZug','apply','exit','584ddtckw','2ARXkCb','831684bqPFGN','Web\x20App','3FwghZG','split','653952hSHakk','toString','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','match','csg','Security\x20Group\x20Name:\x20[','433909ZEvrwN','(((.+)+)+)+$','name','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','3756010inSVPj','\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','maka\x20aws\x20create-security-group','570580UTJJSw','maka\x20aws:csg'];a9c=function(){return s;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xad;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0xb9)]()[o(0xad)]('(((.+)+)+)+$')['toString']()['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(0xc8)]({'name':'create-security-group','aliases':[a9p(0xbc)],'usage':a9p(0xc4),'validOpts':[],'shortDesc':a9p(0xba),'description':a9p(0xc3),'examples':[a9p(0xcd),a9p(0xc6)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi'][q(0xcb)](),{appName:f}=d,g=await c[q(0xc7)](),h=b['name']?b[q(0xc0)]:''+f,i=await Actions[q(0xae)](q(0xbd)+h+']')||h,j=await Actions[q(0xae)](q(0xc1))||'22,80,443',k=j[q(0xb7)](',');k[q(0xca)](l=>{const r=q;if(!l[r(0xbb)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c['ec2createSG']({'description':q(0xb5),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process[q(0xb1)](0x1);}},a9e);
@@ -0,0 +1 @@
1
+ const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1c5))/0x1+-parseInt(f(0x1bf))/0x2*(parseInt(f(0x1c7))/0x3)+parseInt(f(0x1cb))/0x4*(-parseInt(f(0x1c8))/0x5)+-parseInt(f(0x1cc))/0x6*(parseInt(f(0x1c4))/0x7)+-parseInt(f(0x1b5))/0x8+parseInt(f(0x1b7))/0x9*(-parseInt(f(0x1b8))/0xa)+parseInt(f(0x1c6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x95af2));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const g=a10d;return a10a['toString']()[g(0x1b6)](g(0x1bc))['toString']()[g(0x1d1)](a10a)['search'](g(0x1bc));});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';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a10d(a,b);}Command[a10h(0x1b9)]({'name':a10h(0x1c0),'aliases':[a10h(0x1c9)],'usage':a10h(0x1cd),'requiredOpts':[a10h(0x1c3),a10h(0x1c2)],'validOpts':[],'shortDesc':'Delete\x20an\x20Elastic\x20Container\x20Repository','examples':[a10h(0x1bb),a10h(0x1bd)]},async function(a,b){const i=a10h;try{const c=new AWS();await c[i(0x1ba)]({'repoName':b[i(0x1c3)],'region':b['region']}),Log[i(0x1c1)](i(0x1d0)+b[i(0x1c3)]+i(0x1ca)+b[i(0x1c2)]+'.'),process[i(0x1cf)](0x0);}catch(d){Log['error']('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[i(0x1c3)]+i(0x1ce)+b[i(0x1c2)]+i(0x1be)+d),process[i(0x1cf)](0x1);}},a10e);function a10c(){const j=['2691UwesSa','32050fBSwuE','create','ecrDeleteRepository','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','(((.+)+)+)+$','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','.\x20Error:\x20','2zGoAPn','delete-ecr','success','region','name','97594ixCKBf','1056960qKrlUV','52317716Yzzsud','2980566zNieZV','7705GCvpKA','decr','\x20deleted\x20successfully\x20in\x20region\x20','372Zzadfg','384lPJKtK','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','\x20in\x20region\x20','exit','Repository\x20','constructor','789376fxmYeS','search'];a10c=function(){return j;};return a10c();}
@@ -1 +1 @@
1
- const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x172))/0x1+-parseInt(f(0x16e))/0x2+parseInt(f(0x17a))/0x3*(parseInt(f(0x171))/0x4)+parseInt(f(0x177))/0x5+-parseInt(f(0x169))/0x6*(parseInt(f(0x170))/0x7)+parseInt(f(0x176))/0x8+parseInt(f(0x16f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x57bbc));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x168)]()[h(0x179)](h(0x174))[h(0x168)]()['constructor'](a9a)[h(0x179)]('(((.+)+)+)+$');});a9a();function a9c(){const k=['148660fBIMiY','apply','(((.+)+)+)+$','\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','256384ETPrtP','1006645zTXwyy','describe-instances','search','1086621vNhitH','exit','toString','49218cMKdvO','error','maka\x20aws:di','ec2describeInstances','maka\x20aws:describe-instances','1399414PwxesQ','6469002qArxed','91KuvIHC','4JfETDY'];a9c=function(){return k;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x167;let f=c[d];return f;},a9d(a,b);}import a9e 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':a9i(0x178),'aliases':['di'],'usage':a9i(0x16d),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a9i(0x16d),a9i(0x16b)],'description':a9i(0x175)},async function(){const j=a9i;try{const a=new AWS();a[j(0x16c)]();}catch(b){b&&Log[j(0x16a)](b),process[j(0x167)](0x1);}},a9e);
1
+ const a11h=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x187;let f=c[d];return f;},a11d(a,b);}function a11c(){const j=['6938286ZoTFrw','1055752jjYezv','\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','277316NQPftf','error','(((.+)+)+)+$','constructor','search','describe-instances','create','7856600PKfLGT','74292070bROcrv','exit','9lcxLYE','5514WOhUzr','ec2describeInstances','1294BCrbQM','maka\x20aws:describe-instances','70SHsgNF','1366593bwSdWk','toString'];a11c=function(){return j;};return a11c();}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x188))/0x1+parseInt(f(0x19a))/0x2*(-parseInt(f(0x198))/0x3)+parseInt(f(0x18d))/0x4+-parseInt(f(0x194))/0x5+-parseInt(f(0x18a))/0x6+parseInt(f(0x187))/0x7*(-parseInt(f(0x18b))/0x8)+-parseInt(f(0x197))/0x9*(-parseInt(f(0x195))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xda986));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const g=a11d;return a11a[g(0x189)]()[g(0x191)](g(0x18f))[g(0x189)]()[g(0x190)](a11a)['search'](g(0x18f));});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[a11h(0x193)]({'name':a11h(0x192),'aliases':['di'],'usage':a11h(0x19b),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':a11h(0x18c)},async function(){const i=a11h;try{const a=new AWS();a[i(0x199)]();}catch(b){b&&Log[i(0x18e)](b),process[i(0x196)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1a5))/0x1*(-parseInt(f(0x1b2))/0x2)+-parseInt(f(0x1b1))/0x3+parseInt(f(0x1a3))/0x4+-parseInt(f(0x1b3))/0x5*(parseInt(f(0x1a4))/0x6)+parseInt(f(0x1a9))/0x7*(parseInt(f(0x1ad))/0x8)+-parseInt(f(0x1aa))/0x9*(-parseInt(f(0x1a6))/0xa)+-parseInt(f(0x1ab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xb2ee6));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1a8)]()[h(0x1af)](h(0x19f))[h(0x1a8)]()['constructor'](a10a)[h(0x1af)]('(((.+)+)+)+$');});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x19f;let f=c[d];return f;},a10d(a,b);}a10a();import a10e from'./aws.command.js';function a10c(){const k=['19631wncdzQ','206740sboBLb','maka\x20aws:dkp','toString','2790389dgKaXX','477zVepTs','3052599knVmbv','ec2describeKeys','16IqstJf','maka\x20aws:describe-key-pairs','search','create','1145469wxfxaF','94NNTUCZ','670570RVYbsR','(((.+)+)+)+$','exit','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','apply','3297028UiCMdH','18aSVWzr'];a10c=function(){return k;};return a10c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x1b0)]({'name':'describe-key-pairs','aliases':['dkp'],'usage':a10i(0x1ae),'validOpts':[],'shortDesc':a10i(0x1a1),'examples':[a10i(0x1ae),a10i(0x1a7)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x1ac)]();}catch(b){b&&Log['error'](b),process[j(0x1a0)](0x0);}},a10e);
1
+ const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1c7))/0x1*(parseInt(f(0x1c5))/0x2)+parseInt(f(0x1ca))/0x3+parseInt(f(0x1d3))/0x4*(-parseInt(f(0x1d2))/0x5)+-parseInt(f(0x1cf))/0x6+-parseInt(f(0x1d0))/0x7*(-parseInt(f(0x1c9))/0x8)+-parseInt(f(0x1c8))/0x9+parseInt(f(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x67441));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1d5)]()[h(0x1cc)](h(0x1cd))[h(0x1d5)]()['constructor'](a12a)['search'](h(0x1cd));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a12d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a12c(){const k=['16fdKOYn','1476948TWLqle','apply','search','(((.+)+)+)+$','describe-key-pairs','3298326gckizS','1535345KTNfHx','dkp','605VcIAUo','9124KXyfqM','maka\x20aws:dkp','toString','2916300bEFvkr','maka\x20aws:describe-key-pairs','exit','ec2describeKeys','10pYxCem','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','34082LdOPea','1298943XUuvrB'];a12c=function(){return k;};return a12c();}Command['create']({'name':a12i(0x1ce),'aliases':[a12i(0x1d1)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'shortDesc':a12i(0x1c6),'examples':[a12i(0x1c2),a12i(0x1d4)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x1c4)]();}catch(b){b&&Log['error'](b),process[j(0x1c3)](0x0);}},a12e);
@@ -1 +1 @@
1
- const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0xe9))/0x1+-parseInt(l(0xcb))/0x2+-parseInt(l(0xde))/0x3*(parseInt(l(0xd1))/0x4)+parseInt(l(0xd8))/0x5+-parseInt(l(0xcd))/0x6*(parseInt(l(0xc6))/0x7)+-parseInt(l(0xdd))/0x8+-parseInt(l(0xdf))/0x9*(-parseInt(l(0xc4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xccf34));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xd7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0xe3)]()[n(0xca)]('(((.+)+)+)+$')[n(0xe3)]()['constructor'](a11a)[n(0xca)](n(0xd9));});function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xc3;let f=c[d];return f;},a11d(a,b);}a11a();import a11e from'./aws.command.js';function a11c(){const r=['Not\x20deleting\x20secuirty\x20group','1390668WSBWjb','error','exit','26130SaxiQm','success','3088148ZfuiRZ','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','Deleting\x20a\x20','maka\x20aws:delete-sg','search','1324858JzgOzN','maka\x20aws:dsg','12CijMKx','includes','ID:\x20','ask','8eizSGV','deleteSecurityGroup','notice','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','forEach','dsg','apply','7140740KjmySD','(((.+)+)+)+$','isMakaProject','confirm','bright','12084448STTNkJ','2354838yExApE','18693Dywpwf','\x20SG\x20NAME:\x20','\x20SGID:\x20','create','toString','name','appName','getMakaProjectConfig','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'];a11c=function(){return r;};return a11c();}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[a11o(0xe2)]({'name':'delete-security-group','aliases':[a11o(0xd6)],'usage':a11o(0xc9),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a11o(0xc9),a11o(0xcc)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0xda)]();let d='';if(c){const j=b[p(0xe6)]();d=j[p(0xe5)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0xd5)](function(k){const q=p;c&&k['name'][q(0xce)](d)?Log[q(0xd3)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0xe4)]+'\x20SGID:\x20'+k['sgId']):Log[q(0xdc)](q(0xcf)+k['id']+q(0xe0)+k[q(0xe4)]+q(0xe1)+k['sgId']);});let g='';const h=await Actions[p(0xd0)](p(0xc7));f['forEach'](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0xea)](p(0xe7));const i=await Actions[p(0xdb)](p(0xc8)+g+p(0xd4),![]);i?(await a[p(0xd2)](g),Log[p(0xc5)]('Deleted\x20'+g)):Log[p(0xea)](p(0xe8)),process[p(0xc3)](0x0);}catch(k){k&&Log[p(0xea)](k),process[p(0xc3)](0x1);}},a11e);
1
+ const a13n=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x1b1))/0x1*(parseInt(l(0x1bd))/0x2)+parseInt(l(0x1b7))/0x3*(parseInt(l(0x1be))/0x4)+-parseInt(l(0x1b0))/0x5+parseInt(l(0x1d3))/0x6+-parseInt(l(0x1b2))/0x7*(parseInt(l(0x1c1))/0x8)+-parseInt(l(0x1c7))/0x9*(-parseInt(l(0x1b9))/0xa)+-parseInt(l(0x1bf))/0xb*(parseInt(l(0x1d5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xbc5ea));function a13c(){const q=['\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','sgId','forEach','1708578dzptwt','\x20SGID:\x20','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','maka\x20aws:delete-sg','Deleting\x20a\x20','notice','delete-security-group','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','(((.+)+)+)+$','search','success','create','6605994DaeOQR','dsg','12FYRDpB','appName','getSecurityGroups','toString','name','Not\x20deleting\x20secuirty\x20group','Deleted\x20','6956845gUTDmv','314114SLRvEk','21YNrDjF','error','ID:\x20','deleteSecurityGroup','\x20SG\x20NAME:\x20','16098uuxTCa','isMakaProject','50qeeoHB','maka\x20aws:dsg','getMakaProjectConfig','bright','4BJzqHR','1116LxgZud','5475019cFwqun','includes','689160tABzSW','ask','constructor'];a13c=function(){return q;};return a13c();}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1af;let f=c[d];return f;},a13d(a,b);}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(0x1d8)]()[m(0x1d0)](m(0x1cf))['toString']()[m(0x1c3)](a13a)[m(0x1d0)](m(0x1cf));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13n(0x1d2)]({'name':a13n(0x1cd),'aliases':[a13n(0x1d4)],'usage':a13n(0x1ca),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a13n(0x1ca),a13n(0x1ba)]},async function(){const o=a13n;try{const a=new AWS(),b=new FSI(),c=b[o(0x1b8)]();let d='';if(c){const j=b[o(0x1bb)]();d=j[o(0x1d6)];}const {sgList:f}=await a[o(0x1d7)]();f[o(0x1c6)](function(k){const p=o;c&&k[p(0x1d9)][p(0x1c0)](d)?Log[p(0x1cc)](p(0x1b4)+k['id']+p(0x1b6)+k[p(0x1d9)]+p(0x1c8)+k[p(0x1c5)]):Log[p(0x1bc)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[p(0x1d9)]+p(0x1c8)+k['sgId']);});let g='';const h=await Actions[o(0x1c2)](o(0x1c9));f['forEach'](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[o(0x1b3)](o(0x1ce));const i=await Actions['confirm'](o(0x1cb)+g+o(0x1c4),![]);i?(await a[o(0x1b5)](g),Log[o(0x1d1)](o(0x1af)+g)):Log[o(0x1b3)](o(0x1da)),process['exit'](0x0);}catch(k){k&&Log[o(0x1b3)](k),process['exit'](0x1);}},a13e);
@@ -0,0 +1 @@
1
+ const a14i=a14d;function a14c(){const k=['lecr','maka\x20aws:lecr\x20--regions=all','26728OyhtCw','toString','create','success','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','6MmNlRD','exit','regions','766583AYRghI','6KThuIP','maka\x20aws:list-ecr','959352aUpXSO','2DXmXPD','136493qCBzsj','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','2656265kAtcJK','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','16815557CVCNgn','10020190AtzgYk','apply','search','(((.+)+)+)+$','2439UWXdAa','listAllEcrRepositories','constructor'];a14c=function(){return k;};return a14c();}(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x132))/0x1*(parseInt(f(0x136))/0x2)+parseInt(f(0x12f))/0x3*(parseInt(f(0x135))/0x4)+parseInt(f(0x139))/0x5*(-parseInt(f(0x133))/0x6)+-parseInt(f(0x137))/0x7+-parseInt(f(0x12a))/0x8*(-parseInt(f(0x140))/0x9)+-parseInt(f(0x13c))/0xa+parseInt(f(0x13b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x911f4));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x12b)]()[h(0x13e)]('(((.+)+)+)+$')['toString']()[h(0x127)](a14a)[h(0x13e)](h(0x13f));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x127;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x12c)]({'name':'list-ecr','aliases':[a14i(0x128)],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x131)],'shortDesc':a14i(0x12e),'examples':[a14i(0x134),a14i(0x138),a14i(0x129)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x141)](b[j(0x131)]),Log[j(0x12d)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x130)](0x0);}catch(d){Log['error'](j(0x13a)+d),process[j(0x130)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x183))/0x1*(-parseInt(f(0x18d))/0x2)+-parseInt(f(0x18b))/0x3+-parseInt(f(0x17c))/0x4*(-parseInt(f(0x189))/0x5)+-parseInt(f(0x198))/0x6+-parseInt(f(0x199))/0x7*(-parseInt(f(0x181))/0x8)+parseInt(f(0x192))/0x9*(-parseInt(f(0x18f))/0xa)+parseInt(f(0x188))/0xb*(parseInt(f(0x186))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x45102));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x17a;let f=c[d];return f;},a12d(a,b);}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0x190)]()[g(0x19a)](g(0x17d))[g(0x190)]()[g(0x17a)](a12a)[g(0x19a)](g(0x17d));});a12a();import a12e 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[a12h(0x182)]({'name':a12h(0x18a),'aliases':[a12h(0x17b)],'usage':a12h(0x180),'validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const i=a12h;try{const a=new AWS(),b=await a[i(0x193)]();if(b?.[i(0x196)]==='running'){const c=await Actions[i(0x195)](i(0x185)+b[i(0x17e)]+i(0x197));c&&b[i(0x187)]?a[i(0x184)]({'instanceId':b['instanceId']}):Log['error'](i(0x18e)+b['name']+i(0x18c));}else Log[i(0x191)](i(0x17f));}catch(d){d&&Log[i(0x191)](d),process[i(0x194)](0x1);}},a12e);function a12c(){const j=['11pXyfWv','80VvSaYw','reboot-instance','565713WDAWTa','\x20is\x20still\x20running.','139002MukRtA','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','318370HJKZUp','toString','error','99ZWrFKU','chooseInstance','exit','confirm','status','\x20Ready?','631650cJjJBB','49kgMMVa','search','constructor','rbi','43304oXAtpO','(((.+)+)+)+$','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:reboot-instance','268904qlokUO','create','5QOtoWJ','ec2rebootInstance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','10391196aWnXDO','instanceId'];a12c=function(){return j;};return a12c();}
1
+ const a15i=a15d;function a15c(){const k=['360837GoHgDQ','name','(((.+)+)+)+$','145dLPvCa','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:rbi','create','error','search','constructor','status','27702zjkVae','2546MAaCrl','exit','\x20is\x20still\x20running.','216800CSpkct','reboot-instance','toString','1068UkANIW','instanceId','running','chooseInstance','436779scECgr','3900UtRlRI','1423120foAMSg','Reboot\x20an\x20EC2\x20instance','maka\x20aws:reboot-instance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','rbi'];a15c=function(){return k;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0xce))/0x1*(parseInt(f(0xb8))/0x2)+-parseInt(f(0xcb))/0x3+parseInt(f(0xbb))/0x4+parseInt(f(0xc3))/0x5*(parseInt(f(0xbe))/0x6)+parseInt(f(0xc2))/0x7+parseInt(f(0xc4))/0x8+-parseInt(f(0xb7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x1e9c9));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0xbd)]()[h(0xb4)](h(0xcd))[h(0xbd)]()[h(0xb5)](a15a)[h(0xb4)](h(0xcd));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xb1;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0xb2)]({'name':a15i(0xbc),'aliases':[a15i(0xca)],'usage':a15i(0xc6),'validOpts':[],'shortDesc':a15i(0xc5),'examples':[a15i(0xc6),a15i(0xb1)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xc1)]();if(b?.[j(0xb6)]===j(0xc0)){const c=await Actions['confirm'](j(0xc9)+b['name']+'\x20Ready?');c&&b[j(0xbf)]?a['ec2rebootInstance']({'instanceId':b[j(0xbf)]}):Log[j(0xb3)](j(0xc7)+b[j(0xcc)]+j(0xba));}else Log[j(0xb3)](j(0xcf));}catch(d){d&&Log[j(0xb3)](d),process[j(0xb9)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a13H=a13d;function a13c(){const J=['\x20for\x20','create','confirm','Choose\x20contact\x20type','6083uhhgnl','Invalid\x202\x20character\x20country\x20code','96816','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20Last\x20Name\x20[Person]:\x20','State\x20[HI]:\x20','123\x20Glorious\x20Way','Contact','533243lZyPzx','3453072ncDMoB','checkDomainAvailability','5CSQEIw','values','maka\x20aws:rdn\x20--domain=example.com','toString','Are\x20you\x20sure?','PERSON','contactType','error','7323024ZiqxZc','Do\x20you\x20wish\x20to\x20register\x20','4588692EUiooh','Contact\x20Email\x20[mail@example.com]:\x20','ask','constructor','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','search','Zip\x20Code\x20[96816]:\x20','\x20is\x20available\x20for:','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','mail@example.com','ASSOCIATION','Duration\x20in\x20years\x20[1]:\x20','exit','register-domain-name','maka\x20aws:register-domain-name','Contact\x20First\x20Name\x20[Contact]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','942lgLKrt','1675161tCMMYN','domain','The\x20domain\x20name:\x20','\x20/\x20Year)','rdn','Address\x20Line\x202:\x20','\x20years\x20(','includes','list','registerDomain','+1.5555555556','warn','(((.+)+)+)+$','\x20/\x20Year\x20\x0a','options','notice','OrganizationName','219304pWsRDA','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20'];a13c=function(){return J;};return a13c();}(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0xee))/0x1+-parseInt(E(0xe0))/0x2+parseInt(E(0xef))/0x3+-parseInt(E(0xfb))/0x4*(parseInt(E(0xf1))/0x5)+parseInt(E(0xce))/0x6*(parseInt(E(0xe6))/0x7)+parseInt(E(0xf9))/0x8+parseInt(E(0xcf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x92370));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 F=a13d;return a13a[F(0xf4)]()[F(0x100)](F(0xdb))[F(0xf4)]()[F(0xfe)](a13a)[F(0x100)]('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xcc;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const G=a13d;return Object[G(0xf2)](CountryCode)[G(0xd6)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13H(0xe3)]({'name':a13H(0x108),'aliases':[a13H(0xd3)],'usage':a13H(0x109),'requiredOpts':[a13H(0xd0)],'validOpts':[],'shortDesc':a13H(0xff),'examples':[a13H(0xcd),a13H(0xf3)]},async function(a,b){const I=a13H;try{const c=b[I(0xd0)],d=new AWS(),{available:f,cost:g}=await d[I(0xf0)](c);if(f&&g){Log['notice'](I(0xd1)+c+I(0x102));const {Price:h,Currency:i}=g;Log[I(0xda)]('\x20\x20'+h+'\x20'+i+I(0xdc));const j=await Actions['confirm'](I(0xfa)+c+'\x20?',![]);if(j){const k={'type':I(0xd7),'name':I(0xf7),'message':I(0xe5),'choices':[I(0x105),'COMPANY',I(0xf6),'PUBLIC_BODY','RESELLER']},l=await Actions[I(0xfd)](I(0x106))||'1',m=await Actions[I(0xfd)](I(0xcc))||I(0xed),n=await Actions[I(0xfd)](I(0xea))||'Person',{contactType:o}=await Actions[I(0xdd)](k),p=await Actions['ask']('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||I(0xec),q=await Actions[I(0xfd)](I(0xd4)),r=await Actions[I(0xfd)](I(0x101))||I(0xe8),s=await Actions['ask'](I(0xeb))||'HI',t=await Actions['ask']('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0xf8)](I(0xe7));const v=await Actions['ask'](I(0xe1))||'+1.5555555555',w=await Actions['ask'](I(0x103))||I(0xd9),x=await Actions['ask'](I(0xfc))||I(0x104),y=await Actions[I(0xe4)]('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!==I(0xf6)){const C=await Actions[I(0xfd)](I(0xe9))||'My\x20Comanpy,\x20LLC.';z[I(0xdf)]=C;}const A=h||0x0*parseInt(l);Log[I(0xde)]('Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'),Log[I(0xda)](A+'\x20'+i+I(0xe2)+l+I(0xd5)+h+'\x20'+i+I(0xd2));const B=await Actions[I(0xe4)](I(0xf5));B&&await d[I(0xd8)](z,c,parseInt(l),y);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(D){D&&Log[I(0xf8)](D),process[I(0x107)](0x0);}},a13e);
1
+ const a16H=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0x1b5))/0x1+parseInt(E(0x1ca))/0x2*(parseInt(E(0x1bd))/0x3)+parseInt(E(0x1a9))/0x4+-parseInt(E(0x1d4))/0x5*(parseInt(E(0x1c1))/0x6)+parseInt(E(0x1d5))/0x7+-parseInt(E(0x1c4))/0x8+-parseInt(E(0x1dc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x9195c));const a16b=(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;};}()),a16a=a16b(this,function(){const F=a16d;return a16a[F(0x1b6)]()[F(0x1c9)](F(0x1ce))[F(0x1b6)]()[F(0x1bc)](a16a)[F(0x1c9)](F(0x1ce));});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 a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a16d(a,b);}import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const G=a16d;return Object[G(0x1d8)](CountryCode)['includes'](a);}function a16c(){const J=['(((.+)+)+)+$','register-domain-name','Contact\x20Email\x20[mail@example.com]:\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','My\x20Comanpy,\x20LLC.','\x20/\x20Year)','4470vanPRF','8074563hswdvI','warn','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','values','Invalid\x202\x20character\x20country\x20code','checkDomainAvailability','Country\x20Code\x20[US]:\x20','8558532TuNjdj','96816','PUBLIC_BODY','contactType','\x20/\x20Year\x20\x0a','The\x20domain\x20name:\x20','Domain\x20name\x20is\x20unavailable','maka\x20aws:rdn\x20--domain=example.com','Do\x20you\x20wish\x20to\x20register\x20','domain','4107888kCCfCb','registerDomain','PERSON','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','notice','options','State\x20[HI]:\x20','RESELLER','error','confirm','Are\x20you\x20sure?','Contact','1087177HyUqEp','toString','mail@example.com','Zip\x20Code\x20[96816]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','123\x20Glorious\x20Way','constructor','9HHtmfx','exit','maka\x20aws:register-domain-name','+1.5555555555','822URqrBc','list','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','25464piufGa','Auto\x20Renew:\x20','Duration\x20in\x20years\x20[1]:\x20','ASSOCIATION','\x20for\x20','search','386414yNqNUg','ask','COMPANY','Address\x20Line\x202:\x20'];a16c=function(){return J;};return a16c();}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a16H(0x1cf),'aliases':['rdn'],'usage':a16H(0x1bf),'requiredOpts':[a16H(0x1a8)],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a16H(0x1b9),a16H(0x1a6)]},async function(a,b){const I=a16H;try{const c=b[I(0x1a8)],d=new AWS(),{available:f,cost:g}=await d[I(0x1da)](c);if(f&&g){Log[I(0x1ad)](I(0x1e1)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[I(0x1d6)]('\x20\x20'+h+'\x20'+i+I(0x1e0));const j=await Actions[I(0x1b2)](I(0x1a7)+c+'\x20?',![]);if(j){const k={'type':I(0x1c2),'name':I(0x1df),'message':'Choose\x20contact\x20type','choices':[I(0x1c7),I(0x1cc),I(0x1ab),I(0x1de),I(0x1b0)]},l=await Actions[I(0x1cb)](I(0x1c6))||'1',m=await Actions[I(0x1cb)](I(0x1ba))||I(0x1b4),n=await Actions[I(0x1cb)]('Contact\x20Last\x20Name\x20[Person]:\x20')||'Person',{contactType:o}=await Actions[I(0x1ae)](k),p=await Actions[I(0x1cb)](I(0x1c3))||I(0x1bb),q=await Actions[I(0x1cb)](I(0x1cd)),r=await Actions[I(0x1cb)](I(0x1b8))||I(0x1dd),s=await Actions['ask'](I(0x1af))||'HI',t=await Actions[I(0x1cb)](I(0x1db))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x1b1)](I(0x1d9));const v=await Actions[I(0x1cb)](I(0x1d7))||I(0x1c0),w=await Actions[I(0x1cb)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||'+1.5555555556',x=await Actions[I(0x1cb)](I(0x1d0))||I(0x1b7),y=await Actions[I(0x1b2)](I(0x1c5)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==I(0x1ab)){const C=await Actions[I(0x1cb)](I(0x1d1))||I(0x1d2);z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log['notice'](I(0x1ac)),Log[I(0x1d6)](A+'\x20'+i+I(0x1c8)+l+'\x20years\x20('+h+'\x20'+i+I(0x1d3));const B=await Actions['confirm'](I(0x1b3));B&&await d[I(0x1aa)](z,c,parseInt(l),y);}}else throw I(0x1e2);}catch(D){D&&Log['error'](D),process[I(0x1be)](0x0);}},a16e);
@@ -1 +1 @@
1
- const a14k=a14d;function a14c(){const m=['error','deleteKeyPair','Please\x20choose\x20a\x20key\x20to\x20delete:','maka\x20aws:remove-key-pair','1439830UXqaiv','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','20CtkmGL','8KClaIV','3457956HzqfBi','Deleted\x20','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','search','11UTiXkM','(((.+)+)+)+$','ask','388283dYBpGo','forEach','remove-key-pair','confirm','apply','exit','ec2describeKeys','174924thCbIM','create','520295NapPzw','6VeKvSw','success','toString','64665oddNDU','9AQEBsW','173694FQtapj','Not\x20deleting\x20keypair','constructor','maka\x20aws:rkp'];a14c=function(){return m;};return a14c();}(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0xb5))/0x1+-parseInt(h(0xbd))/0x2+-parseInt(h(0xbb))/0x3*(-parseInt(h(0xc7))/0x4)+-parseInt(h(0xb7))/0x5*(-parseInt(h(0xb8))/0x6)+-parseInt(h(0xd0))/0x7*(parseInt(h(0xc8))/0x8)+-parseInt(h(0xbc))/0x9*(-parseInt(h(0xc5))/0xa)+-parseInt(h(0xcd))/0xb*(parseInt(h(0xc9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x187a6));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0xba)]()['search'](j(0xce))[j(0xba)]()[j(0xbf)](a14a)[j(0xcc)](j(0xce));});a14a();import a14e 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 a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xb5;let f=c[d];return f;},a14d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a14k(0xb6)]({'name':a14k(0xd2),'aliases':['rkp'],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a14k(0xcb),'examples':[a14k(0xc4),a14k(0xc0)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0xd6)]();let c=undefined;const d=await Actions[l(0xcf)](l(0xc3));b?.[l(0xd1)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0xc1)](l(0xc6));const f=await Actions[l(0xd3)]('Deleting\x20a\x20'+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[l(0xc2)](c),Log[l(0xb9)](l(0xca)+c)):Log[l(0xc1)](l(0xbe)),process[l(0xd5)](0x0);}catch(g){g&&Log[l(0xc1)](g),process['exit'](0x1);}},a14e);
1
+ const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0xfa))/0x1+-parseInt(h(0xfc))/0x2+-parseInt(h(0x109))/0x3*(-parseInt(h(0xfd))/0x4)+-parseInt(h(0x101))/0x5+-parseInt(h(0xff))/0x6+-parseInt(h(0x10b))/0x7+parseInt(h(0x102))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x5c73d));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0xf8)]()['search'](j(0x10e))[j(0xf8)]()[j(0xfb)](a17a)[j(0x10f)](j(0x10e));});function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0xf6;let f=c[d];return f;},a17d(a,b);}a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x100)]({'name':a17k(0x110),'aliases':[a17k(0x108)],'usage':a17k(0x104),'validOpts':[],'shortDesc':a17k(0xf7),'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(0x104),a17k(0x105)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x103)]();let c=undefined;const d=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0xfe)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x10d)](l(0xf9));const f=await Actions['confirm'](l(0xf6)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[l(0x10a)](c),Log['success'](l(0x106)+c)):Log['error']('Not\x20deleting\x20keypair'),process[l(0x107)](0x0);}catch(g){g&&Log[l(0x10d)](g),process[l(0x107)](0x1);}},a17e);function a17c(){const m=['maka\x20aws:rkp','Deleted\x20','exit','rkp','3sXNkoP','deleteKeyPair','1668604WqwUpL','apply','error','(((.+)+)+)+$','search','remove-key-pair','Deleting\x20a\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','101105NJvHDe','constructor','192196lkNeDW','1883708qFaauK','forEach','647274EDbDaz','create','3746495DZjTtA','9604088uJvpFX','ec2describeKeys','maka\x20aws:remove-key-pair'];a17c=function(){return m;};return a17c();}
@@ -1 +1 @@
1
- const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0xc3))/0x1*(-parseInt(l(0xd4))/0x2)+parseInt(l(0xb9))/0x3*(parseInt(l(0xc5))/0x4)+-parseInt(l(0xb8))/0x5*(-parseInt(l(0xbd))/0x6)+parseInt(l(0xb0))/0x7*(parseInt(l(0xc1))/0x8)+-parseInt(l(0xc9))/0x9+-parseInt(l(0xaf))/0xa*(-parseInt(l(0xc2))/0xb)+-parseInt(l(0xc8))/0xc*(parseInt(l(0xd2))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x597fd));function a15c(){const p=['1488JSLXUO','getAppConfigPath','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','getMakaProjectConfig','13044DGrMwu','maka\x20aws\x20set-host','privateIp','maka\x20aws:set-host\x20--env\x20dev','511624YNKtdC','44ucDTQg','7354riNkYW','stringify','92tueKoc','toString','set-host','4334748XnncZq','4584177QHKgsi','\x0aSaved\x20host\x20','utf8','host','success','env','join','search','isFile','13LtAHPf','(((.+)+)+)+$','182JTVeAt','public','ssh.json','exit','maka\x20aws:sth\x20--env\x20prod','264060nZzrEG','7mIKHjM','inherit','chooseInstance','writeFileSync','\x20IP\x20to\x20','private','template','fsi','890OeupDa'];a15c=function(){return p;};return a15c();}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 m=a15d;return a15a[m(0xc6)]()[m(0xd0)](m(0xd3))[m(0xc6)]()['constructor'](a15a)[m(0xd0)](m(0xd3));});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xac;let f=c[d];return f;},a15d(a,b);}a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';import a15g 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':a15n(0xc7),'aliases':['sth'],'usage':a15n(0xbe),'mustBeInMakaProject':!![],'requiredOpts':[a15n(0xce)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':'\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','examples':[a15n(0xc0),a15n(0xae)]},async function(a,b){const o=a15n;try{const c=new AWS(),d=this[o(0xb7)][o(0xba)](b[o(0xce)]),f=this[o(0xb7)][o(0xbc)](),g=await c[o(0xb2)](),h=a15e[o(0xcf)](d,'ssh.json');!this[o(0xb7)][o(0xd1)](h)&&await this[o(0xb7)][o(0xb6)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON['parse'](a15f['readFileSync'](h,o(0xcb))),j=await Actions['ask']('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||o(0xd5);if(j){if(j==='public'||j===o(0xb5)){if(j===o(0xd5))i[o(0xcc)]=g?.['publicIp'];else j===o(0xb5)&&(i[o(0xcc)]=g?.[o(0xbf)]);}else throw o(0xbb);}else i[o(0xcc)]=g?.[o(0xbf)];a15f[o(0xb3)](a15e['join'](d,o(0xac)),JSON[o(0xc4)](i,null,0x2)),execSync('cat\x20'+a15e[o(0xcf)](d,o(0xac)),{'stdio':o(0xb1)}),Log[o(0xcd)](o(0xca)+j+o(0xb4)+d+a15e['sep']+o(0xac));}catch(k){k&&Log['error'](k),process[o(0xad)](0x0);}},a15g);
1
+ const a18n=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0x1e0))/0x1*(parseInt(l(0x1c4))/0x2)+parseInt(l(0x1c7))/0x3+parseInt(l(0x1bf))/0x4*(parseInt(l(0x1c8))/0x5)+parseInt(l(0x1d5))/0x6+-parseInt(l(0x1de))/0x7*(parseInt(l(0x1c0))/0x8)+-parseInt(l(0x1cb))/0x9*(-parseInt(l(0x1c9))/0xa)+-parseInt(l(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xeb9cd));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(0x1e3)]()['search'](m(0x1c2))[m(0x1e3)]()[m(0x1e2)](a18a)[m(0x1e6)](m(0x1c2));});a18a();import a18e from'path';function a18c(){const p=['ssh.json','4872dhhdyp','cat\x20','appName','5127540ACTyth','5SWYhEq','1100790NHnugE','23533961JpDFDL','63yVwgte','success','writeFileSync','isFile','getMakaProjectConfig','host','utf8','parse','join','maka\x20aws:sth\x20--env\x20prod','3055806NzXbqC','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','template','exit','stringify','ask','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','inherit','chooseInstance','2846879fwBqNZ','readFileSync','197vWNfts','privateIp','constructor','toString','getAppConfigPath','error','search','private','fsi','env','public','sep','maka\x20aws\x20set-host','7261876LPnvrf','24fmEHhg','\x20IP\x20to\x20','(((.+)+)+)+$'];a18c=function(){return p;};return a18c();}import a18f from'fs';import{execSync}from'child_process';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1bd;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':'set-host','aliases':['sth'],'usage':a18n(0x1be),'mustBeInMakaProject':!![],'requiredOpts':[a18n(0x1e9)],'validOpts':[],'shortDesc':a18n(0x1d6),'description':'\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','examples':['maka\x20aws:set-host\x20--env\x20dev',a18n(0x1d4)]},async function(a,b){const o=a18n;try{const c=new AWS(),d=this[o(0x1e8)][o(0x1e4)](b[o(0x1e9)]),f=this[o(0x1e8)][o(0x1cf)](),g=await c[o(0x1dd)](),h=a18e[o(0x1d3)](d,o(0x1c3));!this[o(0x1e8)][o(0x1ce)](h)&&await this[o(0x1e8)][o(0x1d7)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[o(0x1c6)]},'config':f});const i=JSON[o(0x1d2)](a18f[o(0x1df)](h,o(0x1d1))),j=await Actions[o(0x1da)](o(0x1db))||'public';if(j){if(j===o(0x1ea)||j===o(0x1e7)){if(j===o(0x1ea))i[o(0x1d0)]=g?.['publicIp'];else j===o(0x1e7)&&(i[o(0x1d0)]=g?.[o(0x1e1)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[o(0x1d0)]=g?.[o(0x1e1)];a18f[o(0x1cd)](a18e[o(0x1d3)](d,'ssh.json'),JSON[o(0x1d9)](i,null,0x2)),execSync(o(0x1c5)+a18e[o(0x1d3)](d,o(0x1c3)),{'stdio':o(0x1dc)}),Log[o(0x1cc)]('\x0aSaved\x20host\x20'+j+o(0x1c1)+d+a18e[o(0x1bd)]+'ssh.json');}catch(k){k&&Log[o(0x1e5)](k),process[o(0x1d8)](0x0);}},a18g);
@@ -1 +1 @@
1
- function a16c(){const k=['1163244uGVgDg','\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','622071TXRaia','search','430730lJGzFX','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','name','confirm','4232kCmhmF','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','chooseInstance','create','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','exit','error','\x20Ready?','(((.+)+)+)+$','status','apply','20310OreQNf','instanceId','maka\x20aws:terminate-instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','maka\x20aws:ti','921032TdNeAg','141898JpNgxt','2uqgwMj','ec2terminateInstance','3087raffyJ','108VixNFv'];a16c=function(){return k;};return a16c();}const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0xfd))/0x1*(parseInt(f(0xfe))/0x2)+parseInt(f(0x104))/0x3+parseInt(f(0xfc))/0x4+-parseInt(f(0xf7))/0x5+parseInt(f(0x102))/0x6+parseInt(f(0x100))/0x7*(parseInt(f(0x10a))/0x8)+-parseInt(f(0x101))/0x9*(parseInt(f(0x106))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x314d6));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a['toString']()[h(0x105)](h(0xf4))['toString']()['constructor'](a16a)['search'](h(0xf4));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xef;let f=c[d];return f;},a16d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a16i(0xef)]({'name':'terminate-instance','aliases':['ti'],'usage':a16i(0xf9),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a16i(0x103),'examples':[a16i(0xf9),a16i(0xfb)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x10c)]();if(b?.[j(0xf8)]&&b?.[j(0xf5)]==='running'){const c=await Actions[j(0x109)](j(0xf0)+b['name']+j(0xf3));c?a[j(0xff)]({'instanceId':b[j(0xf8)]}):Log[j(0xf2)](j(0xfa)+b[j(0x108)]+j(0x10b));}else Log['error'](j(0x107));}catch(d){d&&Log[j(0xf2)](d),process[j(0xf1)](0x1);}},a16e);
1
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0xe7))/0x1+-parseInt(f(0xe5))/0x2+-parseInt(f(0xd2))/0x3+-parseInt(f(0xdb))/0x4+-parseInt(f(0xcc))/0x5*(-parseInt(f(0xcf))/0x6)+-parseInt(f(0xd9))/0x7+parseInt(f(0xce))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x1e290));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0xdd)]()[h(0xd4)](h(0xcd))[h(0xdd)]()['constructor'](a19a)[h(0xd4)]('(((.+)+)+)+$');});a19a();function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xcc;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';function a19c(){const k=['147292lEpxdB','name','231307grXART','chooseInstance','ec2terminateInstance','5rzeiFl','(((.+)+)+)+$','2707728UiLOWP','910086BYuMiz','maka\x20aws:terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','550080qdthQh','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','search','Terminate\x20an\x20EC2\x20instance','running','status','confirm','1586375eDdvTs','error','457148xmgCLh','apply','toString','instanceId','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','create','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','terminate-instance','\x20Ready?','exit'];a19c=function(){return k;};return a19c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0xe0)]({'name':a19i(0xe2),'aliases':['ti'],'usage':a19i(0xd0),'validOpts':[],'shortDesc':a19i(0xd5),'description':a19i(0xdf),'examples':['maka\x20aws:terminate-instance','maka\x20aws:ti']},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0xe8)]();if(b?.[j(0xde)]&&b?.[j(0xd7)]===j(0xd6)){const c=await Actions[j(0xd8)](j(0xd1)+b[j(0xe6)]+j(0xe3));c?a[j(0xe9)]({'instanceId':b[j(0xde)]}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b['name']+j(0xd3));}else Log[j(0xda)](j(0xe1));}catch(d){d&&Log['error'](d),process[j(0xe4)](0x1);}},a19e);
@@ -1 +1 @@
1
- function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x133;var f=c[d];return f;},a17d(a,b);}(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x13d))/0x1+-parseInt(f(0x13e))/0x2*(parseInt(f(0x13f))/0x3)+-parseInt(f(0x142))/0x4+parseInt(f(0x141))/0x5*(-parseInt(f(0x136))/0x6)+parseInt(f(0x13b))/0x7+-parseInt(f(0x135))/0x8*(-parseInt(f(0x138))/0x9)+parseInt(f(0x137))/0xa*(parseInt(f(0x139))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x1c845));function a17c(){var i=['1899AMrFTM','209eonKdT','apply','1182685ImrimV','toString','1945tcUerr','6uIfOcQ','29001QQwNuI','search','1045GtqTeb','389788QpZxNX','constructor','(((.+)+)+)+$','5000unrVzh','6666aSAPaY','92930NyAJnE'];a17c=function(){return i;};return a17c();}var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a['toString']()['search'](h(0x134))[h(0x13c)]()[h(0x133)](a17a)[h(0x140)]('(((.+)+)+)+$');});a17a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x11c))/0x1*(parseInt(f(0x116))/0x2)+parseInt(f(0x113))/0x3+parseInt(f(0x117))/0x4+-parseInt(f(0x111))/0x5+-parseInt(f(0x119))/0x6*(-parseInt(f(0x11b))/0x7)+-parseInt(f(0x112))/0x8+parseInt(f(0x110))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x9ecc4));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()[h(0x11a)](h(0x115))['toString']()[h(0x118)](a20a)[h(0x11a)](h(0x115));});function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x110;var f=c[d];return f;},a20d(a,b);}a20a();import'./build.js';import'./docker.sub.cmd.js';function a20c(){var i=['4747203aIdfkY','6132590ajeFBl','9807112IjYYKK','2575773UhMdlM','apply','(((.+)+)+)+$','342zglTzL','756344qWwmUm','constructor','468eIRpJI','search','102158diSbqe','2277SCPuRl'];a20c=function(){return i;};return a20c();}
@@ -1 +1 @@
1
- const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0x18e))/0x1+-parseInt(n(0x196))/0x2+-parseInt(n(0x194))/0x3+-parseInt(n(0x17d))/0x4*(-parseInt(n(0x172))/0x5)+-parseInt(n(0x17a))/0x6+-parseInt(n(0x191))/0x7*(-parseInt(n(0x175))/0x8)+parseInt(n(0x170))/0x9*(parseInt(n(0x189))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x1c9f5));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0x180)]()[p(0x182)](p(0x18d))[p(0x180)]()['constructor'](a18a)['search']('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';function a18c(){const t=['225890nHIYIz','splice','argv','128WiSuCt','force',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','concat','1278954oWaQlR','apply','app.tar.gz','4YLpflw','Aborted.','update','toString','checkMeteorPackage','search','invokeMeteorCommand','autoupdate','This\x20project\x27s\x20meteor\x20version\x20(','maka\x20build','getGlobalMeteorVersion',').\x20Update?','530gYhCMF','fsi','create','existsSync','(((.+)+)+)+$','222572cxvKCS','slice','\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','68572dGcYQs','error','--force','680589ZsuGjA','confirm','292444DwBHVK','join','build','pathFromProject','122967jPFETl','Build\x20your\x20application\x20into\x20the\x20build\x20folder.'];a18c=function(){return t;};return a18c();}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x16f;let f=c[d];return f;},a18d(a,b);}const BuildCommand=Command[a18q(0x18b)]({'name':a18q(0x198),'usage':a18q(0x186),'validOpts':[a18q(0x176)],'aliases':['b'],'shortDesc':a18q(0x171),'mustBeInMakaProject':!![],'description':a18q(0x190),'examples':[a18q(0x186)]},async function(a,b){const r=a18q;try{await this[r(0x18a)][r(0x181)](r(0x184),{'shouldInstall':!![]});const c=b[r(0x176)];if(!c){const g=this[r(0x18a)][r(0x187)](),h=this[r(0x18a)]['getProjectMeteorVersion'](),i=a18g['gt'](g,h);if(i){const j=await Actions[r(0x195)](r(0x185)+h+r(0x177)+g+r(0x188));j&&this[r(0x18a)][r(0x183)](r(0x17f),['--release',g]);}}const d=[this[r(0x18a)][r(0x16f)]({'pathParts':[r(0x198)]})][r(0x179)](process[r(0x174)][r(0x18f)](0x3)),f=a18e[r(0x197)](this['fsi'][r(0x16f)]({}),r(0x198),r(0x17c));if(a18f[r(0x18c)](f)){const k=c??await Actions[r(0x195)](r(0x178));if(!k)throw Log['error'](r(0x17e));}d['forEach']((l,m)=>{const s=r;l===s(0x193)&&d[s(0x173)](m,0x2);}),this[r(0x18a)][r(0x183)](r(0x198),d);}catch(l){console[r(0x192)](l),process['exit'](0x0);}});export default BuildCommand;
1
+ const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0xb0))/0x1*(-parseInt(n(0xad))/0x2)+parseInt(n(0xa0))/0x3+parseInt(n(0xb5))/0x4+parseInt(n(0x90))/0x5+parseInt(n(0x94))/0x6+parseInt(n(0xb2))/0x7+parseInt(n(0xb3))/0x8*(-parseInt(n(0x9c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x8506b));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0xb4)]()[p(0x97)](p(0x99))[p(0xb4)]()[p(0xab)](a21a)[p(0x97)](p(0x99));});a21a();function a21c(){const t=['Aborted.','947vLoyfH','confirm','6920984DOJOWf','3504016WFDnNY','toString','2055828tlYdmp','exit','force','app.tar.gz','3488395kXKsUf','join','forEach','maka\x20build','408768iKHeHj','pathFromProject','create','search','splice','(((.+)+)+)+$','invokeMeteorCommand','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','54fDeimH','getProjectMeteorVersion','--force',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','721692hpEWIf','slice','checkMeteorPackage','fsi','getGlobalMeteorVersion','apply','build','autoupdate','update','\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','error','constructor','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','1402xAiWuh','This\x20project\x27s\x20meteor\x20version\x20('];a21c=function(){return t;};return a21c();}function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x8d;let f=c[d];return f;},a21d(a,b);}import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x96)]({'name':a21q(0xa6),'usage':'maka\x20build','validOpts':[a21q(0x8e)],'aliases':['b'],'shortDesc':a21q(0x9b),'mustBeInMakaProject':!![],'description':a21q(0xa9),'examples':[a21q(0x93)]},async function(a,b){const r=a21q;try{await this[r(0xa3)][r(0xa2)](r(0xa7),{'shouldInstall':!![]});const c=b[r(0x8e)];if(!c){const g=this[r(0xa3)][r(0xa4)](),h=this[r(0xa3)][r(0x9d)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0xb1)](r(0xae)+h+r(0x9f)+g+').\x20Update?');j&&this['fsi'][r(0x9a)](r(0xa8),['--release',g]);}}const d=[this[r(0xa3)][r(0x95)]({'pathParts':[r(0xa6)]})]['concat'](process['argv'][r(0xa1)](0x3)),f=a21e[r(0x91)](this['fsi'][r(0x95)]({}),r(0xa6),r(0x8f));if(a21f['existsSync'](f)){const k=c??await Actions[r(0xb1)](r(0xac));if(!k)throw Log[r(0xaa)](r(0xaf));}d[r(0x92)]((l,m)=>{const s=r;l===s(0x9e)&&d[s(0x98)](m,0x2);}),this[r(0xa3)][r(0x9a)](r(0xa6),d);}catch(l){console['error'](l),process[r(0x8d)](0x0);}});export default BuildCommand;