@maka/maka-cli 4.6.19 → 4.6.20

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 (144) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -0
  108. package/bundle/obf/src/generators/kits/kit.js +1 -0
  109. package/bundle/obf/src/generators/kits/mui/_index.js +1 -0
  110. package/bundle/obf/src/generators/kits/mui/layout.mui.gen.js +1 -0
  111. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -0
  112. package/bundle/obf/src/generators/layout.js +1 -1
  113. package/bundle/obf/src/generators/maka.gen.js +1 -1
  114. package/bundle/obf/src/generators/methods.js +1 -1
  115. package/bundle/obf/src/generators/package.js +1 -1
  116. package/bundle/obf/src/generators/page.js +1 -1
  117. package/bundle/obf/src/generators/publish.js +1 -1
  118. package/bundle/obf/src/generators/route.js +1 -1
  119. package/bundle/obf/src/generators/service.js +1 -1
  120. package/bundle/obf/src/generators/services/_index.js +1 -1
  121. package/bundle/obf/src/generators/services/openssl.js +1 -1
  122. package/bundle/obf/src/generators/services/translation.js +1 -1
  123. package/bundle/obf/src/maka.js +1 -1
  124. package/bundle/obf/src/tool.js +1 -1
  125. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  126. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  127. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  128. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  129. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  130. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  131. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/https/https.class.js +1 -1
  133. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  134. package/bundle/obf/src/tools/log/log.class.js +1 -1
  135. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/options/options.class.js +1 -1
  137. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  138. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  139. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  141. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  142. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  143. package/package.json +1 -1
  144. package/bundle/obf/src/generators/kit.js +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
3
  "//": "NOTE: don't forget to update version.ts and fsi.class.ts",
4
- "version": "4.6.19",
4
+ "version": "4.6.20",
5
5
  "type": "module",
