@maka/maka-cli 4.6.3 → 4.6.5
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.
- package/README.md +0 -10
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/README.md +0 -10
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/https/progress.class.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,13 +19,3 @@ Please visit www.maka-cli.com for more information and documentation as well as
|
|
|
19
19
|
Documentation has moved over to:
|
|
20
20
|
|
|
21
21
|
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
Copyright (C) 2023 Campbell Labs, LLC.
|
|
25
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
26
|
-
|
|
27
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
28
|
-
|
|
29
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
30
|
-
|
|
31
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/bundle/obf/package.json
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "4.6.5",
|
|
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.",
|
package/bundle/obf/src/README.md
CHANGED
|
@@ -19,13 +19,3 @@ Please visit www.maka-cli.com for more information and documentation as well as
|
|
|
19
19
|
Documentation has moved over to:
|
|
20
20
|
|
|
21
21
|
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
|
22
|
-
|
|
23
|
-
## License
|
|
24
|
-
Copyright (C) 2023 Campbell Labs, LLC.
|
|
25
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
26
|
-
|
|
27
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
28
|
-
|
|
29
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
30
|
-
|
|
31
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d
|
|
1
|
+
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x191))/0x1+-parseInt(p(0x1a0))/0x2+parseInt(p(0x19e))/0x3*(parseInt(p(0x1af))/0x4)+parseInt(p(0x19a))/0x5*(-parseInt(p(0x19b))/0x6)+parseInt(p(0x19d))/0x7*(-parseInt(p(0x196))/0x8)+-parseInt(p(0x1c6))/0x9+-parseInt(p(0x199))/0xa*(-parseInt(p(0x1bd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x4851e));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x1b0)]()[r(0x1a4)](r(0x1a7))[r(0x1b0)]()[r(0x1ad)](a0a)[r(0x1a4)](r(0x1a7));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x179;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0c(){const E=['parent','getPro','Command\x20requires\x20a\x20handler\x20function','light','invoke','aliases','addCommand\x20requires\x20a\x20Command\x20instance','maxOptsLength','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','run','roles','fsi','Please\x20run\x20\x22maka\x20install\x20meteor\x22','addCommand','function','call','deploy','play','includes','Command.create\x20requires\x20a\x20handler\x20function!','340850aQkQMf','match','help','push','keys','1044816IhMdnB','Alias','Name','26770dyykOV','587715VLvEhI','6tUYFrn','options','21ivgqTm','229557lkLJLB','domainLicense','16262yhHpTW','forEach','tableList','mustBeInMakaProject','search','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','_handler','(((.+)+)+)+$','Too\x20many\x20options','There\x20is\x20no\x20Meteor\x20application\x20here','create','setColorMode','To\x20use\x20this\x20command,\x20\x22','constructor','findCommand','28tgwkjy','toString','split','getGlobalConfig','exit','_commands','bind','disableAuthCheck','header','number','minOptsLength','usage','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','maxArgLength','3938dcxSSt','length','validateMakaSubscription','proCommands','join','DARK','Description','murder','Too\x20few\x20arguments','3055023YtRekq','runSubCommand','generate','shortDesc','proFlags','apply','Command\x20not\x20found','error','filter','notice','name','Too\x20few\x20options'];a0c=function(){return E;};return a0c();}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0s(0x19c)];[a0s(0x1b4)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1bb));if(!a[t(0x17b)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==t(0x18b))throw new Error(t(0x17f));this['options']=Object['assign']({},a),this[t(0x17b)]=this[t(0x19c)][t(0x17b)],this[t(0x1b4)]=[],this[t(0x1a6)]=b[t(0x1b5)](this);}static[a0s(0x1aa)](a,b,c){const u=a0s;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==u(0x18b))throw new Error(u(0x190));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[u(0x19c)]?.[u(0x17b)]}),c[u(0x18a)](d),d;}[a0s(0x18a)](a){const v=a0s;if(!(a instanceof Command))throw new Error(v(0x183));this[v(0x1b4)]['push'](a);}async[a0s(0x1bf)](a,b){const w=a0s,c=this[w(0x1ae)](a[0x0]);if(c){const d=c?.[w(0x17b)]||a[0x0],e=c?.[w(0x17d)]||'',f=c?.['options'];if(f[w(0x1b6)])return;const g=a[0x0],h=Object[w(0x195)](b),i=await this['fsi'][w(0x17e)]();!i&&(Log['error'](w(0x1a5)),process['exit'](0x1));const j=i?.[w(0x1c0)][w(0x18f)](d)||i?.['proCommands'][w(0x18f)](e),k=i?.['roles'][w(0x18f)]('singleLicense')||i?.[w(0x187)]['includes'](w(0x19f)),l=!k;if(j&&l)throw w(0x1ac)+a[0x0]+w(0x185);if(h[w(0x1be)]>0x0){const m=i?.[w(0x1ca)][w(0x179)](n=>h[w(0x18f)](n));if(m&&m[w(0x1be)]>0x0&&l)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+m?.[w(0x1c1)](',\x20')+w(0x185);}if(g===w(0x18d)){const n=await this[w(0x188)][w(0x17e)](),o=n?.['proCommands']['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x1ac)+a[0x0]+w(0x185);}}}async[a0s(0x186)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0x188)][x(0x1b2)](),d=c['pallet']===x(0x180)?ColorMode['LIGHT']:ColorMode[x(0x1c2)];Log[x(0x1ab)](d),await this[x(0x1bf)](a,b);}catch(f){Log['error'](f),process[x(0x1b3)](0x0);}await this[x(0x181)](a,b);}catch(g){process[x(0x1b3)](0x1);}}async[a0s(0x181)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x19c)];try{if(this[y(0x19c)][y(0x17b)]!==y(0x1c8)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x1be)]===0x0)&&this[y(0x1b4)]['length']>=0x0;if(f&&b[y(0x193)]){if(this[y(0x1b4)][y(0x1be)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b['help']){if(this[y(0x19c)][y(0x1a3)]){const g=this['validateMakaProject']();if(!g)throw new MustBeInProjectError();}if(this['options']['mustHaveMeteorInstalled']){const h=this['validateMeteorInstall']();if(!h)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===y(0x1b8)){if(a[y(0x1be)]<this[y(0x19c)]['minArgLength']){Log[y(0x1cd)](y(0x1c5));throw new UsageError();}}if(typeof this['options'][y(0x1bc)]==='number'){if(a[y(0x1be)]>=this['options'][y(0x1bc)]){Log[y(0x1cd)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0x19c)]['minOptsLength']===y(0x1b8)){if(Object[y(0x195)](b)[y(0x1be)]<this['options'][y(0x1b9)]){Log[y(0x1cd)](y(0x17c));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===y(0x1b8)){if(Object[y(0x195)](b)[y(0x1be)]>=this[y(0x19c)][y(0x184)]){Log['error'](y(0x1a8));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[y(0x19c)]),_prevCmd=a[0x0];}await this[y(0x1a6)][y(0x18c)](this,a,b);}catch(i){Log[y(0x1ba)](description,examples,usage,c,requiredOpts,d);if(i instanceof UsageErrorWithSubs)Log[y(0x17a)]('Sub-Commands:'),this[y(0x1a2)](this[y(0x1b4)]),Log[y(0x1b7)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(i instanceof MustBeInProjectError)Log[y(0x1cd)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(i instanceof NoMeteorFoundError)Log[y(0x1cd)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[y(0x17a)](y(0x189));else{if(i instanceof NoMeteorAppFoundError)Log['error'](y(0x1a9));else throw i;}}}process[y(0x1b3)](0x1);}}[a0s(0x1a2)](a){const z=a0s,b=new a0e({});b[z(0x194)]([z(0x198),z(0x197),z(0x1c3)]),a['sort']()[z(0x1a1)](c=>{const A=z;c['name']!==A(0x1c4)&&c[A(0x17b)]!==A(0x18e)&&b[A(0x194)]([c['name'],c[A(0x182)](),c[A(0x1c9)]()]);}),Log['bright'](b['toString']());}['findCommand'](a){const B=a0s;return this[B(0x1b4)]['find'](b=>b[B(0x192)](a));}['findSubCommand'](a){const C=a0s,b=a?.[C(0x1b1)](':');if(b)return a=b[0x0],this[C(0x1ae)](a);else return;}async[a0s(0x1c7)](a,b,c){const D=a0s;try{const d=a[D(0x1b1)](':');a=d[0x0];const f=d[0x1];f&&b['splice'](0x0,0x0,f);const g=this[D(0x1ae)](a);if(g)await g['run'](b,c);else throw D(0x1cc);}catch(h){throw Log[D(0x1cd)](h);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1c1))/0x1*(parseInt(f(0x1bc))/0x2)+-parseInt(f(0x1be))/0x3+parseInt(f(0x1bb))/0x4*(parseInt(f(0x1bd))/0x5)+-parseInt(f(0x1c0))/0x6+-parseInt(f(0x1c5))/0x7*(parseInt(f(0x1b9))/0x8)+parseInt(f(0x1c3))/0x9+parseInt(f(0x1bf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xd3c6a));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1c2)]()[h(0x1ba)](h(0x1c7))[h(0x1c2)]()[h(0x1c4)](a1a)['search']('(((.+)+)+)+$');});a1a();function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1b9;var f=c[d];return f;},a1d(a,b);}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';function a1c(){var i=['apply','(((.+)+)+)+$','24crbRpj','search','18168npdlIN','1758gbBCGD','10IkbEme','2816751BaiNmO','20966010gnzLtq','98574pXmOVX','1093QntbaB','toString','2789811IXVcAa','constructor','3625139KTwToZ'];a1c=function(){return i;};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
|
-
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x1a6))/0x1*(-parseInt(h(0x1bb))/0x2)+-parseInt(h(0x1ac))/0x3+-parseInt(h(0x1b2))/0x4+-parseInt(h(0x19b))/0x5*(-parseInt(h(0x1a1))/0x6)+-parseInt(h(0x1b0))/0x7*(-parseInt(h(0x1ab))/0x8)+-parseInt(h(0x1b4))/0x9+-parseInt(h(0x1aa))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xb4b42));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x1b3)]()[i(0x1a7)](i(0x199))[i(0x1b3)]()[i(0x1af)](a2a)[i(0x1a7)](i(0x199));});function a2c(){const n=['OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','constructor','4171489lVDbDQ','error','4549580cuyMei','toString','1002501QhvDgq','log','create','Using\x20OpenAI\x20Key\x20','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','data','close','588ORzJKd','stdout','toLowerCase','cacert','notice','message','openai','createInterface','(((.+)+)+)+$','GPT:\x20','15AuOVQD','fsi','question','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','You:\x20','exit','1228062WndrvK','ChatGPT\x20style\x20AI\x20interface','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','openapikey','cert','4820JNImIJ','search','stdin','isFile','2518330sKHjey','8CTUmab','1158777MtLjCz','trim'];a2c=function(){return n;};return a2c();}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x196;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x198)]({'input':process[j(0x1a8)],'output':process[j(0x1bc)]});c[j(0x19d)](j(0x19f),async d=>{const k=j;if(d[k(0x1bd)]()===k(0x1a0)){c[k(0x1ba)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[k(0x1b9)]);if(f[k(0x1b1)])throw new Error(f['error'][k(0x196)]);console[k(0x1b5)](k(0x19a)+f?.['choices'][0x0]?.['text'][k(0x1ad)]());}catch(g){Log[k(0x1b1)](g),process[k(0x1a0)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x1b6)]({'name':'ai','description':a2l(0x1a2),'validOpts':[a2l(0x1be),'openapikey'],'shortDesc':a2l(0x1a2)},async function(a,b){const m=a2l;try{let c='';b[m(0x1be)]&&(this[m(0x19c)][m(0x1a9)](b[m(0x1be)])?(c=b[m(0x1be)],Log[m(0x1bf)]('Using\x20CA\x20Cert\x20'+c)):Log[m(0x1b1)](m(0x1b8)+c));const d=await this[m(0x19c)]['getGlobalConfig']();if(d[m(0x1a5)]){if(this['fsi'][m(0x1a9)](d[m(0x1a5)]))c=d['cert'];else throw Log[m(0x1b1)](m(0x1a3)+c);}let f='';if(b[m(0x1a4)])f=b[m(0x1a4)],Log[m(0x1bf)](m(0x1b7)+f);else{if(d[m(0x197)])f=d[m(0x197)];else throw Log[m(0x1b1)](m(0x1ae));}console[m(0x1b5)](m(0x19e)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x1b1)](g),process[m(0x1a0)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x199))/0x1+-parseInt(f(0x191))/0x2+-parseInt(f(0x190))/0x3*(parseInt(f(0x196))/0x4)+parseInt(f(0x19c))/0x5+-parseInt(f(0x195))/0x6*(-parseInt(f(0x192))/0x7)+parseInt(f(0x18e))/0x8+parseInt(f(0x19b))/0x9*(-parseInt(f(0x198))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xbeefb));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x193)]()[h(0x19a)](h(0x18f))[h(0x193)]()[h(0x194)](a3a)['search'](h(0x18f));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a3c(){var i=['(((.+)+)+)+$','12567kqSAgi','1402946aoFGob','189LbIcdc','toString','constructor','35982XEXAcb','156qqbfyA','apply','20CfeHXI','231111hFNajc','search','6360723AKKKXZ','6572960aKWYHV','10822328nsTowQ'];a3c=function(){return i;};return a3c();}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x18e;var f=c[d];return f;},a3d(a,b);}import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x162))/0x1*(parseInt(f(0x16b))/0x2)+-parseInt(f(0x15e))/0x3+-parseInt(f(0x159))/0x4*(-parseInt(f(0x16a))/0x5)+-parseInt(f(0x16f))/0x6+-parseInt(f(0x15d))/0x7+parseInt(f(0x161))/0x8*(parseInt(f(0x168))/0x9)+-parseInt(f(0x163))/0xa*(parseInt(f(0x16d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xeccb9));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x15b)]()[h(0x16c)]('(((.+)+)+)+$')[h(0x15b)]()[h(0x165)](a4a)[h(0x16c)](h(0x170));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x159;let f=c[d];return f;},a4d(a,b);}function a4c(){const k=['400869IASUev','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','apply','8FimEAS','4026pkLbOl','5130AipodA','error','constructor','create','findSubCommand','15078411twOKwc','\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','5mALhIA','104MKepsA','search','26510NxubBy','Sub\x20Command\x20not\x20found','2172660ISYfVV','(((.+)+)+)+$','4187688TsQROI','aws','toString','maka\x20aws:<sub-command>','1607739rIaUDo'];a4c=function(){return k;};return a4c();}const AWSCommand=Command[a4i(0x166)]({'name':a4i(0x15a),'usage':a4i(0x15c),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0x15f),'description':a4i(0x169)},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x167)](c);if(d)this['runSubCommand'](c,a,b);else{Log[j(0x164)](j(0x16e));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xb8;let f=c[d];return f;},a5d(a,b);}const a5k=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0xc0))/0x1*(-parseInt(i(0xd4))/0x2)+parseInt(i(0xbd))/0x3+-parseInt(i(0xd0))/0x4*(-parseInt(i(0xce))/0x5)+parseInt(i(0xb9))/0x6*(-parseInt(i(0xbb))/0x7)+parseInt(i(0xcd))/0x8*(parseInt(i(0xc6))/0x9)+parseInt(i(0xcb))/0xa*(-parseInt(i(0xd2))/0xb)+-parseInt(i(0xc7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x6d349));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const j=a5d;return a5a[j(0xd3)]()[j(0xcc)](j(0xc2))[j(0xd3)]()['constructor'](a5a)[j(0xcc)](j(0xc2));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const m=['10085076CisZLG','exit','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','confirm','10DNCqik','search','73288xvxsbz','355TtEOtO','route53CreateHostedZone','42124PUYiND','Instance\x20not\x20found','2280069jdeDsb','toString','48cVELNU','error','54nyiPgl','chz','584535iqSuSL','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','393378NtNOtO','domain','create-hosted-zone','36758NMgWRZ','maka\x20aws:chz\x20--domain=example.com','(((.+)+)+)+$','maka\x20aws:create-hosted-zone\x20--domain=example.com','publicIp','linkEC2ToRoute53','477twOUlc'];a5c=function(){return m;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a5k(0xbf),'aliases':[a5k(0xba)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a5k(0xbe)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5k(0xbc),'examples':[a5k(0xc3),a5k(0xc1)]},async function(a,b){const l=a5k;try{const c=b[l(0xbe)],d=new AWS();d[l(0xcf)](c);const f=await Actions[l(0xca)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[l(0xc4)])throw Log[l(0xb8)](l(0xc9));d[l(0xc5)](g['id'],g['publicIp'],c);}else throw Log[l(0xb8)](l(0xd1));}}catch(h){console[l(0xb8)](h),process[l(0xc8)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0xfd))/0x1+-parseInt(ae(0xce))/0x2*(-parseInt(ae(0xdc))/0x3)+parseInt(ae(0xc2))/0x4+-parseInt(ae(0xdd))/0x5*(parseInt(ae(0xf3))/0x6)+-parseInt(ae(0xad))/0x7+-parseInt(ae(0xbf))/0x8+parseInt(ae(0xc8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x8d115));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0xaf)]()[ag(0xa4)](ag(0xda))['toString']()[ag(0xed)](a6a)[ag(0xa4)](ag(0xda));});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-0x9e;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=['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','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','**\x20Available\x20AMIs\x20**','date','Setting\x20the\x20key-pair\x20to:\x20','env','apply','EC2\x20Name:\x20[','Please\x20choose\x20a\x20key\x20to\x20use:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','subnetId','getConfigFromShorthand','6408952HqxLok','Desc','deleteSecurityGroup','1261984FXOqwh','ID:\x20','getTime','join','maka\x20aws:ci\x20--env\x20prod','ImageID:','18743355qYSzWY','build\x20on\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Would\x20you\x20like\x20to\x20include\x20user\x20data?','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','bright','45782oKrieJ','exit','number','createFile','getConfigPath','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20CIDR:\x20','\x20DESCRIPTION:\x20','push','fsi','amiId','user-data','(((.+)+)+)+$','ask','123DLyowI','485cmAziP','Instance\x20Count:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','chooseVPC','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','\x20SGID:\x20','ec2create','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','sgId','string','maka\x20aws:create-instance','getProjectConfig','ec2createSG','constructor','name','\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','log','**\x20Available\x20Subnets\x20**','1:1','64596vbaocO','22,80,443','subnet','desc','success','Subnet:\x20','**\x20Available\x20Security\x20Groups\x20**','\x20AMIID:\x20','parse','Create\x20new\x20AWS\x20instance','105486rjrEkh','Name','unlinkSync','deleteKeyPair','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','t3.micro','\x20AZONE:\x20','forEach','Remove\x20the\x20security\x20group\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','error','sort','isFile','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','search','split','Setting\x20Subnet\x20ID\x20to\x20','Setting\x20SG\x20ID\x20to:\x20','maka\x20aws:create-instance\x20--env\x20dev','alias','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Security\x20Group\x20Name:\x20[','\x20SG\x20NAME:\x20','5655314AEUQOv','Setting\x20AMI\x20ID\x20to\x20','toString','confirm','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','notice'];a6c=function(){return au;};return a6c();}import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':'create-instance','aliases':['ci'],'usage':a6ah(0xea),'examples':[a6ah(0xa8),a6ah(0xc6)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ah(0xfc),'description':a6ah(0xef)},async function(a,b){const ai=a6ah;try{const c=this[ai(0xd7)][ai(0xeb)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xd7)][ai(0xbe)](b[ai(0xb8)]),i=this[ai(0xd7)][ai(0xd2)](h),j=g+'-'+h,k=await Actions[ai(0xdb)](ai(0xba)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0xe5),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0xf7)](ai(0xb7)+r);}else try{Log[ai(0xb2)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask'](ai(0xbb))||'-1';if(parseInt(C)<0x0){Log[ai(0xa0)](ai(0xb3)),Log[ai(0xb2)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x104)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xee)],Log[aj(0xf7)](aj(0xb7)+r));});}catch(D){Log[ai(0xa0)](D);}l=await d[ai(0xe0)]();const t=await Actions[ai(0xb0)](ai(0x9f),!![]);let u;if(t){const E=l===''?await d[ai(0xe0)]():l;u=await Actions[ai(0xdb)](ai(0xab)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ai(0xf4),G=F[ai(0xa5)](',');await d[ai(0xec)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ai(0xb2)](ai(0xf9)),J[ai(0x104)](function(L){const ak=ai;L[ak(0xee)]===u?Log[ak(0xb2)](ak(0xc3)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xee)]+'\x20SGID:\x20'+L[ak(0xe8)]):Log['bright'](ak(0xc3)+L['id']+ak(0xac)+L['name']+ak(0xe2)+L[ak(0xe8)]);});const K=await Actions[ai(0xdb)](ai(0xe1)+H+']\x20')||H[ai(0xaf)]();J[ai(0x104)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xe8)],Log[al(0xf7)](al(0xa7)+m+'\x0a'));});}else m=I,Log[ai(0xf7)](ai(0xa7)+m+'\x0a');if(m==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log['notice'](ai(0xb5));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0xcc))[ai(0xaf)](),O=JSON[ai(0xfb)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0xa9)]==='amazon'){const T=S[am(0xc0)][am(0xa5)](am(0xc9))[0x1];P[am(0xd6)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0xa1)](function(S,T){const an=ai;return new Date(T['date'])[an(0xc4)]()-new Date(S[an(0xb6)])[an(0xc4)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0xd6)]({'id':T,'amiId':S[ao(0xd8)],'desc':S[ao(0xf6)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0xf0)](ap(0xc3)+S['id']+ap(0xfa)+S[ap(0xd8)]+ap(0xd5)+S[ap(0xf6)]);});const R=await Actions[ai(0xdb)](ai(0xd3))||'0';Q[ai(0x104)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xd8)],Log[aq(0xf7)](aq(0xae)+n+'\x20:\x20'+S[aq(0xf6)]));});if(n==='')throw Log[ai(0xa0)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0xa0)](S);}try{Log[ai(0xb2)](ai(0xf1));const T=execSync(ai(0xb1))[ai(0xaf)](),U=JSON[ai(0xfb)](T),V=[];U[ai(0x104)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0xbd)]});}),V['forEach'](function(X){const as=ai;console[as(0xf0)]('ID:\x20'+X['id']+as(0xd4)+X['cidr']+as(0x103)+X['az']+'\x20SUBNETID:\x20'+X[as(0xbd)]);});const W=await Actions[ai(0xdb)](ai(0xb4))||'0';V[ai(0x104)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xbd)],Log[at(0xf7)](at(0xa6)+p));});if(p==='')throw Log[ai(0xa0)](ai(0xbc));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ai(0xa3))||ai(0xf2),Z=Y[ai(0xa5)](':')[0x0],a0=Y[ai(0xa5)](':')[0x1];typeof parseInt(Z)===ai(0xd0)&&typeof parseInt(a0)==='number'&&Log[ai(0xf7)](ai(0x101)+Z+':'+a0);}catch(a1){Log[ai(0xa0)](a1);}try{const a2=await Actions[ai(0xdb)](ai(0xe4))||ai(0x102);typeof a2===ai(0xe9)&&(o=a2);}catch(a3){Log[ai(0xa0)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0xcb),![]);a4&&(x=a6f[ai(0xc5)](i,ai(0xd9)),Log[ai(0xb2)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this['fsi'][ai(0xd1)]({'filePath':x,'data':''}),await Actions[ai(0xb0)](ai(0xdf)));}catch(a5){Log[ai(0xa0)](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0xe7))['toString']())[0x0][ai(0xf5)];Log[ai(0xb2)](ai(0xc7)+n),Log[ai(0xb2)](ai(0xde)+v+':'+w),Log[ai(0xb2)]('Instace\x20Type:\x20'+o),Log[ai(0xb2)]('Key-Pair:\x20'+r),Log[ai(0xb2)]('Security\x20Group:\x20'+m),Log['notice'](ai(0xf8)+a6);if(x){Log[ai(0xb2)]('User\x20Data:'+x);const a8=a6g['readFileSync'](x)[ai(0xaf)]();Log[ai(0xb2)](a8);}const a7=await Actions[ai(0xb0)](ai(0xca));if(a7){const a9=await d[ai(0xe3)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':'maka-cli'},{'Key':'environment','Value':h},{'Key':ai(0xfe),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xf7)](ai(0xe6)),Log[ai(0xcd)](ai(0xaa)));}else{Log[ai(0xb2)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0xb0)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x100)](r),f[ai(0xa2)](s)&&a6g[ai(0xff)](s));const ab=await Actions[ai(0xb0)](ai(0x9e)+m+'\x20?',!![]);ab&&d[ai(0xc1)](m);}}catch(ac){console[ai(0xf0)](ac),Log[ai(0xa0)](ac);}}catch(ad){console['error'](ad),process[ai(0xcf)](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x13f))/0x1+parseInt(ae(0x16f))/0x2+parseInt(ae(0x168))/0x3*(parseInt(ae(0x12e))/0x4)+-parseInt(ae(0x167))/0x5+-parseInt(ae(0x15c))/0x6*(-parseInt(ae(0x12d))/0x7)+-parseInt(ae(0x165))/0x8*(parseInt(ae(0x142))/0x9)+-parseInt(ae(0x137))/0xa*(parseInt(ae(0x186))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xa3e04));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x17d)]()[ag(0x144)](ag(0x169))[ag(0x17d)]()[ag(0x151)](a6a)['search'](ag(0x169));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';function a6c(){const au=['t3.micro','create','Key-Pair:\x20','Setting\x20the\x20key-pair\x20to:\x20','Remove\x20the\x20security\x20group\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','parse','*\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','32NPIKRA','22,80,443','256360QzllIF','2470911njSWRc','(((.+)+)+)+$','apply','Subnet:\x20','fsi','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','ec2describeKeys','484776QtOHIO','ImageID:','Web\x20App','ec2create','bright','environment','readFileSync','getTime','error','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','created-by','maka-cli','Security\x20Group\x20Name:\x20[','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','toString','Would\x20you\x20like\x20to\x20include\x20user\x20data?','join','\x20CIDR:\x20','deleteKeyPair','getConfigPath','name','date','\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','21241iQcxbg','string','**\x20Available\x20Subnets\x20**','alias','No\x20instance\x20has\x20been\x20created.','getConfigFromShorthand','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','\x20SGID:\x20','\x20SG\x20NAME:\x20','getSecurityGroups','confirm','maka\x20aws:create-instance\x20--env\x20dev','7NClkXv','4gypBsJ','success','push','ask','Setting\x20SG\x20ID\x20to:\x20','User\x20Data:','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','chooseVPC','amazon','5820PoiAfm','env','notice','sgId','createFile','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','unlinkSync','isFile','1122916KkvrIq','Security\x20Group:\x20','Setting\x20Subnet\x20ID\x20to\x20','2020833FLqnNL','Remove\x20the\x20keypair\x20','search','\x20AMIID:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','split','1:1','cidr','ID:\x20','amiId','\x20AZONE:\x20','forEach','maka\x20aws:ci\x20--env\x20prod','user-data','constructor','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=*','log','\x20SUBNETID:\x20','desc','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','subnetId','Desc','number','EC2\x20Name:\x20[','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','3333342Tvamyq'];a6c=function(){return au;};return a6c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x122;let f=c[d];return f;},a6d(a,b);}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x15e)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ah(0x12c),a6ah(0x14f)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x138)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0x185)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x16c)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x16c)][ai(0x125)](b[ai(0x138)]),i=this['fsi'][ai(0x182)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x15a)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x12b)](ai(0x16d),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log['success'](ai(0x160)+r);}else try{Log[ai(0x139)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x16e)]({'suggestion':A}),C=await Actions['ask'](ai(0x126))||'-1';if(parseInt(C)<0x0){Log[ai(0x177)]('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(0x139)](ai(0x124));return;}B?.[ai(0x14e)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x12f)](aj(0x160)+r));});}catch(D){Log[ai(0x177)](D);}l=await d['chooseVPC']();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x135)]():l;u=await Actions[ai(0x131)](ai(0x17b)+k+']')||k;const F=await Actions[ai(0x131)](ai(0x162))||ai(0x166),G=F['split'](',');await d['ec2createSG']({'description':ai(0x171),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x12a)](u);if(I===''){Log[ai(0x139)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x14e)](function(L){const ak=ai;L[ak(0x183)]===u?Log['notice'](ak(0x14b)+L['id']+ak(0x129)+L[ak(0x183)]+'\x20SGID:\x20'+L['sgId']):Log[ak(0x173)]('ID:\x20'+L['id']+ak(0x129)+L[ak(0x183)]+ak(0x128)+L[ak(0x13a)]);});const K=await Actions[ai(0x131)](ai(0x156)+H+']\x20')||H[ai(0x17d)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x13a)],Log['success'](al(0x132)+m+'\x0a'));});}else m=I,Log[ai(0x12f)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ai(0x13c));}catch(L){Log[ai(0x177)](L);}try{const M=0x7e6;Log[ai(0x139)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x152)+M+ai(0x164))[ai(0x17d)](),O=JSON[ai(0x163)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x123)]===am(0x136)){const T=S['Desc'][am(0x148)]('build\x20on\x20')[0x1];P[am(0x130)]({'amiId':S['ID'],'desc':S[am(0x158)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T['date'])[an(0x176)]()-new Date(S[an(0x184)])['getTime']();}),P[ai(0x14e)](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S[ao(0x14c)],'desc':S[ao(0x155)]});}),Q[ai(0x14e)](function(S){const ap=ai;console[ap(0x153)](ap(0x14b)+S['id']+ap(0x145)+S[ap(0x14c)]+'\x20DESCRIPTION:\x20'+S[ap(0x155)]);});const R=await Actions['ask']('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x14c)],Log[aq(0x12f)]('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+S[aq(0x155)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x177)](S);}try{Log[ai(0x139)](ai(0x122));const T=execSync(ai(0x147))[ai(0x17d)](),U=JSON[ai(0x163)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x130)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x157)]});}),V[ai(0x14e)](function(X){const as=ai;console['log'](as(0x14b)+X['id']+as(0x180)+X[as(0x14a)]+as(0x14d)+X['az']+as(0x154)+X[as(0x157)]);});const W=await Actions[ai(0x131)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x14e)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log['success'](at(0x141)+p));});if(p==='')throw Log[ai(0x177)](ai(0x13c));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ai(0x17c))||ai(0x149),Z=Y['split'](':')[0x0],a0=Y[ai(0x148)](':')[0x1];typeof parseInt(Z)===ai(0x159)&&typeof parseInt(a0)==='number'&&Log[ai(0x12f)](ai(0x146)+Z+':'+a0);}catch(a1){Log[ai(0x177)](a1);}try{const a2=await Actions[ai(0x131)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0x15d);typeof a2===ai(0x187)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x12b)](ai(0x17e),![]);a4&&(x=a6f[ai(0x17f)](i,ai(0x150)),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x16c)][ai(0x13b)]({'filePath':x,'data':''}),await Actions['confirm'](ai(0x178)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x163)](execSync(ai(0x134)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x17d)]())[0x0]['subnet'];Log[ai(0x139)](ai(0x170)+n),Log[ai(0x139)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x139)]('Instace\x20Type:\x20'+o),Log[ai(0x139)](ai(0x15f)+r),Log['notice'](ai(0x140)+m),Log[ai(0x139)](ai(0x16b)+a6);if(x){Log[ai(0x139)](ai(0x133)+x);const a8=a6g[ai(0x175)](x)['toString']();Log[ai(0x139)](a8);}const a7=await Actions[ai(0x12b)](ai(0x127));if(a7){const a9=await d[ai(0x172)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x179),'Value':ai(0x17a)},{'Key':ai(0x174),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x12f)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x173)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x139)](ai(0x15b));const aa=await Actions[ai(0x12b)](ai(0x143)+r+'\x20?',!![]);aa&&(d[ai(0x181)](r),f[ai(0x13e)](s)&&a6g[ai(0x13d)](s));const ab=await Actions[ai(0x12b)](ai(0x161)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console['log'](ac),Log[ai(0x177)](ac);}}catch(ad){console['error'](ad),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xc9;let f=c[d];return f;},a7d(a,b);}const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0xdb))/0x1*(-parseInt(g(0xe2))/0x2)+-parseInt(g(0xd7))/0x3*(parseInt(g(0xd8))/0x4)+parseInt(g(0xd9))/0x5*(parseInt(g(0xe0))/0x6)+parseInt(g(0xe6))/0x7*(parseInt(g(0xcc))/0x8)+parseInt(g(0xdd))/0x9*(-parseInt(g(0xd0))/0xa)+-parseInt(g(0xe4))/0xb*(parseInt(g(0xd6))/0xc)+parseInt(g(0xe5))/0xd*(parseInt(g(0xca))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x73dc5));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0xc9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0xd3)]()[i(0xe1)](i(0xdf))[i(0xd3)]()[i(0xcb)](a7a)[i(0xe1)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7c(){const l=['create-key-pair','toString','maka\x20aws:create-key-pair','env','3264yDnWJv','312348ewhhdJ','20OETpmy','15655xHKeMV','\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','1hWOkDK','error','27WJnoXT','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','(((.+)+)+)+$','1206ISyydc','search','1244674HfJejG','getConfigFromShorthand','21692YtOLqn','14248143Nmbcjy','207431bjsVhy','apply','28kUYyJy','constructor','64McbLvf','ckp','maka\x20aws:ckp\x20--env\x20prod','createKeyPair','3015170vdMpKP','maka\x20aws:create-key-pair\x20--env\x20prod'];a7c=function(){return l;};return a7c();}Command['create']({'name':a7j(0xd2),'aliases':[a7j(0xcd)],'usage':a7j(0xd4),'examples':[a7j(0xd1),a7j(0xce)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0xd5)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7j(0xde),'description':a7j(0xda)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this['fsi'][k(0xe3)](b[k(0xd5)]);c[k(0xcf)]({'env':d});}catch(f){console[k(0xdc)](f),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x8d;let f=c[d];return f;},a8d(a,b);}const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x9a))/0x1+-parseInt(m(0xa4))/0x2*(-parseInt(m(0x8d))/0x3)+parseInt(m(0x99))/0x4+parseInt(m(0xa3))/0x5*(-parseInt(m(0x98))/0x6)+parseInt(m(0x97))/0x7+parseInt(m(0x94))/0x8+-parseInt(m(0x9e))/0x9*(parseInt(m(0x93))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x3ad1e));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xa0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x9f)]()['search'](o(0x9d))[o(0x9f)]()[o(0x92)](a8a)[o(0x8e)](o(0x9d));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a8c(){const s=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','csg','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','constructor','27870qYLEza','3183024NCkepa','22,80,443','ec2createSG','2658012hIXPfw','102exSxPU','455848viCpmg','36954dLPwHT','List\x20is\x20not\x20all\x20numbers','maka\x20aws\x20create-security-group','(((.+)+)+)+$','2853dgLunY','toString','apply','Web\x20App','name','55215RJnZzE','11884HEZugx','maka\x20aws:create-secuirty-group','create-security-group','ask','split','error','exit','231rveywm','search'];a8c=function(){return s;};return a8c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8p(0xa6),'aliases':[a8p(0x90)],'usage':a8p(0x9c),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8p(0x91),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a8p(0xa5),'maka\x20aws:csg']},async function(a,b){const q=a8p;try{const c=new AWS(),d=this['fsi']['getProjectConfig'](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0xa2)]?b['name']:''+f,i=await Actions[q(0xa7)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0xa7)](q(0x8f))||q(0x95),k=j[q(0xa8)](',');k['forEach'](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x9b);}),await c[q(0x96)]({'description':q(0xa1),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0xa9)](l),process[q(0xaa)](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9h=a9d;function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x19b;let f=c[d];return f;},a9d(a,b);}(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0x1a7))/0x1*(parseInt(f(0x1a2))/0x2)+-parseInt(f(0x1ac))/0x3+parseInt(f(0x1a4))/0x4+-parseInt(f(0x1ad))/0x5+parseInt(f(0x1a3))/0x6*(parseInt(f(0x19d))/0x7)+parseInt(f(0x19c))/0x8*(-parseInt(f(0x1ab))/0x9)+-parseInt(f(0x19f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xba9b9));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[g(0x1aa)]()[g(0x1a0)]('(((.+)+)+)+$')[g(0x1aa)]()['constructor'](a9a)[g(0x1a0)](g(0x19b));});a9a();function a9c(){const j=['88gzAbMP','7dgAsVf','create','6037850PyShEB','search','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','2tHxIHQ','6521610FcGVyS','3059656sbKUgD','ec2describeInstances','maka\x20aws:di','1268439XKdIcE','maka\x20aws:describe-instances','error','toString','712179LZDXPO','245964hOXBjT','3998645mpxTmQ','describe-instances','(((.+)+)+)+$'];a9c=function(){return j;};return a9c();}import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a9h(0x19e)]({'name':a9h(0x1ae),'aliases':['di'],'usage':a9h(0x1a8),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9h(0x1a1),'examples':['maka\x20aws:describe-instances',a9h(0x1a6)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const i=a9h;try{const a=new AWS();a[i(0x1a5)]();}catch(b){console[i(0x1a9)](b),process['exit'](0x0);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xb2))/0x1+parseInt(f(0xb5))/0x2*(-parseInt(f(0xa9))/0x3)+parseInt(f(0xa8))/0x4*(-parseInt(f(0xa7))/0x5)+-parseInt(f(0xa4))/0x6+-parseInt(f(0xaa))/0x7*(-parseInt(f(0xaf))/0x8)+parseInt(f(0xa2))/0x9+-parseInt(f(0xac))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9971c));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(0xb4)]()['search'](g(0xae))[g(0xb4)]()[g(0xb3)](a10a)[g(0xad)](g(0xae));});a10a();import a10e from'./aws.command.js';function a10c(){const j=['(((.+)+)+)+$','2488vMvRdN','maka\x20aws:dkp','describe-key-pairs','444332dtDZTa','constructor','toString','20674ytJbEL','exit','10493469hYlIiX','error','1548894ciXVlc','create','maka\x20aws:describe-key-pairs','15qelOKO','111068IknSKb','60WeYBqX','18501ezoaUx','dkp','3668840kamiTT','search'];a10c=function(){return j;};return a10c();}import{Command}from'../../command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xa2;let f=c[d];return f;},a10d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a10h(0xa5)]({'name':a10h(0xb1),'aliases':[a10h(0xab)],'usage':a10h(0xa6),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a10h(0xa6),a10h(0xb0)]},async function(){const i=a10h;try{const a=new AWS();a['ec2describeKeys']();}catch(b){console[i(0xa3)](b),process[i(0xb6)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d
|
|
1
|
+
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0xf9))/0x1*(-parseInt(l(0x10f))/0x2)+-parseInt(l(0x120))/0x3*(-parseInt(l(0x106))/0x4)+parseInt(l(0x101))/0x5*(-parseInt(l(0x111))/0x6)+-parseInt(l(0xfb))/0x7*(-parseInt(l(0xfc))/0x8)+-parseInt(l(0x118))/0x9*(-parseInt(l(0x10e))/0xa)+-parseInt(l(0x10a))/0xb+parseInt(l(0x10c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x37eea));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a['toString']()[n(0x11e)]('(((.+)+)+)+$')[n(0xf7)]()[n(0xff)](a11a)[n(0x11e)](n(0x105));});a11a();import a11e from'./aws.command.js';function a11c(){const r=['7MGtoMW','1178232dewPrZ','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','ask','constructor','bright','5rSMOdq','maka\x20aws:dsg','delete-security-group','includes','(((.+)+)+)+$','24744ZxAWaT','forEach','name','isMakaProject','3346805DofLLG','Deleted\x20','6016860DVbfDI','\x20SG\x20NAME:\x20','10WTvgqR','92fyJkIK','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','2076216pocMma','sgId','Deleting\x20a\x20','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','apply','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','success','419805UzqZhG','confirm','error','exit','dsg','getSecurityGroups','search','Not\x20deleting\x20secuirty\x20group','27JYZmiI','ID:\x20','toString','\x20SGID:\x20','2791EccnIQ','maka\x20aws:delete-sg'];a11c=function(){return r;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xf7;let f=c[d];return f;},a11d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a11o(0x103),'aliases':[a11o(0x11c)],'usage':a11o(0xfa),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11o(0xfd),'examples':['maka\x20aws:delete-sg',a11o(0x102)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x109)]();let d='';if(c){const j=b['getProjectConfig']();d=j['appName'];}const {sgList:f}=await a[p(0x11d)]();f['forEach'](function(k){const q=p;c&&k[q(0x108)][q(0x104)](d)?Log['notice'](q(0x121)+k['id']+q(0x10d)+k[q(0x108)]+q(0xf8)+k[q(0x112)]):Log[q(0x100)](q(0x121)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+q(0xf8)+k['sgId']);});let g='';const h=await Actions[p(0xfe)](p(0x110));f[p(0x107)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log['error'](p(0x116));const i=await Actions[p(0x119)](p(0x113)+g+p(0x114),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x117)](p(0x10b)+g)):Log[p(0x11a)](p(0x11f)),process['exit'](0x0);}catch(k){process[p(0x11b)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x135))/0x1+parseInt(f(0x133))/0x2+parseInt(f(0x12c))/0x3+-parseInt(f(0x139))/0x4+parseInt(f(0x132))/0x5+parseInt(f(0x120))/0x6+-parseInt(f(0x126))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x69593));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x130)]()[h(0x137)](h(0x127))[h(0x130)]()['constructor'](a12a)[h(0x137)](h(0x127));});a12a();function a12c(){const k=['name','status','maka\x20aws:reboot-instance','2160363kqEfNV','rbi','Reboot\x20an\x20EC2\x20instance','\x20is\x20still\x20running.','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','320980FVrohh','1077354EwsXOh','confirm','229676llrTvm','maka\x20aws:rbi','search','instanceId','2833644zsknqg','create','error','2108148gcGgve','exit','\x20Ready?','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','ec2rebootInstance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','2133306EuHdia','(((.+)+)+)+$','apply'];a12c=function(){return k;};return a12c();}import a12e from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x11e;let f=c[d];return f;},a12d(a,b);}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(0x11e)]({'name':'reboot-instance','aliases':[a12i(0x12d)],'usage':a12i(0x12b),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0x12e),'examples':[a12i(0x12b),a12i(0x136)]},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x12a)]==='running'){const c=await Actions[j(0x134)](j(0x125)+b[j(0x129)]+j(0x122));c&&b['instanceId']?a[j(0x124)]({'instanceId':b[j(0x138)]}):Log['error'](j(0x123)+b[j(0x129)]+j(0x12f));}else Log[j(0x11f)](j(0x131));}catch(d){console[j(0x11f)](d),process[j(0x121)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13H=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(
|
|
1
|
+
const a13H=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x125))/0x1+parseInt(E(0x150))/0x2+parseInt(E(0x133))/0x3*(parseInt(E(0x147))/0x4)+parseInt(E(0x136))/0x5*(-parseInt(E(0x127))/0x6)+-parseInt(E(0x13b))/0x7*(parseInt(E(0x13a))/0x8)+parseInt(E(0x120))/0x9+-parseInt(E(0x121))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x73e58));function a13c(){const J=['OrganizationName','create','353371QiLurW','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','1316058FxSQsw','Invalid\x202\x20character\x20country\x20code','includes','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','mail@example.com','maka\x20aws:register-domain-name','My\x20Comanpy,\x20LLC.','\x20/\x20Year)','\x20is\x20available\x20for:','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Zip\x20Code\x20[96816]:\x20','+1.5555555555','3OuUFOC','maka\x20aws:register-domain-name\x20--domain=example.com','rdn','5eeELNL','values','Address\x20Line\x202:\x20','Choose\x20contact\x20type','8uelnfv','1282834nGaSln','warn','(((.+)+)+)+$','domain','confirm','registerDomain','list','maka\x20aws:rdn\x20--domain=example.com','toString','error','Do\x20you\x20wish\x20to\x20register\x20','Contact','57908uEcCpw','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','123\x20Glorious\x20Way','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','checkDomainAvailability','Contact\x20Last\x20Name\x20[Person]:\x20','Are\x20you\x20sure?','PUBLIC_BODY','Contact\x20First\x20Name\x20[Contact]:\x20','663008KGHzVw','Duration\x20in\x20years\x20[1]:\x20','Auto\x20Renew:\x20','register-domain-name','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','96816','PERSON','ask','COMPANY','\x20years\x20(','7281180WKmOUf','6310550aAPahE','exit'];a13c=function(){return J;};return a13c();}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const F=a13d;return a13a['toString']()['search']('(((.+)+)+)+$')[F(0x143)]()['constructor'](a13a)['search'](F(0x13d));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x120;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const G=a13d;return Object[G(0x137)](CountryCode)[G(0x129)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13H(0x124)]({'name':a13H(0x153),'aliases':[a13H(0x135)],'usage':a13H(0x12c),'requiredOpts':[a13H(0x13e)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13H(0x126),'examples':[a13H(0x134),a13H(0x142)]},async function(a,b){const I=a13H;try{const c=b[I(0x13e)],d=new AWS(),{available:f,cost:g}=await d[I(0x14b)](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+I(0x12f));const {Price:h,Currency:i}=g;Log[I(0x13c)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[I(0x13f)](I(0x145)+c+'\x20?',![]);if(j){const k={'type':I(0x141),'name':'contactType','message':I(0x139),'choices':['ASSOCIATION',I(0x158),I(0x156),I(0x14e),'RESELLER']},l=await Actions[I(0x157)](I(0x151))||'1',m=await Actions[I(0x157)](I(0x14f))||I(0x146),n=await Actions[I(0x157)](I(0x14c))||'Person',{contactType:o}=await Actions['options'](k),p=await Actions['ask'](I(0x130))||I(0x149),q=await Actions['ask'](I(0x138)),r=await Actions[I(0x157)](I(0x131))||I(0x155),s=await Actions[I(0x157)]('State\x20[HI]:\x20')||'HI',t=await Actions[I(0x157)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x144)](I(0x128));const v=await Actions[I(0x157)](I(0x148))||I(0x132),w=await Actions['ask'](I(0x14a))||'+1.5555555556',x=await Actions['ask']('Contact\x20Email\x20[mail@example.com]:\x20')||I(0x12b),y=await Actions[I(0x13f)](I(0x152)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==I(0x156)){const C=await Actions[I(0x157)](I(0x12a))||I(0x12d);z[I(0x123)]=C;}const A=h||0x0*parseInt(l);Log['notice'](I(0x154)),Log['warn'](A+'\x20'+i+'\x20for\x20'+l+I(0x159)+h+'\x20'+i+I(0x12e));const B=await Actions[I(0x13f)](I(0x14d));B&&await d[I(0x140)](z,c,parseInt(l),y);}}else throw Log[I(0x144)]('Domain\x20name\x20is\x20unavailable');}catch(D){console[I(0x144)](D),process[I(0x122)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x1ac))/0x1*(parseInt(h(0x1a8))/0x2)+parseInt(h(0x193))/0x3+-parseInt(h(0x190))/0x4+-parseInt(h(0x1ad))/0x5+-parseInt(h(0x1a1))/0x6*(parseInt(h(0x1aa))/0x7)+parseInt(h(0x1af))/0x8+parseInt(h(0x1a9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xc43db));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a['toString']()[j(0x19d)]('(((.+)+)+)+$')['toString']()[j(0x19f)](a14a)['search'](j(0x1a4));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x18f;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a14c(){const n=['create','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','233336TcURwZ','33125427YLSUKf','105ghfICl','error','7CbSoxs','4840180PqXdGq','Deleted\x20','5142696UwIddz','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','5552264pUBhIo','Not\x20deleting\x20keypair','forEach','3078498FHBHEB','Please\x20choose\x20a\x20key\x20to\x20delete:','name','remove-key-pair','confirm','maka\x20aws:rkp','maka\x20aws:remove-key-pair','Deleting\x20a\x20','exit','deleteKeyPair','search','\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','constructor','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','549210MnCcJu','success','ec2describeKeys','(((.+)+)+)+$','apply'];a14c=function(){return n;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14k(0x1a6)]({'name':a14k(0x196),'aliases':['rkp'],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x18f),'description':a14k(0x19e),'examples':[a14k(0x199),a14k(0x198)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x1a3)]();let c=undefined;const d=await Actions['ask'](l(0x194));b?.[l(0x192)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x195)]);});if(!c)throw Log[l(0x1ab)](l(0x1a7));const f=await Actions[l(0x197)](l(0x19a)+c+l(0x1a0),![]);f?(await a[l(0x19c)](c),Log[l(0x1a2)](l(0x1ae)+c)):Log[l(0x1ab)](l(0x191)),process[l(0x19b)](0x0);}catch(g){process[l(0x19b)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x128;let f=c[d];return f;},a15d(a,b);}const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x13c))/0x1*(-parseInt(l(0x142))/0x2)+-parseInt(l(0x13d))/0x3*(parseInt(l(0x143))/0x4)+-parseInt(l(0x139))/0x5*(-parseInt(l(0x144))/0x6)+parseInt(l(0x12d))/0x7*(parseInt(l(0x132))/0x8)+-parseInt(l(0x12e))/0x9+parseInt(l(0x146))/0xa+parseInt(l(0x137))/0xb*(-parseInt(l(0x12c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x3d370));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const m=a15d;return a15a[m(0x12a)]()[m(0x129)](m(0x12b))[m(0x12a)]()[m(0x14f)](a15a)[m(0x129)](m(0x12b));});function a15c(){const p=['join','privateIp','error','\x0aSaved\x20host\x20','private','create','sep','constructor','publicIp','env','writeFileSync','search','toString','(((.+)+)+)+$','936UhoHMq','7FiWlqB','1864773eWDyMC','fsi','getProjectConfig','host','3299728pASyDJ','inherit','template','utf8','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','38731jDZVFI','cat\x20','330mfxaek','appName','stringify','45993RwqGSC','3CulatZ','parse','exit','ssh.json','public','14KVmSEd','1371164NPgLhL','12798xnmVjI','\x20IP\x20to\x20','2001670NlBMdo','sth'];a15c=function(){return p;};return a15c();}a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15n(0x14d)]({'name':'set-host','aliases':[a15n(0x147)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a15n(0x151)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':['maka\x20aws:set-host\x20--env\x20dev','maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const o=a15n;try{const c=new AWS(),d=this[o(0x12f)]['getConfigPath'](b[o(0x151)]),f=this[o(0x12f)][o(0x130)](),g=await c['chooseInstance'](),h=a15e['join'](d,o(0x140));!this[o(0x12f)]['isFile'](h)&&await this['fsi'][o(0x134)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[o(0x13a)]},'config':f});const i=JSON[o(0x13e)](a15f['readFileSync'](h,o(0x135))),j=await Actions['ask'](o(0x136))||o(0x141);if(j){if(j===o(0x141)||j===o(0x14c)){if(j==='public')i[o(0x131)]=g?.[o(0x150)];else j===o(0x14c)&&(i[o(0x131)]=g?.[o(0x149)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[o(0x131)]=g?.['privateIp'];a15f[o(0x128)](a15e[o(0x148)](d,'ssh.json'),JSON[o(0x13b)](i,null,0x2)),execSync(o(0x138)+a15e[o(0x148)](d,'ssh.json'),{'stdio':o(0x133)}),Log['success'](o(0x14b)+j+o(0x145)+d+a15e[o(0x14e)]+o(0x140));}catch(k){console[o(0x14a)](k),process[o(0x13f)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a16c(){const
|
|
1
|
+
function a16c(){const k=['status','736bOAJih','100NOslUU','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','confirm','chooseInstance','2091520HCVxuy','ec2terminateInstance','error','instanceId','876375qdgzDC','1986525IFOEGI','running','5161240Hcnjyq','constructor','\x20Ready?','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','28655ztdRfs','search','maka\x20aws:ti','toString','exit','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','maka\x20aws:terminate-instance','1622zNUKQc','95428vsSXwj','(((.+)+)+)+$','402CSzGPG','name','Terminate\x20an\x20EC2\x20instance'];a16c=function(){return k;};return a16c();}const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x15e))/0x1*(parseInt(f(0x157))/0x2)+-parseInt(f(0x149))/0x3+-parseInt(f(0x158))/0x4+parseInt(f(0x150))/0x5*(-parseInt(f(0x15a))/0x6)+-parseInt(f(0x14c))/0x7+parseInt(f(0x145))/0x8+parseInt(f(0x14a))/0x9*(parseInt(f(0x15f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x6a153));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x153)]()[h(0x151)](h(0x159))[h(0x153)]()[h(0x14d)](a16a)[h(0x151)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x144;let f=c[d];return f;},a16d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':'terminate-instance','aliases':['ti'],'usage':a16i(0x156),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a16i(0x15c),'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':[a16i(0x156),a16i(0x152)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x144)]();if(b?.[j(0x148)]&&b?.[j(0x15d)]===j(0x14b)){const c=await Actions[j(0x162)](j(0x161)+b[j(0x15b)]+j(0x14e));c?a[j(0x146)]({'instanceId':b[j(0x148)]}):Log['error'](j(0x155)+b[j(0x15b)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x147)](j(0x14f));}catch(d){console['error'](d),process[j(0x154)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a17d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x183))/0x1+-parseInt(f(0x186))/0x2*(parseInt(f(0x182))/0x3)+-parseInt(f(0x185))/0x4+-parseInt(f(0x189))/0x5+parseInt(f(0x187))/0x6+parseInt(f(0x188))/0x7+parseInt(f(0x180))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xec034));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x184)]()[h(0x181)](h(0x18a))['toString']()[h(0x17e)](a17a)['search']('(((.+)+)+)+$');});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x17e;var f=c[d];return f;},a17d(a,b);}a17a();import'./build.js';import'./docker.sub.cmd.js';function a17c(){var i=['27619920TmoSFz','search','72yIqyzE','599140fvEzAA','toString','5181124hZmlDn','126246Naqmwn','5137116jSPZmB','932099iaxgyg','328760GJrZBC','(((.+)+)+)+$','constructor','apply'];a17c=function(){return i;};return a17c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18s=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=parseInt(q(0xc8))/0x1*(parseInt(q(0xac))/0x2)+parseInt(q(0xc9))/0x3*(-parseInt(q(0xaf))/0x4)+-parseInt(q(0xaa))/0x5+-parseInt(q(0xb8))/0x6+-parseInt(q(0xab))/0x7*(parseInt(q(0xb0))/0x8)+parseInt(q(0xd1))/0x9*(-parseInt(q(0xc2))/0xa)+parseInt(q(0xbf))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xd300e));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const r=a18d;return a18a[r(0xa5)]()[r(0xa9)](r(0xba))[r(0xa5)]()[r(0xb2)](a18a)['search']('(((.+)+)+)+$');});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';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18s(0xa7)]({'name':a18s(0xcf),'usage':'maka\x20build\x20<opts>','validOpts':['force','debug'],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18s(0xa4),'mustBeInMakaProject':!![],'description':'\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','examples':[a18s(0xc4),a18s(0xb3)]},async function(a,b){const t=a18s;try{const c=this[t(0xcd)][t(0xbd)]();!this[t(0xcd)]['checkMeteorPackage']('autoupdate')&&(Log[t(0xcc)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[t(0xcd)][t(0xc7)](t(0xc5),{'cwd':c}));const d=a[0x0],f=this['findSubCommand'](d);if(f)this[t(0xca)](d,a,b);else{const g=b['force'];if(!g){const j=this[t(0xcd)][t(0xb6)](),k=this[t(0xcd)][t(0xb9)](),l=a18g['gt'](j,k);if(l){const m=await Actions[t(0xc0)](t(0xc6)+k+t(0xad)+j+t(0xce));m&&this[t(0xcd)][t(0xb1)](t(0xbc),[t(0xbb),j]);}}const h=[this[t(0xcd)]['pathFromProject']({'pathParts':[t(0xcf)]})][t(0xa8)](process[t(0xb5)][t(0xd0)](0x3)),i=a18e[t(0xc1)](this[t(0xcd)][t(0xc3)]({}),'build',t(0xa6));if(a18f[t(0xb4)](i)){const n=g??await Actions[t(0xc0)](t(0xcb));if(!n)throw Log['error'](t(0xbe));}h[t(0xb7)]((o,p)=>{const u=t;o==='--force'&&h[u(0xae)](p,0x2);}),this[t(0xcd)]['invokeMeteorCommand'](t(0xcf),h);}}catch(o){console['error'](o),process['exit'](0x0);}});export default BuildCommand;function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xa4;let f=c[d];return f;},a18d(a,b);}function a18c(){const v=['splice','4UgdSti','974472MTiJVz','invokeMeteorCommand','constructor','maka\x20build:docker','existsSync','argv','getGlobalMeteorVersion','forEach','8881134adpzYX','getProjectMeteorVersion','(((.+)+)+)+$','--release','update','findProjectDirectory','Aborted.','58452207HZhEQu','confirm','join','80870ogxwZg','pathFromProject','maka\x20build','autoupdate','This\x20project\x27s\x20meteor\x20version\x20(','installMeteorPackage','2408xPEPPt','3620406HGUsEu','runSubCommand','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','notice','fsi',').\x20Update?','build','slice','99fJpwfz','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','toString','app.tar.gz','create','concat','search','7259260LntMNg','49IwhsPR','524zQbvjH',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('];a18c=function(){return v;};return a18c();}
|