@maka/maka-cli 5.1.15 → 5.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/bundle/obf/package.json +1 -2
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/testCmd/_index.js +1 -1
  100. package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -1
  102. package/bundle/obf/src/commands/testCmd/test.command.js +1 -1
  103. package/bundle/obf/src/commands/undo.js +1 -1
  104. package/bundle/obf/src/commands/uninstall.js +1 -0
  105. package/bundle/obf/src/commands/version/_index.js +1 -1
  106. package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -1
  107. package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -1
  108. package/bundle/obf/src/commands/version/version.js +1 -1
  109. package/bundle/obf/src/error.js +1 -1
  110. package/bundle/obf/src/exec.js +1 -1
  111. package/bundle/obf/src/generator.js +1 -1
  112. package/bundle/obf/src/generators/_index.js +1 -1
  113. package/bundle/obf/src/generators/api.js +1 -1
  114. package/bundle/obf/src/generators/aws/_index.js +1 -1
  115. package/bundle/obf/src/generators/aws/aws.js +1 -1
  116. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  117. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  118. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  119. package/bundle/obf/src/generators/collection.js +1 -1
  120. package/bundle/obf/src/generators/component.js +1 -1
  121. package/bundle/obf/src/generators/config.js +1 -1
  122. package/bundle/obf/src/generators/dbc.js +1 -1
  123. package/bundle/obf/src/generators/dockerfile.js +1 -1
  124. package/bundle/obf/src/generators/hook.js +1 -1
  125. package/bundle/obf/src/generators/kits/_index.js +1 -1
  126. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  128. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  131. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  132. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  133. package/bundle/obf/src/generators/kits/kit.js +1 -1
  134. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  135. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  136. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  137. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  138. package/bundle/obf/src/generators/layout.js +1 -1
  139. package/bundle/obf/src/generators/maka.gen.js +1 -1
  140. package/bundle/obf/src/generators/methods.js +1 -1
  141. package/bundle/obf/src/generators/package.js +1 -1
  142. package/bundle/obf/src/generators/page.js +1 -1
  143. package/bundle/obf/src/generators/publish.js +1 -1
  144. package/bundle/obf/src/generators/route.js +1 -1
  145. package/bundle/obf/src/generators/service.js +1 -1
  146. package/bundle/obf/src/generators/services/_index.js +1 -1
  147. package/bundle/obf/src/generators/services/openssl.js +1 -1
  148. package/bundle/obf/src/generators/services/translation.js +1 -1
  149. package/bundle/obf/src/maka.js +1 -1
  150. package/bundle/obf/src/tool.js +1 -1
  151. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  152. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  153. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  154. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  155. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  156. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  158. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/https/https.class.js +1 -1
  160. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  161. package/bundle/obf/src/tools/log/log.class.js +1 -1
  162. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  164. package/bundle/obf/src/tools/options/options.class.js +1 -1
  165. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  166. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  167. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  168. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  169. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  170. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  171. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  172. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  173. package/package.json +1 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.1.15",
3
+ "version": "5.1.17",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -56,7 +56,6 @@
56
56
  "humps": "^2.0.1",
57
57
  "husky": "^9.1.6",
58
58
  "jest": "^29.7.0",
59
- "jsonwebtoken": "^9.0.2",
60
59
  "latest-version": "^9.0.0",
61
60
  "minimist": "^1.2.8",
62
61
  "node-forge": "^1.3.1",
