@maka/maka-cli 4.7.28 → 4.7.29
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 +18 -4
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/README.md +18 -4
- 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/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.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/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.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/templates/meteor/project/package.json +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/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/progress/progress.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
|
@@ -7,8 +7,6 @@ Maka-CLI is a command line tool, which organizes a web application's file struct
|
|
|
7
7
|
(i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
|
|
8
8
|
NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
9
9
|
|
|
10
|
-
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
|
-
|
|
12
10
|
If you like Maka-CLI, consider buying me a [coffee](https://www.buymeacoffee.com/makacli)! ☕️
|
|
13
11
|
|
|
14
12
|
## Installation
|
|
@@ -17,7 +15,23 @@ If you like Maka-CLI, consider buying me a [coffee](https://www.buymeacoffee.com
|
|
|
17
15
|
```
|
|
18
16
|
|
|
19
17
|
## Getting Started
|
|
18
|
+
```
|
|
19
|
+
maka create KickTiresApp
|
|
20
|
+
|
|
21
|
+
cd KickTiresApp
|
|
22
|
+
|
|
23
|
+
maka run
|
|
24
|
+
|
|
25
|
+
```
|
|
20
26
|
|
|
21
|
-
Documentation
|
|
27
|
+
## Documentation
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
Run the `--help` command with any maka generator or comamnd for more information:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
maka --help
|
|
33
|
+
|
|
34
|
+
maka generate --help
|
|
35
|
+
|
|
36
|
+
maka g:route -h
|
|
37
|
+
```
|
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.7.
|
|
4
|
+
"version": "4.7.29",
|
|
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
|
@@ -7,8 +7,6 @@ Maka-CLI is a command line tool, which organizes a web application's file struct
|
|
|
7
7
|
(i.e., React, GraphQL, Rest API, Material-UI, Jasmine / Mocha Tests). Maka-CLI integrates with MeteorJS for developing high performing and scaling
|
|
8
8
|
NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
9
9
|
|
|
10
|
-
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
|
-
|
|
12
10
|
If you like Maka-CLI, consider buying me a [coffee](https://www.buymeacoffee.com/makacli)! ☕️
|
|
13
11
|
|
|
14
12
|
## Installation
|
|
@@ -17,7 +15,23 @@ If you like Maka-CLI, consider buying me a [coffee](https://www.buymeacoffee.com
|
|
|
17
15
|
```
|
|
18
16
|
|
|
19
17
|
## Getting Started
|
|
18
|
+
```
|
|
19
|
+
maka create KickTiresApp
|
|
20
|
+
|
|
21
|
+
cd KickTiresApp
|
|
22
|
+
|
|
23
|
+
maka run
|
|
24
|
+
|
|
25
|
+
```
|
|
20
26
|
|
|
21
|
-
Documentation
|
|
27
|
+
## Documentation
|
|
22
28
|
|
|
23
|
-
|
|
29
|
+
Run the `--help` command with any maka generator or comamnd for more information:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
maka --help
|
|
33
|
+
|
|
34
|
+
maka generate --help
|
|
35
|
+
|
|
36
|
+
maka g:route -h
|
|
37
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0p=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=-parseInt(m(0x153))/0x1*(parseInt(m(0x120))/0x2)+parseInt(m(0x152))/0x3*(-parseInt(m(0x149))/0x4)+-parseInt(m(0x12c))/0x5+parseInt(m(0x14a))/0x6+-parseInt(m(0x12a))/0x7*(-parseInt(m(0x13d))/0x8)+-parseInt(m(0x14d))/0x9+parseInt(m(0x14b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xc28e6));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a['toString']()['search'](o(0x148))[o(0x126)]()['constructor'](a0a)[o(0x157)](o(0x148));});function a0c(){const z=['8756928uydURW','split','keys','maxArgLength','mustHaveMeteorInstalled','1437thWrrX','305799xwKeKQ','Too\x20many\x20arguments','bind','minArgLength','search','Too\x20few\x20arguments','validateMeteorInstall','Command\x20not\x20found','notice','There\x20is\x20no\x20Meteor\x20application\x20here','maxOptsLength','forEach','number','Description','unshift','fsi','Command\x20requires\x20a\x20handler\x20function','processAndRunCommand','error','mustBeInMakaProject','push','find','localeCompare','apply','validateMakaSubscription','Command\x20format\x20is\x20incorrect','6tNVnyE','generate','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','create','shortDesc','setColorMode','toString','Command.create\x20requires\x20a\x20handler\x20function!','addCommand','light','7tlymzC','_commands','990935Xewjgm','bright','validateParams','invoke','length','Alias','exit','LIGHT','usage','run','Please\x20run\x20\x22maka\x20install\x20meteor\x22','join','Command\x20','options','minOptsLength','getGlobalConfig','Command\x20requires\x20a\x20name','5539488nisWSV','Sub-Commands:','_handler','call','\x20not\x20found','assign','function','name','Name','slice','addCommand\x20requires\x20a\x20Command\x20instance','(((.+)+)+)+$','6796IfJlha','4489326qzYZmT','22586420XCJhoI','help'];a0c=function(){return z;};return a0c();}a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x113;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0x139)];[a0p(0x12b)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x122));if(!a[q(0x144)])throw new Error(q(0x13c));if(typeof b!==q(0x143))throw new Error(q(0x116));this['options']=Object[q(0x142)]({},a),this[q(0x144)]=this[q(0x139)][q(0x144)],this[q(0x12b)]=[],this[q(0x13f)]=b[q(0x155)](this);}static[a0p(0x123)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x143))throw new Error(r(0x127));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[r(0x139)]?.[r(0x144)]}),c['addCommand'](d),d;}[a0p(0x128)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x147));this[s(0x12b)]['push'](a);}async[a0p(0x135)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x115)][t(0x13b)](),d=c['pallet']===t(0x129)?ColorMode[t(0x133)]:ColorMode['DARK'];Log[t(0x125)](d),await this[t(0x11e)](this);}catch(f){Log[t(0x118)](f),process[t(0x132)](0x0);}await this[t(0x12f)](a,b);}catch(g){process[t(0x132)](0x1);}}async['invoke'](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x139)];try{if(this['options'][u(0x144)]!==u(0x121)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x130)]===0x0)&&this[u(0x12b)][u(0x130)]>=0x0,g=b[u(0x14c)]||b['h'];if(f&&g){if(this[u(0x12b)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x139)][u(0x119)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[u(0x139)][u(0x151)]){const i=this[u(0x159)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[u(0x139)][u(0x156)]===u(0x15f)){if(a[u(0x130)]<this['options'][u(0x156)]){Log[u(0x118)](u(0x158));throw new UsageError();}}if(typeof this[u(0x139)][u(0x150)]===u(0x15f)){if(a['length']>=this[u(0x139)][u(0x150)]){Log[u(0x118)](u(0x154));throw new UsageError();}}if(typeof this[u(0x139)][u(0x13a)]===u(0x15f)){if(Object['keys'](b)[u(0x130)]<this[u(0x139)][u(0x13a)]){Log[u(0x118)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this['options'][u(0x15d)]===u(0x15f)){if(Object[u(0x14f)](b)[u(0x130)]>=this['options'][u(0x15d)]){Log[u(0x118)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[u(0x12e)](a,b,this[u(0x139)]),_prevCmd=a[0x0];}await this[u(0x13f)][u(0x140)](this,a,b);}catch(j){Log[u(0x134)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[u(0x15b)](u(0x13e)),this['tableList'](this[u(0x12b)]),Log['header']('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(j instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(j instanceof NoMeteorFoundError)Log[u(0x118)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[u(0x15b)](u(0x136));else j instanceof NoMeteorAppFoundError&&Log[u(0x118)](u(0x15c));}}process[u(0x132)](0x1);}}['tableList'](a){const v=a0p,b=new a0e({});b[v(0x11a)]([v(0x145),v(0x131),v(0x113)]),a['sort']((c,d)=>{const w=v;return c['name'][w(0x11c)](d[w(0x144)]);})[v(0x15e)](c=>{const x=v;c[x(0x144)]!=='murder'&&c[x(0x144)]!=='play'&&b[x(0x11a)]([c[x(0x144)],c['aliases'](),c[x(0x124)]()]);}),Log[v(0x12d)](b[v(0x126)]());}async[a0p(0x117)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x14e)](':');if(!d||d[y(0x130)]===0x0)throw y(0x11f);if(d[0x0]===y(0x121)||d[0x0]==='g'&&d[y(0x130)]>0x1){const h=this[y(0x12b)]['find'](j=>j['match']('generate'));if(!h)throw'Command\x20not\x20found';await this[y(0x11e)](h);const i=d[y(0x146)](0x1)[y(0x137)](':');b[y(0x114)](i),await h[y(0x135)](b,c);return;}let f=this[y(0x12b)],g;for(const j of d){g=f[y(0x11b)](k=>k['match'](j));if(!g)try{await this['fsi']['maybeProxyCommandToMeteor']();}catch(k){throw y(0x138)+j+y(0x141);}g&&(await this[y(0x11e)](g),f=g['_commands']);}if(g)await g[y(0x135)](b,c);else throw y(0x15a);}catch(l){Log[y(0x118)](l),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x155))/0x1*(parseInt(f(0x153))/0x2)+-parseInt(f(0x159))/0x3+parseInt(f(0x15b))/0x4*(-parseInt(f(0x154))/0x5)+parseInt(f(0x156))/0x6+-parseInt(f(0x150))/0x7+-parseInt(f(0x15a))/0x8*(-parseInt(f(0x151))/0x9)+parseInt(f(0x158))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x99a62));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x14f)]()[h(0x157)](h(0x15c))[h(0x14f)]()[h(0x152)](a1a)[h(0x157)](h(0x15c));});function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x14e;var f=c[d];return f;},a1d(a,b);}a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';function a1c(){var i=['1707402nGVlAH','search','6892490DaVXfl','1138233loqgrV','41312FemFzo','212SDliYg','(((.+)+)+)+$','apply','toString','3247181LTfSNY','981IzYzWO','constructor','31022LJYrRr','51405HyffqZ','31tCLGmE'];a1c=function(){return i;};return a1c();}import'./ai.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0xcb))/0x1+parseInt(h(0xce))/0x2*(parseInt(h(0xb9))/0x3)+parseInt(h(0xaf))/0x4*(-parseInt(h(0xac))/0x5)+parseInt(h(0xd0))/0x6*(parseInt(h(0xb6))/0x7)+-parseInt(h(0xad))/0x8*(parseInt(h(0xc5))/0x9)+parseInt(h(0xc9))/0xa+parseInt(h(0xc8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xe8e06));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(0xb5)]()[i(0xbb)](i(0xb0))[i(0xb5)]()[i(0xd2)](a2a)['search'](i(0xb0));});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xa6;let f=c[d];return f;},a2d(a,b);}a2a();function a2c(){const n=['8lmJxaG','GPT:\x20','1268HWgPwk','(((.+)+)+)+$','openapikey','Using\x20OpenAI\x20Key\x20','openai','cert','toString','106071CeZhAf','trim','close','658791ajGlMO','ChatGPT\x20style\x20AI\x20interface','search','exit','askGPT','error','parse','notice','fsi','stdin','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','stdout','2286819GZkhIg','cacert','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','2031084MRbyaT','4160700oSkmHx','getGlobalConfig','691960uqVQLH','You:\x20','createInterface','2PflqEh','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','30RhfOly','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','constructor','isFile','bright','create','question','Using\x20CA\x20Cert\x20','toLowerCase','5995BZEdDA'];a2c=function(){return n;};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 j=a2d,c=a2e[j(0xcd)]({'input':process[j(0xc2)],'output':process[j(0xc4)]});c[j(0xa9)](j(0xcc),async d=>{const k=j;if(d[k(0xab)]()===k(0xbc)){c[k(0xb8)]();return;}try{const e=await HTTPS[k(0xbd)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0xbf)](e['data']);if(f['error'])throw new Error(f[k(0xbe)]['message']);Log[k(0xa7)](k(0xae)+f?.['choices'][0x0]?.['text'][k(0xb7)]());}catch(g){Log['error'](g),process[k(0xbc)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0xa8)]({'name':'ai','description':a2l(0xba),'validOpts':[a2l(0xc6),a2l(0xb1)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this[m(0xc1)]['isFile'](b[m(0xc6)])?(c=b['cacert'],Log[m(0xc0)](m(0xaa)+c)):Log[m(0xbe)](m(0xcf)+c));const d=await this[m(0xc1)][m(0xca)]();if(d[m(0xb4)]){if(this['fsi'][m(0xa6)](d[m(0xb4)]))c=d[m(0xb4)];else throw Log[m(0xbe)](m(0xc7)+c);}let f='';if(b[m(0xb1)])f=b[m(0xb1)],Log[m(0xc0)](m(0xb2)+f);else{if(d[m(0xb3)])f=d[m(0xb3)];else throw Log[m(0xbe)](m(0xc3));}console['log'](m(0xd1)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0xbe)](g),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a3c(){var i=['search','9612440eHgMHn','constructor','9mYNEnM','2307yTjmBv','(((.+)+)+)+$','1460lIPVYg','577018rpdtQd','889688TzNasL','13839SmGfZq','apply','15584140naoaCN','toString','4731010jljmIb','714yABOcB'];a3c=function(){return i;};return a3c();}(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x16d))/0x1+-parseInt(f(0x16c))/0x2+parseInt(f(0x178))/0x3*(parseInt(f(0x16b))/0x4)+-parseInt(f(0x172))/0x5+-parseInt(f(0x173))/0x6*(parseInt(f(0x16e))/0x7)+-parseInt(f(0x175))/0x8*(-parseInt(f(0x177))/0x9)+parseInt(f(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xa6420));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x171)]()[h(0x174)](h(0x179))[h(0x171)]()[h(0x176)](a3a)['search'](h(0x179));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x16b;var f=c[d];return f;},a3d(a,b);}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(0x1ae))/0x1*(-parseInt(f(0x1a7))/0x2)+-parseInt(f(0x1b1))/0x3*(parseInt(f(0x1b2))/0x4)+-parseInt(f(0x1b0))/0x5*(parseInt(f(0x1b8))/0x6)+parseInt(f(0x1ad))/0x7*(-parseInt(f(0x1aa))/0x8)+-parseInt(f(0x1b4))/0x9*(-parseInt(f(0x1a9))/0xa)+-parseInt(f(0x1a5))/0xb*(-parseInt(f(0x1a6))/0xc)+parseInt(f(0x1b7))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x1a96c));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1b5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1a4)]()[h(0x1af)](h(0x1b3))[h(0x1a4)]()[h(0x1ab)](a4a)[h(0x1af)](h(0x1b3));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':a4i(0x1b6),'usage':a4i(0x1b9),'validOpts':[],'shortDesc':a4i(0x1a8),'description':a4i(0x1ac)},async function(){throw UsageError;});export default AWSCommand;function a4c(){const j=['213876sCyWwF','140136egGxMM','maka\x20aws:<sub-command>','toString','280951CnTGpb','84ARNVuF','100136AuOeYr','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','67700VDIaei','8UDcEPv','constructor','\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','373380yadsXp','1RNhHUu','search','35XNTGGj','69bzEvid','20156ruOefx','(((.+)+)+)+$','261SNGloP','apply','aws'];a4c=function(){return j;};return a4c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x197))/0x1+parseInt(i(0x198))/0x2+-parseInt(i(0x190))/0x3+-parseInt(i(0x191))/0x4+parseInt(i(0x187))/0x5*(parseInt(i(0x193))/0x6)+parseInt(i(0x18b))/0x7*(-parseInt(i(0x19b))/0x8)+parseInt(i(0x186))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x3581e));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x18f)]()[k(0x182)](k(0x18c))[k(0x18f)]()[k(0x189)](a5a)['search'](k(0x18c));});a5a();function a5c(){const n=['route53CreateHostedZone','constructor','exit','996653LnjNYG','(((.+)+)+)+$','maka\x20aws:chz\x20--domain=example.com','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','toString','1154679yinwVJ','972200ROqtCw','apply','6YtLbBR','chz','publicIp','Instance\x20not\x20found','360074iaFiSi','350830cAQjqs','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','create-hosted-zone','16DNnXLH','maka\x20aws:create-hosted-zone','chooseInstance','error','search','confirm','domain','linkEC2ToRoute53','4709457COWWGu','365525hujlOJ'];a5c=function(){return n;};return a5c();}import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x180;let f=c[d];return f;},a5d(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['create']({'name':a5l(0x19a),'aliases':[a5l(0x194)],'usage':a5l(0x19c),'requiredOpts':[a5l(0x184)],'validOpts':[],'shortDesc':a5l(0x199),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a5l(0x18d)]},async function(a,b){const m=a5l;try{const c=b[m(0x184)],d=new AWS();d[m(0x188)](c);const f=await Actions[m(0x183)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[m(0x180)]();if(g?.['id']){if(!g[m(0x195)])throw Log[m(0x181)](m(0x18e));d[m(0x185)](g['id'],g[m(0x195)],c);}else throw m(0x196);}}catch(h){h&&Log[m(0x181)](h),process[m(0x18a)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a6d(a,b);}(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x1f4))/0x1*(parseInt(ae(0x1e2))/0x2)+-parseInt(ae(0x1f0))/0x3*(parseInt(ae(0x228))/0x4)+-parseInt(ae(0x1e0))/0x5+parseInt(ae(0x1d0))/0x6+parseInt(ae(0x200))/0x7*(parseInt(ae(0x20d))/0x8)+parseInt(ae(0x22a))/0x9*(parseInt(ae(0x1d5))/0xa)+parseInt(ae(0x1f3))/0xb*(-parseInt(ae(0x208))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x6909f));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x22f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x1e1)]()['search'](ag(0x1d7))[ag(0x1e1)]()[ag(0x226)](a6a)['search']('(((.+)+)+)+$');});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';function a6c(){const au=['getMakaProjectConfig','1241610zDuQBW','success','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20SUBNETID:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','9650viVGSd','createKeyPair','(((.+)+)+)+$','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','EC2\x20Name:\x20[','maka-cli','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','amazon','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Web\x20App','2498570pJRwLm','toString','178994MOWBBJ','Setting\x20AMI\x20ID\x20to\x20','error','ec2create','forEach','subnetId','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','**\x20Available\x20Subnets\x20**','Instace\x20Type:\x20','Name','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','alias','**\x20Available\x20Security\x20Groups\x20**','159ODjRbn','Setting\x20Subnet\x20ID\x20to\x20','maka\x20aws:create-instance','25223dfaVYb','4HhPXLT','env','\x20AZONE:\x20','\x20SGID:\x20','Subnet:\x20','amiId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','environment','subnet','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','getTime','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','1178562cjeZjv','create-instance','readFileSync','getConfigFromShorthand','exit','fsi','cider','created-by','984iJWeGd','getAppConfigPath','maka\x20aws:ci\x20--env\x20prod','**\x20Available\x20key-pairs\x20**','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','16LguCXR','Please\x20choose\x20a\x20key\x20to\x20use:\x20','1:1','notice','sgId','unlinkSync','name','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','desc','ask','cidr','create','Setting\x20SG\x20ID\x20to:\x20','sort','22,80,443','Security\x20Group:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','date','ImageID:','parse','**\x20Available\x20AMIs\x20**','split','*\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','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=*','confirm','constructor','Desc','2828cSIgpw','log','2367AZWgzm','bright','\x20AMIID:\x20','build\x20on\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','apply','chooseVPC','\x20:\x20','deleteKeyPair','ID:\x20','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','push','User\x20Data:','ec2describeKeys','Create\x20new\x20AWS\x20instance','maka\x20aws:create-instance\x20--env\x20dev','Setting\x20the\x20key-pair\x20to:\x20','number'];a6c=function(){return au;};return a6c();}Command[a6ah(0x218)]({'name':a6ah(0x201),'aliases':['ci'],'usage':a6ah(0x1f2),'examples':[a6ah(0x1cc),a6ah(0x20a)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x1f5)}],'validOpts':[],'shortDesc':a6ah(0x1cb),'description':a6ah(0x22e)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x205)][ai(0x1cf)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x205)][ai(0x203)](b[ai(0x1f5)]),i=this[ai(0x205)][ai(0x209)](h),j=g+'-'+h,k=await Actions[ai(0x216)](ai(0x1da)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x225)](ai(0x1dc),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1d6)]({'env':h});r=y,s=z,Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0x210)](ai(0x20b));const A=r?r:k,B=await d[ai(0x237)]({'suggestion':A}),C=await Actions['ask'](ai(0x20e))||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x1ed)),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x1e6)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x1d1)](aj(0x1cd)+r));});}catch(D){Log[ai(0x1e4)](D);}l=await d[ai(0x230)]();const t=await Actions[ai(0x225)](ai(0x1fd),!![]);let u;if(t){const E=l===''?await d[ai(0x230)]():l;u=await Actions[ai(0x216)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ai(0x1e9))||ai(0x21b),G=F[ai(0x222)](',');await d['ec2createSG']({'description':ai(0x1df),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ai(0x210)](ai(0x1ef)),J[ai(0x1e6)](function(L){const ak=ai;L[ak(0x213)]===u?Log['notice'](ak(0x233)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x213)]+ak(0x1f7)+L[ak(0x211)]):Log[ak(0x22b)](ak(0x233)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x213)]+'\x20SGID:\x20'+L[ak(0x211)]);});const K=await Actions['ask'](ai(0x234)+H+']\x20')||H[ai(0x1e1)]();J[ai(0x1e6)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x1d1)](al(0x219)+m+'\x0a'));});}else m=I,Log['success']('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1e4)](ai(0x1fa));}catch(L){Log[ai(0x1e4)](L);}try{const M=0x7e6;Log['notice'](ai(0x221));const N=execSync(ai(0x224)+M+ai(0x223))[ai(0x1e1)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x1e6)](function(S){const am=ai;if(S[am(0x1ee)]===am(0x1dd)){const T=S[am(0x227)][am(0x222)](am(0x22d))[0x1];P[am(0x235)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x21a)](function(S,T){const an=ai;return new Date(T[an(0x21e)])[an(0x1fe)]()-new Date(S['date'])[an(0x1fe)]();}),P[ai(0x1e6)](function(S,T){const ao=ai;Q[ao(0x235)]({'id':T,'amiId':S['amiId'],'desc':S['desc']});}),Q[ai(0x1e6)](function(S){const ap=ai;console[ap(0x229)](ap(0x233)+S['id']+ap(0x22c)+S[ap(0x1f9)]+'\x20DESCRIPTION:\x20'+S[ap(0x215)]);});const R=await Actions[ai(0x216)](ai(0x214))||'0';Q[ai(0x1e6)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1f9)],Log[aq(0x1d1)](aq(0x1e3)+n+aq(0x231)+S['desc']));});if(n==='')throw Log[ai(0x1e4)](ai(0x1fa));}catch(S){Log[ai(0x1e4)](S);}try{Log[ai(0x210)](ai(0x1ea));const T=execSync(ai(0x1e8))[ai(0x1e1)](),U=JSON[ai(0x220)](T),V=[];U[ai(0x1e6)](function(X,Y){const ar=ai;V[ar(0x235)]({'id':Y,'cidr':X[ar(0x206)],'az':X['az'],'subnetId':X[ar(0x1e7)]});}),V[ai(0x1e6)](function(X){const as=ai;console['log']('ID:\x20'+X['id']+'\x20CIDR:\x20'+X[as(0x217)]+as(0x1f6)+X['az']+as(0x1d3)+X[as(0x1e7)]);});const W=await Actions['ask'](ai(0x1d8))||'0';V[ai(0x1e6)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1e7)],Log[at(0x1d1)](at(0x1f1)+p));});if(p==='')throw Log[ai(0x1e4)](ai(0x1fa));}catch(X){Log[ai(0x1e4)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x216)](ai(0x1de))||ai(0x20f),Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0x1ce)&&typeof parseInt(a0)===ai(0x1ce)&&Log['success'](ai(0x1ff)+Z+':'+a0);}catch(a1){Log[ai(0x1e4)](a1);}try{const a2=await Actions[ai(0x216)](ai(0x1d4))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x1e4)](a3);}let x='';try{const a4=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f['join'](i,'user-data'),Log[ai(0x210)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0x225)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0x1e4)](a5);}try{const a6=JSON[ai(0x220)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x20c))[ai(0x1e1)]())[0x0][ai(0x1fc)];Log[ai(0x210)](ai(0x21f)+n),Log[ai(0x210)]('Instance\x20Count:\x20'+v+':'+w),Log['notice'](ai(0x1eb)+o),Log['notice']('Key-Pair:\x20'+r),Log[ai(0x210)](ai(0x21c)+m),Log['notice'](ai(0x1f8)+a6);if(x){Log[ai(0x210)](ai(0x236)+x);const a8=a6g[ai(0x202)](x)[ai(0x1e1)]();Log[ai(0x210)](a8);}const a7=await Actions[ai(0x225)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x1e5)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x207),'Value':ai(0x1db)},{'Key':ai(0x1fb),'Value':h},{'Key':ai(0x1ec),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1d1)](ai(0x21d)),Log[ai(0x22b)](ai(0x1d2)));}else{Log[ai(0x210)](ai(0x1d9));const aa=await Actions[ai(0x225)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x232)](r),f['isFile'](s)&&a6g[ai(0x212)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ai(0x1e4)](ad),process[ai(0x204)](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x156))/0x1+-parseInt(ae(0x184))/0x2*(-parseInt(ae(0x19a))/0x3)+-parseInt(ae(0x16c))/0x4*(-parseInt(ae(0x1a0))/0x5)+parseInt(ae(0x1ba))/0x6+parseInt(ae(0x187))/0x7+parseInt(ae(0x1a4))/0x8+-parseInt(ae(0x198))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x8200f));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x1ab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x181)]()[ag(0x1b2)](ag(0x1a9))[ag(0x181)]()[ag(0x164)](a6a)['search'](ag(0x1a9));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x154;let f=c[d];return f;},a6d(a,b);}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[a6ah(0x18d)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev','maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x183)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0x199)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x15f)][ai(0x179)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x15f)][ai(0x161)](b[ai(0x183)]),i=this[ai(0x15f)][ai(0x194)](h),j=g+'-'+h,k=await Actions[ai(0x165)](ai(0x15c)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1ae)](ai(0x1ad),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x1b4)]({'env':h});r=y,s=z,Log[ai(0x19d)](ai(0x1b1)+r);}else try{Log['notice'](ai(0x1bc));const A=r?r:k,B=await d[ai(0x178)]({'suggestion':A}),C=await Actions['ask'](ai(0x180))||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x159)),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x167)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x19f)],Log[aj(0x19d)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x16a)](D);}l=await d[ai(0x195)]();const t=await Actions[ai(0x1ae)](ai(0x185),!![]);let u;if(t){const E=l===''?await d[ai(0x195)]():l;u=await Actions['ask'](ai(0x1a2)+k+']')||k;const F=await Actions[ai(0x165)](ai(0x173))||'22,80,443',G=F[ai(0x155)](',');await d[ai(0x197)]({'description':ai(0x15a),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x19c)](u);if(I===''){Log['notice'](ai(0x15d)),J[ai(0x167)](function(L){const ak=ai;L[ak(0x19f)]===u?Log[ak(0x1a5)](ak(0x16e)+L['id']+ak(0x1b3)+L[ak(0x19f)]+'\x20SGID:\x20'+L[ak(0x17d)]):Log[ak(0x177)](ak(0x16e)+L['id']+ak(0x1b3)+L[ak(0x19f)]+ak(0x162)+L['sgId']);});const K=await Actions['ask'](ai(0x1bb)+H+']\x20')||H['toString']();J[ai(0x167)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x17d)],Log[al(0x19d)](al(0x176)+m+'\x0a'));});}else m=I,Log[ai(0x19d)](ai(0x176)+m+'\x0a');if(m==='')throw Log[ai(0x16a)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0x16a)](L);}try{const M=0x7e6;Log[ai(0x1a5)](ai(0x17a));const N=execSync(ai(0x163)+M+ai(0x193))[ai(0x181)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x167)](function(S){const am=ai;if(S[am(0x154)]===am(0x169)){const T=S[am(0x18b)]['split'](am(0x17c))[0x1];P[am(0x174)]({'amiId':S['ID'],'desc':S[am(0x18b)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T['date'])[an(0x157)]()-new Date(S[an(0x16d)])['getTime']();}),P[ai(0x167)](function(S,T){const ao=ai;Q[ao(0x174)]({'id':T,'amiId':S['amiId'],'desc':S['desc']});}),Q[ai(0x167)](function(S){const ap=ai;console[ap(0x188)](ap(0x16e)+S['id']+ap(0x166)+S['amiId']+ap(0x170)+S[ap(0x189)]);});const R=await Actions[ai(0x165)](ai(0x1ac))||'0';Q[ai(0x167)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x16f)],Log[aq(0x19d)](aq(0x17f)+n+'\x20:\x20'+S[aq(0x189)]));});if(n==='')throw Log[ai(0x16a)](ai(0x19b));}catch(S){Log[ai(0x16a)](S);}try{Log[ai(0x1a5)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x1a3))[ai(0x181)](),U=JSON['parse'](T),V=[];U[ai(0x167)](function(X,Y){const ar=ai;V[ar(0x174)]({'id':Y,'cidr':X[ar(0x196)],'az':X['az'],'subnetId':X[ar(0x172)]});}),V[ai(0x167)](function(X){const as=ai;console[as(0x188)](as(0x16e)+X['id']+as(0x1b9)+X[as(0x15b)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ai(0x165)](ai(0x175))||'0';V[ai(0x167)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x172)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x16a)](ai(0x19b));}catch(X){Log[ai(0x16a)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x165)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x15e),Z=Y[ai(0x155)](':')[0x0],a0=Y[ai(0x155)](':')[0x1];typeof parseInt(Z)===ai(0x1b6)&&typeof parseInt(a0)==='number'&&Log[ai(0x19d)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x16a)](a1);}try{const a2=await Actions[ai(0x165)](ai(0x1b8))||ai(0x18a);typeof a2===ai(0x1a7)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x1ae)](ai(0x160),![]);a4&&(x=a6f[ai(0x1a6)](i,ai(0x191)),Log[ai(0x1a5)](ai(0x1b7)+x),await this['fsi'][ai(0x168)]({'filePath':x,'data':''}),await Actions[ai(0x1ae)](ai(0x171)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x1af)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x17b))['toString']())[0x0][ai(0x19e)];Log[ai(0x1a5)](ai(0x1a8)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x1a5)](ai(0x18c)+o),Log[ai(0x1a5)]('Key-Pair:\x20'+r),Log[ai(0x1a5)](ai(0x158)+m),Log[ai(0x1a5)]('Subnet:\x20'+a6);if(x){Log[ai(0x1a5)](ai(0x182)+x);const a8=a6g[ai(0x17e)](x)['toString']();Log[ai(0x1a5)](a8);}const a7=await Actions['confirm'](ai(0x192));if(a7){const a9=await d[ai(0x1b0)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x16b),'Value':ai(0x18e)},{'Key':ai(0x1a1),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x19d)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x177)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x1a5)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0x1ae)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x1aa)](s)&&a6g[ai(0x186)](s));const ab=await Actions['confirm'](ai(0x18f)+m+'\x20?',!![]);ab&&d[ai(0x1b5)](m);}}catch(ac){Log[ai(0x16a)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x190)](0x0);}},a6e);function a6c(){const au=['Security\x20Group\x20Name:\x20[','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','2963112wMLLTX','notice','join','string','ImageID:','(((.+)+)+)+$','isFile','apply','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','confirm','parse','ec2create','Setting\x20the\x20key-pair\x20to:\x20','search','\x20SG\x20NAME:\x20','createKeyPair','deleteSecurityGroup','number','Creating\x20user\x20data\x20file\x20in\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x20CIDR:\x20','648060eWIiZj','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','**\x20Available\x20key-pairs\x20**','alias','split','948084RhJJyK','getTime','Security\x20Group:\x20','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','Web\x20App','cidr','EC2\x20Name:\x20[','**\x20Available\x20Security\x20Groups\x20**','1:1','fsi','Would\x20you\x20like\x20to\x20include\x20user\x20data?','getConfigFromShorthand','\x20SGID:\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=*','constructor','ask','\x20AMIID:\x20','forEach','createFile','amazon','error','created-by','156ejfkHJ','date','ID:\x20','amiId','\x20DESCRIPTION:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','subnetId','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','push','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20SG\x20ID\x20to:\x20','bright','ec2describeKeys','getMakaProjectConfig','**\x20Available\x20AMIs\x20**','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','build\x20on\x20','sgId','readFileSync','Setting\x20AMI\x20ID\x20to\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','toString','User\x20Data:','env','664088dFibNr','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','unlinkSync','5531638qrhHSE','log','desc','t3.micro','Desc','Instace\x20Type:\x20','create','maka-cli','Remove\x20the\x20security\x20group\x20','exit','user-data','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','*\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','getAppConfigPath','chooseVPC','cider','ec2createSG','26076186WGbCKB','\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','3uxhDtk','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','getSecurityGroups','success','subnet','name','112960mbRyqx','environment'];a6c=function(){return au;};return a6c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x1f6))/0x1*(parseInt(g(0x1f8))/0x2)+-parseInt(g(0x202))/0x3*(-parseInt(g(0x1f5))/0x4)+parseInt(g(0x1ec))/0x5*(-parseInt(g(0x201))/0x6)+-parseInt(g(0x1fe))/0x7*(-parseInt(g(0x1f1))/0x8)+parseInt(g(0x1f2))/0x9*(parseInt(g(0x1eb))/0xa)+-parseInt(g(0x1f4))/0xb*(-parseInt(g(0x1ef))/0xc)+parseInt(g(0x1f9))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x531bd));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1e9;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x1fc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x1fa)]()[i(0x204)](i(0x1ff))[i(0x1fa)]()[i(0x1ea)](a7a)[i(0x204)](i(0x1ff));});a7a();import a7e from'./aws.command.js';function a7c(){const l=['181KykVDj','fsi','2138veWLau','5933460iZMhDP','toString','\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','apply','maka\x20aws:create-key-pair','77LbBqlS','(((.+)+)+)+$','create-key-pair','10698NJknZF','99633lKDmil','getConfigFromShorthand','search','createKeyPair','env','maka\x20aws:create-key-pair\x20--env\x20prod','constructor','10uiQfnn','1015iLNHYy','ckp','error','1038504qCwkEJ','maka\x20aws:ckp\x20--env\x20prod','28136yRNOsW','137727JfdmSK','create','11wgCNAg','36oAhtan'];a7c=function(){return l;};return a7c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a7j(0x1f3)]({'name':a7j(0x200),'aliases':[a7j(0x1ed)],'usage':a7j(0x1fd),'examples':[a7j(0x1e9),a7j(0x1f0)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x206)],'validOpts':[],'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a7j(0x1fb)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x1f7)][k(0x203)](b['env']);c[k(0x205)]({'env':d});}catch(f){f&&Log[k(0x1ee)](f),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x110))/0x1*(-parseInt(m(0xff))/0x2)+-parseInt(m(0xfe))/0x3*(parseInt(m(0x10f))/0x4)+-parseInt(m(0x10e))/0x5+-parseInt(m(0x113))/0x6*(parseInt(m(0x104))/0x7)+-parseInt(m(0x10d))/0x8*(-parseInt(m(0x103))/0x9)+parseInt(m(0x111))/0xa*(parseInt(m(0x10c))/0xb)+parseInt(m(0x102))/0xc*(parseInt(m(0x109))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x72eba));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x117)]()['search'](o(0x11c))[o(0x117)]()['constructor'](a8a)[o(0xfc)]('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xfc;let f=c[d];return f;},a8d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';function a8c(){const r=['1607060zslbeN','fsi','maka\x20aws:csg','328834NJUfEa','741784czMuGY','3204585SizuAU','15564EVDzNh','11WHLeKa','310iAyKDb','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','31614QdeLLj','forEach','name','Web\x20App','toString','create-security-group','Security\x20Group\x20Name:\x20[','create','maka\x20aws\x20create-security-group','(((.+)+)+)+$','search','chooseVPC','465vfvnYg','64946NjkiqH','\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','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','108JPRdeP','18mluipn','203hfbDTQ','maka\x20aws:create-secuirty-group','csg','error','apply'];a8c=function(){return r;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8p(0x11a)]({'name':a8p(0x118),'aliases':[a8p(0x106)],'usage':a8p(0x11b),'validOpts':[],'shortDesc':a8p(0x101),'description':a8p(0x100),'examples':[a8p(0x105),a8p(0x10b)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x10a)]['getMakaProjectConfig'](),{appName:f}=d,g=await c[q(0xfd)](),h=b['name']?b[q(0x115)]:''+f,i=await Actions['ask'](q(0x119)+h+']')||h,j=await Actions['ask'](q(0x112))||'22,80,443',k=j['split'](',');k[q(0x114)](l=>{if(!l['match'](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c['ec2createSG']({'description':q(0x116),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x107)](l),process['exit'](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0xa8))/0x1+parseInt(f(0xa4))/0x2*(parseInt(f(0x9e))/0x3)+-parseInt(f(0x9d))/0x4+-parseInt(f(0x9b))/0x5+parseInt(f(0xa6))/0x6+-parseInt(f(0xa1))/0x7+parseInt(f(0xa2))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe98f7));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0xa0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x9f)]()[h(0xa7)](h(0xa5))[h(0x9f)]()[h(0xa9)](a9a)[h(0xa7)](h(0xa5));});a9a();import a9e from'./aws.command.js';function a9c(){const k=['describe-instances','5677145pQREYP','create','6737680kmxtQH','2401113MIOFuy','toString','apply','7964362rYrraM','34932136voCFVe','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','2MKrwKB','(((.+)+)+)+$','9040002IJhRWT','search','1759277hAVmgi','constructor','ec2describeInstances','\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','maka\x20aws:describe-instances','error'];a9c=function(){return k;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x99;let f=c[d];return f;},a9d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9i(0x9c)]({'name':a9i(0x9a),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'shortDesc':a9i(0xa3),'examples':[a9i(0xac),'maka\x20aws:di'],'description':a9i(0xab)},async function(){const j=a9i;try{const a=new AWS();a[j(0xaa)]();}catch(b){b&&Log[j(0x99)](b),process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xb6))/0x1+parseInt(f(0xa6))/0x2*(-parseInt(f(0xa7))/0x3)+parseInt(f(0xb5))/0x4+-parseInt(f(0xa5))/0x5+parseInt(f(0xa2))/0x6+-parseInt(f(0xa8))/0x7+parseInt(f(0xa4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x477a8));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const g=a10d;return a10a['toString']()[g(0xb3)](g(0xb1))[g(0xaf)]()[g(0xb4)](a10a)[g(0xb3)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';function a10c(){const j=['2864576nkJVEI','2334555ZAdIze','874dUodOc','813SRImhZ','3402567TANQhD','create','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','describe-key-pairs','dkp','exit','ec2describeKeys','toString','error','(((.+)+)+)+$','maka\x20aws:describe-key-pairs','search','constructor','498348MxbZCF','457347SSwHgA','2545134SamrGi','maka\x20aws:dkp'];a10c=function(){return j;};return a10c();}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{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10h(0xa9)]({'name':a10h(0xab),'aliases':[a10h(0xac)],'usage':a10h(0xb2),'validOpts':[],'shortDesc':a10h(0xaa),'examples':[a10h(0xb2),a10h(0xa3)]},async function(){const i=a10h;try{const a=new AWS();a[i(0xae)]();}catch(b){b&&Log[i(0xb0)](b),process[i(0xad)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(
|
|
1
|
+
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x184))/0x1+parseInt(l(0x18c))/0x2*(parseInt(l(0x1a5))/0x3)+-parseInt(l(0x197))/0x4*(-parseInt(l(0x19b))/0x5)+-parseInt(l(0x1a7))/0x6*(-parseInt(l(0x189))/0x7)+parseInt(l(0x193))/0x8*(-parseInt(l(0x18f))/0x9)+-parseInt(l(0x185))/0xa+-parseInt(l(0x183))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x7eeb3));function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x183;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x194)]()[n(0x1a2)](n(0x1a8))['toString']()['constructor'](a11a)[n(0x1a2)](n(0x1a8));});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';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const s=['432330dpDleq','bright','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','delete-security-group','6962641YGsbkB','confirm','maka\x20aws:delete-sg','213042ppBulJ','name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','747lkhFmS','ask','Deleting\x20a\x20','getMakaProjectConfig','4256kiGvEE','toString','maka\x20aws:dsg','isMakaProject','1844MoUrPi','includes','\x20SGID:\x20','ID:\x20','3560znJxcn','create','\x20SG\x20NAME:\x20','apply','appName','error','getSecurityGroups','search','notice','sgId','24PuJFWQ','exit','6uUwCZs','(((.+)+)+)+$','Deleted\x20','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','forEach','6883635iszAyt','942030BMCIti'];a11c=function(){return s;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a11o(0x19c)]({'name':a11o(0x188),'aliases':['dsg'],'usage':a11o(0x18b),'validOpts':[],'shortDesc':a11o(0x1aa),'examples':['maka\x20aws:delete-sg',a11o(0x195)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x196)]();let d='';if(c){const j=b[p(0x192)]();d=j[p(0x19f)];}const {sgList:f}=await a[p(0x1a1)]();f[p(0x1ab)](function(k){const q=p;c&&k[q(0x18d)][q(0x198)](d)?Log[q(0x1a3)](q(0x19a)+k['id']+q(0x19d)+k[q(0x18d)]+'\x20SGID:\x20'+k[q(0x1a4)]):Log[q(0x186)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x18d)]+q(0x199)+k[q(0x1a4)]);});let g='';const h=await Actions[p(0x190)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x1ab)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1a4)]);});if(!g)throw Log['error'](p(0x18e));const i=await Actions[p(0x18a)](p(0x191)+g+p(0x187),![]);i?(await a['deleteSecurityGroup'](g),Log['success'](p(0x1a9)+g)):Log['error']('Not\x20deleting\x20secuirty\x20group'),process[p(0x1a6)](0x0);}catch(k){k&&Log[p(0x1a0)](k),process[p(0x1a6)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1a4))/0x1+parseInt(f(0x1a7))/0x2+-parseInt(f(0x193))/0x3*(-parseInt(f(0x1aa))/0x4)+-parseInt(f(0x195))/0x5*(-parseInt(f(0x1a3))/0x6)+parseInt(f(0x1a1))/0x7+-parseInt(f(0x19b))/0x8+-parseInt(f(0x1af))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xe12a1));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()[h(0x1a2)](h(0x1a0))[h(0x1ad)]()[h(0x1a9)](a12a)[h(0x1a2)](h(0x1a0));});a12a();import a12e from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x193;let f=c[d];return f;},a12d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12c(){const k=['ec2rebootInstance','error','\x20is\x20still\x20running.','confirm','rbi','11325664JHSXXg','chooseInstance','name','apply','Reboot\x20an\x20EC2\x20instance','(((.+)+)+)+$','5138049KDiJSp','search','27036bGAqig','338159qiemFU','status','instanceId','1670706VCxEsl','exit','constructor','897080mrXAKQ','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','toString','maka\x20aws:reboot-instance','10273392qybiTO','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','maka\x20aws:rbi','15qkFsQU','\x20Ready?','500cnNLyu'];a12c=function(){return k;};return a12c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':[a12i(0x19a)],'usage':a12i(0x1ae),'validOpts':[],'shortDesc':a12i(0x19f),'examples':[a12i(0x1ae),a12i(0x1b1)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0x19c)]();if(b?.[j(0x1a5)]==='running'){const c=await Actions[j(0x199)](j(0x1b0)+b[j(0x19d)]+j(0x194));c&&b[j(0x1a6)]?a[j(0x196)]({'instanceId':b[j(0x1a6)]}):Log['error'](j(0x1ac)+b[j(0x19d)]+j(0x198));}else Log[j(0x197)](j(0x1ab));}catch(d){d&&Log[j(0x197)](d),process[j(0x1a8)](0x1);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x13f;let f=c[d];return f;},a13d(a,b);}const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x160))/0x1*(parseInt(E(0x14f))/0x2)+-parseInt(E(0x151))/0x3+parseInt(E(0x173))/0x4+parseInt(E(0x145))/0x5*(parseInt(E(0x15e))/0x6)+-parseInt(E(0x166))/0x7*(parseInt(E(0x152))/0x8)+parseInt(E(0x174))/0x9+-parseInt(E(0x16e))/0xa*(-parseInt(E(0x15f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x9af00));function a13c(){const K=['PERSON','toString','Contact','apply','Person','contactType','COMPANY','exit','3379290LSzUIk','77qTKANY','152801zLfrjT','values','(((.+)+)+)+$','mail@example.com','Domain\x20name\x20is\x20unavailable','Are\x20you\x20sure?','28HGfnTL','Contact\x20First\x20Name\x20[Contact]:\x20','Address\x20Line\x202:\x20','OrganizationName','list','Zip\x20Code\x20[96816]:\x20','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','checkDomainAvailability','1524680CuCErS','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','domain','Auto\x20Renew:\x20','warn','3109544BlnKBx','2915613gmSuoj','State\x20[HI]:\x20','constructor','create','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','error','Contact\x20Email\x20[mail@example.com]:\x20','Country\x20Code\x20[US]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','ASSOCIATION','includes','123\x20Glorious\x20Way','register-domain-name','+1.5555555555','confirm','96816','5zeSfpt','rdn','Duration\x20in\x20years\x20[1]:\x20','+1.5555555556','Invalid\x202\x20character\x20country\x20code','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','ask','Do\x20you\x20wish\x20to\x20register\x20','Contact\x20Last\x20Name\x20[Person]:\x20','2ybPOjG','search','3427629MHtJDt','2214936OnpGmf','\x20/\x20Year)','RESELLER','PUBLIC_BODY'];a13c=function(){return K;};return a13c();}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x157)]()[G(0x150)](G(0x162))['toString']()[G(0x176)](a13a)[G(0x150)](G(0x162));});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 isValidCountryCode(a){const H=a13d;return Object[H(0x161)](CountryCode)[H(0x13f)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x177)]({'name':a13I(0x141),'aliases':[a13I(0x146)],'usage':'maka\x20aws:register-domain-name','requiredOpts':['domain'],'validOpts':[],'shortDesc':a13I(0x16c),'examples':[a13I(0x17c),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const J=a13I;try{const c=b[J(0x170)],d=new AWS(),{available:f,cost:g}=await d[J(0x16d)](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0x172)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[J(0x143)](J(0x14d)+c+'\x20?',![]);if(j){const k={'type':J(0x16a),'name':J(0x15b),'message':'Choose\x20contact\x20type','choices':[J(0x17d),J(0x15c),J(0x156),J(0x155),J(0x154)]},l=await Actions[J(0x14c)](J(0x147))||'1',m=await Actions['ask'](J(0x167))||J(0x158),n=await Actions[J(0x14c)](J(0x14e))||J(0x15a),{contactType:o}=await Actions['options'](k),p=await Actions[J(0x14c)](J(0x178))||J(0x140),q=await Actions[J(0x14c)](J(0x168)),r=await Actions[J(0x14c)](J(0x16b))||J(0x144),s=await Actions['ask'](J(0x175))||'HI',t=await Actions['ask'](J(0x17b))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x179)](J(0x149));const v=await Actions[J(0x14c)](J(0x14a))||J(0x142),w=await Actions['ask'](J(0x16f))||J(0x148),x=await Actions[J(0x14c)](J(0x17a))||J(0x163),y=await Actions[J(0x143)](J(0x171)),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!=='PERSON'){const C=await Actions[J(0x14c)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||'My\x20Comanpy,\x20LLC.';z[J(0x169)]=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0x14b)),Log[J(0x172)](A+'\x20'+i+'\x20for\x20'+l+'\x20years\x20('+h+'\x20'+i+J(0x153));const B=await Actions[J(0x143)](J(0x165));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw J(0x164);}catch(D){D&&Log[J(0x179)](D),process[J(0x15d)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x16f))/0x1*(-parseInt(h(0x17c))/0x2)+-parseInt(h(0x178))/0x3*(parseInt(h(0x17e))/0x4)+-parseInt(h(0x16c))/0x5*(-parseInt(h(0x168))/0x6)+parseInt(h(0x175))/0x7*(parseInt(h(0x171))/0x8)+parseInt(h(0x16e))/0x9*(parseInt(h(0x176))/0xa)+-parseInt(h(0x16d))/0xb*(-parseInt(h(0x174))/0xc)+-parseInt(h(0x16a))/0xd*(parseInt(h(0x166))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xf2898));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x165)]()[j(0x177)](j(0x17b))[j(0x165)]()['constructor'](a14a)[j(0x177)](j(0x17b));});function a14c(){const m=['51768PBpTeN','8673aTVeBV','10XqBchg','search','3dQiiVg','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Please\x20choose\x20a\x20key\x20to\x20delete:','(((.+)+)+)+$','2gVPpkF','remove-key-pair','2618448ooWogJ','forEach','ask','error','apply','success','confirm','ec2describeKeys','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','toString','231658ChRIwH','maka\x20aws:remove-key-pair','330vsBHvR','\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','1053zPFMUK','exit','167395Jxvkmd','3201gmboOC','8904915IEBWjq','1826335QtcRno','deleteKeyPair','4704SNhMsb','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','rkp'];a14c=function(){return m;};return a14c();}a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x15e;let f=c[d];return f;},a14d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14k(0x17d),'aliases':[a14k(0x173)],'usage':a14k(0x167),'validOpts':[],'shortDesc':a14k(0x164),'description':a14k(0x169),'examples':[a14k(0x167),'maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x163)]();let c=undefined;const d=await Actions[l(0x15e)](l(0x17a));b?.[l(0x17f)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x15f)](l(0x179));const f=await Actions[l(0x162)]('Deleting\x20a\x20'+c+l(0x172),![]);f?(await a[l(0x170)](c),Log[l(0x161)]('Deleted\x20'+c)):Log['error']('Not\x20deleting\x20keypair'),process[l(0x16b)](0x0);}catch(g){g&&Log['error'](g),process[l(0x16b)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(
|
|
1
|
+
const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x185))/0x1*(parseInt(l(0x161))/0x2)+parseInt(l(0x15e))/0x3+parseInt(l(0x182))/0x4*(-parseInt(l(0x16f))/0x5)+parseInt(l(0x183))/0x6+-parseInt(l(0x184))/0x7+parseInt(l(0x17e))/0x8*(-parseInt(l(0x172))/0x9)+parseInt(l(0x166))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd2d9e));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x170)]()['search'](n(0x168))[n(0x170)]()['constructor'](a15a)[n(0x176)]('(((.+)+)+)+$');});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';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x15e;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a15c(){const q=['27128gLWlIM','env','exit','inherit','48aXGBqd','2347980ZPoKpO','3119753fYYEcs','50227PySmJS','cat\x20','getMakaProjectConfig','getAppConfigPath','apply','3793689VKcGUc','utf8','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','40ZiQjlL','template','success','ssh.json','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','9136770YObUEw','sth','(((.+)+)+)+$','maka\x20aws:set-host\x20--env\x20dev','sep','privateIp','public','chooseInstance','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','475985enyoTV','toString','private','2979iwSVix','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','maka\x20aws:sth\x20--env\x20prod','fsi','search','maka\x20aws\x20set-host','error','isFile','join','host','readFileSync','ask'];a15c=function(){return q;};return a15c();}Command['create']({'name':'set-host','aliases':[a15o(0x167)],'usage':a15o(0x177),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0x17f)],'validOpts':[],'shortDesc':a15o(0x165),'description':a15o(0x160),'examples':[a15o(0x169),a15o(0x174)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x175)][p(0x188)](b[p(0x17f)]),f=this['fsi'][p(0x187)](),g=await c[p(0x16d)](),h=a15e['join'](d,p(0x164));!this['fsi'][p(0x179)](h)&&await this[p(0x175)][p(0x162)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON['parse'](a15f[p(0x17c)](h,p(0x15f))),j=await Actions[p(0x17d)](p(0x173))||p(0x16c);if(j){if(j===p(0x16c)||j===p(0x171)){if(j==='public')i[p(0x17b)]=g?.['publicIp'];else j===p(0x171)&&(i[p(0x17b)]=g?.[p(0x16b)]);}else throw p(0x16e);}else i[p(0x17b)]=g?.['privateIp'];a15f['writeFileSync'](a15e[p(0x17a)](d,p(0x164)),JSON['stringify'](i,null,0x2)),execSync(p(0x186)+a15e[p(0x17a)](d,'ssh.json'),{'stdio':p(0x181)}),Log[p(0x163)]('\x0aSaved\x20host\x20'+j+'\x20IP\x20to\x20'+d+a15e[p(0x16a)]+'ssh.json');}catch(k){k&&Log[p(0x178)](k),process[p(0x180)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x174))/0x1+-parseInt(f(0x184))/0x2+parseInt(f(0x16c))/0x3+parseInt(f(0x180))/0x4*(parseInt(f(0x183))/0x5)+-parseInt(f(0x173))/0x6*(parseInt(f(0x182))/0x7)+parseInt(f(0x16d))/0x8+-parseInt(f(0x16a))/0x9*(-parseInt(f(0x17d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xc6601));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(0x16f)]()[g(0x176)](g(0x172))['toString']()[g(0x177)](a16a)['search'](g(0x172));});a16a();function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x165;let f=c[d];return f;},a16d(a,b);}function a16c(){const j=['There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','1615473xrwMDM','12026584yWFHvr','terminate-instance','toString','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','maka\x20aws:terminate-instance','(((.+)+)+)+$','7066554WXrOlY','1145840kSVtSP','exit','search','constructor','status','\x20Ready?','ec2terminateInstance','name','\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','5392610XKFaBn','instanceId','maka\x20aws:ti','748872nIyEXs','Terminate\x20an\x20EC2\x20instance','7DUzgwi','30ikEKjd','2215000HeLhnE','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','running','chooseInstance','confirm','error','18atYhKC'];a16c=function(){return j;};return a16c();}import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a16h(0x16e),'aliases':['ti'],'usage':a16h(0x171),'validOpts':[],'shortDesc':a16h(0x181),'description':a16h(0x17c),'examples':['maka\x20aws:terminate-instance',a16h(0x17f)]},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0x167)]();if(b?.[i(0x17e)]&&b?.[i(0x178)]===i(0x166)){const c=await Actions[i(0x168)](i(0x170)+b[i(0x17b)]+i(0x179));c?a[i(0x17a)]({'instanceId':b[i(0x17e)]}):Log['error'](i(0x165)+b[i(0x17b)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[i(0x169)](i(0x16b));}catch(d){d&&Log[i(0x169)](d),process[i(0x175)](0x1);}},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(0x128))/0x1*(-parseInt(f(0x12c))/0x2)+parseInt(f(0x12d))/0x3*(parseInt(f(0x126))/0x4)+-parseInt(f(0x131))/0x5+parseInt(f(0x132))/0x6*(parseInt(f(0x125))/0x7)+-parseInt(f(0x12f))/0x8+-parseInt(f(0x133))/0x9*(parseInt(f(0x127))/0xa)+parseInt(f(0x12e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xef42c));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(0x12a)]()[g(0x129)](g(0x130))[g(0x12a)]()[g(0x12b)](a17a)[g(0x129)](g(0x130));});function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x125;var f=c[d];return f;},a17d(a,b);}function a17c(){var h=['341xEzVGH','search','toString','constructor','8108IwxYxy','24QvbmlF','35126432LVLwVw','11649040vdQvSE','(((.+)+)+)+$','1466815MKDNHb','6ImYPuG','4351527dJhqIP','649747oFEReF','896396CYtyqj','20ATvxTl'];a17c=function(){return h;};return a17c();}a17a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=parseInt(n(0x173))/0x1*(parseInt(n(0x177))/0x2)+-parseInt(n(0x180))/0x3+-parseInt(n(0x15f))/0x4+parseInt(n(0x183))/0x5*(-parseInt(n(0x176))/0x6)+parseInt(n(0x170))/0x7+parseInt(n(0x182))/0x8*(parseInt(n(0x15e))/0x9)+-parseInt(n(0x165))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xee96d));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x17f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0x17b)]()[p(0x16b)](p(0x160))[p(0x17b)]()['constructor'](a18a)[p(0x16b)]('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x15e;let f=c[d];return f;},a18d(a,b);}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';function a18c(){const t=['force','8393848QMBrly','50UHpIEX','--force','argv',').\x20Update?','autoupdate','9iaXWJU','2101092upObvS','(((.+)+)+)+$','--release','invokeMeteorCommand',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','build','9225710xuCIcb','getGlobalMeteorVersion','Aborted.','This\x20project\x27s\x20meteor\x20version\x20(','\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','update','search','getProjectMeteorVersion','slice','existsSync','join','13565853zZlpWC','app.tar.gz','confirm','14ijbHSb','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','pathFromProject','564258UMetwE','111292MFALxF','forEach','fsi','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','toString','maka\x20build','checkMeteorPackage','error','apply','1202157ytzKJR'];a18c=function(){return t;};return a18c();}const BuildCommand=Command['create']({'name':a18q(0x164),'usage':'maka\x20build','validOpts':[a18q(0x181)],'aliases':['b'],'shortDesc':a18q(0x17a),'mustBeInMakaProject':!![],'description':a18q(0x169),'examples':[a18q(0x17c)]},async function(a,b){const r=a18q;try{await this['fsi'][r(0x17d)](r(0x187),{'shouldInstall':!![]});const c=b[r(0x181)];if(!c){const g=this[r(0x179)][r(0x166)](),h=this[r(0x179)][r(0x16c)](),i=a18g['gt'](g,h);if(i){const j=await Actions[r(0x172)](r(0x168)+h+r(0x163)+g+r(0x186));j&&this['fsi'][r(0x162)](r(0x16a),[r(0x161),g]);}}const d=[this['fsi'][r(0x175)]({'pathParts':['build']})]['concat'](process[r(0x185)][r(0x16d)](0x3)),f=a18e[r(0x16f)](this[r(0x179)][r(0x175)]({}),r(0x164),r(0x171));if(a18f[r(0x16e)](f)){const k=c??await Actions['confirm'](r(0x174));if(!k)throw Log[r(0x17e)](r(0x167));}d[r(0x178)]((l,m)=>{const s=r;l===s(0x184)&&d['splice'](m,0x2);}),this['fsi'][r(0x162)](r(0x164),d);}catch(l){console[r(0x17e)](l),process['exit'](0x0);}});export default BuildCommand;
|