6
6
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
7
7
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- const a0n=a0d;(function(a,b){const l=a0d,c=a();while(!![]){try{const d=parseInt(l(0x13d))/0x1+parseInt(l(0x179))/0x2+-parseInt(l(0x17f))/0x3+-parseInt(l(0x13b))/0x4*(-parseInt(l(0x160))/0x5)+-parseInt(l(0x14e))/0x6+parseInt(l(0x17a))/0x7*(-parseInt(l(0x14c))/0x8)+-parseInt(l(0x17b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x6e689));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 m=a0d;return a0a[m(0x146)]()['search']('(((.+)+)+)+$')[m(0x146)]()[m(0x15e)](a0a)[m(0x13e)](m(0x167));});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x137;let f=c[d];return f;},a0d(a,b);}a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0n(0x174)];[a0n(0x153)];constructor(a,b){const o=a0n;super();if(!a)throw new Error(o(0x147));if(!a['name'])throw new Error(o(0x157));if(typeof b!==o(0x176))throw new Error(o(0x175));this[o(0x174)]=Object['assign']({},a),this['name']=this['options'][o(0x168)],this['_commands']=[],this[o(0x181)]=b['bind'](this);}static[a0n(0x151)](a,b,c){const p=a0n;if(!a)throw new Error(p(0x15d));if(typeof b!==p(0x176))throw new Error(p(0x156));const d=new Command(a,b);return c=c||a0f,Object[p(0x13a)](d,{'parent':c?.[p(0x174)]?.['name']}),c[p(0x154)](d),d;}[a0n(0x154)](a){const q=a0n;if(!(a instanceof Command))throw new Error(q(0x165));this[q(0x153)][q(0x143)](a);}async[a0n(0x15a)](a){const r=a0n;try{const b=r(0x162)+a[r(0x168)]+r(0x16d);if(a){const c=a[r(0x168)],d=a?.['parent']||'',f=a?.[r(0x174)];if(f[r(0x141)])return;const g=await this[r(0x16e)][r(0x178)]();!g&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[r(0x15c)](0x1));const h=g?.[r(0x16f)][r(0x139)](c)||g?.[r(0x16f)][r(0x139)](d)||this[r(0x174)][r(0x16a)],i=g?.[r(0x144)][r(0x139)]('singleLicense')||g?.['roles']['includes'](r(0x138)),j=!i;if(h&&j)throw b;}}catch(k){Log[r(0x164)](k),process['exit'](0x1);}}async[a0n(0x183)](a,b){const s=a0n;try{a=a||[],b=b||{};try{const c=await this[s(0x16e)][s(0x13f)](),d=c[s(0x158)]===s(0x16b)?ColorMode['LIGHT']:ColorMode['DARK'];Log[s(0x14a)](d),await this[s(0x15a)](this);}catch(f){Log['error'](f),process[s(0x15c)](0x0);}await this['invoke'](a,b);}catch(g){process[s(0x15c)](0x1);}}async[a0n(0x180)](a,b){const t=a0n,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[t(0x174)];try{if(this['options']['name']!==t(0x155)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[t(0x150)]===0x0)&&this['_commands'][t(0x150)]>=0x0,g=b['help']||b['h'];if(f&&g){if(this['_commands']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[t(0x174)][t(0x170)]){const h=this[t(0x17c)]();if(!h)throw new MustBeInProjectError();}if(this[t(0x174)][t(0x17e)]){const i=this[t(0x137)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[t(0x174)][t(0x182)]===t(0x171)){if(a[t(0x150)]<this[t(0x174)][t(0x182)]){Log[t(0x164)](t(0x148));throw new UsageError();}}if(typeof this[t(0x174)][t(0x16c)]===t(0x171)){if(a['length']>=this['options'][t(0x16c)]){Log[t(0x164)](t(0x13c));throw new UsageError();}}if(typeof this[t(0x174)][t(0x142)]===t(0x171)){if(Object[t(0x159)](b)[t(0x150)]<this['options'][t(0x142)]){Log[t(0x164)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[t(0x174)][t(0x15f)]===t(0x171)){if(Object[t(0x159)](b)[t(0x150)]>=this['options']['maxOptsLength']){Log[t(0x164)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[t(0x163)](a,b,this[t(0x174)]),_prevCmd=a[0x0];}await this[t(0x181)][t(0x15b)](this,a,b);}catch(j){Log[t(0x173)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[t(0x166)]('Sub-Commands:'),this['tableList'](this[t(0x153)]),Log['header'](t(0x152));else{if(j instanceof MustBeInProjectError)Log[t(0x164)](t(0x14b));else{if(j instanceof NoMeteorFoundError)Log[t(0x164)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[t(0x166)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(j instanceof NoMeteorAppFoundError)Log[t(0x164)](t(0x17d));else throw j;}}}process[t(0x15c)](0x1);}}['tableList'](a){const u=a0n,b=new a0e({});b[u(0x143)](['Name',u(0x177),'Description']),a['sort']()['forEach'](c=>{const v=u;c[v(0x168)]!==v(0x145)&&c[v(0x168)]!==v(0x149)&&b['push']([c[v(0x168)],c['aliases'](),c[v(0x172)]()]);}),Log[u(0x169)](b[u(0x146)]());}[a0n(0x140)](a){const w=a0n;return this[w(0x153)]['find'](b=>b['match'](a));}['findSubCommand'](a){const x=a0n,b=a?.[x(0x161)](':');if(b)return a=b[0x0],this[x(0x140)](a);else return;}async[a0n(0x14f)](a,b,c){const y=a0n;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[y(0x14d)](0x0,0x0,f);const g=this[y(0x140)](a);if(g)await this[y(0x15a)](g),await g[y(0x183)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log[y(0x164)](h);}}}function a0c(){const z=['splice','5424066ofuKUZ','runSubCommand','length','create','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','_commands','addCommand','generate','Command.create\x20requires\x20a\x20handler\x20function!','Command\x20requires\x20a\x20name','pallet','keys','validateMakaSubscription','call','exit','Command.create\x20requires\x20some\x20options!','constructor','maxOptsLength','5AzCHBH','split','To\x20use\x20this\x20command,\x20\x22','validateParams','error','addCommand\x20requires\x20a\x20Command\x20instance','notice','(((.+)+)+)+$','name','bright','isPro','light','maxArgLength','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','fsi','proCommands','mustBeInMakaProject','number','shortDesc','usage','options','Command\x20requires\x20a\x20handler\x20function','function','Alias','getPro','1622872JcqnWD','1064714isRmMJ','748413hXofbR','validateMakaProject','There\x20is\x20no\x20Meteor\x20application\x20here','mustHaveMeteorInstalled','392832seghKj','invoke','_handler','minArgLength','run','validateMeteorInstall','domainLicense','includes','assign','2951836JnYvOx','Too\x20many\x20arguments','629358xILlwc','search','getGlobalConfig','findCommand','disableAuthCheck','minOptsLength','push','roles','murder','toString','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20few\x20arguments','play','setColorMode','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','32CvCHWU'];a0c=function(){return z;};return a0c();}
1
+ const a0p=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=-parseInt(m(0x211))/0x1*(parseInt(m(0x230))/0x2)+-parseInt(m(0x23f))/0x3+-parseInt(m(0x227))/0x4*(parseInt(m(0x21e))/0x5)+-parseInt(m(0x215))/0x6*(-parseInt(m(0x22a))/0x7)+-parseInt(m(0x202))/0x8+-parseInt(m(0x22c))/0x9*(-parseInt(m(0x21a))/0xa)+parseInt(m(0x220))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x8181c));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x1f8)]()[o(0x234)](o(0x23e))[o(0x1f8)]()[o(0x20f)](a0a)[o(0x234)](o(0x23e));});a0a();function a0c(){const y=['run','683630nyCdcj','maybeProxyCommandToMeteor','usage','unshift','5oVsLlI','processAndRunCommand','15179494BhHqDP','fsi','find','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','bind','push','getGlobalConfig','518884tvfATB','Too\x20many\x20arguments','tableList','5089UcetvI','Name','27VFCxJQ','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','mustHaveMeteorInstalled','slice','22674MkxPxP','light','Alias','mustBeInMakaProject','search','bright','sort','maxOptsLength','addCommand','generate','Command.create\x20requires\x20a\x20handler\x20function!','function','pallet','keys','(((.+)+)+)+$','523383lpIGGP','exit','forEach','DARK','Command\x20not\x20found','Sub-Commands:','validateMakaSubscription','Command\x20format\x20is\x20incorrect','join','toString','name','length','setColorMode','minOptsLength','addCommand\x20requires\x20a\x20Command\x20instance','invoke','number','assign','Too\x20few\x20options','2518408PfAcvP','Command\x20requires\x20a\x20handler\x20function','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','header','match','apply','_commands','options','Command\x20','minArgLength','Too\x20many\x20options','error','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','constructor','maxArgLength','39bUfTjN','shortDesc','validateMakaProject','\x20not\x20found','54VyeMCQ','There\x20is\x20no\x20Meteor\x20application\x20here','play','notice'];a0c=function(){return y;};return a0c();}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0p(0x208)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x204));if(!a[q(0x1f9)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==q(0x23b))throw new Error(q(0x203));this[q(0x209)]=Object[q(0x200)]({},a),this['name']=this[q(0x209)]['name'],this[q(0x208)]=[],this['_handler']=b[q(0x224)](this);}static['create'](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x23b))throw new Error(r(0x23a));const d=new Command(a,b);return c=c||a0f,Object[r(0x200)](d,{'parent':c?.[r(0x209)]?.[r(0x1f9)]}),c['addCommand'](d),d;}[a0p(0x238)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x1fd));this[s(0x208)]['push'](a);}async[a0p(0x219)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x221)][t(0x226)](),d=c[t(0x23c)]===t(0x231)?ColorMode['LIGHT']:ColorMode[t(0x242)];Log[t(0x1fb)](d),await this[t(0x1f5)](this);}catch(f){Log[t(0x20d)](f),process[t(0x240)](0x0);}await this['invoke'](a,b);}catch(g){process[t(0x240)](0x1);}}async[a0p(0x1fe)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x209)];try{if(this[u(0x209)]['name']!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x1fa)]===0x0)&&this[u(0x208)]['length']>=0x0,g=b['help']||b['h'];if(f&&g){if(this[u(0x208)][u(0x1fa)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x209)][u(0x233)]){const h=this[u(0x213)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x209)][u(0x22e)]){const i=this['validateMeteorInstall']();if(!i)throw new NoMeteorFoundError();}if(typeof this[u(0x209)][u(0x20b)]===u(0x1ff)){if(a[u(0x1fa)]<this[u(0x209)][u(0x20b)]){Log[u(0x20d)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[u(0x209)][u(0x210)]===u(0x1ff)){if(a[u(0x1fa)]>=this[u(0x209)][u(0x210)]){Log[u(0x20d)](u(0x228));throw new UsageError();}}if(typeof this[u(0x209)][u(0x1fc)]==='number'){if(Object[u(0x23d)](b)[u(0x1fa)]<this['options'][u(0x1fc)]){Log[u(0x20d)](u(0x201));throw new UsageError();}}if(typeof this[u(0x209)][u(0x237)]===u(0x1ff)){if(Object['keys'](b)['length']>=this[u(0x209)]['maxOptsLength']){Log[u(0x20d)](u(0x20c));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[u(0x209)]),_prevCmd=a[0x0];}await this['_handler']['call'](this,a,b);}catch(j){Log[u(0x21c)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[u(0x218)](u(0x1f4)),this['tableList'](this['_commands']),Log[u(0x205)](u(0x20e));else{if(j instanceof MustBeInProjectError)Log['error'](u(0x223));else{if(j instanceof NoMeteorFoundError)Log[u(0x20d)](u(0x22d)),Log[u(0x218)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else j instanceof NoMeteorAppFoundError?Log[u(0x20d)](u(0x216)):console[u(0x20d)](j);}}process[u(0x240)](0x1);}}[a0p(0x229)](a){const v=a0p,b=new a0e({});b['push']([v(0x22b),v(0x232),'Description']),a[v(0x236)]()[v(0x241)](c=>{const w=v;c[w(0x1f9)]!=='murder'&&c[w(0x1f9)]!==w(0x217)&&b[w(0x225)]([c['name'],c['aliases'](),c[w(0x212)]()]);}),Log[v(0x235)](b[v(0x1f8)]());}async[a0p(0x21f)](a,b=[],c={}){const x=a0p;try{const d=a?.['split'](':');if(!d||d[x(0x1fa)]===0x0)throw x(0x1f6);if(d[0x0]==='generate'||d[0x0]==='g'&&d[x(0x1fa)]>0x1){const h=this[x(0x208)][x(0x222)](j=>j[x(0x206)](x(0x239)));if(!h)throw x(0x1f3);await this[x(0x1f5)](h);const i=d[x(0x22f)](0x1)[x(0x1f7)](':');b[x(0x21d)](i),await h[x(0x219)](b,c);return;}let f=this['_commands'],g;for(const j of d){g=f[x(0x222)](k=>k[x(0x206)](j));if(!g)try{this[x(0x221)][x(0x21b)]();}catch(k){throw x(0x20a)+j+x(0x214);}g&&(await this['validateMakaSubscription'](g),f=g[x(0x208)]);}if(g)await g['run'](b,c);else throw x(0x1f3);}catch(l){Log[x(0x20d)](l),process[x(0x240)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1f1))/0x1+parseInt(f(0x1eb))/0x2*(-parseInt(f(0x1ea))/0x3)+parseInt(f(0x1f4))/0x4+-parseInt(f(0x1f2))/0x5+parseInt(f(0x1f5))/0x6*(parseInt(f(0x1e8))/0x7)+parseInt(f(0x1ee))/0x8+parseInt(f(0x1ef))/0x9*(-parseInt(f(0x1e9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x39456));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0x1f3)](h(0x1f6))[h(0x1ec)]()[h(0x1ed)](a1a)[h(0x1f3)]('(((.+)+)+)+$');});a1a();function a1c(){var i=['6fzsswY','(((.+)+)+)+$','119791uTmYfi','12770FlZiCz','55494gTSMzA','6ilZwOa','toString','constructor','2882888RYuLsa','3636niMaNw','apply','106736hjfVMO','574215RWTHpG','search','1746468QTBNhy'];a1c=function(){return i;};return a1c();}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1e8;var f=c[d];return f;},a1d(a,b);}import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x118))/0x1+-parseInt(f(0x11a))/0x2+parseInt(f(0x117))/0x3*(-parseInt(f(0x11c))/0x4)+-parseInt(f(0x11f))/0x5*(-parseInt(f(0x11e))/0x6)+parseInt(f(0x116))/0x7+parseInt(f(0x115))/0x8*(parseInt(f(0x11b))/0x9)+-parseInt(f(0x114))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x82553));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0x11d)]()['search']('(((.+)+)+)+$')[g(0x11d)]()['constructor'](a1a)[g(0x119)](g(0x120));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x114;var f=c[d];return f;},a1d(a,b);}function a1c(){var h=['(((.+)+)+)+$','5681990Jweihy','3957432ToGVHB','5969796LOTJqc','57846kxwUoe','138539udXJLn','search','1631662tLbOTV','18wFCEHZ','116ZpEUqm','toString','12dXruLA','1240815VvXERZ'];a1c=function(){return h;};return a1c();}import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
@@ -1 +1 @@
1
- const a2m=a2d;function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x150;let f=c[d];return f;},a2d(a,b);}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x169))/0x1+-parseInt(h(0x17a))/0x2*(parseInt(h(0x167))/0x3)+-parseInt(h(0x154))/0x4+-parseInt(h(0x15e))/0x5*(parseInt(h(0x157))/0x6)+parseInt(h(0x15d))/0x7*(parseInt(h(0x165))/0x8)+parseInt(h(0x179))/0x9*(-parseInt(h(0x164))/0xa)+parseInt(h(0x174))/0xb*(parseInt(h(0x156))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xadf84));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x16b)]()[j(0x16c)](j(0x151))[j(0x16b)]()[j(0x159)](a2a)['search']('(((.+)+)+)+$');});a2a();function a2c(){const o=['toLowerCase','(((.+)+)+)+$','parse','create','1939024kPEekB','Using\x20OpenAI\x20Key\x20','12EPFeax','5376264XwwEkX','choices','constructor','fsi','stdin','message','114408nGbzWJ','5UaQnTV','log','apply','exit','You:\x20','cacert','180QuAtHW','64NgxeHx','stdout','145953znVSUq','data','976054HjBGZO','error','toString','search','isFile','openapikey','notice','cert','openai','GPT:\x20','ChatGPT\x20style\x20AI\x20interface','49558993uCQXQP','Using\x20CA\x20Cert\x20','close','getGlobalConfig','text','321156lWCemd','38ZDHwco'];a2c=function(){return o;};return a2c();}import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process[k(0x15b)],'output':process[k(0x166)]});c['question'](k(0x162),async d=>{const l=k;if(d[l(0x150)]()===l(0x161)){c[l(0x176)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x152)](e[l(0x168)]);if(f['error'])throw new Error(f['error'][l(0x15c)]);console[l(0x15f)](l(0x172)+f?.[l(0x158)][0x0]?.[l(0x178)]['trim']());}catch(g){Log[l(0x16a)](g),process[l(0x161)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x153)]({'name':'ai','description':a2m(0x173),'validOpts':[a2m(0x163),a2m(0x16e)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface'},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x15a)][n(0x16d)](b['cacert'])?(c=b['cacert'],Log[n(0x16f)](n(0x175)+c)):Log[n(0x16a)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0x15a)][n(0x177)]();if(d[n(0x170)]){if(this['fsi'][n(0x16d)](d['cert']))c=d['cert'];else throw Log[n(0x16a)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0x16e)])f=b[n(0x16e)],Log[n(0x16f)](n(0x155)+f);else{if(d[n(0x171)])f=d['openai'];else throw Log['error']('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console['log']('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x16a)](g),process[n(0x161)](0x1);}});
1
+ const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x164))/0x1+parseInt(h(0x186))/0x2*(parseInt(h(0x16e))/0x3)+-parseInt(h(0x171))/0x4+parseInt(h(0x166))/0x5+-parseInt(h(0x16c))/0x6+parseInt(h(0x185))/0x7*(parseInt(h(0x17f))/0x8)+-parseInt(h(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x92266));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x179)](j(0x17a))['toString']()['constructor'](a2a)[j(0x179)](j(0x17a));});a2a();function a2c(){const o=['text','2244680MmpLZd','error','choices','log','message','close','6749310pYXAkj','952209iyqIZh','433725TyeNRr','trim','openapikey','3991116CrUoft','create','cert','exit','openai','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','ChatGPT\x20style\x20AI\x20interface','You:\x20','search','(((.+)+)+)+$','notice','bright','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','question','16fGBRDO','data','fsi','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','stdout','askGPT','3809169gcTLVC','2nIFdoY','apply','cacert','toLowerCase','1145250bVVzlZ'];a2c=function(){return o;};return a2c();}function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x162;let f=c[d];return f;},a2d(a,b);}import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process['stdin'],'output':process[k(0x183)]});c[k(0x17e)](k(0x178),async d=>{const l=k;if(d[l(0x163)]()==='exit'){c[l(0x16b)]();return;}try{const e=await HTTPS[l(0x184)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0x180)]);if(f['error'])throw new Error(f[l(0x167)][l(0x16a)]);Log[l(0x17c)]('GPT:\x20'+f?.[l(0x168)][0x0]?.[l(0x165)][l(0x16f)]());}catch(g){Log[l(0x167)](g),process[l(0x174)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x172)]({'name':'ai','description':a2m(0x177),'validOpts':['cacert','openapikey'],'shortDesc':a2m(0x177),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x162)]&&(this['fsi']['isFile'](b['cacert'])?(c=b[n(0x162)],Log['notice']('Using\x20CA\x20Cert\x20'+c)):Log[n(0x167)](n(0x182)+c));const d=await this[n(0x181)]['getGlobalConfig']();if(d['cert']){if(this[n(0x181)]['isFile'](d[n(0x173)]))c=d[n(0x173)];else throw Log[n(0x167)](n(0x17d)+c);}let f='';if(b['openapikey'])f=b[n(0x170)],Log[n(0x17b)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d['openai'])f=d[n(0x175)];else throw Log[n(0x167)](n(0x176));}console[n(0x169)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x167)](g),process[n(0x174)](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x85))/0x1+-parseInt(f(0x89))/0x2*(parseInt(f(0x94))/0x3)+parseInt(f(0x8f))/0x4*(parseInt(f(0x91))/0x5)+parseInt(f(0x93))/0x6*(-parseInt(f(0x8d))/0x7)+parseInt(f(0x8c))/0x8+-parseInt(f(0x95))/0x9*(parseInt(f(0x86))/0xa)+parseInt(f(0x8e))/0xb*(parseInt(f(0x8b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x80635));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x8a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x87)]()['search'](h(0x88))['toString']()[h(0x90)](a3a)[h(0x92)]('(((.+)+)+)+$');});a3a();function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x85;var f=c[d];return f;},a3d(a,b);}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';function a3c(){var i=['(((.+)+)+)+$','1244mXPilz','apply','12fAYmlT','2918384JJmVud','21vhdZDZ','14762066oGpono','700RcacwE','constructor','2380BJPBtt','search','1032162bboSJC','4539LrKhyU','117FIyCdX','857539ZWpZRP','511230SPClIf','toString'];a3c=function(){return i;};return a3c();}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';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x169))/0x1*(-parseInt(f(0x16b))/0x2)+parseInt(f(0x175))/0x3+-parseInt(f(0x16d))/0x4+-parseInt(f(0x173))/0x5+-parseInt(f(0x16c))/0x6+parseInt(f(0x16f))/0x7*(-parseInt(f(0x16e))/0x8)+parseInt(f(0x172))/0x9*(parseInt(f(0x16a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x45650));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x171)]()[h(0x174)]('(((.+)+)+)+$')[h(0x171)]()[h(0x168)](a3a)['search'](h(0x167));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x167;var f=c[d];return f;},a3d(a,b);}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a3c(){var i=['18890NvvLmD','1285410ozMtZD','2267520zsrDJX','8fYKKFf','1399349xKfVCD','apply','toString','10719bWpDPp','932360pbqdpu','search','833457OtttpU','(((.+)+)+)+$','constructor','48ZkQgxA','6050wecdQp'];a3c=function(){return i;};return a3c();}import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
@@ -1 +1 @@
1
- function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xe8;let f=c[d];return f;},a4d(a,b);}const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xf6))/0x1*(parseInt(f(0xe8))/0x2)+-parseInt(f(0xfa))/0x3*(parseInt(f(0xf0))/0x4)+-parseInt(f(0xfc))/0x5+-parseInt(f(0xe9))/0x6+parseInt(f(0xea))/0x7+parseInt(f(0xf5))/0x8*(-parseInt(f(0xf9))/0x9)+parseInt(f(0xee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x75e4d));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xf4)]()[h(0xeb)]('(((.+)+)+)+$')['toString']()[h(0xed)](a4a)[h(0xeb)](h(0xfb));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4i(0xf8)]({'name':a4i(0xf1),'usage':a4i(0xf2),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'isPro':!![],'shortDesc':a4i(0xf3),'description':a4i(0xfd)},async function(a,b){const j=a4i;try{const c=a[0x0],d=this[j(0xef)](c);if(d)this['runSubCommand'](c,a,b);else{Log[j(0xfe)]('Sub\x20Command\x20not\x20found');throw new UsageErrorWithSubs();}}catch(e){Log['error'](e),process[j(0xf7)](0x0);}});export default AWSCommand;function a4c(){const k=['\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','error','8306hxZxNT','4414320LjoEAx','1079085jrbEDq','search','apply','constructor','14420750HUVweB','findSubCommand','2484zmGUBk','aws','maka\x20aws:<sub-command>','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','toString','4792GwyHBp','65irconp','exit','create','7227aBjvOv','219aluncM','(((.+)+)+)+$','606160LckMrZ'];a4c=function(){return k;};return a4c();}
1
+ function a4c(){const j=['create','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','310040hZmZcE','maka\x20aws:<sub-command>','819twCzUL','constructor','10BdUVGa','search','toString','136310eRrdoZ','992451suHjGq','110453PkbTEH','534822baWkLx','8PgtfbO','1019264EuDHGT','apply','119176GAxMGI','(((.+)+)+)+$'];a4c=function(){return j;};return a4c();}const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x18d))/0x1*(parseInt(f(0x190))/0x2)+-parseInt(f(0x18a))/0x3+-parseInt(f(0x18e))/0x4+-parseInt(f(0x198))/0x5*(-parseInt(f(0x18c))/0x6)+-parseInt(f(0x18b))/0x7+-parseInt(f(0x194))/0x8+parseInt(f(0x196))/0x9*(parseInt(f(0x19b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x49b00));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x19a)]()[h(0x199)](h(0x191))['toString']()[h(0x197)](a4a)['search'](h(0x191));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x18a;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x192)]({'name':'aws','usage':a4i(0x195),'validOpts':[],'isPro':!![],'shortDesc':a4i(0x193),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20'},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x8e;let f=c[d];return f;},a5d(a,b);}const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0xa0))/0x1*(parseInt(i(0x92))/0x2)+parseInt(i(0x9c))/0x3*(-parseInt(i(0x9d))/0x4)+parseInt(i(0x93))/0x5*(-parseInt(i(0x9f))/0x6)+parseInt(i(0xab))/0x7*(-parseInt(i(0x8e))/0x8)+-parseInt(i(0x95))/0x9+-parseInt(i(0x9e))/0xa*(-parseInt(i(0x97))/0xb)+-parseInt(i(0x90))/0xc*(-parseInt(i(0x9a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x7320a));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x98)]()[k(0xa4)](k(0xaa))['toString']()[k(0xa8)](a5a)['search'](k(0xaa));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a5c(){const n=['chz','(((.+)+)+)+$','45143Bzqbxz','104zGxpLg','publicIp','87132DKtInB','apply','9526NAyumM','256810UaOhCD','Instance\x20not\x20found','900207dnSDuy','error','10483BHcdTc','toString','maka\x20aws:chz\x20--domain=example.com','2899WypYir','create-hosted-zone','3093eKwcQT','2428EdyvQU','5520KXlNCz','72yzRNZK','52wssLLB','route53CreateHostedZone','maka\x20aws:create-hosted-zone\x20--domain=example.com','linkEC2ToRoute53','search','maka\x20aws:create-hosted-zone','chooseInstance','domain','constructor'];a5c=function(){return n;};return a5c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a5l(0x9b),'aliases':[a5l(0xa9)],'usage':a5l(0xa5),'requiredOpts':[a5l(0xa7)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a5l(0xa2),a5l(0x99)]},async function(a,b){const m=a5l;try{const c=b[m(0xa7)],d=new AWS();d[m(0xa1)](c);const f=await Actions['confirm']('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[m(0xa6)]();if(g?.['id']){if(!g[m(0x8f)])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0xa3)](g['id'],g[m(0x8f)],c);}else throw Log['error'](m(0x94));}}catch(h){console[m(0x96)](h),process['exit'](0x0);}},a5e);
1
+ const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x96))/0x1+parseInt(i(0x9a))/0x2+parseInt(i(0x8f))/0x3*(-parseInt(i(0x98))/0x4)+-parseInt(i(0x86))/0x5+-parseInt(i(0x83))/0x6*(-parseInt(i(0x8d))/0x7)+-parseInt(i(0x9b))/0x8*(parseInt(i(0x8e))/0x9)+parseInt(i(0x8a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x924b3));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a['toString']()[k(0x88)](k(0x93))[k(0x92)]()[k(0x9d)](a5a)[k(0x88)](k(0x93));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x81;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5l(0x9c)]({'name':a5l(0x89),'aliases':[a5l(0x9e)],'usage':a5l(0x81),'requiredOpts':[a5l(0x90)],'validOpts':[],'shortDesc':a5l(0x84),'examples':[a5l(0x8c),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b['domain'],d=new AWS();d[m(0x85)](c);const f=await Actions[m(0x82)](m(0xa0));if(f){const g=await d[m(0x94)]();if(g?.['id']){if(!g[m(0x91)])throw Log[m(0x87)](m(0x8b));d[m(0x97)](g['id'],g[m(0x91)],c);}else throw Log[m(0x87)](m(0x99));}}catch(h){console[m(0x87)](h),process[m(0x95)](0x0);}},a5e);function a5c(){const n=['4184uXanVl','create','constructor','chz','apply','Set\x20hosted\x20zone\x20to\x20an\x20instance?','maka\x20aws:create-hosted-zone','confirm','12jvhocV','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','route53CreateHostedZone','5592180iMmnys','error','search','create-hosted-zone','11077620mKATQX','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','maka\x20aws:create-hosted-zone\x20--domain=example.com','4028311kwKPQK','18171AWrCnf','371394ZPfaVk','domain','publicIp','toString','(((.+)+)+)+$','chooseInstance','exit','361500WmwaLb','linkEC2ToRoute53','12WceCkl','Instance\x20not\x20found','1049556QPVeCc'];a5c=function(){return n;};return a5c();}
@@ -1 +1 @@
1
- const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x101))/0x1*(parseInt(ae(0x11c))/0x2)+-parseInt(ae(0xf3))/0x3+parseInt(ae(0x10d))/0x4*(parseInt(ae(0x127))/0x5)+-parseInt(ae(0x129))/0x6+parseInt(ae(0x116))/0x7*(-parseInt(ae(0x12e))/0x8)+parseInt(ae(0xdf))/0x9+-parseInt(ae(0xde))/0xa*(-parseInt(ae(0x12f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9294a));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a['toString']()[ag(0xfe)](ag(0xf5))[ag(0x119)]()[ag(0x128)](a6a)[ag(0xfe)](ag(0xf5));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xc6;let f=c[d];return f;},a6d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a6c(){const au=['\x20SGID:\x20','**\x20Available\x20key-pairs\x20**','ImageID:','confirm','name','4RgzmLz','maka-cli','No\x20instance\x20has\x20been\x20created.','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','cidr','maka\x20aws:create-instance\x20--env\x20dev','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x20CIDR:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','41965DfAJAl','desc','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','toString','create','t3.micro','2RailhX','amiId','Please\x20choose\x20a\x20key\x20to\x20use:\x20','\x20AMIID:\x20','ID:\x20','alias','success','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Setting\x20the\x20key-pair\x20to:\x20','\x20AZONE:\x20','772385toSrnt','constructor','5291754HOogzW','forEach','ec2describeKeys','\x20:\x20','createFile','856ljmnWs','420167lqtxqv','isFile','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Setting\x20SG\x20ID\x20to:\x20','getConfigPath','Would\x20you\x20like\x20to\x20include\x20user\x20data?','maka\x20aws:create-instance','**\x20Available\x20AMIs\x20**','amazon','date','error','ec2createSG','cider','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','getTime','apply','fsi','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','createKeyPair','Desc','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SG\x20NAME:\x20','Security\x20Group\x20Name:\x20[','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','parse','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Remove\x20the\x20keypair\x20','number','getProjectConfig','Instace\x20Type:\x20','created-by','Subnet:\x20','getSecurityGroups','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','630MUuyYr','4378221kkiVRf','Setting\x20Subnet\x20ID\x20to\x20','\x20SUBNETID:\x20','ask','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','22,80,443','\x20DESCRIPTION:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','subnetId','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','sgId','split','bright','Create\x20new\x20AWS\x20instance','subnet','string','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','env','getConfigFromShorthand','exit','1080540BwbBWb','sort','(((.+)+)+)+$','Instance\x20Count:\x20','push','Remove\x20the\x20security\x20group\x20','Web\x20App','user-data','ec2create','notice','chooseVPC','search','Creating\x20user\x20data\x20file\x20in\x20','User\x20Data:','563359vqqBIL','EC2\x20Name:\x20[','log','1:1','environment','Security\x20Group:\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'];a6c=function(){return au;};return a6c();}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x11a)]({'name':'create-instance','aliases':['ci'],'usage':a6ah(0x135),'examples':[a6ah(0x112),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0xf0)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ah(0xec),'description':a6ah(0x107)},async function(a,b){const ai=a6ah;try{const c=this[ai(0xcc)][ai(0xd8)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xcc)][ai(0xf1)](b[ai(0xf0)]),i=this[ai(0xcc)][ai(0x133)](h),j=g+'-'+h,k=await Actions[ai(0xe2)](ai(0x102)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x10b)](ai(0xd3),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xce)]({'env':h});r=y,s=z,Log[ai(0x122)](ai(0x125)+r);}else try{Log['notice'](ai(0x109));const A=r?r:k,B=await d[ai(0x12b)]({'suggestion':A}),C=await Actions[ai(0xe2)](ai(0x11e))||'-1';if(parseInt(C)<0x0){Log['error']('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[ai(0xfc)](ai(0x10f));return;}B?.[ai(0x12a)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x10c)],Log[aj(0x122)](aj(0x125)+r));});}catch(D){Log[ai(0xc6)](D);}l=await d[ai(0xfd)]();const t=await Actions[ai(0x10b)](ai(0xdd),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0xe2)](ai(0xd2)+k+']')||k;const F=await Actions[ai(0xe2)](ai(0xd5))||ai(0xe4),G=F[ai(0xea)](',');await d[ai(0xc7)]({'description':ai(0xf9),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xdc)](u);if(I===''){Log['notice']('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x12a)](function(L){const ak=ai;L[ak(0x10c)]===u?Log[ak(0xfc)](ak(0x120)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x10c)]+ak(0x108)+L[ak(0xe9)]):Log[ak(0xeb)](ak(0x120)+L['id']+ak(0xd1)+L['name']+'\x20SGID:\x20'+L['sgId']);});const K=await Actions['ask'](ai(0xe8)+H+']\x20')||H[ai(0x119)]();J[ai(0x12a)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log['success'](al(0x132)+m+'\x0a'));});}else m=I,Log[ai(0x122)](ai(0x132)+m+'\x0a');if(m==='')throw Log[ai(0xc6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0xc6)](L);}try{const M=0x7e6;Log[ai(0xfc)](ai(0x136));const N=execSync(ai(0x123)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')[ai(0x119)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x12a)](function(S){const am=ai;if(S[am(0x121)]===am(0x137)){const T=S[am(0xcf)][am(0xea)]('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0xcf)],'date':T});}}),P[ai(0xf4)](function(S,T){const an=ai;return new Date(T[an(0x138)])['getTime']()-new Date(S[an(0x138)])[an(0xca)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0xf7)]({'id':T,'amiId':S[ao(0x11d)],'desc':S['desc']});}),Q[ai(0x12a)](function(S){const ap=ai;console[ap(0x103)](ap(0x120)+S['id']+ap(0x11f)+S['amiId']+ap(0xe5)+S[ap(0x117)]);});const R=await Actions[ai(0xe2)](ai(0xd0))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x11d)],Log[aq(0x122)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x12c)+S[aq(0x117)]));});if(n==='')throw Log[ai(0xc6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log['error'](S);}try{Log[ai(0xfc)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x115))['toString'](),U=JSON[ai(0xd4)](T),V=[];U[ai(0x12a)](function(X,Y){const ar=ai;V[ar(0xf7)]({'id':Y,'cidr':X[ar(0xc8)],'az':X['az'],'subnetId':X[ar(0xe7)]});}),V['forEach'](function(X){const as=ai;console[as(0x103)](as(0x120)+X['id']+as(0x114)+X[as(0x111)]+as(0x126)+X['az']+as(0xe1)+X[as(0xe7)]);});const W=await Actions['ask'](ai(0xe6))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x122)](at(0xe0)+p));});if(p==='')throw Log['error'](ai(0x131));}catch(X){Log[ai(0xc6)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xe2)](ai(0x110))||ai(0x104),Z=Y[ai(0xea)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0xd7)&&Log['success'](ai(0x118)+Z+':'+a0);}catch(a1){Log[ai(0xc6)](a1);}try{const a2=await Actions[ai(0xe2)](ai(0x113))||ai(0x11b);typeof a2===ai(0xee)&&(o=a2);}catch(a3){Log[ai(0xc6)](a3);}let x='';try{const a4=await Actions[ai(0x10b)](ai(0x134),![]);a4&&(x=a6f['join'](i,ai(0xfa)),Log['notice'](ai(0xff)+x),await this[ai(0xcc)][ai(0x12d)]({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0xc6)](a5);}try{const a6=JSON[ai(0xd4)](execSync(ai(0xc9)+p+ai(0xe3))['toString']())[0x0][ai(0xed)];Log[ai(0xfc)](ai(0x10a)+n),Log['notice'](ai(0xf6)+v+':'+w),Log[ai(0xfc)](ai(0xd9)+o),Log[ai(0xfc)]('Key-Pair:\x20'+r),Log[ai(0xfc)](ai(0x106)+m),Log['notice'](ai(0xdb)+a6);if(x){Log['notice'](ai(0x100)+x);const a8=a6g['readFileSync'](x)[ai(0x119)]();Log[ai(0xfc)](a8);}const a7=await Actions[ai(0x10b)](ai(0x124));if(a7){const a9=await d[ai(0xfb)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xda),'Value':ai(0x10e)},{'Key':ai(0x105),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x122)](ai(0xcd)),Log[ai(0xeb)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0xfc)](ai(0xef));const aa=await Actions[ai(0x10b)](ai(0xd6)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x130)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ai(0x10b)](ai(0xf8)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console[ai(0x103)](ac),Log[ai(0xc6)](ac);}}catch(ad){console[ai(0xc6)](ad),process[ai(0xf2)](0x0);}},a6e);
1
+ const a6ag=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xc3;let f=c[d];return f;},a6d(a,b);}function a6c(){const at=['environment','(((.+)+)+)+$','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','bright','Instace\x20Type:\x20','Setting\x20AMI\x20ID\x20to\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Name','alias','818043uIbSqX','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','Setting\x20Subnet\x20ID\x20to\x20','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','sgId','subnetId','No\x20instance\x20has\x20been\x20created.','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','5583984wclCgq','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20SUBNETID:\x20','ImageID:','162gzqVBS','1224125fBEvAc','sort','notice','\x20DESCRIPTION:\x20','split','4lsNtio','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','1908006ttuaCT','name','created-by','confirm','Creating\x20user\x20data\x20file\x20in\x20','\x20SG\x20NAME:\x20','617840QNLfKT','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','**\x20Available\x20Subnets\x20**','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Create\x20new\x20AWS\x20instance','7HgMkrX','amazon','forEach','number','push','Desc','getConfigFromShorthand','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Key-Pair:\x20','EC2\x20Name:\x20[','create-instance','isFile','maka\x20aws:create-instance\x20--env\x20dev','date','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','\x20AZONE:\x20','cidr','createKeyPair','subnet','Security\x20Group\x20Name:\x20[','fsi','getTime','ask','user-data','\x20SGID:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','cider','Setting\x20the\x20key-pair\x20to:\x20','ec2describeKeys','24673792PDIfwg','env','join','1:1','ID:\x20','parse','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','amiId','\x20:\x20','success','create','log','getConfigPath','Setting\x20SG\x20ID\x20to:\x20','error','getSecurityGroups','readFileSync','maka-cli','772CxuFpr','search','toString','desc','1526qMnGtd','Security\x20Group:\x20','chooseVPC','\x20CIDR:\x20'];a6c=function(){return at;};return a6c();}(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0xe9))/0x1*(parseInt(ae(0xed))/0x2)+parseInt(ae(0xfa))/0x3*(parseInt(ae(0x10c))/0x4)+-parseInt(ae(0x107))/0x5+-parseInt(ae(0x111))/0x6*(parseInt(ae(0x11d))/0x7)+parseInt(ae(0x102))/0x8+-parseInt(ae(0x106))/0x9*(parseInt(ae(0x117))/0xa)+parseInt(ae(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe7e11));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const af=a6d;return a6a[af(0xeb)]()[af(0xea)](af(0xf2))[af(0xeb)]()['constructor'](a6a)[af(0xea)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ag(0xe1)]({'name':a6ag(0xc3),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ag(0xc5),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0xd8)}],'validOpts':[],'shortDesc':a6ag(0x11c),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ah=a6ag;try{const c=this[ah(0xcd)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ah(0x123)](b['env']),i=this[ah(0xcd)][ah(0xe3)](h),j=g+'-'+h,k=await Actions[ah(0xcf)](ah(0x127)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x114)](ah(0x11b),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0xca)]({'env':h});r=y,s=z,Log[ah(0xe0)](ah(0xd5)+r);}else try{Log[ah(0x109)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ah(0xd6)]({'suggestion':A}),C=await Actions[ah(0xcf)](ah(0x10d))||'-1';if(parseInt(C)<0x0){Log[ah(0xe5)]('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[ah(0x109)](ah(0x100));return;}B?.[ah(0x11f)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x112)],Log[ai(0xe0)](ai(0xd5)+r));});}catch(D){Log[ah(0xe5)](D);}l=await d['chooseVPC']();const t=await Actions['confirm'](ah(0x118),!![]);let u;if(t){const E=l===''?await d[ah(0xef)]():l;u=await Actions['ask'](ah(0xcc)+k+']')||k;const F=await Actions[ah(0xcf)](ah(0x10e))||'22,80,443',G=F['split'](',');await d['ec2createSG']({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0xe6)](u);if(I===''){Log[ah(0x109)]('**\x20Available\x20Security\x20Groups\x20**'),J[ah(0x11f)](function(L){const aj=ah;L[aj(0x112)]===u?Log[aj(0x109)](aj(0xdb)+L['id']+aj(0x116)+L[aj(0x112)]+aj(0xd1)+L[aj(0xfe)]):Log[aj(0xf4)](aj(0xdb)+L['id']+aj(0x116)+L[aj(0x112)]+aj(0xd1)+L['sgId']);});const K=await Actions[ah(0xcf)](ah(0x11a)+H+']\x20')||H[ah(0xeb)]();J[ah(0x11f)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0xfe)],Log[ak(0xe0)](ak(0xe4)+m+'\x0a'));});}else m=I,Log[ah(0xe0)](ah(0xe4)+m+'\x0a');if(m==='')throw Log[ah(0xe5)](ah(0xdd));}catch(L){Log[ah(0xe5)](L);}try{const M=0x7e6;Log[ah(0x109)]('**\x20Available\x20AMIs\x20**');const N=execSync(ah(0xfd)+M+ah(0xfb))['toString'](),O=JSON[ah(0xdc)](N),P=[],Q=[];O[ah(0x11f)](function(S){const al=ah;if(S[al(0xf9)]===al(0x11e)){const T=S['Desc'][al(0x10b)]('build\x20on\x20')[0x1];P[al(0x121)]({'amiId':S['ID'],'desc':S[al(0x122)],'date':T});}}),P[ah(0x108)](function(S,T){const am=ah;return new Date(T[am(0xc6)])[am(0xce)]()-new Date(S[am(0xc6)])['getTime']();}),P[ah(0x11f)](function(S,T){const an=ah;Q[an(0x121)]({'id':T,'amiId':S[an(0xde)],'desc':S[an(0xec)]});}),Q['forEach'](function(S){const ao=ah;console['log'](ao(0xdb)+S['id']+'\x20AMIID:\x20'+S[ao(0xde)]+ao(0x10a)+S['desc']);});const R=await Actions['ask'](ah(0x101))||'0';Q[ah(0x11f)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0xde)],Log[ap(0xe0)](ap(0xf6)+n+ap(0xdf)+S[ap(0xec)]));});if(n==='')throw Log['error'](ah(0xdd));}catch(S){Log[ah(0xe5)](S);}try{Log['notice'](ah(0x119));const T=execSync(ah(0xd3))['toString'](),U=JSON[ah(0xdc)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V[aq(0x121)]({'id':Y,'cidr':X[aq(0xd4)],'az':X['az'],'subnetId':X['subnetId']});}),V[ah(0x11f)](function(X){const ar=ah;console[ar(0xe2)](ar(0xdb)+X['id']+ar(0xf0)+X[ar(0xc9)]+ar(0xc8)+X['az']+ar(0x104)+X[ar(0xff)]);});const W=await Actions['ask'](ah(0x125))||'0';V[ah(0x11f)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0xff)],Log[as(0xe0)](as(0xfc)+p));});if(p==='')throw Log[ah(0xe5)](ah(0xdd));}catch(X){Log[ah(0xe5)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0xf3))||ah(0xda),Z=Y[ah(0x10b)](':')[0x0],a0=Y[ah(0x10b)](':')[0x1];typeof parseInt(Z)===ah(0x120)&&typeof parseInt(a0)==='number'&&Log[ah(0xe0)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0xe5)](a1);}try{const a2=await Actions[ah(0xcf)](ah(0x110))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ah(0xe5)](a3);}let x='';try{const a4=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f[ah(0xd9)](i,ah(0xd0)),Log[ah(0x109)](ah(0x115)+x),await this[ah(0xcd)]['createFile']({'filePath':x,'data':''}),await Actions[ah(0x114)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ah(0xe5)](a5);}try{const a6=JSON[ah(0xdc)](execSync(ah(0x103)+p+ah(0x10f))[ah(0xeb)]())[0x0][ah(0xcb)];Log[ah(0x109)](ah(0x105)+n),Log[ah(0x109)]('Instance\x20Count:\x20'+v+':'+w),Log['notice'](ah(0xf5)+o),Log['notice'](ah(0x126)+r),Log[ah(0x109)](ah(0xee)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log[ah(0x109)]('User\x20Data:'+x);const a8=a6g[ah(0xe7)](x)['toString']();Log[ah(0x109)](a8);}const a7=await Actions[ah(0x114)](ah(0x124));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x113),'Value':ah(0xe8)},{'Key':ah(0xf1),'Value':h},{'Key':ah(0xf8),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ah(0xd2)),Log['bright'](ah(0xf7)));}else{Log['notice'](ah(0xc7));const aa=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ah(0xc4)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ah(0x114)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console['log'](ac),Log[ah(0xe5)](ac);}}catch(ad){console[ah(0xe5)](ad),process['exit'](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7i=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x66;let f=c[d];return f;},a7d(a,b);}(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x68))/0x1*(parseInt(g(0x76))/0x2)+-parseInt(g(0x69))/0x3*(parseInt(g(0x77))/0x4)+parseInt(g(0x66))/0x5+parseInt(g(0x6f))/0x6*(-parseInt(g(0x7b))/0x7)+parseInt(g(0x74))/0x8*(parseInt(g(0x6e))/0x9)+parseInt(g(0x72))/0xa*(parseInt(g(0x7a))/0xb)+parseInt(g(0x73))/0xc*(parseInt(g(0x79))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x53c1c));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a['toString']()[h(0x75)]('(((.+)+)+)+$')['toString']()[h(0x6a)](a7a)['search'](h(0x7c));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';function a7c(){const k=['ckp','fsi','23110knNQkg','49056FWpMRD','78032zfnqBX','search','306lLgmfr','4LiBpNW','createKeyPair','2977VdCnpx','1826tAdFdg','580013QBFEwA','(((.+)+)+)+$','create','error','748955BAlrGg','env','2802AOznQb','953367mnVJvr','constructor','maka\x20aws:create-key-pair','getConfigFromShorthand','\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','261tWtmye','48jIEtLi'];a7c=function(){return k;};return a7c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x7d)]({'name':'create-key-pair','aliases':[a7i(0x70)],'usage':a7i(0x6b),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a7i(0x67)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a7i(0x6d)},async function(a,b){const j=a7i;try{const c=new AWS(),d=this[j(0x71)][j(0x6c)](b[j(0x67)]);c[j(0x78)]({'env':d});}catch(f){console[j(0x7e)](f),process['exit'](0x0);}},a7e);
1
+ const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x159))/0x1+-parseInt(g(0x153))/0x2*(parseInt(g(0x157))/0x3)+parseInt(g(0x14a))/0x4+-parseInt(g(0x15d))/0x5*(parseInt(g(0x15f))/0x6)+parseInt(g(0x150))/0x7*(-parseInt(g(0x14b))/0x8)+parseInt(g(0x14d))/0x9+parseInt(g(0x148))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x4b41c));function a7c(){const l=['1089684OCJSHQ','constructor','env','54250HgmJpj','\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','maka\x20aws:create-key-pair\x20--env\x20prod','62tDsFBt','fsi','toString','create-key-pair','27552EldPmC','exit','415264TQSwyZ','maka\x20aws:create-key-pair','maka\x20aws:ckp\x20--env\x20prod','(((.+)+)+)+$','115kWBOey','search','35286VyeCBu','apply','error','10924930CeftUu','getConfigFromShorthand','1672656XxowPn','504xXRsKq','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance'];a7c=function(){return l;};return a7c();}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x155)]()[i(0x15e)](i(0x15c))[i(0x155)]()[i(0x14e)](a7a)[i(0x15e)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x148;let f=c[d];return f;},a7d(a,b);}Command['create']({'name':a7j(0x156),'aliases':['ckp'],'usage':a7j(0x15a),'examples':[a7j(0x152),a7j(0x15b)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x14f)],'validOpts':[],'shortDesc':a7j(0x14c),'description':a7j(0x151)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x154)][k(0x149)](b['env']);c['createKeyPair']({'env':d});}catch(f){console[k(0x161)](f),process[k(0x158)](0x0);}},a7e);
@@ -1 +1 @@
1
- const a8o=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0xd2))/0x1+-parseInt(m(0xe3))/0x2*(parseInt(m(0xcd))/0x3)+parseInt(m(0xdf))/0x4*(parseInt(m(0xd7))/0x5)+parseInt(m(0xde))/0x6*(-parseInt(m(0xd1))/0x7)+-parseInt(m(0xdb))/0x8+-parseInt(m(0xd5))/0x9*(parseInt(m(0xe1))/0xa)+parseInt(m(0xdd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x853e5));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 n=a8d;return a8a['toString']()[n(0xdc)](n(0xcc))['toString']()[n(0xe2)](a8a)[n(0xdc)](n(0xcc));});a8a();function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xcc;let f=c[d];return f;},a8d(a,b);}import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const r=['maka\x20aws:csg','csg','fsi','maka\x20aws\x20create-security-group','error','(((.+)+)+)+$','1115748hCVYWD','ask','22,80,443','List\x20is\x20not\x20all\x20numbers','12663ucqThQ','166201aLRFBg','Security\x20Group\x20Name:\x20[','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','9tgcsIs','chooseVPC','10KYLdiq','create-security-group','name','split','1471648SUEkvn','search','12216666wxqiCF','1434CaBuMv','1876564qZXDXd','exit','3091850GCkTZp','constructor','4CdLkrO','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','match'];a8c=function(){return r;};return a8c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8o(0xd8),'aliases':[a8o(0xe7)],'usage':a8o(0xe9),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8o(0xe4),'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':['maka\x20aws:create-secuirty-group',a8o(0xe6)]},async function(a,b){const p=a8o;try{const c=new AWS(),d=this[p(0xe8)]['getProjectConfig'](),{appName:f}=d,g=await c[p(0xd6)](),h=b['name']?b[p(0xd9)]:''+f,i=await Actions[p(0xce)](p(0xd3)+h+']')||h,j=await Actions[p(0xce)](p(0xd4))||p(0xcf),k=j[p(0xda)](',');k['forEach'](l=>{const q=p;if(!l[q(0xe5)](/^\d+$/))throw q(0xd0);}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[p(0xea)](l),process[p(0xe0)](0x1);}},a8e);
1
+ const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x120))/0x1+parseInt(m(0x139))/0x2*(-parseInt(m(0x12c))/0x3)+-parseInt(m(0x13d))/0x4+-parseInt(m(0x12a))/0x5+parseInt(m(0x124))/0x6*(-parseInt(m(0x13b))/0x7)+-parseInt(m(0x134))/0x8*(-parseInt(m(0x127))/0x9)+parseInt(m(0x126))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x9688c));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x122)]()['search'](o(0x140))[o(0x122)]()['constructor'](a8a)[o(0x129)]('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const s=['name','search','3352755IqvEPq','create','1813554OTppmC','error','maka\x20aws\x20create-security-group','chooseVPC','ask','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','exit','apply','40OmvbSK','List\x20is\x20not\x20all\x20numbers','getProjectConfig','maka\x20aws:csg','Security\x20Group\x20Name:\x20[','2EINwBv','22,80,443','311549FfyGRu','create-security-group','3396488eAdCFU','ec2createSG','\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','(((.+)+)+)+$','377824LsVrIl','csg','toString','split','138qkuaIS','fsi','27646810hRQnKo','1119483voAtXv'];a8c=function(){return s;};return a8c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x120;let f=c[d];return f;},a8d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a8p(0x12b)]({'name':a8p(0x13c),'aliases':[a8p(0x121)],'usage':a8p(0x12e),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a8p(0x13f),'examples':['maka\x20aws:create-secuirty-group',a8p(0x137)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x125)][q(0x136)](),{appName:f}=d,g=await c[q(0x12f)](),h=b[q(0x128)]?b[q(0x128)]:''+f,i=await Actions[q(0x130)](q(0x138)+h+']')||h,j=await Actions[q(0x130)](q(0x131))||q(0x13a),k=j[q(0x123)](',');k['forEach'](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x135);}),await c[q(0x13e)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x12d)](l),process[q(0x132)](0x1);}},a8e);
@@ -1 +1 @@
1
- const a9h=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x8a))/0x1+-parseInt(f(0x8f))/0x2*(-parseInt(f(0x8e))/0x3)+-parseInt(f(0x8b))/0x4*(parseInt(f(0x88))/0x5)+-parseInt(f(0x94))/0x6*(-parseInt(f(0x95))/0x7)+-parseInt(f(0x87))/0x8*(parseInt(f(0x9a))/0x9)+-parseInt(f(0x84))/0xa*(parseInt(f(0x99))/0xb)+parseInt(f(0x96))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xf352d));const a9b=(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;};}()),a9a=a9b(this,function(){const g=a9d;return a9a['toString']()[g(0x85)](g(0x89))['toString']()[g(0x97)](a9a)[g(0x85)](g(0x89));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x83;let f=c[d];return f;},a9d(a,b);}function a9c(){const j=['32068512PAgQKy','constructor','\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','6512yyEBlJ','2331TcwAtD','maka\x20aws:di','7180vtljkc','search','describe-instances','48728rDlAWl','2252990pjnISw','(((.+)+)+)+$','223366TXjTNb','16ulNUHN','maka\x20aws:describe-instances','error','4025085JsxWlO','2aexHrg','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','ec2describeInstances','exit','create','20562pxjjII','2065QTxGRe'];a9c=function(){return j;};return a9c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a9h(0x93)]({'name':a9h(0x86),'aliases':['di'],'usage':a9h(0x8c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9h(0x90),'examples':[a9h(0x8c),a9h(0x83)],'description':a9h(0x98)},async function(){const i=a9h;try{const a=new AWS();a[i(0x91)]();}catch(b){console[i(0x8d)](b),process[i(0x92)](0x0);}},a9e);
1
+ const a9i=a9d;function a9c(){const k=['135hRRKWl','\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','apply','maka\x20aws:describe-instances','5072215emSksG','constructor','(((.+)+)+)+$','create','error','16815656nvRxMF','search','ec2describeInstances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','383054STkyJR','408310roljPw','maka\x20aws:di','toString','describe-instances','614316xPEfFL','503502MXnNAg','3158gyPfzb'];a9c=function(){return k;};return a9c();}(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x1d4))/0x1+-parseInt(f(0x1da))/0x2*(-parseInt(f(0x1db))/0x3)+-parseInt(f(0x1d8))/0x4+-parseInt(f(0x1df))/0x5+parseInt(f(0x1d9))/0x6+-parseInt(f(0x1d3))/0x7+parseInt(f(0x1e4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x98cd3));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x1d6)]()[h(0x1e5)](h(0x1e1))[h(0x1d6)]()[h(0x1e0)](a9a)['search'](h(0x1e1));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a9d(a,b);}Command[a9i(0x1e2)]({'name':a9i(0x1d7),'aliases':['di'],'usage':a9i(0x1de),'validOpts':[],'shortDesc':a9i(0x1d2),'examples':[a9i(0x1de),a9i(0x1d5)],'description':a9i(0x1dc)},async function(){const j=a9i;try{const a=new AWS();a[j(0x1e6)]();}catch(b){console[j(0x1e3)](b),process['exit'](0x0);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xd5))/0x1+-parseInt(f(0xc5))/0x2+-parseInt(f(0xcc))/0x3*(-parseInt(f(0xc6))/0x4)+parseInt(f(0xc9))/0x5+parseInt(f(0xd2))/0x6*(parseInt(f(0xc2))/0x7)+parseInt(f(0xca))/0x8*(parseInt(f(0xc1))/0x9)+-parseInt(f(0xcd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xf0b99));function a10c(){const k=['(((.+)+)+)+$','constructor','1217782vUhOMN','9QmLysv','1397753ybQPOS','toString','create','465208iPAGBH','24EBjHkJ','describe-key-pairs','exit','7329970GvwDGW','1783304IMNTiG','dkp','745122ByTdPw','11421140pEAHkH','apply','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','error','maka\x20aws:describe-key-pairs','12ROYCPw'];a10c=function(){return k;};return a10c();}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xc3)]()['search']('(((.+)+)+)+$')['toString']()[h(0xd4)](a10a)['search'](h(0xd3));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xc1;let f=c[d];return f;},a10d(a,b);}Command[a10i(0xc4)]({'name':a10i(0xc7),'aliases':[a10i(0xcb)],'usage':a10i(0xd1),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10i(0xcf),'examples':[a10i(0xd1),'maka\x20aws:dkp']},async function(){const j=a10i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){console[j(0xd0)](b),process[j(0xc8)](0x0);}},a10e);
1
+ const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1bd))/0x1+parseInt(f(0x1bb))/0x2+parseInt(f(0x1c5))/0x3+-parseInt(f(0x1cb))/0x4+parseInt(f(0x1c7))/0x5*(parseInt(f(0x1ca))/0x6)+parseInt(f(0x1c4))/0x7+-parseInt(f(0x1c0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xd6591));function a10c(){const j=['5740195fywEmi','(((.+)+)+)+$','search','6JXaFIU','6943236AMhUyZ','error','1463574InkwgF','toString','100784lHSfvs','maka\x20aws:describe-key-pairs','ec2describeKeys','11109304gjQAeY','describe-key-pairs','exit','create','2237718ToIjWq','5106471IMWHWk','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS'];a10c=function(){return j;};return a10c();}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0x1bc)]()[g(0x1c9)](g(0x1c8))[g(0x1bc)]()['constructor'](a10a)[g(0x1c9)](g(0x1c8));});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a10d(a,b);}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10h(0x1c3)]({'name':a10h(0x1c1),'aliases':['dkp'],'usage':a10h(0x1be),'validOpts':[],'shortDesc':a10h(0x1c6),'examples':[a10h(0x1be),'maka\x20aws:dkp']},async function(){const i=a10h;try{const a=new AWS();a[i(0x1bf)]();}catch(b){console[i(0x1ba)](b),process[i(0x1c2)](0x0);}},a10e);
@@ -1 +1 @@
1
- const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x16f))/0x1+parseInt(l(0x16e))/0x2*(parseInt(l(0x151))/0x3)+parseInt(l(0x15d))/0x4+parseInt(l(0x152))/0x5*(parseInt(l(0x14c))/0x6)+-parseInt(l(0x170))/0x7+-parseInt(l(0x150))/0x8+parseInt(l(0x164))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xeb5bb));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x160)]()[n(0x166)]('(((.+)+)+)+$')[n(0x160)]()[n(0x172)](a11a)[n(0x166)](n(0x16b));});a11a();function a11c(){const s=['maka\x20aws:delete-sg','Deleted\x20','success','notice','2664332VOxuxg','isMakaProject','name','toString','apply','deleteSecurityGroup','create','13231647nqxTIB','ID:\x20','search','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20SG\x20NAME:\x20','appName','\x20SGID:\x20','(((.+)+)+)+$','error','Deleting\x20a\x20','1368662sBgyUv','329516CfaEvh','13049876KTIhfL','sgId','constructor','144mmDhiZ','getSecurityGroups','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','maka\x20aws:dsg','4885864CblOFS','6GvQRRk','54920tmYxnV','dsg','Not\x20deleting\x20secuirty\x20group','bright','forEach','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','confirm'];a11c=function(){return s;};return a11c();}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x14c;let f=c[d];return f;},a11d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a11o(0x163)]({'name':'delete-security-group','aliases':[a11o(0x153)],'usage':a11o(0x159),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0x157),'examples':[a11o(0x159),a11o(0x14f)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x15e)]();let d='';if(c){const j=b['getProjectConfig']();d=j[p(0x169)];}const {sgList:f}=await a[p(0x14d)]();f['forEach'](function(k){const q=p;c&&k[q(0x15f)]['includes'](d)?Log[q(0x15c)]('ID:\x20'+k['id']+q(0x168)+k['name']+'\x20SGID:\x20'+k[q(0x171)]):Log[q(0x155)](q(0x165)+k['id']+q(0x168)+k[q(0x15f)]+q(0x16a)+k[q(0x171)]);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x156)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x171)]);});if(!g)throw Log[p(0x16c)](p(0x167));const i=await Actions[p(0x158)](p(0x16d)+g+p(0x14e),![]);i?(await a[p(0x162)](g),Log[p(0x15b)](p(0x15a)+g)):Log[p(0x16c)](p(0x154)),process['exit'](0x0);}catch(k){process['exit'](0x1);}},a11e);
1
+ const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0xc7))/0x1+-parseInt(l(0xc0))/0x2*(-parseInt(l(0xbd))/0x3)+-parseInt(l(0xd3))/0x4+parseInt(l(0xbe))/0x5+parseInt(l(0xd7))/0x6*(parseInt(l(0xcb))/0x7)+parseInt(l(0xd4))/0x8+-parseInt(l(0xcf))/0x9*(parseInt(l(0xc8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x65c10));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0xba)]()['search'](n(0xd9))['toString']()[n(0xcc)](a11a)[n(0xb8)](n(0xd9));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a11c(){const r=['ID:\x20','success','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','confirm','getProjectConfig','243566WLpckS','16328350OAZTCe','dsg','includes','3491131DYLCQa','constructor','deleteSecurityGroup','isMakaProject','9yfIdby','\x20SGID:\x20','\x20SG\x20NAME:\x20','bright','2335080QHwUrA','6598520MbcgOq','maka\x20aws:delete-sg','Deleting\x20a\x20','6lpEhKo','name','(((.+)+)+)+$','appName','apply','Not\x20deleting\x20secuirty\x20group','delete-security-group','ask','getSecurityGroups','maka\x20aws:dsg','search','error','toString','notice','exit','36JCgJPA','3941075jEOxTV','sgId','127532rsTEcV'];a11c=function(){return r;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xb2;let f=c[d];return f;},a11d(a,b);}Command['create']({'name':a11o(0xb4),'aliases':[a11o(0xc9)],'usage':a11o(0xd5),'validOpts':[],'shortDesc':a11o(0xc4),'examples':[a11o(0xd5),a11o(0xb7)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0xce)]();let d='';if(c){const j=b[p(0xc6)]();d=j[p(0xda)];}const {sgList:f}=await a[p(0xb6)]();f['forEach'](function(k){const q=p;c&&k[q(0xd8)][q(0xca)](d)?Log[q(0xbb)](q(0xc1)+k['id']+q(0xd1)+k[q(0xd8)]+q(0xd0)+k[q(0xbf)]):Log[q(0xd2)](q(0xc1)+k['id']+q(0xd1)+k[q(0xd8)]+q(0xd0)+k[q(0xbf)]);});let g='';const h=await Actions[p(0xb5)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f['forEach'](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log['error'](p(0xc3));const i=await Actions[p(0xc5)](p(0xd6)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0xcd)](g),Log[p(0xc2)]('Deleted\x20'+g)):Log[p(0xb9)](p(0xb3)),process[p(0xbc)](0x0);}catch(k){process[p(0xbc)](0x1);}},a11e);
@@ -1 +1 @@
1
- function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a12d(a,b);}const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1e8))/0x1+parseInt(f(0x1e9))/0x2+-parseInt(f(0x1e1))/0x3+-parseInt(f(0x1ed))/0x4*(-parseInt(f(0x1e0))/0x5)+parseInt(f(0x1ef))/0x6*(-parseInt(f(0x1df))/0x7)+-parseInt(f(0x1eb))/0x8*(parseInt(f(0x1d7))/0x9)+-parseInt(f(0x1dd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x8c83e));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0x1d8)]()[g(0x1f0)](g(0x1dc))[g(0x1d8)]()[g(0x1f1)](a12a)['search'](g(0x1dc));});a12a();function a12c(){const j=['instanceId','\x20Ready?','running','(((.+)+)+)+$','5889840zkhTsx','confirm','70035BSkhdN','5XgJRzV','1586862ahSyPP','ec2rebootInstance','maka\x20aws:reboot-instance','error','\x20is\x20still\x20running.','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','name','953476MODEnU','1876150IQKXUx','reboot-instance','1044904zChtcV','Reboot\x20an\x20EC2\x20instance','4345652yVIGUr','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','222XPkGEA','search','constructor','status','63iJnrTt','toString'];a12c=function(){return j;};return a12c();}import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12h(0x1ea),'aliases':['rbi'],'usage':a12h(0x1e3),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12h(0x1ec),'examples':[a12h(0x1e3),'maka\x20aws:rbi']},async function(){const i=a12h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[i(0x1d6)]===i(0x1db)){const c=await Actions[i(0x1de)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[i(0x1e7)]+i(0x1da));c&&b[i(0x1d9)]?a[i(0x1e2)]({'instanceId':b['instanceId']}):Log[i(0x1e4)](i(0x1ee)+b['name']+i(0x1e5));}else Log['error'](i(0x1e6));}catch(d){console[i(0x1e4)](d),process['exit'](0x0);}},a12e);
1
+ function a12c(){const k=['search','\x20is\x20still\x20running.','error','8NTiNIu','5758KriVlG','\x20Ready?','12335NutHiZ','instanceId','744cAEdDu','682583qZxxWi','rbi','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','running','status','(((.+)+)+)+$','Reboot\x20an\x20EC2\x20instance','confirm','45UjsLgv','create','79838iSfzpy','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','name','6zidfyF','831010vZunOc','1636368IvcjCv','toString','ec2rebootInstance','108633GXITXf'];a12c=function(){return k;};return a12c();}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x20b))/0x1+-parseInt(f(0x1fb))/0x2*(-parseInt(f(0x20e))/0x3)+parseInt(f(0x1ff))/0x4*(-parseInt(f(0x1fd))/0x5)+parseInt(f(0x1f3))/0x6+-parseInt(f(0x1f6))/0x7*(-parseInt(f(0x1fa))/0x8)+-parseInt(f(0x209))/0x9*(-parseInt(f(0x20f))/0xa)+-parseInt(f(0x200))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x41891));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a12d(a,b);}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x202)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()[h(0x1f7)]('(((.+)+)+)+$')[h(0x1f4)]()['constructor'](a12a)['search'](h(0x206));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0x20a)]({'name':'reboot-instance','aliases':[a12i(0x201)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a12i(0x207),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x205)]===j(0x204)){const c=await Actions[j(0x208)](j(0x203)+b[j(0x20d)]+j(0x1fc));c&&b['instanceId']?a[j(0x1f5)]({'instanceId':b[j(0x1fe)]}):Log[j(0x1f9)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0x20d)]+j(0x1f8));}else Log[j(0x1f9)](j(0x20c));}catch(d){console[j(0x1f9)](d),process['exit'](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0xbf))/0x1*(parseInt(E(0x96))/0x2)+-parseInt(E(0x9a))/0x3*(parseInt(E(0x9d))/0x4)+parseInt(E(0xc1))/0x5*(-parseInt(E(0xba))/0x6)+parseInt(E(0xab))/0x7+-parseInt(E(0xb3))/0x8*(-parseInt(E(0x8c))/0x9)+parseInt(E(0xa2))/0xa+parseInt(E(0xc2))/0xb*(-parseInt(E(0xa5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x445d2));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0xbc)]()['search']('(((.+)+)+)+$')[G(0xbc)]()[G(0x9b)](a13a)[G(0xa3)](G(0x90));});a13a();function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x84;let f=c[d];return f;},a13d(a,b);}import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object[H(0x92)](CountryCode)[H(0x8b)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x99)]({'name':a13I(0x8e),'aliases':[a13I(0xa7)],'usage':a13I(0xb0),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13I(0xb4),'examples':[a13I(0xa6),a13I(0xad)]},async function(a,b){const J=a13I;try{const c=b[J(0xc3)],d=new AWS(),{available:f,cost:g}=await d[J(0x98)](c);if(f&&g){Log[J(0xa1)]('The\x20domain\x20name:\x20'+c+J(0x86));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0x8d));const j=await Actions['confirm'](J(0x89)+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0x85),'message':J(0xa0),'choices':[J(0xc0),J(0x9f),J(0xb2),J(0xb1),J(0xa9)]},l=await Actions[J(0xa4)](J(0x94))||'1',m=await Actions[J(0xa4)]('Contact\x20First\x20Name\x20[Contact]:\x20')||J(0xb6),n=await Actions[J(0xa4)](J(0xbd))||'Person',{contactType:o}=await Actions[J(0xaa)](k),p=await Actions[J(0xa4)](J(0x97))||J(0xb5),q=await Actions[J(0xa4)](J(0x87)),r=await Actions[J(0xa4)](J(0xbb))||J(0xb9),s=await Actions['ask']('State\x20[HI]:\x20')||'HI',t=await Actions[J(0xa4)](J(0xbe))||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error']('Invalid\x202\x20character\x20country\x20code');const v=await Actions[J(0xa4)](J(0x8a))||'+1.5555555555',w=await Actions['ask']('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||'+1.5555555556',x=await Actions['ask'](J(0xac))||'mail@example.com',y=await Actions['confirm']('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0xb2)){const C=await Actions['ask'](J(0x91))||J(0xb7);z[J(0x9e)]=C;}const A=h||0x0*parseInt(l);Log[J(0xa1)](J(0x88)),Log[J(0x9c)](A+'\x20'+i+J(0x84)+l+J(0x8f)+h+'\x20'+i+J(0x95));const B=await Actions['confirm'](J(0xae));B&&await d[J(0xb8)](z,c,parseInt(l),y);}}else throw Log[J(0xa8)](J(0x93));}catch(D){console[J(0xa8)](D),process['exit'](0x0);}},a13e);function a13c(){const K=['register-domain-name','\x20years\x20(','(((.+)+)+)+$','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','values','Domain\x20name\x20is\x20unavailable','Duration\x20in\x20years\x20[1]:\x20','\x20/\x20Year)','2MxoBGy','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','checkDomainAvailability','create','61539pCHFFx','constructor','warn','76YlQwuh','OrganizationName','COMPANY','Choose\x20contact\x20type','notice','5235210eGilXk','search','ask','1156020BgoWiw','maka\x20aws:register-domain-name\x20--domain=example.com','rdn','error','RESELLER','options','1871793svuDil','Contact\x20Email\x20[mail@example.com]:\x20','maka\x20aws:rdn\x20--domain=example.com','Are\x20you\x20sure?','apply','maka\x20aws:register-domain-name','PUBLIC_BODY','PERSON','8WmpmVP','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','123\x20Glorious\x20Way','Contact','My\x20Comanpy,\x20LLC.','registerDomain','96816','12OlWLZJ','Zip\x20Code\x20[96816]:\x20','toString','Contact\x20Last\x20Name\x20[Person]:\x20','Country\x20Code\x20[US]:\x20','152441WHngIF','ASSOCIATION','912255yAOnea','22pIuacF','domain','\x20for\x20','contactType','\x20is\x20available\x20for:','Address\x20Line\x202:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Do\x20you\x20wish\x20to\x20register\x20','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','includes','2555784ohBbMg','\x20/\x20Year\x20\x0a'];a13c=function(){return K;};return a13c();}
1
+ const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0x1ad))/0x1*(-parseInt(E(0x1b3))/0x2)+-parseInt(E(0x1a9))/0x3+parseInt(E(0x19e))/0x4*(-parseInt(E(0x1bc))/0x5)+-parseInt(E(0x191))/0x6+-parseInt(E(0x186))/0x7*(-parseInt(E(0x1bb))/0x8)+-parseInt(E(0x1c1))/0x9*(parseInt(E(0x1af))/0xa)+-parseInt(E(0x19c))/0xb*(-parseInt(E(0x19b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xa67aa));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x196)]()[G(0x1b5)]('(((.+)+)+)+$')[G(0x196)]()[G(0x1bf)](a13a)[G(0x1b5)]('(((.+)+)+)+$');});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x182;let f=c[d];return f;},a13d(a,b);}a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function a13c(){const K=['Contact\x20Last\x20Name\x20[Person]:\x20','\x20for\x20','domain','Domain\x20name\x20is\x20unavailable','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','3027504biENzV','ASSOCIATION','Address\x20Line\x202:\x20','options','288EZmsFC','notice','258760dRbtNq','Are\x20you\x20sure?','maka\x20aws:register-domain-name\x20--domain=example.com','RESELLER','9028fQRTwx','Do\x20you\x20wish\x20to\x20register\x20','search','mail@example.com','+1.5555555555','123\x20Glorious\x20Way','\x20years\x20(','\x20/\x20Year)','3883448ChhtQG','510rmBGsx','rdn','confirm','constructor','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','423ewKhvK','My\x20Comanpy,\x20LLC.','\x20/\x20Year\x20\x0a','error','Person','maka\x20aws:rdn\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','7aQVAvM','register-domain-name','maka\x20aws:register-domain-name','registerDomain','PERSON','values','Country\x20Code\x20[US]:\x20','Choose\x20contact\x20type','State\x20[HI]:\x20','checkDomainAvailability','apply','7139568cfxJdB','Duration\x20in\x20years\x20[1]:\x20','Contact\x20Email\x20[mail@example.com]:\x20','Invalid\x202\x20character\x20country\x20code','create','toString','ask','The\x20domain\x20name:\x20','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','+1.5555555556','136668ZEbCJs','2893emctGb','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','26808BsgbRh','exit','PUBLIC_BODY','includes','\x20is\x20available\x20for:'];a13c=function(){return K;};return a13c();}function isValidCountryCode(a){const H=a13d;return Object[H(0x18b)](CountryCode)[H(0x1a1)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x195)]({'name':a13I(0x187),'aliases':[a13I(0x1bd)],'usage':a13I(0x188),'requiredOpts':[a13I(0x1a5)],'validOpts':[],'shortDesc':a13I(0x19d),'examples':[a13I(0x1b1),a13I(0x184)]},async function(a,b){const J=a13I;try{const c=b[J(0x1a5)],d=new AWS(),{available:f,cost:g}=await d[J(0x18f)](c);if(f&&g){Log[J(0x1ae)](J(0x198)+c+J(0x1a2));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0x1c3));const j=await Actions[J(0x1be)](J(0x1b4)+c+'\x20?',![]);if(j){const k={'type':'list','name':'contactType','message':J(0x18d),'choices':[J(0x1aa),'COMPANY',J(0x18a),J(0x1a0),J(0x1b2)]},l=await Actions[J(0x197)](J(0x192))||'1',m=await Actions[J(0x197)](J(0x185))||'Contact',n=await Actions[J(0x197)](J(0x1a3))||J(0x183),{contactType:o}=await Actions[J(0x1ac)](k),p=await Actions[J(0x197)](J(0x1a7))||J(0x1b8),q=await Actions[J(0x197)](J(0x1ab)),r=await Actions[J(0x197)]('Zip\x20Code\x20[96816]:\x20')||'96816',s=await Actions['ask'](J(0x18e))||'HI',t=await Actions['ask'](J(0x18c))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x182)](J(0x194));const v=await Actions[J(0x197)](J(0x199))||J(0x1b7),w=await Actions[J(0x197)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x19a),x=await Actions[J(0x197)](J(0x193))||J(0x1b6),y=await Actions[J(0x1be)]('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0x18a)){const C=await Actions[J(0x197)](J(0x1c0))||J(0x1c2);z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log[J(0x1ae)](J(0x1a8)),Log['warn'](A+'\x20'+i+J(0x1a4)+l+J(0x1b9)+h+'\x20'+i+J(0x1ba));const B=await Actions['confirm'](J(0x1b0));B&&await d[J(0x189)](z,c,parseInt(l),y);}}else throw Log[J(0x182)](J(0x1a6));}catch(D){console[J(0x182)](D),process[J(0x19f)](0x0);}},a13e);
@@ -1 +1 @@
1
- const a14k=a14d;function a14c(){const m=['constructor','maka\x20aws:remove-key-pair','1ztMznm','35hzMEmJ','apply','18301872gSwGZu','success','(((.+)+)+)+$','exit','3003099xctlzb','20cilanU','Deleting\x20a\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','maka\x20aws:rkp','9AoHVOk','forEach','create','2673640MmBAJr','1991084yMtYis','search','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','error','ec2describeKeys','Deleted\x20','107276tauGid','150WnjUjW','\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','322007EVQlOd','Not\x20deleting\x20keypair','rkp','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','4003698AfrUis','toString'];a14c=function(){return m;};return a14c();}function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x78;let f=c[d];return f;},a14d(a,b);}(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x7f))/0x1*(parseInt(h(0x8f))/0x2)+parseInt(h(0x7b))/0x3+parseInt(h(0x95))/0x4*(parseInt(h(0x80))/0x5)+parseInt(h(0x96))/0x6*(-parseInt(h(0x98))/0x7)+-parseInt(h(0x8e))/0x8*(-parseInt(h(0x8b))/0x9)+-parseInt(h(0x87))/0xa*(parseInt(h(0x86))/0xb)+parseInt(h(0x82))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xa879b));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x7c)]()[j(0x90)](j(0x84))[j(0x7c)]()[j(0x7d)](a14a)['search']('(((.+)+)+)+$');});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x8d)]({'name':'remove-key-pair','aliases':[a14k(0x79)],'usage':a14k(0x7e),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x91),'description':a14k(0x97),'examples':[a14k(0x7e),a14k(0x8a)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x93)]();let c=undefined;const d=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0x8c)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log['error'](l(0x7a));const f=await Actions['confirm'](l(0x88)+c+l(0x89),![]);f?(await a['deleteKeyPair'](c),Log[l(0x83)](l(0x94)+c)):Log[l(0x92)](l(0x78)),process[l(0x85)](0x0);}catch(g){process[l(0x85)](0x1);}},a14e);
1
+ const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0xd7))/0x1+parseInt(h(0xcf))/0x2*(-parseInt(h(0xd0))/0x3)+-parseInt(h(0xdc))/0x4*(parseInt(h(0xd6))/0x5)+parseInt(h(0xc3))/0x6+-parseInt(h(0xc9))/0x7*(-parseInt(h(0xcd))/0x8)+parseInt(h(0xc5))/0x9+-parseInt(h(0xdd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xee654));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a['toString']()[j(0xd4)](j(0xc8))['toString']()[j(0xce)](a14a)['search'](j(0xc8));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xc0;let f=c[d];return f;},a14d(a,b);}a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14c(){const m=['ec2describeKeys','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','search','apply','10hevDpP','1850488TeofKi','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','Not\x20deleting\x20keypair','Deleted\x20','exit','3449352OIxtPr','10732770vHfaHn','\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','remove-key-pair','error','9553782gHkzMj','Deleting\x20a\x20','3166074FwLLmb','maka\x20aws:rkp','deleteKeyPair','(((.+)+)+)+$','1400119hNwXzk','Please\x20choose\x20a\x20key\x20to\x20delete:','create','ask','8itHvyt','constructor','2878roluJJ','459KNhYAN','rkp'];a14c=function(){return m;};return a14c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0xcb)]({'name':a14k(0xc1),'aliases':[a14k(0xd1)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':a14k(0xd3),'description':a14k(0xc0),'examples':['maka\x20aws:remove-key-pair',a14k(0xc6)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0xd2)]();let c=undefined;const d=await Actions[l(0xcc)](l(0xca));b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0xc2)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions['confirm'](l(0xc4)+c+l(0xd8),![]);f?(await a[l(0xc7)](c),Log['success'](l(0xda)+c)):Log[l(0xc2)](l(0xd9)),process['exit'](0x0);}catch(g){process[l(0xdb)](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x178))/0x1+-parseInt(l(0x194))/0x2*(parseInt(l(0x181))/0x3)+-parseInt(l(0x18a))/0x4+-parseInt(l(0x17c))/0x5+-parseInt(l(0x193))/0x6*(-parseInt(l(0x184))/0x7)+parseInt(l(0x177))/0x8+parseInt(l(0x18c))/0x9*(parseInt(l(0x17e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x80fb3));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x16e)]()[n(0x186)](n(0x175))[n(0x16e)]()['constructor'](a15a)[n(0x186)]('(((.+)+)+)+$');});a15a();import a15e from'path';import a15f from'fs';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x167;let f=c[d];return f;},a15d(a,b);}import{execSync}from'child_process';import a15g from'./aws.command.js';function a15c(){const q=['host','2709100MxOOxw','set-host','210GdfFbJ','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','ssh.json','6231tAmbrH','join','\x0aSaved\x20host\x20','7nzYdQt','\x20IP\x20to\x20','search','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','public','private','1932196VnpPDf','template','469242jEsJYE','readFileSync','getConfigPath','sth','privateIp','utf8','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','371562ZImiOh','674AwNJEa','maka\x20aws\x20set-host','maka\x20aws:sth\x20--env\x20prod','ask','apply','fsi','config/ssh.json','appName','exit','toString','error','isFile','parse','create','stringify','\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','(((.+)+)+)+$','cat\x20','2322552rvxmpO','805981KogzCV','getProjectConfig','success'];a15c=function(){return q;};return a15c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15o(0x172)]({'name':a15o(0x17d),'aliases':[a15o(0x18f)],'usage':a15o(0x195),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15o(0x17f),'description':a15o(0x174),'examples':['maka\x20aws:set-host\x20--env\x20dev',a15o(0x167)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x16a)][p(0x18e)](b['env']),f=this[p(0x16a)][p(0x179)](),g=await c['chooseInstance'](),h=a15e[p(0x182)](d,p(0x180));!this[p(0x16a)][p(0x170)](h)&&await this[p(0x16a)][p(0x18b)]({'srcPath':p(0x16b),'destPath':h,'context':{'app':f[p(0x16c)]},'config':f});const i=JSON[p(0x171)](a15f[p(0x18d)](h,p(0x191))),j=await Actions[p(0x168)](p(0x192))||p(0x188);if(j){if(j===p(0x188)||j===p(0x189)){if(j==='public')i[p(0x17b)]=g?.['publicIp'];else j===p(0x189)&&(i[p(0x17b)]=g?.[p(0x190)]);}else throw p(0x187);}else i[p(0x17b)]=g?.[p(0x190)];a15f['writeFileSync'](a15e[p(0x182)](d,p(0x180)),JSON[p(0x173)](i,null,0x2)),execSync(p(0x176)+a15e['join'](d,p(0x180)),{'stdio':'inherit'}),Log[p(0x17a)](p(0x183)+j+p(0x185)+d+a15e['sep']+p(0x180));}catch(k){console[p(0x16f)](k),process[p(0x16d)](0x0);}},a15g);
1
+ const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x1fb))/0x1+-parseInt(l(0x203))/0x2+-parseInt(l(0x210))/0x3+-parseInt(l(0x1fe))/0x4+parseInt(l(0x1ff))/0x5*(-parseInt(l(0x1ed))/0x6)+parseInt(l(0x215))/0x7*(parseInt(l(0x1fc))/0x8)+parseInt(l(0x1f8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x6881c));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x20c)]()['search'](n(0x208))[n(0x20c)]()[n(0x1f7)](a15a)[n(0x1f4)](n(0x208));});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a15d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a15c(){const q=['template','constructor','24255261aUcZue','cat\x20','sep','497466AbcTnV','620344zISPYj','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','1651476kCxDOk','5xWMloj','maka\x20aws\x20set-host','parse','publicIp','1633698OYarWx','appName','maka\x20aws:set-host\x20--env\x20dev','getProjectConfig','public','(((.+)+)+)+$','\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','isFile','env','toString','\x0aSaved\x20host\x20','private','fsi','1463859BXxvng','getConfigPath','ssh.json','chooseInstance','stringify','7EXFTcc','maka\x20aws:sth\x20--env\x20prod','create','utf8','success','host','776250QUBuUr','\x20IP\x20to\x20','inherit','apply','privateIp','join','sth','search','writeFileSync'];a15c=function(){return q;};return a15c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15o(0x217)]({'name':'set-host','aliases':[a15o(0x1f3)],'usage':a15o(0x200),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0x20b)],'validOpts':[],'shortDesc':a15o(0x1fd),'description':a15o(0x209),'examples':[a15o(0x205),a15o(0x216)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x20f)][p(0x211)](b['env']),f=this[p(0x20f)][p(0x206)](),g=await c[p(0x213)](),h=a15e[p(0x1f2)](d,p(0x212));!this[p(0x20f)][p(0x20a)](h)&&await this[p(0x20f)][p(0x1f6)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x204)]},'config':f});const i=JSON[p(0x201)](a15f['readFileSync'](h,p(0x218))),j=await Actions['ask']('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||p(0x207);if(j){if(j===p(0x207)||j===p(0x20e)){if(j===p(0x207))i[p(0x1ec)]=g?.[p(0x202)];else j===p(0x20e)&&(i[p(0x1ec)]=g?.[p(0x1f1)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i['host']=g?.[p(0x1f1)];a15f[p(0x1f5)](a15e[p(0x1f2)](d,p(0x212)),JSON[p(0x214)](i,null,0x2)),execSync(p(0x1f9)+a15e[p(0x1f2)](d,p(0x212)),{'stdio':p(0x1ef)}),Log[p(0x1eb)](p(0x20d)+j+p(0x1ee)+d+a15e[p(0x1fa)]+'ssh.json');}catch(k){console['error'](k),process['exit'](0x0);}},a15g);
@@ -1 +1 @@
1
- const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x1f3))/0x1+parseInt(f(0x1fc))/0x2+-parseInt(f(0x211))/0x3+-parseInt(f(0x201))/0x4*(parseInt(f(0x1f4))/0x5)+-parseInt(f(0x202))/0x6*(-parseInt(f(0x1fa))/0x7)+-parseInt(f(0x20f))/0x8*(parseInt(f(0x208))/0x9)+parseInt(f(0x204))/0xa*(parseInt(f(0x20d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xacf8e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const g=a16d;return a16a['toString']()[g(0x205)](g(0x206))[g(0x1fe)]()[g(0x203)](a16a)[g(0x205)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a16d(a,b);}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a16h(0x1f6)]({'name':a16h(0x207),'aliases':['ti'],'usage':a16h(0x200),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a16h(0x210),'examples':[a16h(0x200),a16h(0x1f7)]},async function(){const i=a16h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[i(0x1ff)]&&b?.[i(0x1f8)]==='running'){const c=await Actions[i(0x1f5)](i(0x1f9)+b[i(0x209)]+i(0x20c));c?a[i(0x20a)]({'instanceId':b[i(0x1ff)]}):Log['error'](i(0x1fb)+b[i(0x209)]+i(0x20e));}else Log[i(0x20b)](i(0x1fd));}catch(d){console[i(0x20b)](d),process['exit'](0x0);}},a16e);function a16c(){const j=['6788844OVUxOr','constructor','10DoOJol','search','(((.+)+)+)+$','terminate-instance','606159jGfHld','name','ec2terminateInstance','error','\x20Ready?','20135753Tpwoju','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','104eZOIdM','\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','2915058UPAbWN','590209ylMbGB','820STLcyR','confirm','create','maka\x20aws:ti','status','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','7XLKTYn','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','569738PMidgY','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','toString','instanceId','maka\x20aws:terminate-instance','31252rZDBGh'];a16c=function(){return j;};return a16c();}
1
+ const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1+parseInt(f(0x1de))/0x2*(-parseInt(f(0x1df))/0x3)+parseInt(f(0x1da))/0x4*(-parseInt(f(0x1e1))/0x5)+parseInt(f(0x1d9))/0x6+parseInt(f(0x1e3))/0x7*(-parseInt(f(0x1e5))/0x8)+parseInt(f(0x1d0))/0x9*(-parseInt(f(0x1dc))/0xa)+parseInt(f(0x1d3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xdbeea));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const g=a16d;return a16a[g(0x1e0)]()[g(0x1e7)]('(((.+)+)+)+$')[g(0x1e0)]()[g(0x1d4)](a16a)[g(0x1e7)](g(0x1e6));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16c(){const j=['constructor','chooseInstance','maka\x20aws:terminate-instance','instanceId','confirm','2069928bwWMBq','76vuLpdV','exit','13750660MCWCRO','850084ZulElP','33826XRHbBt','237dPTUxI','toString','135635unLLJL','name','16163FHkZfM','create','1064gkeMVD','(((.+)+)+)+$','search','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','\x20Ready?','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','9jDbjXb','Terminate\x20an\x20EC2\x20instance','error','54336051KYprBA'];a16c=function(){return j;};return a16c();}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1cc;let f=c[d];return f;},a16d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a16h(0x1e4)]({'name':a16h(0x1ce),'aliases':['ti'],'usage':a16h(0x1d6),'validOpts':[],'shortDesc':a16h(0x1d1),'description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a16h(0x1d6),'maka\x20aws:ti']},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0x1d5)]();if(b?.[i(0x1d7)]&&b?.['status']==='running'){const c=await Actions[i(0x1d8)](i(0x1cf)+b['name']+i(0x1cc));c?a['ec2terminateInstance']({'instanceId':b[i(0x1d7)]}):Log[i(0x1d2)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[i(0x1e2)]+i(0x1e8));}else Log[i(0x1d2)](i(0x1cd));}catch(d){console[i(0x1d2)](d),process[i(0x1db)](0x0);}},a16e);
@@ -1 +1 @@
1
- function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x17d;var f=c[d];return f;},a17d(a,b);}(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x182))/0x1*(-parseInt(f(0x17f))/0x2)+-parseInt(f(0x187))/0x3+parseInt(f(0x186))/0x4+-parseInt(f(0x184))/0x5*(parseInt(f(0x17e))/0x6)+parseInt(f(0x18b))/0x7*(-parseInt(f(0x185))/0x8)+parseInt(f(0x188))/0x9+-parseInt(f(0x17d))/0xa*(parseInt(f(0x183))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xb3bc3));var a17b=(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;};}()),a17a=a17b(this,function(){var g=a17d;return a17a[g(0x180)]()[g(0x181)](g(0x189))[g(0x180)]()[g(0x18a)](a17a)[g(0x181)](g(0x189));});a17a();import'./build.js';function a17c(){var h=['toString','search','274KktbEQ','1018083fAwfkV','5iYWkhs','24jjdjQc','744700lkmVih','1334727fCotJo','4681665LegPiv','(((.+)+)+)+$','constructor','272055QqXMiq','40WPFcFm','1615542TjaGVr','8984eNucnh'];a17c=function(){return h;};return a17c();}import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a17d,c=a();while(!![]){try{var d=parseInt(f(0x120))/0x1+-parseInt(f(0x11c))/0x2+parseInt(f(0x127))/0x3*(-parseInt(f(0x125))/0x4)+parseInt(f(0x122))/0x5+-parseInt(f(0x123))/0x6+parseInt(f(0x124))/0x7+-parseInt(f(0x121))/0x8*(-parseInt(f(0x128))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xbd477));var a17b=(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;};}()),a17a=a17b(this,function(){var g=a17d;return a17a[g(0x11e)]()[g(0x11d)](g(0x126))['toString']()[g(0x11f)](a17a)['search']('(((.+)+)+)+$');});a17a();import'./build.js';function a17c(){var h=['2719534jjSzxy','search','toString','constructor','1337854BjGhEC','13832xnREVr','5550070QERdbb','6035640nhqUgq','4265646yToLRM','812zmlSVx','(((.+)+)+)+$','16623FrEZWs','6291jCrhWQ'];a17c=function(){return h;};return a17c();}function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x11c;var f=c[d];return f;},a17d(a,b);}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0x1f9))/0x1*(parseInt(q(0x21b))/0x2)+parseInt(q(0x1f8))/0x3+parseInt(q(0x213))/0x4*(-parseInt(q(0x204))/0x5)+parseInt(q(0x200))/0x6+parseInt(q(0x1fb))/0x7*(parseInt(q(0x203))/0x8)+-parseInt(q(0x21f))/0x9*(-parseInt(q(0x1fd))/0xa)+parseInt(q(0x217))/0xb*(-parseInt(q(0x206))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xce355));function a18c(){const v=['78281qeUyhZ','checkMeteorPackage','11064630AjOwLZ','exit','apply','6797748CEyosC','existsSync','error','528KSsTPA','953555mkBptr','This\x20project\x27s\x20meteor\x20version\x20(','264ghRvOK','argv','maka\x20build','concat','runSubCommand','fsi','notice','debug','maka\x20build:docker','Verifying\x20meteor\x20package\x20requirements\x20...','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','force','\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','20paeLSQ','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','join','app.tar.gz','1859836FVCAyK',').\x20Update?','update','--release','20tyYjhP','installMeteorPackage','autoupdate','pathFromProject','9mzlqGc','forEach',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','findProjectDirectory','Aborted.','invokeMeteorCommand','slice','maka\x20build\x20<opts>','build','search','(((.+)+)+)+$','4488531tnvnex','104418ZxarHd','confirm'];a18c=function(){return v;};return a18c();}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a['toString']()[s(0x1f6)](s(0x1f7))['toString']()['constructor'](a18a)[s(0x1f6)](s(0x1f7));});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a18d(a,b);}import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':'build','usage':a18t(0x1f4),'validOpts':[a18t(0x211),a18t(0x20d)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18t(0x214),'mustBeInMakaProject':!![],'description':a18t(0x212),'examples':[a18t(0x208),a18t(0x20e)]},async function(a,b){const u=a18t;try{const c=this[u(0x20b)][u(0x222)]();!this['fsi'][u(0x1fc)](u(0x21d))&&(Log[u(0x20c)](u(0x20f)),await this[u(0x20b)][u(0x21c)](u(0x21d),{'cwd':c}));const d=a[0x0],f=this['findSubCommand'](d);if(f)this[u(0x20a)](d,a,b);else{const g=b['force'];if(!g){const j=this[u(0x20b)]['getGlobalMeteorVersion'](),k=this[u(0x20b)]['getProjectMeteorVersion'](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x1fa)](u(0x205)+k+u(0x221)+j+u(0x218));m&&this[u(0x20b)][u(0x1f2)](u(0x219),[u(0x21a),j]);}}const h=[this[u(0x20b)][u(0x21e)]({'pathParts':[u(0x1f5)]})][u(0x209)](process[u(0x207)][u(0x1f3)](0x3)),i=a18e[u(0x215)](this[u(0x20b)]['pathFromProject']({}),u(0x1f5),u(0x216));if(a18f[u(0x201)](i)){const n=g??await Actions[u(0x1fa)](u(0x210));if(!n)throw Log[u(0x202)](u(0x223));}h[u(0x220)]((o,p)=>{o==='--force'&&h['splice'](p,0x2);}),this['fsi'][u(0x1f2)](u(0x1f5),h);}}catch(o){console['error'](o),process[u(0x1fe)](0x0);}});export default BuildCommand;
1
+ const a18r=a18d;(function(a,b){const o=a18d,c=a();while(!![]){try{const d=parseInt(o(0xf0))/0x1*(parseInt(o(0x107))/0x2)+parseInt(o(0x108))/0x3+parseInt(o(0x10a))/0x4*(parseInt(o(0xf9))/0x5)+-parseInt(o(0x102))/0x6+parseInt(o(0xf1))/0x7*(parseInt(o(0xee))/0x8)+-parseInt(o(0xe5))/0x9*(-parseInt(o(0x110))/0xa)+-parseInt(o(0xef))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x8e52c));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a18d;if(c){const e=c[p(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const q=a18d;return a18a[q(0xeb)]()[q(0x105)](q(0x10c))[q(0xeb)]()[q(0xf5)](a18a)[q(0x105)]('(((.+)+)+)+$');});a18a();import a18e from'path';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xe4;let f=c[d];return f;},a18d(a,b);}function a18c(){const u=['\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','getGlobalMeteorVersion','confirm','--force','fsi','join','notice','pathFromProject','4165578kMylKZ','autoupdate','This\x20project\x27s\x20meteor\x20version\x20(','search','create','22332czZCXG','3406344humTri',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','232856rohWjX','maka\x20build','(((.+)+)+)+$','getProjectMeteorVersion','invokeMeteorCommand','Verifying\x20meteor\x20package\x20requirements\x20...','490JXqjdJ','slice','133011VnrQaJ','update','checkMeteorPackage','findProjectDirectory','exit','forEach','toString','error','--release','2264HAqqie','30979575rNlMUm','3oICCOg','27069Amvztm','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','force','concat','constructor','splice','apply','build','95AZwQfM'];a18c=function(){return u;};return a18c();}import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18r(0x106)]({'name':a18r(0xf8),'usage':a18r(0x10b),'validOpts':[a18r(0xf3)],'shortDesc':a18r(0xf2),'mustBeInMakaProject':!![],'description':a18r(0xfa),'examples':['maka\x20build']},async function(a,b){const s=a18r;try{const c=this['fsi'][s(0xe8)]();!this[s(0xfe)][s(0xe7)](s(0x103))&&(Log[s(0x100)](s(0x10f)),await this[s(0xfe)]['installMeteorPackage'](s(0x103),{'cwd':c}));const d=b[s(0xf3)];if(!d){const h=this['fsi'][s(0xfb)](),i=this[s(0xfe)][s(0x10d)](),j=a18g['gt'](h,i);if(j){const k=await Actions['confirm'](s(0x104)+i+s(0x109)+h+').\x20Update?');k&&this['fsi'][s(0x10e)](s(0xe6),[s(0xed),h]);}}const f=[this[s(0xfe)]['pathFromProject']({'pathParts':[s(0xf8)]})][s(0xf4)](process['argv'][s(0xe4)](0x3)),g=a18e[s(0xff)](this['fsi'][s(0x101)]({}),'build','app.tar.gz');if(a18f['existsSync'](g)){const l=d??await Actions[s(0xfc)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!l)throw Log[s(0xec)]('Aborted.');}f[s(0xea)]((m,n)=>{const t=s;m===t(0xfd)&&f[t(0xf6)](n,0x2);}),this[s(0xfe)][s(0x10e)](s(0xf8),f);}catch(m){console['error'](m),process[s(0xe9)](0x0);}});export default BuildCommand;