@@ -1 +1 @@
1
- const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x1f5))/0x1*(parseInt(n(0x20a))/0x2)+parseInt(n(0x213))/0x3+-parseInt(n(0x1fc))/0x4+-parseInt(n(0x23d))/0x5+parseInt(n(0x222))/0x6+parseInt(n(0x223))/0x7*(-parseInt(n(0x219))/0x8)+parseInt(n(0x239))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x86796));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(0x200)]()[o(0x21c)](o(0x23c))[o(0x200)]()[o(0x1e5)](a0a)[o(0x21c)](o(0x23c));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a0d(a,b);}function a0c(){const B=['mustHaveMeteorInstalled','options','Command\x20not\x20found','Command\x20','help','localeCompare','Please\x20run\x20\x22maka\x20install\x20meteor\x22','sort','Description','6584148EFwLDn','addCommand','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','(((.+)+)+)+$','38335SUMVAN','Command\x20requires\x20a\x20handler\x20function','call','DARK','constructor','addCommand\x20requires\x20a\x20Command\x20instance','mustBeInMakaProject','match','projectConfig','Too\x20many\x20options','exit','forEach','number','split','generate','Command\x20format\x20is\x20incorrect','bright','push','function','Command\x20requires\x20a\x20name','9853jJRlIE','\x20not\x20found','(experimental)\x20','play','Too\x20few\x20arguments','_commands','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','1323156CbhGUU','error','join','assign','toString','header','aliases','murder','light','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','minOptsLength','Too\x20few\x20options','find','validateUserIsLoggedIn','142QbcGIE','maxArgLength','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','maxOptsLength','slice','create','length','shortDesc','There\x20is\x20no\x20Meteor\x20application\x20here','2389914vdzXFS','Command.create\x20requires\x20a\x20handler\x20function!','run','getGlobalConfig','tableList','name','48TnZpsq','validateMakaProject','Command.create\x20requires\x20some\x20options!','search','_handler','maybeProxyCommandToMeteor','notice','cfg','chdir','4339674XXlgjh','773108CfEhxh','processAndRunCommand','setColorMode','validateParams','keys','usage','validateMeteorInstall','Alias','minArgLength','bind','Name','Please\x20run\x20\x22maka\x20login\x22','invoke'];a0c=function(){return B;};return a0c();}async function inside(a='.',b){const p=a0d,c=process['cwd']();try{return process[p(0x221)](a),await b();}finally{process['chdir'](c);}}export class Command extends Tool{[a0q(0x231)];['projectConfig'];['_commands'];['_handler'];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x20c));if(!a[r(0x218)])throw new Error(r(0x1f4));if(typeof b!==r(0x1f3))throw new Error(r(0x1e2));this[r(0x231)]=Object[r(0x1ff)]({},a),this[r(0x218)]=this['options'][r(0x218)],this[r(0x1fa)]=[],this[r(0x21d)]=b[r(0x22c)](this);}static[a0q(0x20f)](a,b,c){const s=a0q;if(!a)throw new Error(s(0x21b));if(typeof b!==s(0x1f3))throw new Error(s(0x214));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.['options']?.[s(0x218)]}),c[s(0x23a)](d),d;}[a0q(0x23a)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1e6));this[t(0x1fa)][t(0x1f2)](a);}async[a0q(0x215)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x220)][u(0x216)](),d=c['pallet']===u(0x204)?ColorMode['LIGHT']:ColorMode[u(0x1e4)];Log[u(0x225)](d);}catch(f){Log['error'](f),process[u(0x1eb)](0x0);}return await inside(b['cwd'],async()=>{const v=u;return await this[v(0x22f)](a,b);});}catch(g){process[u(0x1eb)](0x1);}}async[a0q(0x22f)](a,b){const w=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this[w(0x231)];try{if(this['options'][w(0x218)]!=='generate'){if(!isRoot){const g=(a[0x0]===_prevCmd||a[w(0x210)]===0x0)&&this[w(0x1fa)][w(0x210)]>=0x0,h=b[w(0x234)]||b['h'];if(g&&h){if(this[w(0x1fa)][w(0x210)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][w(0x1e7)]){const i=this[w(0x21a)]();if(!i)throw new MustBeInProjectError();this[w(0x1e9)]=this[w(0x220)]['getMakaProjectConfig']();}if(this['options']['mustBeLoggedIn']){const j=await this[w(0x209)]();if(!j)throw new MustBeLoggedIn();}if(this[w(0x231)][w(0x230)]){const k=this[w(0x229)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[w(0x231)][w(0x22b)]===w(0x1ed)){if(a['length']<this[w(0x231)]['minArgLength']){Log[w(0x1fd)](w(0x1f9));throw new UsageError();}}if(typeof this[w(0x231)][w(0x20b)]===w(0x1ed)){if(a[w(0x210)]>=this[w(0x231)][w(0x20b)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[w(0x231)][w(0x206)]===w(0x1ed)){if(Object[w(0x227)](b)[w(0x210)]<this[w(0x231)][w(0x206)]){Log[w(0x1fd)](w(0x207));throw new UsageError();}}if(typeof this['options'][w(0x20d)]===w(0x1ed)){if(Object[w(0x227)](b)['length']>=this[w(0x231)]['maxOptsLength']){Log['error'](w(0x1ea));throw new UsageError();}}}}b=await this[w(0x226)](a,b,this['options']),_prevCmd=a[0x0];}return await this[w(0x21d)][w(0x1e3)](this,a,b);}catch(l){Log[w(0x228)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[w(0x217)](this[w(0x1fa)]),Log[w(0x201)](w(0x205));else{if(l instanceof MustBeInProjectError)Log[w(0x1fd)]('You\x20must\x20be\x20in\x20a\x20Maka\x20project\x20to\x20run\x20this\x20command');else{if(l instanceof NoMeteorFoundError)Log[w(0x1fd)](w(0x23b)),Log[w(0x21f)](w(0x236));else{if(l instanceof NoMeteorAppFoundError)Log['error'](w(0x212));else l instanceof MustBeLoggedIn&&(Log[w(0x1fd)](w(0x1fb)),Log[w(0x21f)](w(0x22e)));}}}process['exit'](0x1);}}[a0q(0x217)](a){const x=a0q,b=new a0e({});b[x(0x1f2)]([x(0x22d),x(0x22a),x(0x238)]),a[x(0x237)]((c,d)=>{const y=x;return c[y(0x218)][y(0x235)](d['name']);})[x(0x1ec)](c=>{const z=x;if(c[z(0x218)]!==z(0x203)&&c[z(0x218)]!==z(0x1f8)){const d=c['experimental'](),e=d?z(0x1f7)+c[z(0x211)]():c['shortDesc']();b[z(0x1f2)]([c['name'],c[z(0x202)](),e]);}}),Log[x(0x1f1)](b[x(0x200)]());}async[a0q(0x224)](a,b=[],c={}){const A=a0q;try{const d=a?.[A(0x1ee)](':');if(!d||d[A(0x210)]===0x0)throw A(0x1f0);if(d[0x0]==='generate'||d[0x0]==='g'&&d[A(0x210)]>0x1){const h=this['_commands']['find'](j=>j[A(0x1e8)](A(0x1ef)));if(!h)throw A(0x232);const i=d[A(0x20e)](0x1)[A(0x1fe)](':');return b['unshift'](i),await h[A(0x215)](b,c);}let f=this['_commands'],g;for(const j of d){g=f[A(0x208)](k=>k[A(0x1e8)](j));if(!g)try{await this['mpi'][A(0x21e)]();}catch(k){throw A(0x233)+j+A(0x1f6);}g&&(f=g[A(0x1fa)]);}if(g){const l=await g[A(0x215)](b,c);return l;}else throw A(0x232);}catch(m){Log[A(0x1fd)](m),process[A(0x1eb)](0x1);}}}
1
+ const a0r=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x1f0))/0x1+parseInt(n(0x1cd))/0x2*(-parseInt(n(0x1f8))/0x3)+parseInt(n(0x1c2))/0x4+-parseInt(n(0x1f3))/0x5*(parseInt(n(0x1f9))/0x6)+-parseInt(n(0x1d8))/0x7+-parseInt(n(0x1d5))/0x8+parseInt(n(0x1b3))/0x9*(parseInt(n(0x1b9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x4fad7));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x1d6)]()['search'](p(0x1ea))['toString']()[p(0x1e9)](a0a)['search'](p(0x1ea));});a0a();function a0c(){const C=['chdir','constructor','(((.+)+)+)+$','mustBeInMakaProject','exit','cfg','Command\x20requires\x20a\x20handler\x20function','pallet','496641WAdQCS','light','addCommand','10stXtzn','find','run','There\x20is\x20no\x20Meteor\x20application\x20here','apply','12kZroUd','1022898UtwprV','notice','assign','keys','LIGHT','addCommand\x20requires\x20a\x20Command\x20instance','Alias','push','_handler','Please\x20run\x20\x22maka\x20login\x22','error','split','Too\x20few\x20arguments','header','_commands','join','maxArgLength','processAndRunCommand','validateMeteorInstall','function','usage','1719JTRqir','aliases','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Command\x20','(experimental)\x20','maxOptsLength','77100bkHGqN','mpi','setColorMode','projectConfig','localeCompare','name','Command.create\x20requires\x20some\x20options!','shortDesc','Command.create\x20requires\x20a\x20handler\x20function!','1665024kdPWCW','DARK','call','tableList','experimental','minOptsLength','Too\x20many\x20arguments','invoke','generate','match','Command\x20not\x20found','283756vIiWnT','murder','cwd','number','Sub-Commands:','getMakaProjectConfig','You\x20must\x20be\x20in\x20a\x20Maka\x20project\x20to\x20run\x20this\x20command','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','63664XfkYEP','toString','create','1046010bPITsM','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateParams','\x20not\x20found','validateMakaProject','unshift','minArgLength','forEach','maybeProxyCommandToMeteor','Description','help','play','options','Command\x20format\x20is\x20incorrect','length','bind'];a0c=function(){return C;};return a0c();}import a0e from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a0d(a,b);}import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';async function inside(a='.',b){const q=a0d,c=process['cwd']();try{return process[q(0x1e8)](a),await b();}finally{process[q(0x1e8)](c);}}export class Command extends Tool{[a0r(0x1e4)];['projectConfig'];[a0r(0x207)];[a0r(0x201)];constructor(a,b){const s=a0r;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[s(0x1be)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(s(0x1ee));this[s(0x1e4)]=Object[s(0x1fb)]({},a),this[s(0x1be)]=this[s(0x1e4)][s(0x1be)],this['_commands']=[],this[s(0x201)]=b[s(0x1e7)](this);}static[a0r(0x1d7)](a,b,c){const t=a0r;if(!a)throw new Error(t(0x1bf));if(typeof b!==t(0x1b1))throw new Error(t(0x1c1));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[t(0x1e4)]?.[t(0x1be)]}),c[t(0x1f2)](d),d;}['addCommand'](a){const u=a0r;if(!(a instanceof Command))throw new Error(u(0x1fe));this[u(0x207)][u(0x200)](a);}async['run'](a,b){const v=a0r;try{a=a||[],b=b||{};try{const c=await this[v(0x1ed)]['getGlobalConfig'](),d=c[v(0x1ef)]===v(0x1f1)?ColorMode[v(0x1fd)]:ColorMode[v(0x1c3)];Log[v(0x1bb)](d);}catch(f){Log[v(0x203)](f),process[v(0x1ec)](0x0);}return await inside(b[v(0x1cf)],async()=>{const w=v;return await this[w(0x1c9)](a,b);});}catch(g){process[v(0x1ec)](0x1);}}async[a0r(0x1c9)](a,b){const x=a0r,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this[x(0x1e4)];try{if(this[x(0x1e4)][x(0x1be)]!==x(0x1ca)){if(!isRoot){const g=(a[0x0]===_prevCmd||a[x(0x1e6)]===0x0)&&this['_commands'][x(0x1e6)]>=0x0,h=b[x(0x1e2)]||b['h'];if(g&&h){if(this[x(0x207)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[x(0x1e4)][x(0x1eb)]){const i=this[x(0x1dc)]();if(!i)throw new MustBeInProjectError();this[x(0x1bc)]=this[x(0x1ed)][x(0x1d2)]();}if(this[x(0x1e4)]['mustBeLoggedIn']){const j=await this['validateUserIsLoggedIn']();if(!j)throw new MustBeLoggedIn();}if(this[x(0x1e4)]['mustHaveMeteorInstalled']){const k=this[x(0x1b0)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[x(0x1e4)][x(0x1de)]===x(0x1d0)){if(a[x(0x1e6)]<this[x(0x1e4)]['minArgLength']){Log[x(0x203)](x(0x205));throw new UsageError();}}if(typeof this['options'][x(0x1ae)]===x(0x1d0)){if(a['length']>=this[x(0x1e4)][x(0x1ae)]){Log['error'](x(0x1c8));throw new UsageError();}}if(typeof this[x(0x1e4)][x(0x1c7)]===x(0x1d0)){if(Object[x(0x1fc)](b)[x(0x1e6)]<this[x(0x1e4)][x(0x1c7)]){Log[x(0x203)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[x(0x1e4)]['maxOptsLength']===x(0x1d0)){if(Object['keys'](b)[x(0x1e6)]>=this['options'][x(0x1b8)]){Log[x(0x203)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[x(0x1da)](a,b,this[x(0x1e4)]),_prevCmd=a[0x0];}return await this[x(0x201)][x(0x1c4)](this,a,b);}catch(l){Log[x(0x1b2)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log[x(0x1fa)](x(0x1d1)),this[x(0x1c5)](this[x(0x207)]),Log[x(0x206)](x(0x1b5));else{if(l instanceof MustBeInProjectError)Log[x(0x203)](x(0x1d3));else{if(l instanceof NoMeteorFoundError)Log[x(0x203)](x(0x1d9)),Log[x(0x1fa)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(l instanceof NoMeteorAppFoundError)Log[x(0x203)](x(0x1f6));else l instanceof MustBeLoggedIn&&(Log['error'](x(0x1d4)),Log[x(0x1fa)](x(0x202)));}}}process[x(0x1ec)](0x1);}}['tableList'](a){const y=a0r,b=new a0e({});b[y(0x200)](['Name',y(0x1ff),y(0x1e1)]),a['sort']((c,d)=>{const z=y;return c[z(0x1be)][z(0x1bd)](d[z(0x1be)]);})[y(0x1df)](c=>{const A=y;if(c[A(0x1be)]!==A(0x1ce)&&c[A(0x1be)]!==A(0x1e3)){const d=c[A(0x1c6)](),e=d?A(0x1b7)+c[A(0x1c0)]():c[A(0x1c0)]();b[A(0x200)]([c['name'],c[A(0x1b4)](),e]);}}),Log['bright'](b[y(0x1d6)]());}async[a0r(0x1af)](a,b=[],c={}){const B=a0r;try{const d=a?.[B(0x204)](':');if(!d||d[B(0x1e6)]===0x0)throw B(0x1e5);if(d[0x0]===B(0x1ca)||d[0x0]==='g'&&d[B(0x1e6)]>0x1){const h=this['_commands']['find'](j=>j[B(0x1cb)](B(0x1ca)));if(!h)throw'Command\x20not\x20found';const i=d['slice'](0x1)[B(0x1ad)](':');return b[B(0x1dd)](i),await h[B(0x1f5)](b,c);}let f=this[B(0x207)],g;for(const j of d){g=f[B(0x1f4)](k=>k['match'](j));if(!g)try{await this[B(0x1ba)][B(0x1e0)]();}catch(k){throw B(0x1b6)+j+B(0x1db);}g&&(f=g[B(0x207)]);}if(g){const l=await g['run'](b,c);return l;}else throw B(0x1cc);}catch(m){Log[B(0x203)](m),process[B(0x1ec)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xcb))/0x1+parseInt(f(0xd1))/0x2+-parseInt(f(0xd2))/0x3+parseInt(f(0xca))/0x4+parseInt(f(0xc9))/0x5*(-parseInt(f(0xd4))/0x6)+-parseInt(f(0xc8))/0x7+-parseInt(f(0xc7))/0x8*(parseInt(f(0xd3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x1f0be));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xcf)]()[h(0xcc)](h(0xcd))[h(0xcf)]()[h(0xce)](a1a)['search'](h(0xcd));});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'./version/_index.js';import'./testCmd/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xc7;var f=c[d];return f;},a1d(a,b);}function a1c(){var i=['search','(((.+)+)+)+$','constructor','toString','apply','116176RrlEYv','476154xQFchC','45UizkMF','6BDAGmV','194288XkjkEO','479955ohxqAi','303355Gmvkvz','968216MjQMXT','236408ZDcPPB'];a1c=function(){return i;};return a1c();}import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./profile.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1a6))/0x1*(-parseInt(f(0x19f))/0x2)+-parseInt(f(0x1a4))/0x3+parseInt(f(0x19d))/0x4*(-parseInt(f(0x19a))/0x5)+-parseInt(f(0x1a9))/0x6*(parseInt(f(0x1a0))/0x7)+-parseInt(f(0x1a8))/0x8*(-parseInt(f(0x19c))/0x9)+parseInt(f(0x1a7))/0xa*(parseInt(f(0x1a2))/0xb)+parseInt(f(0x1a3))/0xc*(parseInt(f(0x1aa))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x70073));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()['search'](h(0x19e))[h(0x1a5)]()[h(0x1a1)](a1a)['search'](h(0x19e));});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';function a1c(){var i=['(((.+)+)+)+$','1267382UjQduH','2145787feGFAL','constructor','11Yoiusz','12uQWPaK','1717254jJpmGI','toString','1xKEsos','5719650xkQwVU','5736824xXBBGo','6tLBOeo','16072927ctHNMW','42610ozNyjE','apply','9EEZhkE','260klBZhR'];a1c=function(){return i;};return a1c();}import'./version/_index.js';import'./testCmd/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./murder.js';import'./proxy.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x19a;var f=c[d];return f;},a1d(a,b);}import'./lint.js';import'./undo.js';import'./profile.js';import'./uninstall.js';
@@ -1 +1 @@
1
- const a2m=a2d;function a2c(){const o=['search','(((.+)+)+)+$','parse','toLowerCase','1703824evNrLj','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','ChatGPT\x20style\x20AI\x20interface','trim','1979721JYmrlK','4vmzenp','Using\x20OpenAI\x20Key\x20','cacert','stdout','421110JTWmYx','fsi','getGlobalConfig','cfg','apply','error','exit','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','constructor','create','bright','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','close','You:\x20','toString','isFile','cert','notice','openapikey','createInterface','1945398eTPpjJ','849779urryhh','openai','546139fFcVvx','askGPT','2146070CytQmS'];a2c=function(){return o;};return a2c();}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x17b))/0x1+parseInt(h(0x164))/0x2+parseInt(h(0x15f))/0x3+-parseInt(h(0x160))/0x4*(parseInt(h(0x17d))/0x5)+-parseInt(h(0x178))/0x6+parseInt(h(0x179))/0x7+parseInt(h(0x182))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xf3899));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x172)]()[j(0x17e)](j(0x17f))[j(0x172)]()[j(0x16c)](a2a)['search'](j(0x17f));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x15e;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x177)]({'input':process['stdin'],'output':process[k(0x163)]});c['question'](k(0x171),async d=>{const l=k;if(d[l(0x181)]()==='exit'){c[l(0x170)]();return;}try{const e=await HTTPS[l(0x17c)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x180)](e['data']);if(f[l(0x169)])throw new Error(f[l(0x169)]['message']);Log[l(0x16e)]('GPT:\x20'+f?.['choices'][0x0]?.['text'][l(0x15e)]());}catch(g){Log[l(0x169)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x16d)]({'name':'ai','description':a2m(0x184),'validOpts':[a2m(0x162),a2m(0x176)],'shortDesc':a2m(0x184),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x162)]&&(this['fsi'][n(0x173)](b[n(0x162)])?(c=b['cacert'],Log[n(0x175)]('Using\x20CA\x20Cert\x20'+c)):Log[n(0x169)](n(0x16b)+c));const d=await this[n(0x167)][n(0x166)]();if(d['cert']){if(this[n(0x165)][n(0x173)](d['cert']))c=d[n(0x174)];else throw Log[n(0x169)](n(0x16f)+c);}let f='';if(b[n(0x176)])f=b['openapikey'],Log[n(0x175)](n(0x161)+f);else{if(d['openai'])f=d[n(0x17a)];else throw Log[n(0x169)](n(0x183));}Log['bright']('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x169)](g),process[n(0x16a)](0x1);}});
1
+ const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x97))/0x1+-parseInt(h(0x9b))/0x2+parseInt(h(0x95))/0x3*(-parseInt(h(0xac))/0x4)+-parseInt(h(0x93))/0x5+parseInt(h(0xad))/0x6*(parseInt(h(0xb1))/0x7)+parseInt(h(0x9f))/0x8+parseInt(h(0x9a))/0x9*(parseInt(h(0x90))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe9c12));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(0xb6)]()[i(0x9e)]('(((.+)+)+)+$')[i(0xb6)]()[i(0xb3)](a2a)[i(0x9e)](i(0xa3));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x90;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';function a2c(){const n=['9717670CtEBVd','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','createInterface','944680EuTFBG','cert','339VWRMmb','openapikey','1414177UAIEng','exit','isFile','27pSVhNY','3703934AXAkvz','stdin','cacert','search','9080272Fhdlie','openai','parse','getGlobalConfig','(((.+)+)+)+$','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','message','You:\x20','choices','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','ChatGPT\x20style\x20AI\x20interface','fsi','text','17652vUTkzJ','6SQWntT','askGPT','toLowerCase','Using\x20OpenAI\x20Key\x20','6026104KoodaV','close','constructor','bright','error','toString','cfg','notice','create'];a2c=function(){return n;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x92)]({'input':process[j(0x9c)],'output':process['stdout']});c['question'](j(0xa6),async d=>{const k=j;if(d[k(0xaf)]()===k(0x98)){c[k(0xb2)]();return;}try{const e=await HTTPS[k(0xae)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0xa1)](e['data']);if(f[k(0xb5)])throw new Error(f[k(0xb5)][k(0xa5)]);Log[k(0xb4)]('GPT:\x20'+f?.[k(0xa7)][0x0]?.[k(0xab)]['trim']());}catch(g){Log[k(0xb5)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0xb9)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':['cacert',a2l(0x96)],'shortDesc':a2l(0xa9),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0x9d)]&&(this[m(0xaa)][m(0x99)](b['cacert'])?(c=b['cacert'],Log[m(0xb8)]('Using\x20CA\x20Cert\x20'+c)):Log[m(0xb5)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[m(0xb7)][m(0xa2)]();if(d[m(0x94)]){if(this[m(0xaa)][m(0x99)](d[m(0x94)]))c=d[m(0x94)];else throw Log[m(0xb5)](m(0xa8)+c);}let f='';if(b[m(0x96)])f=b[m(0x96)],Log['notice'](m(0xb0)+f);else{if(d[m(0xa0)])f=d[m(0xa0)];else throw Log[m(0xb5)](m(0xa4));}Log[m(0xb4)](m(0x91)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[m(0x98)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0xca))/0x1*(-parseInt(f(0xcb))/0x2)+parseInt(f(0xd3))/0x3+-parseInt(f(0xcf))/0x4+parseInt(f(0xd6))/0x5*(-parseInt(f(0xd1))/0x6)+parseInt(f(0xd2))/0x7*(parseInt(f(0xd7))/0x8)+parseInt(f(0xd0))/0x9*(parseInt(f(0xd5))/0xa)+parseInt(f(0xd8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xdf068));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var g=a3d;return a3a[g(0xd4)]()[g(0xcc)](g(0xce))[g(0xd4)]()[g(0xcd)](a3a)['search'](g(0xce));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xca;var f=c[d];return f;},a3d(a,b);}function a3c(){var h=['39940802CJIEzA','317671ygNtCB','2pdpYra','search','constructor','(((.+)+)+)+$','6872164lblVMM','2024586DQYBBh','9241110DhpmLK','5999akbyTg','1017306PBstFO','toString','20XwTmYQ','5ZPHwLB','648GqbGmW'];a3c=function(){return h;};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
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x1d0))/0x1+-parseInt(f(0x1cb))/0x2*(-parseInt(f(0x1c1))/0x3)+parseInt(f(0x1c4))/0x4*(parseInt(f(0x1c7))/0x5)+-parseInt(f(0x1c2))/0x6*(-parseInt(f(0x1bf))/0x7)+parseInt(f(0x1ce))/0x8*(-parseInt(f(0x1cc))/0x9)+-parseInt(f(0x1c6))/0xa*(-parseInt(f(0x1c9))/0xb)+parseInt(f(0x1c3))/0xc*(-parseInt(f(0x1cf))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x8b1d4));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x1ca)]()[h(0x1cd)]('(((.+)+)+)+$')[h(0x1ca)]()[h(0x1c5)](a3a)[h(0x1cd)](h(0x1c0));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a3c(){var i=['28170lRiuny','5MElcGj','apply','2893iJVbDI','toString','83852VafETt','469539kXLHSc','search','96jBweeq','3250zdawIf','994356GJxZPa','4591601TkYgVW','(((.+)+)+)+$','45ZZeNXh','6iWPfls','4812CAxkmg','1059064AbMErf','constructor'];a3c=function(){return i;};return a3c();}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1bf;var f=c[d];return f;},a3d(a,b);}import'./lecr.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0xae))/0x1+parseInt(f(0xac))/0x2*(-parseInt(f(0xa4))/0x3)+-parseInt(f(0xa5))/0x4+-parseInt(f(0xaa))/0x5*(-parseInt(f(0xa1))/0x6)+-parseInt(f(0xa2))/0x7*(-parseInt(f(0x9f))/0x8)+parseInt(f(0xa0))/0x9*(parseInt(f(0x9e))/0xa)+-parseInt(f(0xa6))/0xb*(-parseInt(f(0xad))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x50685));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x9b)]()[h(0x9a)](h(0xa3))[h(0x9b)]()[h(0xa7)](a4a)[h(0x9a)](h(0xa3));});function a4c(){const j=['create','5QVxrkn','apply','2JvqYhB','155592aLMYZi','26326VCMVtE','search','toString','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','maka\x20aws:<sub-command>','56330EQHnip','5064AFtgzn','639sAwNDf','1103826YzVrjH','5271YgnrpA','(((.+)+)+)+$','1890411INNGSW','1128828gIsUWR','176KGiTTX','constructor','aws'];a4c=function(){return j;};return a4c();}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xa9)]({'name':a4i(0xa8),'usage':a4i(0x9d),'validOpts':[],'shortDesc':a4i(0x9c),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'},async function(){throw UsageError;});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x9a;let f=c[d];return f;},a4d(a,b);}export default AWSCommand;
1
+ const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x115))/0x1+parseInt(f(0x11e))/0x2*(parseInt(f(0x11b))/0x3)+-parseInt(f(0x118))/0x4*(-parseInt(f(0x121))/0x5)+-parseInt(f(0x120))/0x6*(parseInt(f(0x113))/0x7)+-parseInt(f(0x117))/0x8+parseInt(f(0x112))/0x9*(-parseInt(f(0x11a))/0xa)+parseInt(f(0x116))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x23b9a));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x111;let f=c[d];return f;},a4d(a,b);}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x11f)]()['search'](h(0x11d))[h(0x11f)]()['constructor'](a4a)[h(0x111)]('(((.+)+)+)+$');});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x11c)]({'name':'aws','usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0x122),'description':a4i(0x114)},async function(){throw UsageError;});function a4c(){const j=['169281aKoYdV','5384038CDNFOq','731216QtIezA','36BjMidS','apply','5450DGRXNV','3Wfrlyx','create','(((.+)+)+)+$','175394gspMgx','toString','6PYPQmq','49530kFeLGL','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','search','981EphHqv','1399237SBNSfg','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'];a4c=function(){return j;};return a4c();}export default AWSCommand;
@@ -1 +1 @@
1
- const a5i=a5d;function a5c(){const k=['643674cIsdhO','repositoryUri','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','notice','11LfACGR','maka\x20aws:create-ecr','error','name','3sXneAX','create','apply','Create\x20an\x20Elastic\x20Container\x20Repository','search','49jbnuFY','1647qjupyj','ecrCreateRepository','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','5000905tfQWJE','2987444xltqhh','region','(((.+)+)+)+$','Repository\x20URI:\x20','toString','2341svTMTd','14094804Sartzz','4116536CChgEC','aws','maka\x20aws:create-ecr\x20--name=my-new-repo','success','exit','repository','886MPBWMq','16740xAchOf','cecr','httpStatusCode','constructor'];a5c=function(){return k;};return a5c();}(function(a,b){const f=a5d,c=a();while(!![]){try{const d=-parseInt(f(0x83))/0x1*(-parseInt(f(0x8b))/0x2)+-parseInt(f(0x74))/0x3*(parseInt(f(0x7e))/0x4)+parseInt(f(0x7d))/0x5+-parseInt(f(0x6c))/0x6*(-parseInt(f(0x79))/0x7)+-parseInt(f(0x85))/0x8+-parseInt(f(0x7a))/0x9*(-parseInt(f(0x8c))/0xa)+-parseInt(f(0x70))/0xb*(parseInt(f(0x84))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xa0c70));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a5d;if(c){const e=c[g(0x76)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0x82)]()[h(0x78)](h(0x80))[h(0x82)]()[h(0x6b)](a5a)[h(0x78)](h(0x80));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x6b;let f=c[d];return f;},a5d(a,b);}Command[a5i(0x75)]({'name':'create-ecr','aliases':[a5i(0x8d)],'usage':a5i(0x71),'requiredOpts':[a5i(0x73)],'validOpts':[a5i(0x7f)],'shortDesc':a5i(0x77),'examples':[a5i(0x87),'maka\x20aws:cecr\x20--name=my-new-repo',a5i(0x6e)]},async function(a,b){const j=a5i;try{const c=await this[j(0x86)][j(0x7b)](b);c&&c['$metadata'][j(0x8e)]===0xc8&&c[j(0x8a)]?(Log[j(0x88)]('Repository\x20created\x20successfully.'),Log[j(0x6f)](j(0x81)+c[j(0x8a)][j(0x6d)])):Log[j(0x72)](j(0x7c)),process['exit'](0x0);}catch(d){Log[j(0x72)](d),process[j(0x89)](0x1);}},a5e);
1
+ const a5i=a5d;(function(a,b){const f=a5d,c=a();while(!![]){try{const d=-parseInt(f(0x159))/0x1*(-parseInt(f(0x151))/0x2)+-parseInt(f(0x14e))/0x3+parseInt(f(0x149))/0x4*(-parseInt(f(0x147))/0x5)+parseInt(f(0x154))/0x6+parseInt(f(0x155))/0x7*(-parseInt(f(0x153))/0x8)+parseInt(f(0x145))/0x9*(parseInt(f(0x15c))/0xa)+parseInt(f(0x13f))/0xb*(-parseInt(f(0x156))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x82e57));function a5c(){const k=['Repository\x20URI:\x20','apply','maka\x20aws:create-ecr\x20--name=my-new-repo','search','987162tcefXF','cecr','Repository\x20created\x20successfully.','6pQjpZv','$metadata','32hCNkze','4272912GTZLXF','514171WWNMZL','823272PVOrTH','Create\x20an\x20Elastic\x20Container\x20Repository','repository','235602lyUpvm','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','httpStatusCode','10lBPqra','create','11vIzvMq','ecrCreateRepository','notice','maka\x20aws:cecr\x20--name=my-new-repo','create-ecr','error','7766469XAlvmr','success','1317845MShDQC','repositoryUri','16KMVJCD'];a5c=function(){return k;};return a5c();}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a5d;if(c){const e=c[g(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a['toString']()[h(0x14d)]('(((.+)+)+)+$')['toString']()['constructor'](a5a)[h(0x14d)]('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x13f;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a5i(0x15d)]({'name':a5i(0x143),'aliases':[a5i(0x14f)],'usage':'maka\x20aws:create-ecr','requiredOpts':['name'],'validOpts':['region'],'shortDesc':a5i(0x157),'examples':[a5i(0x14c),a5i(0x142),'maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1']},async function(a,b){const j=a5i;try{const c=await this['aws'][j(0x140)](b);c&&c[j(0x152)][j(0x15b)]===0xc8&&c[j(0x158)]?(Log[j(0x146)](j(0x150)),Log[j(0x141)](j(0x14a)+c[j(0x158)][j(0x148)])):Log[j(0x144)](j(0x15a)),process['exit'](0x0);}catch(d){Log[j(0x144)](d),process['exit'](0x1);}},a5e);
@@ -1 +1 @@
1
- const a6k=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xce;let f=c[d];return f;},a6d(a,b);}(function(a,b){const h=a6d,c=a();while(!![]){try{const d=-parseInt(h(0xe3))/0x1*(-parseInt(h(0xdd))/0x2)+parseInt(h(0xe5))/0x3+-parseInt(h(0xd8))/0x4+-parseInt(h(0xd5))/0x5+parseInt(h(0xdb))/0x6+parseInt(h(0xce))/0x7*(-parseInt(h(0xe6))/0x8)+parseInt(h(0xd0))/0x9*(parseInt(h(0xe2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xd490b));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a6d;if(c){const e=c[i(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0xdf)]()[j(0xde)]('(((.+)+)+)+$')[j(0xdf)]()['constructor'](a6a)['search'](j(0xd3));});a6a();function a6c(){const m=['4tpfkcD','search','toString','create','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','30uFZATu','579757MYiVmT','apply','527664Scsgvk','248doPngy','350273FCDaDF','chz','9460998GSkJtu','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','maka\x20aws:chz\x20--domain=example.com','(((.+)+)+)+$','aws','6408295TZBFkx','maka\x20aws:create-hosted-zone\x20--domain=example.com','publicIp','6684832UBRJIC','error','domain','5314050wfBlEq','exit'];a6c=function(){return m;};return a6c();}import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6k(0xe0)]({'name':'create-hosted-zone','aliases':[a6k(0xcf)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6k(0xda)],'validOpts':[],'shortDesc':a6k(0xe1),'examples':[a6k(0xd6),a6k(0xd2)]},async function(a,b){const l=a6k;try{const c=b[l(0xda)];this[l(0xd4)]['route53CreateHostedZone'](c);const d=await Actions['confirm']('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(d){const f=await this['aws']['chooseInstance']();if(f?.['id']){if(!f[l(0xd7)])throw Log[l(0xd9)](l(0xd1));this[l(0xd4)]['linkEC2ToRoute53'](f['id'],f[l(0xd7)],c);}else throw'Instance\x20not\x20found';}}catch(g){g&&Log['error'](g),process[l(0xdc)](0x0);}},a6e);
1
+ function a6c(){const m=['aws','maka\x20aws:create-hosted-zone\x20--domain=example.com','24665841QMWJEv','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','2763900vBIKll','6kQpuCP','create-hosted-zone','7003717zlhjvL','route53CreateHostedZone','exit','15lYcoOx','Instance\x20not\x20found','create','domain','Set\x20hosted\x20zone\x20to\x20an\x20instance?','apply','chooseInstance','confirm','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','651164zUUrYv','maka\x20aws:chz\x20--domain=example.com','8235400OakWcA','(((.+)+)+)+$','1064148gwDGUz','error','toString','publicIp','search','constructor','74651Pllfhi'];a6c=function(){return m;};return a6c();}const a6k=a6d;(function(a,b){const h=a6d,c=a();while(!![]){try{const d=parseInt(h(0xea))/0x1+-parseInt(h(0xe4))/0x2*(parseInt(h(0xd2))/0x3)+parseInt(h(0xe0))/0x4*(parseInt(h(0xd7))/0x5)+parseInt(h(0xd1))/0x6+-parseInt(h(0xd4))/0x7+-parseInt(h(0xe2))/0x8+parseInt(h(0xcf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xa3a0b));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a6d;if(c){const e=c[i(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0xe6)]()['search'](j(0xe3))[j(0xe6)]()[j(0xe9)](a6a)[j(0xe8)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xce;let f=c[d];return f;},a6d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6k(0xd9)]({'name':a6k(0xd3),'aliases':['chz'],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6k(0xda)],'validOpts':[],'shortDesc':a6k(0xdf),'examples':[a6k(0xce),a6k(0xe1)]},async function(a,b){const l=a6k;try{const c=b[l(0xda)];this[l(0xeb)][l(0xd5)](c);const d=await Actions[l(0xde)](l(0xdb));if(d){const f=await this[l(0xeb)][l(0xdd)]();if(f?.['id']){if(!f['publicIp'])throw Log[l(0xe5)](l(0xd0));this[l(0xeb)]['linkEC2ToRoute53'](f['id'],f[l(0xe7)],c);}else throw l(0xd8);}}catch(g){g&&Log[l(0xe5)](g),process[l(0xd6)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7a1=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x166;let f=c[d];return f;},a7d(a,b);}(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=-parseInt(Y(0x185))/0x1*(parseInt(Y(0x19b))/0x2)+parseInt(Y(0x1a5))/0x3+-parseInt(Y(0x1ae))/0x4+parseInt(Y(0x1b1))/0x5+-parseInt(Y(0x1a1))/0x6*(parseInt(Y(0x196))/0x7)+parseInt(Y(0x16d))/0x8+-parseInt(Y(0x1a7))/0x9*(-parseInt(Y(0x193))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x78354));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const Z=a7d;if(c){const e=c[Z(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const a0=a7d;return a7a[a0(0x1a9)]()[a0(0x1a6)](a0(0x16a))[a0(0x1a9)]()[a0(0x192)](a7a)[a0(0x1a6)](a0(0x16a));});function a7c(){const a3=['Setting\x20the\x20key-pair\x20to:\x20','1641630LjcDhs','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','number','Name','User\x20Data:','chooseVPC','1914VjRcMO','Security\x20Group\x20Name:\x20[','maka\x20aws:ci\x20--env\x20prod','Key-Pair:\x20','606624oQHOTq','search','18kWUaRx','Remove\x20the\x20security\x20group\x20','toString','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','createKeyPair','ask','chooseSecurityGroup','3071916HakZuH','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Creating\x20user\x20data\x20file\x20in\x20','4379310YJLioK','Would\x20you\x20like\x20to\x20include\x20user\x20data?','notice','22,80,443','fsi','(((.+)+)+)+$','Instance\x20Count:\x20','Remove\x20the\x20keypair\x20','1009632QGwVSq','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','environment','getEnvFromShorthand','maka\x20aws:create-instance','ec2createSG','Create\x20new\x20AWS\x20instance','error','success','maka\x20aws:create-instance\x20--env\x20dev','env','create','exit','user-data','string','confirm','createFile','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','unlinkSync','split','Please\x20choose\x20a\x20key\x20to\x20use:\x20','listAvailableSubnets','apply','Instace\x20Type:\x20','1QCXwzE','readFileSync','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','getAppConfigPath','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ImageID:','No\x20instance\x20has\x20been\x20created.','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Web\x20App','Subnet:\x20','listAvailableAMIs','t3.micro','constructor','6448390CLqzxL','aws','name','9058CGqjfn','ec2create','isFile','maka-cli'];a7c=function(){return a3;};return a7c();}a7a();import a7e from'./aws.command.js';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a7a1(0x178)]({'name':'create-instance','aliases':['ci'],'usage':a7a1(0x171),'examples':[a7a1(0x176),a7a1(0x1a3)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7a1(0x173),'description':a7a1(0x1aa)},async function(a,b){const a2=a7a1;try{const {projectConfig:c,fsi:d,cfg:f}=this,{appName:g}=c,h=f[a2(0x170)](b[a2(0x177)]),i=f[a2(0x188)](h),j=g+'-'+h,k=await Actions[a2(0x1ac)]('EC2\x20Name:\x20['+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 this['aws'][a2(0x1ab)]({'env':h});r=y,s=z,Log[a2(0x175)](a2(0x19a)+r);}else try{Log[a2(0x167)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await this[a2(0x194)]['ec2describeKeys']({'suggestion':A}),C=await Actions[a2(0x1ac)](a2(0x181))||'-1';if(parseInt(C)<0x0){Log[a2(0x174)]('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[a2(0x167)](a2(0x18c));return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D[a2(0x195)],Log[a2(0x175)](a2(0x19a)+r);break;}}}catch(E){Log[a2(0x174)](E);}l=await this[a2(0x194)]['chooseVPC']();const t=await Actions[a2(0x17c)](a2(0x187),!![]);let u;if(t){const F=l===''?await this[a2(0x194)][a2(0x1a0)]():l;u=await Actions[a2(0x1ac)](a2(0x1a2)+k+']')||k;const G=await Actions[a2(0x1ac)](a2(0x18d))||a2(0x168),H=G[a2(0x180)](',');await this[a2(0x194)][a2(0x172)]({'description':a2(0x18e),'name':u,'vpcId':F,'sgPorts':H});}u=k,m=await this[a2(0x194)][a2(0x1ad)](u),n=await this['aws'][a2(0x190)](),p=await this[a2(0x194)][a2(0x182)]();const v=0x1,w=0x1;try{const I=await Actions['ask'](a2(0x1af))||'1:1',J=I[a2(0x180)](':')[0x0],K=I[a2(0x180)](':')[0x1];typeof parseInt(J)==='number'&&typeof parseInt(K)===a2(0x19d)&&Log[a2(0x175)](a2(0x189)+J+':'+K);}catch(L){Log['error'](L);}try{const M=await Actions['ask'](a2(0x18a))||a2(0x191);typeof M===a2(0x17b)&&(o=M);}catch(N){Log[a2(0x174)](N);}let x='';try{const O=await Actions[a2(0x17c)](a2(0x166),![]);O&&(x=a7f['join'](i,a2(0x17a)),Log[a2(0x167)](a2(0x1b0)+x),await this[a2(0x169)][a2(0x17d)]({'filePath':x,'data':''}),await Actions['confirm'](a2(0x16e)));}catch(P){Log[a2(0x174)](P);}try{const Q=await this['aws']['getSubnetCidr'](p);Log[a2(0x167)](a2(0x18b)+n),Log[a2(0x167)](a2(0x16b)+v+':'+w),Log[a2(0x167)](a2(0x184)+o),Log[a2(0x167)](a2(0x1a4)+r),Log['notice']('Security\x20Group:\x20'+m),Log[a2(0x167)](a2(0x18f)+Q);if(x){Log[a2(0x167)](a2(0x19f)+x);const S=a7g[a2(0x186)](x)[a2(0x1a9)]();Log['notice'](S);}const R=await Actions['confirm'](a2(0x19c));if(R){const T=await this['aws'][a2(0x197)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':a2(0x199)},{'Key':a2(0x16f),'Value':h},{'Key':a2(0x19e),'Value':k}],...x&&{'userData':x}});T&&(Log[a2(0x175)](a2(0x17e)),Log['bright']('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[a2(0x167)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const U=await Actions[a2(0x17c)](a2(0x16c)+r+'\x20?',!![]);U&&(this[a2(0x194)]['deleteKeyPair'](r),d[a2(0x198)](s)&&a7g[a2(0x17f)](s));const V=await Actions[a2(0x17c)](a2(0x1a8)+m+'\x20?',!![]);V&&this[a2(0x194)]['deleteSecurityGroup'](m);}}catch(W){Log[a2(0x174)](W);}}catch(X){X&&Log['error'](X),process[a2(0x179)](0x0);}},a7e);
1
+ const a7a1=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xeb;let f=c[d];return f;},a7d(a,b);}(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=parseInt(Y(0x12e))/0x1+-parseInt(Y(0x11d))/0x2+-parseInt(Y(0x11e))/0x3+-parseInt(Y(0xef))/0x4*(parseInt(Y(0x12b))/0x5)+-parseInt(Y(0x127))/0x6*(-parseInt(Y(0x10a))/0x7)+parseInt(Y(0x101))/0x8+-parseInt(Y(0xf8))/0x9*(-parseInt(Y(0x100))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x5dad9));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const Z=a7d;if(c){const e=c[Z(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const a0=a7d;return a7a['toString']()[a0(0x133)]('(((.+)+)+)+$')['toString']()[a0(0x11b)](a7a)[a0(0x133)](a0(0x137));});a7a();import a7e from'./aws.command.js';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a7a1(0x123)]({'name':a7a1(0x12a),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev',a7a1(0xf4)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7a1(0x109)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7a1(0xfa)},async function(a,b){const a2=a7a1;try{const {projectConfig:c,fsi:d,cfg:f}=this,{appName:g}=c,h=f[a2(0xf2)](b[a2(0x109)]),i=f[a2(0xfc)](h),j=g+'-'+h,k=await Actions['ask'](a2(0x12d)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[a2(0x116)](a2(0xf7),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await this[a2(0x12f)][a2(0x103)]({'env':h});r=y,s=z,Log[a2(0x10c)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[a2(0x115)](a2(0x11c));const A=r?r:k,B=await this[a2(0x12f)][a2(0xfd)]({'suggestion':A}),C=await Actions[a2(0xed)](a2(0x105))||'-1';if(parseInt(C)<0x0){Log[a2(0x121)](a2(0x132)),Log[a2(0x115)]('No\x20instance\x20has\x20been\x20created.');return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D[a2(0x110)],Log[a2(0x10c)](a2(0xfb)+r);break;}}}catch(E){Log[a2(0x121)](E);}l=await this[a2(0x12f)][a2(0xf5)]();const t=await Actions[a2(0x116)](a2(0xfe),!![]);let u;if(t){const F=l===''?await this['aws'][a2(0xf5)]():l;u=await Actions['ask'](a2(0x122)+k+']')||k;const G=await Actions[a2(0xed)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',H=G[a2(0x102)](',');await this[a2(0x12f)][a2(0x11a)]({'description':a2(0x108),'name':u,'vpcId':F,'sgPorts':H});}u=k,m=await this['aws'][a2(0x111)](u),n=await this[a2(0x12f)]['listAvailableAMIs'](),p=await this[a2(0x12f)][a2(0x118)]();const v=0x1,w=0x1;try{const I=await Actions[a2(0xed)](a2(0xf9))||a2(0xf1),J=I['split'](':')[0x0],K=I['split'](':')[0x1];typeof parseInt(J)===a2(0xf3)&&typeof parseInt(K)===a2(0xf3)&&Log[a2(0x10c)](a2(0xec)+J+':'+K);}catch(L){Log[a2(0x121)](L);}try{const M=await Actions['ask'](a2(0x12c))||a2(0x10b);typeof M===a2(0x130)&&(o=M);}catch(N){Log[a2(0x121)](N);}let x='';try{const O=await Actions['confirm'](a2(0x11f),![]);O&&(x=a7f[a2(0x126)](i,a2(0x114)),Log[a2(0x115)](a2(0x106)+x),await this[a2(0x10f)][a2(0xee)]({'filePath':x,'data':''}),await Actions[a2(0x116)](a2(0x128)));}catch(P){Log[a2(0x121)](P);}try{const Q=await this[a2(0x12f)][a2(0xeb)](p);Log[a2(0x115)](a2(0x119)+n),Log[a2(0x115)](a2(0x10d)+v+':'+w),Log[a2(0x115)](a2(0x129)+o),Log[a2(0x115)](a2(0x112)+r),Log[a2(0x115)]('Security\x20Group:\x20'+m),Log[a2(0x115)](a2(0x107)+Q);if(x){Log[a2(0x115)](a2(0x135)+x);const S=a7g['readFileSync'](x)[a2(0x134)]();Log[a2(0x115)](S);}const R=await Actions['confirm'](a2(0x131));if(R){const T=await this[a2(0x12f)]['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':a2(0xf6),'Value':a2(0xf0)},{'Key':'environment','Value':h},{'Key':a2(0x125),'Value':k}],...x&&{'userData':x}});T&&(Log[a2(0x10c)](a2(0x104)),Log[a2(0x113)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[a2(0x115)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const U=await Actions['confirm'](a2(0x120)+r+'\x20?',!![]);U&&(this[a2(0x12f)][a2(0xff)](r),d[a2(0x117)](s)&&a7g[a2(0x136)](s));const V=await Actions[a2(0x116)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);V&&this['aws'][a2(0x124)](m);}}catch(W){Log[a2(0x121)](W);}}catch(X){X&&Log['error'](X),process['exit'](0x0);}},a7e);function a7c(){const a3=['1564839bPEHkL','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Remove\x20the\x20keypair\x20','error','Security\x20Group\x20Name:\x20[','create','deleteSecurityGroup','Name','join','6LcncfO','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','Instace\x20Type:\x20','create-instance','5yOaohV','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','EC2\x20Name:\x20[','483395IEuPAs','aws','string','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','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','search','toString','User\x20Data:','unlinkSync','(((.+)+)+)+$','getSubnetCidr','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','ask','createFile','1220988qezrhf','maka-cli','1:1','getEnvFromShorthand','number','maka\x20aws:ci\x20--env\x20prod','chooseVPC','created-by','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','27tIPYKK','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','Setting\x20the\x20key-pair\x20to:\x20','getAppConfigPath','ec2describeKeys','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','deleteKeyPair','1031950gTVfXz','3036888xLSUOC','split','createKeyPair','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Creating\x20user\x20data\x20file\x20in\x20','Subnet:\x20','Web\x20App','env','692062eogPMj','t3.micro','success','Instance\x20Count:\x20','apply','fsi','name','chooseSecurityGroup','Key-Pair:\x20','bright','user-data','notice','confirm','isFile','listAvailableSubnets','ImageID:','ec2createSG','constructor','**\x20Available\x20key-pairs\x20**','121784wNcQur'];a7c=function(){return a3;};return a7c();}
@@ -1 +1 @@
1
- const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x161))/0x1*(-parseInt(g(0x165))/0x2)+parseInt(g(0x15e))/0x3*(-parseInt(g(0x16c))/0x4)+parseInt(g(0x162))/0x5+parseInt(g(0x15f))/0x6+-parseInt(g(0x16d))/0x7+parseInt(g(0x167))/0x8+parseInt(g(0x16a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xd7038));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(0x169)]()['search'](h(0x163))[h(0x169)]()['constructor'](a8a)[h(0x15d)](h(0x163));});a8a();function a8c(){const k=['maka\x20aws:ckp\x20--env\x20prod','6518000vyjvZD','create-key-pair','toString','1932246VEAQqs','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','1490432CIbNHl','4530575GgsPdn','env','maka\x20aws:create-key-pair\x20--env\x20prod','ckp','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','error','maka\x20aws:create-key-pair','getEnvFromShorthand','search','12ZqQslU','9204210zCTnQw','create','231817BkXxfS','5751625zLVbNR','(((.+)+)+)+$','createKeyPair','6YAFsFX'];a8c=function(){return k;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x158;let f=c[d];return f;},a8d(a,b);}import a8e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a8i(0x160)]({'name':a8i(0x168),'aliases':[a8i(0x158)],'usage':a8i(0x15b),'examples':[a8i(0x16f),a8i(0x166)],'mustBeInMakaProject':!![],'requiredOpts':[a8i(0x16e)],'validOpts':[],'shortDesc':a8i(0x16b),'description':a8i(0x159)},async function(a,b){const j=a8i;try{const {aws:c}=this,d=this['cfg'][j(0x15c)](b[j(0x16e)]);c[j(0x164)]({'env':d});}catch(f){f&&Log[j(0x15a)](f),process['exit'](0x0);}},a8e);
1
+ function a8c(){const l=['30wAnpZv','apply','642593EnPNvy','2516936HYIYBR','exit','toString','995868bRJGcY','(((.+)+)+)+$','getEnvFromShorthand','68QlbIWx','maka\x20aws:create-key-pair\x20--env\x20prod','env','maka\x20aws:ckp\x20--env\x20prod','create','1060538CSomAT','225507yUOSPx','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','error','41899610ERfBSP','ckp','createKeyPair','6074840vERaee','constructor','maka\x20aws:create-key-pair','\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','36isLbLP','search','create-key-pair'];a8c=function(){return l;};return a8c();}const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x114))/0x1+parseInt(g(0x10c))/0x2+parseInt(g(0x115))/0x3*(parseInt(g(0x10f))/0x4)+parseInt(g(0x11b))/0x5+-parseInt(g(0x106))/0x6*(parseInt(g(0x108))/0x7)+-parseInt(g(0x109))/0x8*(-parseInt(g(0x103))/0x9)+-parseInt(g(0x118))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xa1559));function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x103;let f=c[d];return f;},a8d(a,b);}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x10b)]()[i(0x104)](i(0x10d))['toString']()[i(0x11c)](a8a)[i(0x104)](i(0x10d));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a8j(0x113)]({'name':a8j(0x105),'aliases':[a8j(0x119)],'usage':a8j(0x11d),'examples':[a8j(0x110),a8j(0x112)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x111)],'validOpts':[],'shortDesc':a8j(0x116),'description':a8j(0x11e)},async function(a,b){const k=a8j;try{const {aws:c}=this,d=this['cfg'][k(0x10e)](b[k(0x111)]);c[k(0x11a)]({'env':d});}catch(f){f&&Log[k(0x117)](f),process[k(0x10a)](0x0);}},a8e);
@@ -1 +1 @@
1
- const a9p=a9d;function a9c(){const s=['maka\x20aws:create-secuirty-group','3995928hOCmOP','ec2createSG','ask','15906WkfHVE','266XojzAy','7603sKNqAS','apply','toString','12970JNcOUA','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','forEach','create','search','error','List\x20is\x20not\x20all\x20numbers','Security\x20Group\x20Name:\x20[','exit','14695sOslHe','(((.+)+)+)+$','split','810hQRQWG','Web\x20App','100blFVzJ','constructor','name','2153421zDJCWX','match','maka\x20aws\x20create-security-group','1904432EGNPxY','22,80,443','220808zgyfIb','csg','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2'];a9c=function(){return s;};return a9c();}(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x83))/0x1*(-parseInt(m(0x94))/0x2)+parseInt(m(0x97))/0x3+-parseInt(m(0x78))/0x4+-parseInt(m(0x8f))/0x5*(-parseInt(m(0x92))/0x6)+-parseInt(m(0x82))/0x7*(parseInt(m(0x7a))/0x8)+-parseInt(m(0x7e))/0x9+parseInt(m(0x86))/0xa*(parseInt(m(0x81))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x9c7b2));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x85)]()[o(0x8a)]('(((.+)+)+)+$')[o(0x85)]()[o(0x95)](a9a)['search'](o(0x90));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x77;let f=c[d];return f;},a9d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x89)]({'name':'create-security-group','aliases':[a9p(0x7b)],'usage':a9p(0x77),'validOpts':[],'shortDesc':a9p(0x7c),'mustBeInMakaProject':!![],'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':[a9p(0x7d),'maka\x20aws:csg']},async function(a,b){const q=a9p,{projectConfig:c,aws:d}=this;try{const {appName:f}=c,g=await d['chooseVPC'](),h=b[q(0x96)]?b[q(0x96)]:''+f,i=await Actions['ask'](q(0x8d)+h+']')||h,j=await Actions[q(0x80)](q(0x87))||q(0x79),k=j[q(0x91)](',');k[q(0x88)](l=>{const r=q;if(!l[r(0x98)](/^\d+$/))throw r(0x8c);}),await d[q(0x7f)]({'description':q(0x93),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x8b)](l),process[q(0x8e)](0x1);}},a9e);
1
+ const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x18d))/0x1+-parseInt(m(0x18f))/0x2+-parseInt(m(0x18c))/0x3+parseInt(m(0x18a))/0x4+parseInt(m(0x194))/0x5*(parseInt(m(0x180))/0x6)+parseInt(m(0x192))/0x7*(parseInt(m(0x181))/0x8)+parseInt(m(0x17f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xdb134));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x17b)]()['search'](o(0x183))[o(0x17b)]()['constructor'](a9a)['search']('(((.+)+)+)+$');});function a9c(){const r=['name','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','ask','maka\x20aws\x20create-security-group','6399188MkqlLf','csg','17583fXAIgk','1368338szRpSS','maka\x20aws:csg','3039002SXStyR','split','Web\x20App','7gUDiUi','create','55GEyKHL','chooseVPC','ec2createSG','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','toString','maka\x20aws:create-secuirty-group','apply','create-security-group','16021368FLhQJd','220314rGpefo','57392scIRaV','Security\x20Group\x20Name:\x20[','(((.+)+)+)+$','22,80,443','forEach'];a9c=function(){return r;};return a9c();}a9a();function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x17a;let f=c[d];return f;},a9d(a,b);}import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x193)]({'name':a9p(0x17e),'aliases':[a9p(0x18b)],'usage':a9p(0x189),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','mustBeInMakaProject':!![],'description':a9p(0x187),'examples':[a9p(0x17c),a9p(0x18e)]},async function(a,b){const q=a9p,{projectConfig:c,aws:d}=this;try{const {appName:f}=c,g=await d[q(0x195)](),h=b[q(0x186)]?b[q(0x186)]:''+f,i=await Actions[q(0x188)](q(0x182)+h+']')||h,j=await Actions[q(0x188)](q(0x17a))||q(0x184),k=j[q(0x190)](',');k[q(0x185)](l=>{if(!l['match'](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await d[q(0x196)]({'description':q(0x191),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process['exit'](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x13b))/0x1*(-parseInt(f(0x136))/0x2)+parseInt(f(0x138))/0x3+-parseInt(f(0x122))/0x4*(-parseInt(f(0x12d))/0x5)+parseInt(f(0x135))/0x6*(parseInt(f(0x128))/0x7)+parseInt(f(0x139))/0x8+-parseInt(f(0x131))/0x9*(parseInt(f(0x13a))/0xa)+parseInt(f(0x130))/0xb*(-parseInt(f(0x134))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xac7d7));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x13f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x12f)](h(0x13d))[h(0x132)]()['constructor'](a10a)['search'](h(0x13d));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x122;let f=c[d];return f;},a10d(a,b);}function a10c(){const k=['\x20deleted\x20successfully\x20in\x20region\x20','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','5vadENi','error','search','5413397AusrZs','153bsjFjV','toString','delete-ecr','60cjSaHj','28326TUVdgP','187868DAHTxz','.\x20Error:\x20','4026651ahpOca','442496MDXgQU','156630YVZHAe','14xuYRpW','ecrDeleteRepository','(((.+)+)+)+$','name','apply','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','1334792PZFFVY','exit','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','decr','Repository\x20','Delete\x20an\x20Elastic\x20Container\x20Repository','574XrHPiM','region','\x20in\x20region\x20'];a10c=function(){return k;};return a10c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a10i(0x133),'aliases':[a10i(0x125)],'usage':a10i(0x12c),'requiredOpts':['name','region'],'validOpts':[],'shortDesc':a10i(0x127),'examples':[a10i(0x140),a10i(0x124)]},async function(a,b){const j=a10i,{aws:c}=this;try{await c[j(0x13c)]({'repoName':b[j(0x13e)],'region':b[j(0x129)]}),Log['success'](j(0x126)+b[j(0x13e)]+j(0x12b)+b[j(0x129)]+'.'),process['exit'](0x0);}catch(d){Log[j(0x12e)]('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[j(0x13e)]+j(0x12a)+b[j(0x129)]+j(0x137)+d),process[j(0x123)](0x1);}},a10e);
1
+ const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x70))/0x1+-parseInt(f(0x77))/0x2*(parseInt(f(0x7b))/0x3)+-parseInt(f(0x7f))/0x4*(parseInt(f(0x6e))/0x5)+-parseInt(f(0x72))/0x6*(parseInt(f(0x78))/0x7)+parseInt(f(0x69))/0x8+-parseInt(f(0x7e))/0x9*(-parseInt(f(0x66))/0xa)+parseInt(f(0x80))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xec067));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x6b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x67)]()[h(0x82)](h(0x7d))['toString']()[h(0x71)](a10a)[h(0x82)](h(0x7d));});a10a();import a10e from'./aws.command.js';function a10c(){const k=['apply','\x20in\x20region\x20','exit','5IsnPLT','error','233345xaBdLh','constructor','110820phZZAh','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','ecrDeleteRepository','Failed\x20to\x20delete\x20the\x20repository:\x20','region','2674498MPyBhI','70srgLns','name','delete-ecr','3tgHaSP','decr','(((.+)+)+)+$','456633VCsGwX','6201556GaSEmg','23942358HjsHiK','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','search','170GMsvAi','toString','\x20deleted\x20successfully\x20in\x20region\x20','9866680pELGiv','create'];a10c=function(){return k;};return a10c();}import{Command}from'../../command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x66;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a10i(0x6a)]({'name':a10i(0x7a),'aliases':[a10i(0x7c)],'usage':'maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','requiredOpts':[a10i(0x79),'region'],'validOpts':[],'shortDesc':'Delete\x20an\x20Elastic\x20Container\x20Repository','examples':[a10i(0x73),a10i(0x81)]},async function(a,b){const j=a10i,{aws:c}=this;try{await c[j(0x74)]({'repoName':b[j(0x79)],'region':b[j(0x76)]}),Log['success']('Repository\x20'+b[j(0x79)]+j(0x68)+b[j(0x76)]+'.'),process[j(0x6d)](0x0);}catch(d){Log[j(0x6f)](j(0x75)+b[j(0x79)]+j(0x6c)+b[j(0x76)]+'.\x20Error:\x20'+d),process[j(0x6d)](0x1);}},a10e);
@@ -1 +1 @@
1
- const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x11f))/0x1*(parseInt(f(0x11a))/0x2)+-parseInt(f(0x119))/0x3*(parseInt(f(0x117))/0x4)+parseInt(f(0x116))/0x5+parseInt(f(0x113))/0x6+-parseInt(f(0x120))/0x7*(parseInt(f(0x114))/0x8)+parseInt(f(0x11b))/0x9+-parseInt(f(0x111))/0xa*(parseInt(f(0x122))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x71553));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x11d)]()[h(0x11c)](h(0x112))['toString']()['constructor'](a11a)[h(0x11c)](h(0x112));});a11a();function a11c(){const k=['exit','create','10cObArU','(((.+)+)+)+$','4364076emZqqF','25368erwxKF','maka\x20aws:describe-instances','106445giIlFU','40DcCZYJ','apply','218676eKXMIh','30CaFBtm','8272665oHmjEI','search','toString','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','19597IUJUhG','238Cmacdk','ec2describeInstances','7269130qyZMwl','maka\x20aws:di','describe-instances'];a11c=function(){return k;};return a11c();}import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x10e;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a11i(0x110)]({'name':a11i(0x10e),'aliases':['di'],'usage':a11i(0x115),'validOpts':[],'shortDesc':a11i(0x11e),'examples':[a11i(0x115),a11i(0x123)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const j=a11i;try{const {aws:a}=this;a[j(0x121)]();}catch(b){b&&Log['error'](b),process[j(0x10f)](0x1);}},a11e);
1
+ const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x1c1))/0x1+parseInt(f(0x1c7))/0x2*(-parseInt(f(0x1bf))/0x3)+-parseInt(f(0x1cc))/0x4*(-parseInt(f(0x1c3))/0x5)+parseInt(f(0x1c8))/0x6*(parseInt(f(0x1c5))/0x7)+parseInt(f(0x1bc))/0x8+-parseInt(f(0x1c0))/0x9+parseInt(f(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xb1a6f));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(0x1c9)]()['search']('(((.+)+)+)+$')[g(0x1c9)]()[g(0x1c6)](a11a)['search']('(((.+)+)+)+$');});function a11c(){const j=['791625TUIVuu','error','7BdZIux','constructor','1229422GLeoIQ','4702494uYLdBJ','toString','maka\x20aws:describe-instances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','20qPLUEr','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','3055100DyIyWZ','4302232XQysxJ','create','describe-instances','3HvfDvp','9101322nNBOTF','65031oVhMbS','ec2describeInstances'];a11c=function(){return j;};return a11c();}a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a11d(a,b);}Command[a11h(0x1bd)]({'name':a11h(0x1be),'aliases':['di'],'usage':a11h(0x1ca),'validOpts':[],'shortDesc':a11h(0x1ba),'examples':[a11h(0x1ca),'maka\x20aws:di'],'description':a11h(0x1cb)},async function(){const i=a11h;try{const {aws:a}=this;a[i(0x1c2)]();}catch(b){b&&Log[i(0x1c4)](b),process['exit'](0x1);}},a11e);
@@ -1 +1 @@
1
- function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0xce;var f=c[d];return f;},a12d(a,b);}var a12h=a12d;(function(a,b){var f=a12d,c=a();while(!![]){try{var d=-parseInt(f(0xce))/0x1*(-parseInt(f(0xd6))/0x2)+-parseInt(f(0xe0))/0x3+parseInt(f(0xdf))/0x4+-parseInt(f(0xd5))/0x5*(-parseInt(f(0xe2))/0x6)+-parseInt(f(0xd2))/0x7+parseInt(f(0xd1))/0x8+-parseInt(f(0xdd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x6fa82));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var g=a12d;return a12a[g(0xd7)]()[g(0xcf)](g(0xdc))[g(0xd7)]()[g(0xda)](a12a)['search'](g(0xdc));});function a12c(){var j=['create','2187852TJExUG','239163tmxgFT','maka\x20aws:describe-key-pairs','2836290SUREcC','582717DCEZtp','search','describe-key-pairs','7054512tVuMyQ','4297937FNAqyH','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','maka\x20aws:dkp','5yqCePx','2VTDDrQ','toString','aws','ec2describeKeys','constructor','dkp','(((.+)+)+)+$','11998359VhpLsK'];a12c=function(){return j;};return a12c();}a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a12h(0xde)]({'name':a12h(0xd0),'aliases':[a12h(0xdb)],'usage':a12h(0xe1),'validOpts':[],'shortDesc':a12h(0xd3),'examples':[a12h(0xe1),a12h(0xd4)]},async function(){var i=a12h;try{this[i(0xd8)][i(0xd9)]();}catch(a){a&&Log['error'](a),process['exit'](0x0);}},a12e);
1
+ var a12h=a12d;(function(a,b){var f=a12d,c=a();while(!![]){try{var d=parseInt(f(0xec))/0x1*(parseInt(f(0xdc))/0x2)+-parseInt(f(0xde))/0x3+parseInt(f(0xdd))/0x4+parseInt(f(0xe7))/0x5*(-parseInt(f(0xe6))/0x6)+-parseInt(f(0xea))/0x7+parseInt(f(0xee))/0x8+-parseInt(f(0xe9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x621f0));function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0xdb;var f=c[d];return f;},a12d(a,b);}function a12c(){var j=['107192KudoYq','1240544MOFkDu','1084227nPIDEP','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','constructor','(((.+)+)+)+$','search','toString','aws','dkp','12XKQCKe','797190vMiTAh','maka\x20aws:dkp','216756XrOeZz','762825IiyYRh','create','5VkuUfU','ec2describeKeys','5097056etiQYO','maka\x20aws:describe-key-pairs'];a12c=function(){return j;};return a12c();}var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var g=a12d;return a12a[g(0xe3)]()[g(0xe2)](g(0xe1))['toString']()[g(0xe0)](a12a)[g(0xe2)](g(0xe1));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a12h(0xeb)]({'name':'describe-key-pairs','aliases':[a12h(0xe5)],'usage':a12h(0xdb),'validOpts':[],'shortDesc':a12h(0xdf),'examples':['maka\x20aws:describe-key-pairs',a12h(0xe8)]},async function(){var i=a12h;try{this[i(0xe4)][i(0xed)]();}catch(a){a&&Log['error'](a),process['exit'](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13m=a13d;(function(a,b){const j=a13d,c=a();while(!![]){try{const d=-parseInt(j(0x18b))/0x1*(parseInt(j(0x199))/0x2)+parseInt(j(0x187))/0x3+parseInt(j(0x18d))/0x4*(-parseInt(j(0x19f))/0x5)+-parseInt(j(0x184))/0x6+parseInt(j(0x197))/0x7*(-parseInt(j(0x1a0))/0x8)+parseInt(j(0x198))/0x9+parseInt(j(0x195))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x93c75));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a13d;if(c){const e=c[k(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const l=a13d;return a13a[l(0x185)]()['search'](l(0x17e))[l(0x185)]()[l(0x193)](a13a)[l(0x19e)](l(0x17e));});a13a();import a13e from'./aws.command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x17b;let f=c[d];return f;},a13d(a,b);}function a13c(){const q=['getSecurityGroups','confirm','\x20SGID:\x20','ID:\x20','2413536MjUbMX','toString','success','3382185EijNrG','forEach','apply','create','212919WacxEQ','deleteSecurityGroup','12652uVUJcc','name','notice','Not\x20deleting\x20secuirty\x20group','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','dsg','constructor','maka\x20aws:dsg','9871780mRPlza','\x20SG\x20NAME:\x20','105rLLqzY','3510351oVJmIv','4VkzopK','delete-security-group','exit','maka\x20aws:delete-sg','sgId','search','770gjqPlh','311528vIvMhL','error','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','appName','ask','(((.+)+)+)+$','Deleted\x20'];a13c=function(){return q;};return a13c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13m(0x18a)]({'name':a13m(0x19a),'aliases':[a13m(0x192)],'usage':a13m(0x19c),'mustBeInMakaProject':!![],'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a13m(0x19c),a13m(0x194)]},async function(){const n=a13m;try{const {projectConfig:a,aws:b}=this;let c='';c=a[n(0x17c)];const {sgList:d}=await b[n(0x180)]();d[n(0x188)](function(i){const o=n;i['name']['includes'](c)?Log[o(0x18f)](o(0x183)+i['id']+o(0x196)+i[o(0x18e)]+o(0x182)+i[o(0x19d)]):Log['bright'](o(0x183)+i['id']+'\x20SG\x20NAME:\x20'+i[o(0x18e)]+o(0x182)+i[o(0x19d)]);});let f='';const g=await Actions[n(0x17d)](n(0x191));d[n(0x188)](function(i){const p=n;i['id']===parseInt(g)&&(f=i[p(0x19d)]);});if(!f)throw Log[n(0x1a1)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const h=await Actions[n(0x181)]('Deleting\x20a\x20'+f+n(0x17b),![]);h?(await b[n(0x18c)](f),Log[n(0x186)](n(0x17f)+f)):Log[n(0x1a1)](n(0x190)),process[n(0x19b)](0x0);}catch(i){i&&Log[n(0x1a1)](i),process[n(0x19b)](0x1);}},a13e);
1
+ const a13m=a13d;(function(a,b){const j=a13d,c=a();while(!![]){try{const d=-parseInt(j(0x175))/0x1+parseInt(j(0x15d))/0x2*(-parseInt(j(0x162))/0x3)+-parseInt(j(0x157))/0x4+parseInt(j(0x16b))/0x5*(-parseInt(j(0x16a))/0x6)+parseInt(j(0x174))/0x7*(-parseInt(j(0x165))/0x8)+-parseInt(j(0x16f))/0x9+parseInt(j(0x15a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x4a6dc));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a13d;if(c){const e=c[k(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const l=a13d;return a13a['toString']()[l(0x155)]('(((.+)+)+)+$')[l(0x158)]()['constructor'](a13a)[l(0x155)](l(0x167));});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x155;let f=c[d];return f;},a13d(a,b);}a13a();function a13c(){const p=['name','Not\x20deleting\x20secuirty\x20group','646326ivBJdX','getSecurityGroups','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','exit','\x20SGID:\x20','151221eUEGlM','240431uMmmCf','error','success','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','dsg','search','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','850320SFcSBN','toString','ask','16816330jwseTc','sgId','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','66494OFRLLL','apply','delete-security-group','maka\x20aws:delete-sg','bright','15BvdSTv','notice','ID:\x20','40IEwEWi','create','(((.+)+)+)+$','Deleting\x20a\x20','forEach','157554KJzWKN','110eYedsg','confirm'];a13c=function(){return p;};return a13c();}import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13m(0x166)]({'name':a13m(0x15f),'aliases':[a13m(0x179)],'usage':'maka\x20aws:delete-sg','mustBeInMakaProject':!![],'validOpts':[],'shortDesc':a13m(0x156),'examples':[a13m(0x160),'maka\x20aws:dsg']},async function(){const n=a13m;try{const {projectConfig:a,aws:b}=this;let c='';c=a['appName'];const {sgList:d}=await b[n(0x170)]();d[n(0x169)](function(i){const o=n;i['name']['includes'](c)?Log[o(0x163)](o(0x164)+i['id']+'\x20SG\x20NAME:\x20'+i[o(0x16d)]+o(0x173)+i[o(0x15b)]):Log[o(0x161)](o(0x164)+i['id']+'\x20SG\x20NAME:\x20'+i[o(0x16d)]+o(0x173)+i['sgId']);});let f='';const g=await Actions[n(0x159)](n(0x15c));d[n(0x169)](function(i){i['id']===parseInt(g)&&(f=i['sgId']);});if(!f)throw Log[n(0x176)](n(0x178));const h=await Actions[n(0x16c)](n(0x168)+f+n(0x171),![]);h?(await b['deleteSecurityGroup'](f),Log[n(0x177)]('Deleted\x20'+f)):Log[n(0x176)](n(0x16e)),process['exit'](0x0);}catch(i){i&&Log[n(0x176)](i),process[n(0x172)](0x1);}},a13e);
@@ -1 +1 @@
1
- const a14h=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x9c))/0x1*(parseInt(f(0x9b))/0x2)+-parseInt(f(0xa1))/0x3+parseInt(f(0x9f))/0x4+-parseInt(f(0xa6))/0x5*(-parseInt(f(0xaa))/0x6)+-parseInt(f(0x9d))/0x7+-parseInt(f(0xac))/0x8*(parseInt(f(0xb3))/0x9)+parseInt(f(0xa3))/0xa*(-parseInt(f(0xad))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x52ba4));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const g=a14d;return a14a[g(0xae)]()[g(0xaf)](g(0x9a))[g(0xae)]()[g(0xa5)](a14a)[g(0xaf)](g(0x9a));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a14h(0xb0)]({'name':'list-ecr','aliases':['lecr'],'usage':a14h(0xa7),'requiredOpts':[],'validOpts':[a14h(0xa8)],'shortDesc':a14h(0xa4),'examples':[a14h(0xb1),a14h(0xa0),a14h(0xa9)]},async function(a,b){const i=a14h;try{const {aws:c}=this;await c['listAllEcrRepositories'](b[i(0xa8)]),Log[i(0xab)](i(0xa2)),process[i(0xb2)](0x0);}catch(d){Log['error'](i(0x9e)+d),process[i(0xb2)](0x1);}},a14e);function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x9a;let f=c[d];return f;},a14d(a,b);}function a14c(){const j=['975688DQubTm','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','1862300GhBKAA','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','446391WTvTKO','Completed\x20listing\x20ECR\x20repositories.','580yxmvvX','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','constructor','15UqLlRG','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','regions','maka\x20aws:lecr\x20--regions=all','798774DcAyiC','success','1144OnDFMO','17083yDWWCj','toString','search','create','maka\x20aws:list-ecr','exit','33255Bkvhtg','(((.+)+)+)+$','4KhACub','190265owDOux'];a14c=function(){return j;};return a14c();}
1
+ const a14h=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x70))/0x1*(parseInt(f(0x6f))/0x2)+parseInt(f(0x72))/0x3*(parseInt(f(0x7d))/0x4)+parseInt(f(0x74))/0x5*(parseInt(f(0x81))/0x6)+-parseInt(f(0x7f))/0x7*(-parseInt(f(0x88))/0x8)+parseInt(f(0x85))/0x9+parseInt(f(0x79))/0xa+-parseInt(f(0x84))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xab616));function a14c(){const j=['510128UtSfAc','maka\x20aws:lecr\x20--regions=all','2MjjVzB','1113446iCLPaD','exit','36111cijgGi','(((.+)+)+)+$','5lYYLPL','list-ecr','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','regions','search','3179630PbyYOX','create','lecr','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','236vrxuKq','toString','63WxZcyW','maka\x20aws:list-ecr','5025498mWqpHb','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','listAllEcrRepositories','34659768tXaBkx','2698137QOpzXU','error','constructor'];a14c=function(){return j;};return a14c();}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const g=a14d;return a14a['toString']()['search'](g(0x73))[g(0x7e)]()[g(0x87)](a14a)[g(0x78)](g(0x73));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x6f;let f=c[d];return f;},a14d(a,b);}Command[a14h(0x7a)]({'name':a14h(0x75),'aliases':[a14h(0x7b)],'usage':a14h(0x76),'requiredOpts':[],'validOpts':[a14h(0x77)],'shortDesc':a14h(0x7c),'examples':[a14h(0x80),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14h(0x89)]},async function(a,b){const i=a14h;try{const {aws:c}=this;await c[i(0x83)](b[i(0x77)]),Log['success']('Completed\x20listing\x20ECR\x20repositories.'),process[i(0x71)](0x0);}catch(d){Log[i(0x86)](i(0x82)+d),process[i(0x71)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15i=a15d;function a15c(){const k=['10618800xjPkyC','2501068kAcsXZ','instanceId','reboot-instance','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','7087949FDZXXo','exit','create','520oMnlSO','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','chooseInstance','3tTzAtQ','ec2rebootInstance','search','maka\x20aws:reboot-instance','102087rdGbhZ','maka\x20aws:rbi','14irBsPI','confirm','\x20Ready?','10VpHFwc','rbi','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','7042AzFbpu','name','199116LgMUTq','error','constructor','(((.+)+)+)+$','running','28nxfaON','\x20is\x20still\x20running.','399990FgvEiC','status','toString'];a15c=function(){return k;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x135))/0x1*(-parseInt(f(0x118))/0x2)+-parseInt(f(0x129))/0x3*(parseInt(f(0x11e))/0x4)+parseInt(f(0x11a))/0x5+-parseInt(f(0x113))/0x6*(parseInt(f(0x12f))/0x7)+-parseInt(f(0x126))/0x8*(-parseInt(f(0x12d))/0x9)+-parseInt(f(0x132))/0xa*(parseInt(f(0x123))/0xb)+parseInt(f(0x11d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x7178f));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x11c)]()[h(0x12b)](h(0x116))[h(0x11c)]()[h(0x115)](a15a)[h(0x12b)](h(0x116));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x113;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(0x125)]({'name':a15i(0x120),'aliases':[a15i(0x133)],'usage':a15i(0x12c),'validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':['maka\x20aws:reboot-instance',a15i(0x12e)]},async function(){const j=a15i;try{const {aws:a}=this,b=await a[j(0x128)]();if(b?.[j(0x11b)]===j(0x117)){const c=await Actions[j(0x130)](j(0x122)+b[j(0x136)]+j(0x131));c&&b[j(0x11f)]?a[j(0x12a)]({'instanceId':b[j(0x11f)]}):Log[j(0x114)](j(0x127)+b[j(0x136)]+j(0x119));}else Log[j(0x114)](j(0x134));}catch(d){d&&Log[j(0x114)](d),process[j(0x124)](0x1);}},a15e);
1
+ const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x1ad))/0x1*(parseInt(f(0x1b6))/0x2)+-parseInt(f(0x1b2))/0x3+-parseInt(f(0x1b5))/0x4*(parseInt(f(0x1a6))/0x5)+-parseInt(f(0x1b4))/0x6*(parseInt(f(0x1a7))/0x7)+parseInt(f(0x1a0))/0x8*(parseInt(f(0x1a2))/0x9)+-parseInt(f(0x1aa))/0xa+parseInt(f(0x1b3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xa49a4));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a['toString']()[h(0x1ac)](h(0x19d))['toString']()[h(0x1a8)](a15a)['search']('(((.+)+)+)+$');});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x199;let f=c[d];return f;},a15d(a,b);}a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15c(){const k=['114XtXcGl','39988aIkheX','2ESdICq','exit','\x20is\x20still\x20running.','running','ec2rebootInstance','(((.+)+)+)+$','create','reboot-instance','16UPJTtw','maka\x20aws:rbi','5981886KPLJfW','name','Reboot\x20an\x20EC2\x20instance','error','270dsvlgd','19481moyJJg','constructor','confirm','5724250mARjes','maka\x20aws:reboot-instance','search','482186lOyQTJ','rbi','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','apply','instanceId','106179lBZlIB','695761JULeTK'];a15c=function(){return k;};return a15c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0x19e)]({'name':a15i(0x19f),'aliases':[a15i(0x1ae)],'usage':a15i(0x1ab),'validOpts':[],'shortDesc':a15i(0x1a4),'examples':[a15i(0x1ab),a15i(0x1a1)]},async function(){const j=a15i;try{const {aws:a}=this,b=await a['chooseInstance']();if(b?.['status']===j(0x19b)){const c=await Actions[j(0x1a9)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+'\x20Ready?');c&&b[j(0x1b1)]?a[j(0x19c)]({'instanceId':b[j(0x1b1)]}):Log[j(0x1a5)](j(0x1af)+b[j(0x1a3)]+j(0x19a));}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x1a5)](d),process[j(0x199)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a16I=a16d;function a16c(){const K=['Invalid\x202\x20character\x20country\x20code','Zip\x20Code\x20[96816]:\x20','search','maka\x20aws:register-domain-name\x20--domain=example.com','Honolulu','Address\x20Line\x202:\x20','mail@example.com','\x20/\x20Year\x20\x0a','Auto\x20Renew:\x20','805812dQerea','checkDomainAvailability','PUBLIC_BODY','96816','10HnDlBv','ASSOCIATION','confirm','+1.5555555556','\x20for\x20','21222PBkbab','3128212hmRCvP','City\x20[Honolulu]:\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','221778VbStFL','The\x20domain\x20name:\x20','\x20is\x20available\x20for:','(((.+)+)+)+$','Person','1370AwOGxZ','create','domain','My\x20Company,\x20LLC.','COMPANY','2579520zulAma','+1.5555555555','PERSON','Contact','40eiphjr','Contact\x20Last\x20Name\x20[Person]:\x20','4767FgCTlu','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','rdn','123\x20Glorious\x20Way','constructor','error','RESELLER','ask','maka\x20aws:rdn\x20--domain=example.com','Contact\x20Email\x20[mail@example.com]:\x20','Domain\x20name\x20is\x20unavailable','maka\x20aws:register-domain-name','66DgvRFc','notice','\x20years\x20(','toString','contactType','apply','exit','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','18856VyOzXZ','Contact\x20First\x20Name\x20[Contact]:\x20','\x20/\x20Year)','register-domain-name','30464zoMufD','registerDomain','select','Choose\x20contact\x20type','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','warn'];a16c=function(){return K;};return a16c();}(function(a,b){const F=a16d,c=a();while(!![]){try{const d=-parseInt(F(0x1ee))/0x1*(parseInt(F(0x1d4))/0x2)+parseInt(F(0x1c6))/0x3+parseInt(F(0x1c2))/0x4*(-parseInt(F(0x1bc))/0x5)+-parseInt(F(0x1b8))/0x6+-parseInt(F(0x1d6))/0x7*(-parseInt(F(0x1ea))/0x8)+parseInt(F(0x1c1))/0x9*(parseInt(F(0x1cb))/0xa)+-parseInt(F(0x1e2))/0xb*(-parseInt(F(0x1d0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xf0461));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x1e5)]()[H(0x1b1)](H(0x1c9))[H(0x1e5)]()[H(0x1da)](a16a)[H(0x1b1)](H(0x1c9));});a16a();import a16e from'./aws.command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a16d(a,b);}import{Command}from'../../command.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){return Object['values'](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x1cc)]({'name':a16I(0x1ed),'aliases':[a16I(0x1d8)],'usage':a16I(0x1e1),'requiredOpts':[a16I(0x1cd)],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a16I(0x1b2),a16I(0x1de)]},async function(a,b){const J=a16I,{aws:c}=this;try{const d=b[J(0x1cd)],{available:f,cost:g}=await c[J(0x1b9)](d);if(f&&g){Log['notice'](J(0x1c7)+d+J(0x1c8));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0x1b6));const j=await Actions[J(0x1be)]('Do\x20you\x20wish\x20to\x20register\x20'+d+'?',![]);if(j){const k={'message':J(0x1f1),'name':J(0x1e6),'choices':[{'name':J(0x1bd),'value':J(0x1bd)},{'name':J(0x1cf),'value':J(0x1cf)},{'name':J(0x1d2),'value':'PERSON'},{'name':J(0x1ba),'value':'PUBLIC_BODY'},{'name':'RESELLER','value':J(0x1dc)}]},l=await Actions['ask']('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0x1dd)](J(0x1eb))||J(0x1d3),n=await Actions[J(0x1dd)](J(0x1d5))||J(0x1ca),o=await Actions[J(0x1f0)](k),p=await Actions[J(0x1dd)](J(0x1e9))||J(0x1d9),q=await Actions[J(0x1dd)](J(0x1b4)),r=await Actions[J(0x1dd)](J(0x1c3))||J(0x1b3),s=await Actions[J(0x1dd)](J(0x1b0))||J(0x1bb),t=await Actions['ask']('State\x20[HI]:\x20')||'HI',u=await Actions[J(0x1dd)]('Country\x20Code\x20[US]:\x20')||'US',v=getCountryCodeEnum(u);if(!v)throw Log[J(0x1db)](J(0x1af));const w=await Actions[J(0x1dd)](J(0x1ad))||J(0x1d1),x=await Actions['ask'](J(0x1c5))||J(0x1bf),y=await Actions[J(0x1dd)](J(0x1df))||J(0x1b5),z=await Actions[J(0x1be)](J(0x1b7)),A={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':v,'AddressLine1':p,'AddressLine2':q,'City':r,'ZipCode':s,'PhoneNumber':w,'Fax':x,'State':t,'Email':y};if(o!=='PERSON'){const D=await Actions[J(0x1dd)](J(0x1c4))||J(0x1ce);A['OrganizationName']=D;}const B=h||0x0*parseInt(l);Log[J(0x1e3)](J(0x1d7)),Log[J(0x1ae)](B+'\x20'+i+J(0x1c0)+l+J(0x1e4)+h+'\x20'+i+J(0x1ec));const C=await Actions[J(0x1be)]('Are\x20you\x20sure?');C&&await c[J(0x1ef)](A,d,parseInt(l),z);}}else throw J(0x1e0);}catch(E){E&&Log[J(0x1db)](E),process[J(0x1e8)](0x0);}},a16e);
1
+ const a16J=a16d;function a16c(){const L=['ASSOCIATION','(((.+)+)+)+$','Invalid\x202\x20character\x20country\x20code','confirm','My\x20Company,\x20LLC.','toString','City\x20[Honolulu]:\x20','+1.5555555555','State\x20[HI]:\x20','2598cGvtMG','\x20is\x20available\x20for:','34794gLQGBe','\x20years\x20(','50190KTMvmQ','+1.5555555556','error','notice','980750xdhnLR','745ORaJuG','PERSON','123\x20Glorious\x20Way','\x20/\x20Year)','includes','values','Contact\x20First\x20Name\x20[Contact]:\x20','Contact\x20Email\x20[mail@example.com]:\x20','Zip\x20Code\x20[96816]:\x20','registerDomain','Country\x20Code\x20[US]:\x20','Address\x20Line\x202:\x20','search','27dPIqob','Do\x20you\x20wish\x20to\x20register\x20','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','COMPANY','maka\x20aws:register-domain-name\x20--domain=example.com','register-domain-name','domain','1085068vObHkq','OrganizationName','81875IDUTfI','The\x20domain\x20name:\x20','Honolulu','warn','Person','Domain\x20name\x20is\x20unavailable','ask','48uBaofo','rdn','Contact','apply','Duration\x20in\x20years\x20[1]:\x20','11tcycrN','96816','\x20/\x20Year\x20\x0a','contactType','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','PUBLIC_BODY','77651EmZsLt','constructor','RESELLER','Are\x20you\x20sure?','maka\x20aws:register-domain-name','select','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Choose\x20contact\x20type','Organization\x20Name\x20[My\x20Company,\x20LLC.]:'];a16c=function(){return L;};return a16c();}(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x110))/0x1+parseInt(F(0x139))/0x2*(-parseInt(F(0x14b))/0x3)+parseInt(F(0x10e))/0x4+parseInt(F(0x13e))/0x5*(-parseInt(F(0x135))/0x6)+parseInt(F(0x122))/0x7+-parseInt(F(0x117))/0x8*(parseInt(F(0x137))/0x9)+parseInt(F(0x13d))/0xa*(parseInt(F(0x11c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x24506));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x11a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a['toString']()[H(0x14a)](H(0x12d))[H(0x131)]()[H(0x123)](a16a)['search']('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.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-0x10a;let f=c[d];return f;},a16d(a,b);}import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const I=a16d;return Object[I(0x143)](CountryCode)[I(0x142)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a16J(0x10c),'aliases':[a16J(0x118)],'usage':a16J(0x126),'requiredOpts':[a16J(0x10d)],'validOpts':[],'shortDesc':a16J(0x129),'examples':[a16J(0x10b),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const K=a16J,{aws:c}=this;try{const d=b[K(0x10d)],{available:f,cost:g}=await c['checkDomainAvailability'](d);if(f&&g){Log[K(0x13c)](K(0x111)+d+K(0x136));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+K(0x11e));const j=await Actions[K(0x12f)](K(0x14c)+d+'?',![]);if(j){const k={'message':K(0x12a),'name':K(0x11f),'choices':[{'name':K(0x12c),'value':K(0x12c)},{'name':K(0x10a),'value':K(0x10a)},{'name':K(0x13f),'value':K(0x13f)},{'name':K(0x121),'value':K(0x121)},{'name':K(0x124),'value':K(0x124)}]},l=await Actions['ask'](K(0x11b))||'1',m=await Actions[K(0x116)](K(0x144))||K(0x119),n=await Actions[K(0x116)]('Contact\x20Last\x20Name\x20[Person]:\x20')||K(0x114),o=await Actions[K(0x127)](k),p=await Actions['ask']('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||K(0x140),q=await Actions[K(0x116)](K(0x149)),r=await Actions[K(0x116)](K(0x132))||K(0x112),s=await Actions['ask'](K(0x146))||K(0x11d),t=await Actions[K(0x116)](K(0x134))||'HI',u=await Actions['ask'](K(0x148))||'US',v=getCountryCodeEnum(u);if(!v)throw Log[K(0x13b)](K(0x12e));const w=await Actions['ask'](K(0x120))||K(0x133),x=await Actions['ask'](K(0x14d))||K(0x13a),y=await Actions[K(0x116)](K(0x145))||'mail@example.com',z=await Actions[K(0x12f)]('Auto\x20Renew:\x20'),A={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':v,'AddressLine1':p,'AddressLine2':q,'City':r,'ZipCode':s,'PhoneNumber':w,'Fax':x,'State':t,'Email':y};if(o!==K(0x13f)){const D=await Actions['ask'](K(0x12b))||K(0x130);A[K(0x10f)]=D;}const B=h||0x0*parseInt(l);Log[K(0x13c)](K(0x128)),Log[K(0x113)](B+'\x20'+i+'\x20for\x20'+l+K(0x138)+h+'\x20'+i+K(0x141));const C=await Actions[K(0x12f)](K(0x125));C&&await c[K(0x147)](A,d,parseInt(l),z);}}else throw K(0x115);}catch(E){E&&Log[K(0x13b)](E),process['exit'](0x0);}},a16e);
@@ -1 +1 @@
1
- function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a17d(a,b);}const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x201))/0x1*(parseInt(h(0x200))/0x2)+-parseInt(h(0x1ff))/0x3*(-parseInt(h(0x1f9))/0x4)+parseInt(h(0x1ee))/0x5+parseInt(h(0x1f4))/0x6+parseInt(h(0x1fa))/0x7+-parseInt(h(0x1fd))/0x8+-parseInt(h(0x20b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x4103d));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x1f6)]()[j(0x207)](j(0x1ed))['toString']()[j(0x1eb)](a17a)[j(0x207)](j(0x1ed));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17c(){const n=['maka\x20aws:rkp','307299eWmxLD','1966cMYaYV','106SPQDKB','ask','forEach','Not\x20deleting\x20keypair','create','deleteKeyPair','search','ec2describeKeys','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\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','9033507nMplmA','Deleted\x20','Deleting\x20a\x20','constructor','remove-key-pair','(((.+)+)+)+$','2103500ZzKGqp','success','apply','error','maka\x20aws:remove-key-pair','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','2863380DjqCNe','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','toString','name','exit','8nPjvZa','1961547xRBLvp','Please\x20choose\x20a\x20key\x20to\x20delete:','rkp','1737528xtfijS'];a17c=function(){return n;};return a17c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x205)]({'name':a17k(0x1ec),'aliases':[a17k(0x1fc)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':a17k(0x1f3),'description':a17k(0x20a),'examples':[a17k(0x1f2),a17k(0x1fe)]},async function(){const l=a17k,{aws:a}=this;try{const b=await a[l(0x208)]();let c=undefined;const d=await Actions[l(0x202)](l(0x1fb));b?.[l(0x203)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x1f7)]);});if(!c)throw Log[l(0x1f1)](l(0x209));const f=await Actions['confirm'](l(0x20d)+c+l(0x1f5),![]);f?(await a[l(0x206)](c),Log[l(0x1ef)](l(0x20c)+c)):Log[l(0x1f1)](l(0x204)),process[l(0x1f8)](0x0);}catch(g){g&&Log[l(0x1f1)](g),process['exit'](0x1);}},a17e);
1
+ function a17c(){const n=['apply','constructor','exit','ask','4145716CGchXU','toString','search','create','20SgjJcx','maka\x20aws:rkp','6981667HmqAaF','233934bPyBMW','Deleting\x20a\x20','success','error','96nNIvQa','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','2101959zjqvxr','deleteKeyPair','Not\x20deleting\x20keypair','3qfwPXk','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','441115fDcnkG','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','Please\x20choose\x20a\x20key\x20to\x20delete:','name','556976lkXaOZ','6qtQXgQ','(((.+)+)+)+$','maka\x20aws:remove-key-pair','rkp','1091953yzNAiV'];a17c=function(){return n;};return a17c();}const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x94))/0x1+-parseInt(h(0x80))/0x2+-parseInt(h(0x89))/0x3*(-parseInt(h(0x99))/0x4)+parseInt(h(0x8b))/0x5*(parseInt(h(0x90))/0x6)+-parseInt(h(0x8f))/0x7*(-parseInt(h(0x84))/0x8)+-parseInt(h(0x86))/0x9*(-parseInt(h(0x9d))/0xa)+-parseInt(h(0x9f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xab9e9));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x9a)]()[j(0x9b)](j(0x91))['toString']()[j(0x96)](a17a)['search'](j(0x91));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x80;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x9c)]({'name':'remove-key-pair','aliases':[a17k(0x93)],'usage':a17k(0x92),'validOpts':[],'shortDesc':a17k(0x8c),'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(0x92),a17k(0x9e)]},async function(){const l=a17k,{aws:a}=this;try{const b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[l(0x98)](l(0x8d));b?.['forEach'](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x8e)]);});if(!c)throw Log[l(0x83)](l(0x8a));const f=await Actions['confirm'](l(0x81)+c+l(0x85),![]);f?(await a[l(0x87)](c),Log[l(0x82)]('Deleted\x20'+c)):Log[l(0x83)](l(0x88)),process[l(0x97)](0x0);}catch(g){g&&Log['error'](g),process[l(0x97)](0x1);}},a17e);
@@ -1 +1 @@
1
- function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a18d(a,b);}function a18c(){const s=['isFile','env','2sheAqJ','6ywgJNk','getAppConfigPath','join','1466549KorLqQ','1069026OJUUJV','host','3246860STWfKU','fsi','487077JBINDm','privateIp','5732QMskQJ','utf8','ssh.json','stringify','parse','private','18AJvOll','inherit','getEnvFromShorthand','search','writeFileSync','2243688RNQPKz','sep','maka\x20aws\x20set-host','maka\x20aws:set-host\x20--env\x20dev','\x20IP\x20to\x20','ask','create','success','154CUHTlI','constructor','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','sth','public','2285QScDaE','config/ssh.json','apply','\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','readFileSync','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','toString','125724gmkvSF'];a18c=function(){return s;};return a18c();}const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=parseInt(n(0x1dc))/0x1*(parseInt(n(0x1d3))/0x2)+-parseInt(n(0x1d8))/0x3+parseInt(n(0x1b1))/0x4*(-parseInt(n(0x1c9))/0x5)+-parseInt(n(0x1d4))/0x6*(-parseInt(n(0x1d7))/0x7)+parseInt(n(0x1bc))/0x8+parseInt(n(0x1b7))/0x9*(parseInt(n(0x1da))/0xa)+-parseInt(n(0x1c4))/0xb*(parseInt(n(0x1d0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x72624));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0x1cf)]()[p(0x1ba)]('(((.+)+)+)+$')[p(0x1cf)]()[p(0x1c5)](a18a)[p(0x1ba)]('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a18q(0x1c2)]({'name':'set-host','aliases':[a18q(0x1c7)],'usage':a18q(0x1be),'mustBeInMakaProject':!![],'requiredOpts':[a18q(0x1d2)],'validOpts':[],'shortDesc':a18q(0x1c6),'description':a18q(0x1cc),'examples':[a18q(0x1bf),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const r=a18q,{projectConfig:c,aws:d,cfg:f}=this;try{const g=f[r(0x1b9)](b[r(0x1d2)]),h=f[r(0x1d5)](g),i=await d['chooseInstance'](),j=a18e[r(0x1d6)](h,r(0x1b3));!this[r(0x1db)][r(0x1d1)](j)&&await this['scaffold']['template']({'srcPath':r(0x1ca),'destPath':j,'context':{'app':c['appName']},'config':c});const k=JSON[r(0x1b5)](a18f[r(0x1cd)](j,r(0x1b2))),l=await Actions[r(0x1c1)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||'public';if(l){if(l===r(0x1c8)||l===r(0x1b6)){if(l===r(0x1c8))k[r(0x1d9)]=i?.['publicIp'];else l===r(0x1b6)&&(k[r(0x1d9)]=i?.[r(0x1dd)]);}else throw r(0x1ce);}else k[r(0x1d9)]=i?.[r(0x1dd)];a18f[r(0x1bb)](a18e[r(0x1d6)](h,r(0x1b3)),JSON[r(0x1b4)](k,null,0x2)),execSync('cat\x20'+a18e[r(0x1d6)](h,r(0x1b3)),{'stdio':r(0x1b8)}),Log[r(0x1c3)]('\x0aSaved\x20host\x20'+l+r(0x1c0)+h+a18e[r(0x1bd)]+r(0x1b3));}catch(m){m&&Log['error'](m),process['exit'](0x0);}},a18g);
1
+ const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0x1f2))/0x1*(parseInt(n(0x1df))/0x2)+-parseInt(n(0x1cc))/0x3*(-parseInt(n(0x1db))/0x4)+-parseInt(n(0x1e7))/0x5+-parseInt(n(0x1eb))/0x6*(parseInt(n(0x1e2))/0x7)+-parseInt(n(0x1c8))/0x8*(-parseInt(n(0x1ed))/0x9)+parseInt(n(0x1de))/0xa*(-parseInt(n(0x1cd))/0xb)+parseInt(n(0x1e1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xcd4c5));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0x1d3)]()['search'](p(0x1e5))[p(0x1d3)]()[p(0x1c6)](a18a)[p(0x1f3)]('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a18d(a,b);}function a18c(){const s=['That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','apply','scaffold','3683964BTvWNx','sep','5907771OOlpak','host','fsi','publicIp','isFile','4083UaJoUq','search','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','create','appName','ask','constructor','join','16bsGHYI','public','env','\x20IP\x20to\x20','3909rtJsHJ','19151ZhiXrH','sth','utf8','error','set-host','privateIp','toString','parse','private','getEnvFromShorthand','getAppConfigPath','inherit','maka\x20aws:set-host\x20--env\x20dev','template','924CMKsJV','ssh.json','stringify','8370FHZSzr','28sVkUAQ','exit','19037964xWHVuF','7qsvniT','maka\x20aws\x20set-host','maka\x20aws:sth\x20--env\x20prod','(((.+)+)+)+$','\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','1155270hlJect'];a18c=function(){return s;};return a18c();}import{Log}from'../../tools/log/log.class.js';Command[a18q(0x1f5)]({'name':a18q(0x1d1),'aliases':[a18q(0x1ce)],'usage':a18q(0x1e3),'mustBeInMakaProject':!![],'requiredOpts':[a18q(0x1ca)],'validOpts':[],'shortDesc':a18q(0x1f4),'description':a18q(0x1e6),'examples':[a18q(0x1d9),a18q(0x1e4)]},async function(a,b){const r=a18q,{projectConfig:c,aws:d,cfg:f}=this;try{const g=f[r(0x1d6)](b[r(0x1ca)]),h=f[r(0x1d7)](g),i=await d['chooseInstance'](),j=a18e[r(0x1c7)](h,r(0x1dc));!this[r(0x1ef)][r(0x1f1)](j)&&await this[r(0x1ea)][r(0x1da)]({'srcPath':'config/ssh.json','destPath':j,'context':{'app':c[r(0x1c4)]},'config':c});const k=JSON[r(0x1d4)](a18f['readFileSync'](j,r(0x1cf))),l=await Actions[r(0x1c5)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||r(0x1c9);if(l){if(l===r(0x1c9)||l==='private'){if(l===r(0x1c9))k['host']=i?.[r(0x1f0)];else l===r(0x1d5)&&(k[r(0x1ee)]=i?.['privateIp']);}else throw r(0x1e8);}else k['host']=i?.[r(0x1d2)];a18f['writeFileSync'](a18e[r(0x1c7)](h,r(0x1dc)),JSON[r(0x1dd)](k,null,0x2)),execSync('cat\x20'+a18e['join'](h,r(0x1dc)),{'stdio':r(0x1d8)}),Log['success']('\x0aSaved\x20host\x20'+l+r(0x1cb)+h+a18e[r(0x1ec)]+r(0x1dc));}catch(m){m&&Log[r(0x1d0)](m),process[r(0x1e0)](0x0);}},a18g);
@@ -1 +1 @@
1
- const a19h=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x12b))/0x1+-parseInt(f(0x12d))/0x2+-parseInt(f(0x132))/0x3+-parseInt(f(0x13d))/0x4*(parseInt(f(0x139))/0x5)+parseInt(f(0x134))/0x6+-parseInt(f(0x133))/0x7*(-parseInt(f(0x137))/0x8)+parseInt(f(0x129))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x9cd45));function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x122;let f=c[d];return f;},a19d(a,b);}const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const g=a19d;return a19a['toString']()[g(0x127)]('(((.+)+)+)+$')[g(0x12e)]()[g(0x12a)](a19a)[g(0x127)](g(0x122));});function a19c(){const j=['exit','12DqyhoY','\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','confirm','(((.+)+)+)+$','\x20Ready?','create','name','ec2terminateInstance','search','error','4433193rWXBMC','constructor','219176dEqeVB','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','198396cxOJfN','toString','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','maka\x20aws:ti','1494768pYCAKK','15337BcGHiR','2440866WWGvnJ','chooseInstance','status','3368ndLzEB','maka\x20aws:terminate-instance','604660XKVTfE','instanceId','terminate-instance'];a19c=function(){return j;};return a19c();}a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19h(0x124)]({'name':a19h(0x13b),'aliases':['ti'],'usage':a19h(0x138),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19h(0x13e),'examples':[a19h(0x138),a19h(0x131)]},async function(){const i=a19h,{aws:a}=this;try{const b=await a[i(0x135)]();if(b?.[i(0x13a)]&&b?.[i(0x136)]==='running'){const c=await Actions[i(0x13f)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0x125)]+i(0x123));c?a[i(0x126)]({'instanceId':b[i(0x13a)]}):Log['error'](i(0x12f)+b['name']+i(0x130));}else Log[i(0x128)](i(0x12c));}catch(d){d&&Log[i(0x128)](d),process[i(0x13c)](0x1);}},a19e);
1
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x1d9))/0x1*(parseInt(f(0x1e8))/0x2)+-parseInt(f(0x1e0))/0x3*(parseInt(f(0x1e3))/0x4)+parseInt(f(0x1ed))/0x5+-parseInt(f(0x1da))/0x6+parseInt(f(0x1e2))/0x7+parseInt(f(0x1d8))/0x8*(parseInt(f(0x1d6))/0x9)+-parseInt(f(0x1e5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xe988e));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x1ec)]()[h(0x1f2)](h(0x1eb))['toString']()[h(0x1f1)](a19a)['search'](h(0x1eb));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a19d(a,b);}import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a19c(){const k=['ec2terminateInstance','terminate-instance','maka\x20aws:ti','18615xxgXXH','\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','11342268gXLMwG','620HvMqDa','exit','33148790ECeVIu','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','error','36jNKYyr','status','name','(((.+)+)+)+$','toString','5538450XCBJVd','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','running','maka\x20aws:terminate-instance','constructor','search','apply','108mphlrc','chooseInstance','815064beSqqB','90411gWDyJF','2068776VeYEca','confirm','create'];a19c=function(){return k;};return a19c();}Command[a19i(0x1dc)]({'name':a19i(0x1de),'aliases':['ti'],'usage':a19i(0x1f0),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19i(0x1e1),'examples':[a19i(0x1f0),a19i(0x1df)]},async function(){const j=a19i,{aws:a}=this;try{const b=await a[j(0x1d7)]();if(b?.['instanceId']&&b?.[j(0x1e9)]===j(0x1ef)){const c=await Actions[j(0x1db)](j(0x1ee)+b[j(0x1ea)]+'\x20Ready?');c?a[j(0x1dd)]({'instanceId':b['instanceId']}):Log[j(0x1e7)](j(0x1e6)+b[j(0x1ea)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x1e7)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log['error'](d),process[j(0x1e4)](0x1);}},a19e);
@@ -1 +1 @@
1
- (function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x17e))/0x1*(parseInt(f(0x178))/0x2)+-parseInt(f(0x184))/0x3+-parseInt(f(0x181))/0x4+parseInt(f(0x183))/0x5*(parseInt(f(0x17f))/0x6)+-parseInt(f(0x17d))/0x7+-parseInt(f(0x17a))/0x8+parseInt(f(0x180))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xe5045));function a20c(){var i=['25aHGyXh','832293cLRwSV','search','4912IJPHPe','(((.+)+)+)+$','3859480xkIxkP','constructor','apply','2613079mCpJdo','381Gtvmmw','113718OPcpgs','30510756vhoOAY','1911588RGrjln','toString'];a20c=function(){return i;};return a20c();}function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x177;var f=c[d];return f;},a20d(a,b);}var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x182)]()[h(0x177)](h(0x179))['toString']()[h(0x17b)](a20a)['search']('(((.+)+)+)+$');});a20a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0xe2))/0x1*(parseInt(f(0xe6))/0x2)+parseInt(f(0xdc))/0x3+-parseInt(f(0xe3))/0x4+-parseInt(f(0xe7))/0x5+-parseInt(f(0xe9))/0x6*(parseInt(f(0xdb))/0x7)+-parseInt(f(0xe0))/0x8*(parseInt(f(0xdf))/0x9)+-parseInt(f(0xe4))/0xa*(-parseInt(f(0xdd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xceb35));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()[h(0xe1)](h(0xde))[h(0xe5)]()[h(0xe8)](a20a)[h(0xe1)](h(0xde));});a20a();function a20c(){var i=['2093500JgMyOK','constructor','12WpeaFq','apply','13832Ebewne','4264692UClteA','208417upEbGH','(((.+)+)+)+$','171zkXYxz','675032usNWxB','search','69962sTCzIP','4264116zrNfio','2030pjkMWe','toString','38qgrDFq'];a20c=function(){return i;};return a20c();}function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0xdb;var f=c[d];return f;},a20d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x18f;let f=c[d];return f;},a21d(a,b);}const a21v=a21d;(function(a,b){const s=a21d,c=a();while(!![]){try{const d=-parseInt(s(0x198))/0x1*(-parseInt(s(0x1a6))/0x2)+-parseInt(s(0x1a7))/0x3*(parseInt(s(0x1b5))/0x4)+-parseInt(s(0x1b4))/0x5*(parseInt(s(0x190))/0x6)+-parseInt(s(0x1a9))/0x7+-parseInt(s(0x1b8))/0x8*(parseInt(s(0x1a8))/0x9)+parseInt(s(0x1bb))/0xa+parseInt(s(0x193))/0xb*(parseInt(s(0x199))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x2f225));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a21d;if(c){const e=c[t(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const u=a21d;return a21a[u(0x197)]()[u(0x1a0)]('(((.+)+)+)+$')[u(0x197)]()[u(0x1b0)](a21a)['search'](u(0x195));});function a21c(){const y=['\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','4zGENHn','7179ADAhKV','9KvzSXS','2662765CmyOPJ','--force','update','slice','maka\x20build',').\x20Update?','Meteor\x20is\x20installed.','constructor','join','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','--release','793805rrTRtc','4MrFGjy','checkMeteorPackage','maka\x20install\x20--force','691616uoaSyt','pathFromProject','build','2532870zPomJg','argv','inherit','Aborted.','6SljHsH','findProjectDirectory','splice','913vhsHyV','force','(((.+)+)+)+$','mpi','toString','9697zSOMQj','79284cdJhKl','autoupdate',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','apply','exit','app.tar.gz','error','search','getGlobalMeteorVersion','invokeMeteorCommand','forEach','notice'];a21c=function(){return y;};return a21c();}a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a21v(0x1ba),'usage':a21v(0x1ad),'validOpts':[a21v(0x194)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a21v(0x1a5),'examples':[a21v(0x1ad)]},async function(a,b){const w=a21v,{mpi:c,fsi:d,pkg:f}=this;try{c['isMeteorInstalled']()?Log[w(0x1a4)](w(0x1af)):(Log['warn'](w(0x1b2)),execSync(w(0x1b7),{'stdio':w(0x1bd)}));await f[w(0x1b6)](w(0x19a),{'shouldInstall':!![]});const g=b['force'];if(!g)try{const k=await c[w(0x1a1)](),l=d['getProjectMeteorVersion'](),m=a21g['gt'](k,l);if(m){const n=await Actions['confirm']('This\x20project\x27s\x20meteor\x20version\x20('+l+w(0x19b)+k+w(0x1ae));n&&c[w(0x1a2)](w(0x1ab),[w(0x1b3),k]);}}catch(o){Log[w(0x19f)]('Failed\x20to\x20check\x20or\x20update\x20Meteor\x20version:\x20'+o);}const h=[d[w(0x1b9)]({'pathParts':[w(0x1ba)]})]['concat'](process[w(0x1bc)][w(0x1ac)](0x3)),i=d[w(0x191)](),j=a21e[w(0x1b1)](i,'build',w(0x19e));if(a21f['existsSync'](j)){const p=g??await Actions['confirm']('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!p)throw Log[w(0x19f)](w(0x18f));}h[w(0x1a3)]((q,r)=>{const x=w;q===x(0x1aa)&&h[x(0x192)](r,0x2);}),this[w(0x196)]['invokeMeteorCommand'](w(0x1ba),h);}catch(q){console[w(0x19f)](q),process[w(0x19d)](0x0);}});export default BuildCommand;
1
+ const a21v=a21d;(function(a,b){const s=a21d,c=a();while(!![]){try{const d=-parseInt(s(0xab))/0x1*(-parseInt(s(0xc1))/0x2)+parseInt(s(0xa2))/0x3+parseInt(s(0xc8))/0x4*(parseInt(s(0xad))/0x5)+parseInt(s(0xaf))/0x6*(parseInt(s(0xb1))/0x7)+-parseInt(s(0xc0))/0x8*(parseInt(s(0xa3))/0x9)+-parseInt(s(0xc3))/0xa+-parseInt(s(0xbd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x3d020));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a21d;if(c){const e=c[t(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const u=a21d;return a21a[u(0xc9)]()[u(0x9f)](u(0xb6))[u(0xc9)]()['constructor'](a21a)['search'](u(0xb6));});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x9b;let f=c[d];return f;},a21d(a,b);}a21a();function a21c(){const y=['\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','getProjectMeteorVersion','maka\x20install\x20--force','argv','4TGluzy','toString','This\x20project\x27s\x20meteor\x20version\x20(','pathFromProject','getGlobalMeteorVersion','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','inherit','search','invokeMeteorCommand','existsSync','629430LPlEpk','1116wlkHHm','Failed\x20to\x20check\x20or\x20update\x20Meteor\x20version:\x20','notice','forEach',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','create','apply','Aborted.','1jarPXG','confirm','1386345QYBsBR','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','5094APbiHh','error','3255WiZdxU','exit','findProjectDirectory','isMeteorInstalled','build','(((.+)+)+)+$','Meteor\x20is\x20installed.','slice','app.tar.gz','force','--force','maka\x20build','3240358LIdNsq','autoupdate','concat','19232taHlQb','175546LGapih','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','1270750SNlhbP'];a21c=function(){return y;};return a21c();}import a21e from'path';import a21f from'fs';import a21g from'semver';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21v(0xa8)]({'name':a21v(0xb5),'usage':a21v(0xbc),'validOpts':[a21v(0xba)],'aliases':['b'],'shortDesc':a21v(0x9d),'mustBeInMakaProject':!![],'description':a21v(0xc4),'examples':['maka\x20build']},async function(a,b){const w=a21v,{mpi:c,fsi:d,pkg:f}=this;try{c[w(0xb4)]()?Log[w(0xa5)](w(0xb7)):(Log['warn'](w(0xae)),execSync(w(0xc6),{'stdio':w(0x9e)}));await f['checkMeteorPackage'](w(0xbe),{'shouldInstall':!![]});const g=b['force'];if(!g)try{const k=await c[w(0x9c)](),l=d[w(0xc5)](),m=a21g['gt'](k,l);if(m){const n=await Actions[w(0xac)](w(0xca)+l+w(0xa7)+k+').\x20Update?');n&&c[w(0xa0)]('update',['--release',k]);}}catch(o){Log['error'](w(0xa4)+o);}const h=[d[w(0x9b)]({'pathParts':['build']})][w(0xbf)](process[w(0xc7)][w(0xb8)](0x3)),i=d[w(0xb3)](),j=a21e['join'](i,w(0xb5),w(0xb9));if(a21f[w(0xa1)](j)){const p=g??await Actions[w(0xac)](w(0xc2));if(!p)throw Log[w(0xb0)](w(0xaa));}h[w(0xa6)]((q,r)=>{const x=w;q===x(0xbb)&&h['splice'](r,0x2);}),this['mpi'][w(0xa0)](w(0xb5),h);}catch(q){console['error'](q),process[w(0xb2)](0x0);}});export default BuildCommand;