@maka/maka-cli 4.7.22 → 4.7.24
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 +2 -0
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/README.md +2 -0
- 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/.maka/history.json +1 -0
- 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
|
@@ -9,6 +9,8 @@ NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
|
9
9
|
|
|
10
10
|
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
11
|
|
|
12
|
+
If you like Maka-CLI, consider buying me a [coffee](https://www.buymeacoffee.com/makacli)! ☕️
|
|
13
|
+
|
|
12
14
|
## Installation
|
|
13
15
|
```
|
|
14
16
|
npm i -g @maka/maka-cli
|
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.24",
|
|
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
|
@@ -9,6 +9,8 @@ NodeJS backed applications deployed to on-prem and cloud-based infrastructures.
|
|
|
9
9
|
|
|
10
10
|
Please visit www.maka-cli.com for more information and documentation as well as examples and tutorials.
|
|
11
11
|
|
|
12
|
+
If you like Maka-CLI, consider buying me a [coffee](https://www.buymeacoffee.com/makacli)! ☕️
|
|
13
|
+
|
|
12
14
|
## Installation
|
|
13
15
|
```
|
|
14
16
|
npm i -g @maka/maka-cli
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0p=a0d;(function(a,b){const m=a0d,c=a();while(!![]){try{const d=parseInt(m(0xe6))/0x1*(parseInt(m(0xb7))/0x2)+parseInt(m(0xef))/0x3+parseInt(m(0xfd))/0x4+parseInt(m(0xd5))/0x5+parseInt(m(0xc1))/0x6*(-parseInt(m(0xe2))/0x7)+parseInt(m(0xe7))/0x8*(-parseInt(m(0xec))/0x9)+-parseInt(m(0xd8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xd742f));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0xc6)]()['search'](o(0xdb))[o(0xc6)]()[o(0xd4)](a0a)['search'](o(0xdb));});a0a();function a0c(){const z=['_commands','apply','tableList','create','error','Command.create\x20requires\x20some\x20options!','7VBxdAE','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','options','Description','63895FiKMhj','3452496ItIvfT','mustHaveMeteorInstalled','maxArgLength','assign','push','18WRGGKe','maybeProxyCommandToMeteor','mustBeInMakaProject','3895494AZmPRb','minOptsLength','Alias','pallet','invoke','notice','Name','help','fsi','Sub-Commands:','setColorMode','keys','slice','Too\x20many\x20arguments','1023920TgOkat','validateParams','processAndRunCommand','number','bright','10eRvbEy','function','split','join','generate','minArgLength','bind','shortDesc','addCommand\x20requires\x20a\x20Command\x20instance','Too\x20few\x20options','3652548AcuXFA','Please\x20run\x20\x22maka\x20install\x20meteor\x22','sort','light','Command\x20requires\x20a\x20name','toString','validateMeteorInstall','validateMakaSubscription','_handler','length','match','LIGHT','header','run','name','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Command\x20not\x20found','find','murder','constructor','3595935pbsNXQ','Command\x20format\x20is\x20incorrect','Too\x20few\x20arguments','2395470KRvrjj','exit','play','(((.+)+)+)+$'];a0c=function(){return z;};return a0c();}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xb3;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0xe4)];['_commands'];constructor(a,b){const q=a0p;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[q(0xcf)])throw new Error(q(0xc5));if(typeof b!==q(0xb8))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[q(0xe4)]=Object[q(0xea)]({},a),this[q(0xcf)]=this[q(0xe4)][q(0xcf)],this[q(0xdc)]=[],this['_handler']=b[q(0xbd)](this);}static[a0p(0xdf)](a,b,c){const r=a0p;if(!a)throw new Error(r(0xe1));if(typeof b!==r(0xb8))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[r(0xea)](d,{'parent':c?.[r(0xe4)]?.[r(0xcf)]}),c['addCommand'](d),d;}['addCommand'](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xbf));this[s(0xdc)][s(0xeb)](a);}async['run'](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0xf7)]['getGlobalConfig'](),d=c[t(0xf2)]===t(0xc4)?ColorMode[t(0xcc)]:ColorMode['DARK'];Log[t(0xf9)](d),await this[t(0xc8)](this);}catch(f){Log['error'](f),process[t(0xd9)](0x0);}await this['invoke'](a,b);}catch(g){process[t(0xd9)](0x1);}}async[a0p(0xf3)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[u(0xe4)][u(0xcf)]!==u(0xbb)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[u(0xdc)]['length']>=0x0,g=b[u(0xf6)]||b['h'];if(f&&g){if(this[u(0xdc)][u(0xca)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][u(0xee)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this['options'][u(0xe8)]){const i=this[u(0xc7)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[u(0xe4)][u(0xbc)]==='number'){if(a[u(0xca)]<this[u(0xe4)][u(0xbc)]){Log[u(0xe0)](u(0xd7));throw new UsageError();}}if(typeof this[u(0xe4)][u(0xe9)]===u(0xb5)){if(a[u(0xca)]>=this[u(0xe4)][u(0xe9)]){Log[u(0xe0)](u(0xfc));throw new UsageError();}}if(typeof this['options'][u(0xf0)]==='number'){if(Object['keys'](b)['length']<this[u(0xe4)][u(0xf0)]){Log['error'](u(0xc0));throw new UsageError();}}if(typeof this[u(0xe4)]['maxOptsLength']==='number'){if(Object[u(0xfa)](b)[u(0xca)]>=this[u(0xe4)]['maxOptsLength']){Log[u(0xe0)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[u(0xb3)](a,b,this['options']),_prevCmd=a[0x0];}await this[u(0xc9)]['call'](this,a,b);}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice'](u(0xf8)),this[u(0xde)](this['_commands']),Log[u(0xcd)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(j instanceof MustBeInProjectError)Log['error'](u(0xe3));else{if(j instanceof NoMeteorFoundError)Log[u(0xe0)](u(0xd0)),Log[u(0xf4)](u(0xc2));else j instanceof NoMeteorAppFoundError&&Log[u(0xe0)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}process[u(0xd9)](0x1);}}['tableList'](a){const v=a0p,b=new a0e({});b[v(0xeb)]([v(0xf5),v(0xf1),v(0xe5)]),a[v(0xc3)]((c,d)=>{const w=v;return c[w(0xcf)]['localeCompare'](d['name']);})['forEach'](c=>{const x=v;c[x(0xcf)]!==x(0xd3)&&c[x(0xcf)]!==x(0xda)&&b[x(0xeb)]([c['name'],c['aliases'](),c[x(0xbe)]()]);}),Log[v(0xb6)](b[v(0xc6)]());}async[a0p(0xb4)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0xb9)](':');if(!d||d[y(0xca)]===0x0)throw y(0xd6);if(d[0x0]===y(0xbb)||d[0x0]==='g'&&d[y(0xca)]>0x1){const h=this[y(0xdc)][y(0xd2)](j=>j[y(0xcb)]('generate'));if(!h)throw y(0xd1);await this['validateMakaSubscription'](h);const i=d[y(0xfb)](0x1)[y(0xba)](':');b['unshift'](i),await h[y(0xce)](b,c);return;}let f=this[y(0xdc)],g;for(const j of d){g=f[y(0xd2)](k=>k[y(0xcb)](j));if(!g)try{await this[y(0xf7)][y(0xed)]();}catch(k){throw'Command\x20'+j+'\x20not\x20found';}g&&(await this['validateMakaSubscription'](g),f=g[y(0xdc)]);}if(g)await g[y(0xce)](b,c);else throw y(0xd1);}catch(l){Log[y(0xe0)](l),process[y(0xd9)](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(0xf3))/0x1*(-parseInt(f(0xf2))/0x2)+parseInt(f(0xed))/0x3+-parseInt(f(0xf6))/0x4+parseInt(f(0xf4))/0x5+parseInt(f(0xeb))/0x6+parseInt(f(0xf5))/0x7+-parseInt(f(0xef))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x32d56));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xf1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xf7)]()[h(0xec)](h(0xee))['toString']()[h(0xf0)](a1a)[h(0xec)](h(0xee));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xeb;var f=c[d];return f;},a1d(a,b);}import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';function a1c(){var i=['13392WwshFs','12pOKnyc','682355KBbkdT','1962800RFcmtC','28160QQsiaD','toString','911166aOZxuo','search','42930twjzbW','(((.+)+)+)+$','2299488CMUICU','constructor','apply'];a1c=function(){return i;};return a1c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x129))/0x1+parseInt(h(0x13a))/0x2*(parseInt(h(0x148))/0x3)+-parseInt(h(0x13d))/0x4*(parseInt(h(0x138))/0x5)+parseInt(h(0x150))/0x6*(-parseInt(h(0x14f))/0x7)+-parseInt(h(0x13b))/0x8*(parseInt(h(0x144))/0x9)+parseInt(h(0x131))/0xa*(-parseInt(h(0x13e))/0xb)+parseInt(h(0x139))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xa2e37));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(0x12d)]()[i(0x12e)](i(0x151))[i(0x12d)]()[i(0x13c)](a2a)[i(0x12e)](i(0x151));});a2a();function a2c(){const n=['4749577dZikFW','6QruXuf','(((.+)+)+)+$','data','toLowerCase','exit','32496dcYNVC','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','openai','stdout','toString','search','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','GPT:\x20','10Ylobna','getGlobalConfig','choices','fsi','text','You:\x20','log','38245wUjTzc','31987416BKbKsY','4cPFBOO','32HqXdTr','constructor','284AskrKx','8030869UIifoU','parse','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','notice','question','error','765117rvwJim','cacert','stdin','askGPT','391197LZCdJC','Using\x20CA\x20Cert\x20','message','openapikey','cert','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','isFile'];a2c=function(){return n;};return a2c();}function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x127;let f=c[d];return f;},a2d(a,b);}import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e['createInterface']({'input':process[j(0x146)],'output':process[j(0x12c)]});c[j(0x142)](j(0x136),async d=>{const k=j;if(d[k(0x127)]()===k(0x128)){c['close']();return;}try{const e=await HTTPS[k(0x147)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x13f)](e[k(0x152)]);if(f[k(0x143)])throw new Error(f[k(0x143)][k(0x14a)]);Log['bright'](k(0x130)+f?.[k(0x133)][0x0]?.[k(0x135)]['trim']());}catch(g){Log[k(0x143)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2l(0x145),'openapikey'],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0x145)]&&(this[m(0x134)][m(0x14e)](b[m(0x145)])?(c=b[m(0x145)],Log[m(0x141)](m(0x149)+c)):Log[m(0x143)](m(0x12f)+c));const d=await this['fsi'][m(0x132)]();if(d['cert']){if(this[m(0x134)][m(0x14e)](d[m(0x14c)]))c=d[m(0x14c)];else throw Log[m(0x143)](m(0x12a)+c);}let f='';if(b[m(0x14b)])f=b['openapikey'],Log[m(0x141)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[m(0x12b)])f=d['openai'];else throw Log[m(0x143)](m(0x140));}console[m(0x137)](m(0x14d)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x143)](g),process[m(0x128)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x113))/0x1+parseInt(f(0x11b))/0x2*(-parseInt(f(0x119))/0x3)+parseInt(f(0x115))/0x4*(-parseInt(f(0x111))/0x5)+-parseInt(f(0x11d))/0x6+parseInt(f(0x11f))/0x7+-parseInt(f(0x116))/0x8*(-parseInt(f(0x11a))/0x9)+parseInt(f(0x114))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x51f84));function a3c(){var i=['search','3737706vdrWsz','(((.+)+)+)+$','1955037DbjAfa','5AWfwZD','apply','459348SBJLyP','19149670ycoPHU','1776044AWEbFY','78440AxdzeW','constructor','toString','3icNRhr','81Ppwcmb','840890mVaOvy'];a3c=function(){return i;};return a3c();}var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x118)]()[h(0x11c)](h(0x11e))[h(0x118)]()[h(0x117)](a3a)[h(0x11c)](h(0x11e));});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';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x111;var f=c[d];return f;},a3d(a,b);}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x191))/0x1*(-parseInt(f(0x199))/0x2)+parseInt(f(0x193))/0x3*(parseInt(f(0x196))/0x4)+-parseInt(f(0x18f))/0x5*(-parseInt(f(0x194))/0x6)+-parseInt(f(0x190))/0x7+-parseInt(f(0x18c))/0x8+-parseInt(f(0x192))/0x9+parseInt(f(0x195))/0xa*(parseInt(f(0x189))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x75c8d));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x198)]()[h(0x19a)](h(0x18b))['toString']()[h(0x18a)](a4a)[h(0x19a)](h(0x18b));});a4a();function a4c(){const j=['30CDdTpg','1594621ioJlvH','1697AvjnrG','3744774HxvrMI','27YcAMsW','113262coTDRX','418580jWKOZD','182684BdYgHI','create','toString','34vMRzOK','search','\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','209vuroWU','constructor','(((.+)+)+)+$','1776944mkubrT','maka\x20aws:<sub-command>','apply'];a4c=function(){return j;};return a4c();}import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x189;let f=c[d];return f;},a4d(a,b);}import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x197)]({'name':'aws','usage':a4i(0x18d),'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4i(0x19b)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0xe6))/0x1*(parseInt(i(0xf6))/0x2)+-parseInt(i(0xe5))/0x3+parseInt(i(0xef))/0x4*(-parseInt(i(0xe0))/0x5)+parseInt(i(0xdc))/0x6+parseInt(i(0xeb))/0x7*(-parseInt(i(0xf2))/0x8)+-parseInt(i(0xe4))/0x9*(parseInt(i(0xe2))/0xa)+parseInt(i(0xec))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xdbb8c));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0xf5)]()[k(0xea)](k(0xf8))[k(0xf5)]()[k(0xdf)](a5a)[k(0xea)](k(0xf8));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xda;let f=c[d];return f;},a5d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';function a5c(){const n=['domain','maka\x20aws:create-hosted-zone','constructor','40ooNCjx','error','65690NgciYI','confirm','171AmuNgp','4289178pqYEBh','95013Upppwv','route53CreateHostedZone','publicIp','linkEC2ToRoute53','search','7861FEiJbu','46110603Zbzsfc','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','create','23628ZPgQPo','chz','create-hosted-zone','9488nClmqc','Instance\x20not\x20found','exit','toString','28Ydzksr','Set\x20hosted\x20zone\x20to\x20an\x20instance?','(((.+)+)+)+$','maka\x20aws:create-hosted-zone\x20--domain=example.com','apply','5831760VZZfin'];a5c=function(){return n;};return a5c();}import{Log}from'../../tools/log/log.class.js';Command[a5l(0xee)]({'name':a5l(0xf1),'aliases':[a5l(0xf0)],'usage':a5l(0xde),'requiredOpts':[a5l(0xdd)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a5l(0xda),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b['domain'],d=new AWS();d[m(0xe7)](c);const f=await Actions[m(0xe3)](m(0xf7));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0xe8)])throw Log[m(0xe1)](m(0xed));d[m(0xe9)](g['id'],g[m(0xe8)],c);}else throw m(0xf3);}}catch(h){h&&Log[m(0xe1)](h),process[m(0xf4)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x189))/0x1*(-parseInt(ae(0x19d))/0x2)+parseInt(ae(0x180))/0x3*(parseInt(ae(0x17a))/0x4)+-parseInt(ae(0x17e))/0x5*(-parseInt(ae(0x1ae))/0x6)+parseInt(ae(0x188))/0x7+parseInt(ae(0x183))/0x8+parseInt(ae(0x17c))/0x9*(parseInt(ae(0x179))/0xa)+-parseInt(ae(0x1c7))/0xb*(parseInt(ae(0x1cb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xce7d8));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x1a2)]()[ag(0x1dc)]('(((.+)+)+)+$')[ag(0x1a2)]()['constructor'](a6a)[ag(0x1dc)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x179;let f=c[d];return f;},a6d(a,b);}import{execSync}from'child_process';function a6c(){const au=['22,80,443','Setting\x20SG\x20ID\x20to:\x20','create','2078496JQzdSc','19qaidoi','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','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','log','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','join','1:1','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','name','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\x20AMIID:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','apply','getAppConfigPath','getTime','Remove\x20the\x20security\x20group\x20','45434eGLtsH','forEach','Creating\x20user\x20data\x20file\x20in\x20','push','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','toString','amazon','user-data','getMakaProjectConfig','error','sort','create-instance','subnet','ID:\x20','Security\x20Group\x20Name:\x20[','Please\x20choose\x20a\x20key\x20to\x20use:\x20','alias','5664QOYEaw','chooseVPC','\x20DESCRIPTION:\x20','desc','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','fsi','subnetId','sgId','string','EC2\x20Name:\x20[','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','\x20AZONE:\x20','**\x20Available\x20Subnets\x20**','Desc','bright','notice','\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','Instace\x20Type:\x20','ask','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','**\x20Available\x20AMIs\x20**','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\x20CIDR:\x20','confirm','deleteKeyPair','41690mJCdam','isFile','\x20:\x20','parse','4620LvMRWc','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ec2describeKeys','Security\x20Group:\x20','success','**\x20Available\x20key-pairs\x20**','date','ec2createSG','number','maka\x20aws:create-instance\x20--env\x20dev','Name','cider','build\x20on\x20','maka-cli','Web\x20App','maka\x20aws:ci\x20--env\x20prod','created-by','search','getSecurityGroups','Subnet:\x20','maka\x20aws:create-instance','Remove\x20the\x20keypair\x20','deleteSecurityGroup','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','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=*','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','No\x20instance\x20has\x20been\x20created.','Setting\x20AMI\x20ID\x20to\x20','amiId','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','createFile','readFileSync','1370TKyiCY','1010776QGkKgT','\x20SUBNETID:\x20','72783umwxYa','Setting\x20the\x20key-pair\x20to:\x20','3145uYkOVB','Instance\x20Count:\x20','6frWXbM','cidr','User\x20Data:','1860368YBXTUb','ImageID:'];a6c=function(){return au;};return a6c();}import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x187)]({'name':a6ah(0x1a8),'aliases':['ci'],'usage':a6ah(0x1df),'examples':[a6ah(0x1d4),a6ah(0x1da)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0x1be)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x1b3)][ai(0x1a5)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1b3)]['getConfigFromShorthand'](b['env']),i=this['fsi'][ai(0x19a)](h),j=g+'-'+h,k=await Actions[ai(0x1c0)](ai(0x1b7)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1c5)](ai(0x1c3),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x1cf)](ai(0x17d)+r);}else try{Log[ai(0x1bd)](ai(0x1d0));const A=r?r:k,B=await d[ai(0x1cd)]({'suggestion':A}),C=await Actions[ai(0x1c0)](ai(0x1ac))||'-1';if(parseInt(C)<0x0){Log[ai(0x1a6)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log['notice'](ai(0x1e5));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x195)],Log['success'](aj(0x17d)+r));});}catch(D){Log[ai(0x1a6)](D);}l=await d[ai(0x1af)]();const t=await Actions[ai(0x1c5)](ai(0x1e2),!![]);let u;if(t){const E=l===''?await d[ai(0x1af)]():l;u=await Actions[ai(0x1c0)](ai(0x1ab)+k+']')||k;const F=await Actions[ai(0x1c0)](ai(0x196))||ai(0x185),G=F['split'](',');await d[ai(0x1d2)]({'description':ai(0x1d9),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1dd)](u);if(I===''){Log[ai(0x1bd)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x19e)](function(L){const ak=ai;L[ak(0x195)]===u?Log[ak(0x1bd)](ak(0x1aa)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x195)]+'\x20SGID:\x20'+L[ak(0x1b5)]):Log[ak(0x1bc)](ak(0x1aa)+L['id']+'\x20SG\x20NAME:\x20'+L['name']+'\x20SGID:\x20'+L[ak(0x1b5)]);});const K=await Actions[ai(0x1c0)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x1a2)]();J[ai(0x19e)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1b5)],Log[al(0x1cf)](al(0x186)+m+'\x0a'));});}else m=I,Log['success'](ai(0x186)+m+'\x0a');if(m==='')throw Log[ai(0x1a6)](ai(0x1cc));}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x1bd)](ai(0x1c2));const N=execSync(ai(0x1e3)+M+ai(0x18b))['toString'](),O=JSON[ai(0x1ca)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x1ad)]===am(0x1a3)){const T=S[am(0x1bb)][am(0x18a)](am(0x1d7))[0x1];P[am(0x1a0)]({'amiId':S['ID'],'desc':S[am(0x1bb)],'date':T});}}),P[ai(0x1a7)](function(S,T){const an=ai;return new Date(T[an(0x1d1)])['getTime']()-new Date(S[an(0x1d1)])[an(0x19b)]();}),P[ai(0x19e)](function(S,T){const ao=ai;Q[ao(0x1a0)]({'id':T,'amiId':S[ao(0x1e7)],'desc':S[ao(0x1b1)]});}),Q['forEach'](function(S){const ap=ai;console[ap(0x18d)](ap(0x1aa)+S['id']+ap(0x197)+S[ap(0x1e7)]+ap(0x1b0)+S[ap(0x1b1)]);});const R=await Actions[ai(0x1c0)](ai(0x192))||'0';Q[ai(0x19e)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1e7)],Log[aq(0x1cf)](aq(0x1e6)+n+aq(0x1c9)+S['desc']));});if(n==='')throw Log[ai(0x1a6)](ai(0x1cc));}catch(S){Log[ai(0x1a6)](S);}try{Log['notice'](ai(0x1ba));const T=execSync(ai(0x18e))['toString'](),U=JSON[ai(0x1ca)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x1a0)]({'id':Y,'cidr':X[ar(0x1d6)],'az':X['az'],'subnetId':X[ar(0x1b4)]});}),V[ai(0x19e)](function(X){const as=ai;console[as(0x18d)](as(0x1aa)+X['id']+as(0x1c4)+X[as(0x181)]+as(0x1b9)+X['az']+as(0x17b)+X['subnetId']);});const W=await Actions[ai(0x1c0)](ai(0x1a1))||'0';V[ai(0x19e)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1b4)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error'](ai(0x1cc));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1c0)](ai(0x193))||ai(0x190),Z=Y['split'](':')[0x0],a0=Y[ai(0x18a)](':')[0x1];typeof parseInt(Z)===ai(0x1d3)&&typeof parseInt(a0)==='number'&&Log['success'](ai(0x191)+Z+':'+a0);}catch(a1){Log[ai(0x1a6)](a1);}try{const a2=await Actions[ai(0x1c0)](ai(0x1c1))||'t3.micro';typeof a2===ai(0x1b6)&&(o=a2);}catch(a3){Log[ai(0x1a6)](a3);}let x='';try{const a4=await Actions[ai(0x1c5)](ai(0x198),![]);a4&&(x=a6f[ai(0x18f)](i,ai(0x1a4)),Log['notice'](ai(0x19f)+x),await this[ai(0x1b3)][ai(0x1e9)]({'filePath':x,'data':''}),await Actions[ai(0x1c5)](ai(0x18c)));}catch(a5){Log[ai(0x1a6)](a5);}try{const a6=JSON['parse'](execSync(ai(0x1b2)+p+ai(0x194))[ai(0x1a2)]())[0x0][ai(0x1a9)];Log[ai(0x1bd)](ai(0x184)+n),Log['notice'](ai(0x17f)+v+':'+w),Log[ai(0x1bd)](ai(0x1bf)+o),Log[ai(0x1bd)]('Key-Pair:\x20'+r),Log[ai(0x1bd)](ai(0x1ce)+m),Log[ai(0x1bd)](ai(0x1de)+a6);if(x){Log[ai(0x1bd)](ai(0x182)+x);const a8=a6g[ai(0x1ea)](x)['toString']();Log[ai(0x1bd)](a8);}const a7=await Actions[ai(0x1c5)](ai(0x1b8));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1db),'Value':ai(0x1d8)},{'Key':'environment','Value':h},{'Key':ai(0x1d5),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1cf)](ai(0x1e8)),Log[ai(0x1bc)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x1bd)](ai(0x1e4));const aa=await Actions[ai(0x1c5)](ai(0x1e0)+r+'\x20?',!![]);aa&&(d[ai(0x1c6)](r),f[ai(0x1c8)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ai(0x1c5)](ai(0x19c)+m+'\x20?',!![]);ab&&d[ai(0x1e1)](m);}}catch(ac){Log[ai(0x1a6)](ac);}}catch(ad){ad&&Log[ai(0x1a6)](ad),process['exit'](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x1d0))/0x1+parseInt(ae(0x1bb))/0x2+-parseInt(ae(0x1fb))/0x3*(-parseInt(ae(0x1e9))/0x4)+-parseInt(ae(0x1ab))/0x5+-parseInt(ae(0x1ba))/0x6*(parseInt(ae(0x1c6))/0x7)+-parseInt(ae(0x202))/0x8*(-parseInt(ae(0x1f1))/0x9)+parseInt(ae(0x1bf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9f8fe));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x1f2)]()[ag(0x19e)](ag(0x1c0))[ag(0x1f2)]()[ag(0x1b3)](a6a)['search'](ag(0x1c0));});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-0x197;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';function a6c(){const au=['getTime','apply','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','exit','203bUkMOz','Security\x20Group:\x20','cider','ask','env','Creating\x20user\x20data\x20file\x20in\x20','create-instance','\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','amiId','confirm','974363BYRVFx','split','Setting\x20SG\x20ID\x20to:\x20','subnetId','date','created-by','createFile','log','t3.micro','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','No\x20instance\x20has\x20been\x20created.','\x20CIDR:\x20','join','success','ec2create','\x20SG\x20NAME:\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','unlinkSync','maka-cli','sgId','EC2\x20Name:\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=*','**\x20Available\x20Subnets\x20**','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','desc','12308vKKaOc','Desc','number','Setting\x20the\x20key-pair\x20to:\x20','string','user-data','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','*\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','212697rryyKx','toString','Remove\x20the\x20security\x20group\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','maka\x20aws:create-instance','create','push','chooseVPC','deleteSecurityGroup','\x20SGID:\x20','51DytZVO','User\x20Data:','error','alias','**\x20Available\x20AMIs\x20**','Web\x20App','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','88HdGvqP','Instace\x20Type:\x20','ImageID:','Name','forEach','**\x20Available\x20key-pairs\x20**','build\x20on\x20','\x20AZONE:\x20','getMakaProjectConfig','cidr','search','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Subnet:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','getSecurityGroups','ID:\x20','amazon','name','getAppConfigPath','\x20DESCRIPTION:\x20','notice','deleteKeyPair','204400XZVPnz','maka\x20aws:create-instance\x20--env\x20dev','Remove\x20the\x20keypair\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','\x20:\x20','22,80,443','subnet','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','constructor','getConfigFromShorthand','**\x20Available\x20Security\x20Groups\x20**','ec2createSG','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','sort','233040UozcGY','689262yMInAm','isFile','\x20AMIID:\x20','parse','21382660yZblZQ','(((.+)+)+)+$','fsi'];a6c=function(){return au;};return a6c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x1f6)]({'name':a6ah(0x1cc),'aliases':['ci'],'usage':a6ah(0x1f5),'examples':[a6ah(0x1ac),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0x1cd)},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0x19c)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1c1)][ai(0x1b4)](b[ai(0x1ca)]),i=this[ai(0x1c1)][ai(0x1a7)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x1e4)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1cf)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log['success'](ai(0x1ec)+r);}else try{Log[ai(0x1a9)](ai(0x199));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1fd)](ai(0x201)),Log[ai(0x1a9)](ai(0x1da));return;}B?.[ai(0x198)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x1a6)],Log['success'](aj(0x1ec)+r));});}catch(D){Log[ai(0x1fd)](D);}l=await d[ai(0x1f8)]();const t=await Actions[ai(0x1cf)](ai(0x1d9),!![]);let u;if(t){const E=l===''?await d[ai(0x1f8)]():l;u=await Actions[ai(0x1c9)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x1c9)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ai(0x1b0),G=F['split'](',');await d[ai(0x1b6)]({'description':ai(0x200),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1a3)](u);if(I===''){Log[ai(0x1a9)](ai(0x1b5)),J[ai(0x198)](function(L){const ak=ai;L[ak(0x1a6)]===u?Log[ak(0x1a9)](ak(0x1a4)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1a6)]+ak(0x1fa)+L[ak(0x1e3)]):Log['bright'](ak(0x1a4)+L['id']+ak(0x1df)+L['name']+'\x20SGID:\x20'+L[ak(0x1e3)]);});const K=await Actions[ai(0x1c9)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x1f2)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x1dd)](al(0x1d2)+m+'\x0a'));});}else m=I,Log[ai(0x1dd)](ai(0x1d2)+m+'\x0a');if(m==='')throw Log[ai(0x1fd)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x1a9)](ai(0x1ff));const N=execSync(ai(0x1e5)+M+ai(0x1f0))[ai(0x1f2)](),O=JSON[ai(0x1be)](N),P=[],Q=[];O[ai(0x198)](function(S){const am=ai;if(S[am(0x1fe)]===am(0x1a5)){const T=S[am(0x1ea)][am(0x1d1)](am(0x19a))[0x1];P[am(0x1f7)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x1b9)](function(S,T){const an=ai;return new Date(T['date'])[an(0x1c2)]()-new Date(S[an(0x1d4)])['getTime']();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x1f7)]({'id':T,'amiId':S[ao(0x1ce)],'desc':S[ao(0x1e8)]});}),Q[ai(0x198)](function(S){const ap=ai;console[ap(0x1d7)](ap(0x1a4)+S['id']+ap(0x1bd)+S[ap(0x1ce)]+ap(0x1a8)+S[ap(0x1e8)]);});const R=await Actions['ask'](ai(0x1b8))||'0';Q[ai(0x198)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1ce)],Log[aq(0x1dd)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x1af)+S[aq(0x1e8)]));});if(n==='')throw Log[ai(0x1fd)](ai(0x1ef));}catch(S){Log[ai(0x1fd)](S);}try{Log[ai(0x1a9)](ai(0x1e6));const T=execSync(ai(0x1c4))['toString'](),U=JSON['parse'](T),V=[];U[ai(0x198)](function(X,Y){const ar=ai;V[ar(0x1f7)]({'id':Y,'cidr':X[ar(0x1c8)],'az':X['az'],'subnetId':X[ar(0x1d3)]});}),V[ai(0x198)](function(X){const as=ai;console[as(0x1d7)](as(0x1a4)+X['id']+as(0x1db)+X[as(0x19d)]+as(0x19b)+X['az']+'\x20SUBNETID:\x20'+X[as(0x1d3)]);});const W=await Actions[ai(0x1c9)](ai(0x1f4))||'0';V[ai(0x198)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1d3)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x1fd)](ai(0x1ef));}catch(X){Log[ai(0x1fd)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1c9)](ai(0x1ae))||'1:1',Z=Y[ai(0x1d1)](':')[0x0],a0=Y[ai(0x1d1)](':')[0x1];typeof parseInt(Z)===ai(0x1eb)&&typeof parseInt(a0)===ai(0x1eb)&&Log['success'](ai(0x1e7)+Z+':'+a0);}catch(a1){Log[ai(0x1fd)](a1);}try{const a2=await Actions[ai(0x1c9)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0x1d8);typeof a2===ai(0x1ed)&&(o=a2);}catch(a3){Log[ai(0x1fd)](a3);}let x='';try{const a4=await Actions[ai(0x1cf)](ai(0x1a1),![]);a4&&(x=a6f[ai(0x1dc)](i,ai(0x1ee)),Log['notice'](ai(0x1cb)+x),await this[ai(0x1c1)][ai(0x1d6)]({'filePath':x,'data':''}),await Actions[ai(0x1cf)](ai(0x1b7)));}catch(a5){Log[ai(0x1fd)](a5);}try{const a6=JSON['parse'](execSync(ai(0x1b2)+p+ai(0x19f))[ai(0x1f2)]())[0x0][ai(0x1b1)];Log[ai(0x1a9)](ai(0x204)+n),Log[ai(0x1a9)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x1a9)](ai(0x203)+o),Log[ai(0x1a9)]('Key-Pair:\x20'+r),Log[ai(0x1a9)](ai(0x1c7)+m),Log['notice'](ai(0x1a0)+a6);if(x){Log[ai(0x1a9)](ai(0x1fc)+x);const a8=a6g['readFileSync'](x)[ai(0x1f2)]();Log['notice'](a8);}const a7=await Actions['confirm'](ai(0x1a2));if(a7){const a9=await d[ai(0x1de)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1d5),'Value':ai(0x1e2)},{'Key':'environment','Value':h},{'Key':ai(0x197),'Value':k}],...x&&{'userData':x}});a9&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ai(0x1e0)));}else{Log[ai(0x1a9)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0x1cf)](ai(0x1ad)+r+'\x20?',!![]);aa&&(d[ai(0x1aa)](r),f[ai(0x1bc)](s)&&a6g[ai(0x1e1)](s));const ab=await Actions[ai(0x1cf)](ai(0x1f3)+m+'\x20?',!![]);ab&&d[ai(0x1f9)](m);}}catch(ac){Log[ai(0x1fd)](ac);}}catch(ad){ad&&Log[ai(0x1fd)](ad),process[ai(0x1c5)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x195))/0x1*(parseInt(g(0x19d))/0x2)+parseInt(g(0x1a1))/0x3+parseInt(g(0x19f))/0x4*(parseInt(g(0x18f))/0x5)+parseInt(g(0x19e))/0x6*(parseInt(g(0x19c))/0x7)+parseInt(g(0x191))/0x8+parseInt(g(0x197))/0x9+-parseInt(g(0x1a6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x7c468));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x18f;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(0x1a4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x190)]()[i(0x192)](i(0x199))[i(0x190)]()['constructor'](a7a)['search'](i(0x199));});function a7c(){const l=['(((.+)+)+)+$','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','maka\x20aws:ckp\x20--env\x20prod','14MRoeRO','682wHovAH','1707582ZBqCrF','1260cxqzDK','createKeyPair','1900623pCWPuC','env','create-key-pair','apply','\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','20243880PyWTko','error','2505fNwkBO','toString','419024taerKy','search','create','maka\x20aws:create-key-pair','2399xSjXzu','getConfigFromShorthand','2721897sorNbJ','maka\x20aws:create-key-pair\x20--env\x20prod'];a7c=function(){return l;};return a7c();}a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a7j(0x193)]({'name':a7j(0x1a3),'aliases':['ckp'],'usage':a7j(0x194),'examples':[a7j(0x198),a7j(0x19b)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x1a2)],'validOpts':[],'shortDesc':a7j(0x19a),'description':a7j(0x1a5)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this['fsi'][k(0x196)](b['env']);c[k(0x1a0)]({'env':d});}catch(f){f&&Log[k(0x1a7)](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(0xc9))/0x1+parseInt(m(0xd0))/0x2+parseInt(m(0xd1))/0x3*(parseInt(m(0xcd))/0x4)+parseInt(m(0xde))/0x5+-parseInt(m(0xe7))/0x6*(-parseInt(m(0xd7))/0x7)+parseInt(m(0xdb))/0x8+parseInt(m(0xe6))/0x9*(-parseInt(m(0xcb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x22e51));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xcc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0xe1)]()[o(0xd9)](o(0xe0))[o(0xe1)]()[o(0xd2)](a8a)['search']('(((.+)+)+)+$');});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=['Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','maka\x20aws:csg','csg','ask','13230fAGduN','chooseVPC','search','create-security-group','1204808hltZAj','getMakaProjectConfig','List\x20is\x20not\x20all\x20numbers','174065XRMVLc','ec2createSG','(((.+)+)+)+$','toString','Web\x20App','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','fsi','match','927iSCtgA','252xoDcoB','forEach','create','211152NBKpsX','name','38470oQeaiu','apply','25148YFjevi','exit','error','51004mKNwbA','18FUXlkl','constructor'];a8c=function(){return s;};return a8c();}function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xc9;let f=c[d];return f;},a8d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a8p(0xe9)]({'name':a8p(0xda),'aliases':[a8p(0xd5)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a8p(0xd3),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':['maka\x20aws:create-secuirty-group',a8p(0xd4)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0xe4)][q(0xdc)](),{appName:f}=d,g=await c[q(0xd8)](),h=b[q(0xca)]?b[q(0xca)]:''+f,i=await Actions[q(0xd6)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0xd6)](q(0xe3))||'22,80,443',k=j['split'](',');k[q(0xe8)](l=>{const r=q;if(!l[r(0xe5)](/^\d+$/))throw r(0xdd);}),await c[q(0xdf)]({'description':q(0xe2),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xcf)](l),process[q(0xce)](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xe5;let f=c[d];return f;},a9d(a,b);}const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0xee))/0x1*(parseInt(f(0xe6))/0x2)+parseInt(f(0xeb))/0x3*(-parseInt(f(0xe8))/0x4)+-parseInt(f(0xf8))/0x5*(-parseInt(f(0xf2))/0x6)+parseInt(f(0xf9))/0x7*(parseInt(f(0xe7))/0x8)+parseInt(f(0xf0))/0x9+-parseInt(f(0xec))/0xa+-parseInt(f(0xea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x1a13f));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0xe9)]()[h(0xe5)](h(0xf3))[h(0xe9)]()[h(0xfa)](a9a)[h(0xe5)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';function a9c(){const k=['search','152552EUuVEH','43976LuOWfI','1108FWITru','toString','127732UgFrca','219JmZyFU','1406330sWyPVM','describe-instances','1uPXgSC','\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','1368477foHyoo','exit','1242yPIzEB','(((.+)+)+)+$','error','maka\x20aws:di','apply','ec2describeInstances','1065YyZFHJ','203YwjmZW','constructor','maka\x20aws:describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI'];a9c=function(){return k;};return a9c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a9i(0xed),'aliases':['di'],'usage':a9i(0xfb),'validOpts':[],'shortDesc':a9i(0xfc),'examples':['maka\x20aws:describe-instances',a9i(0xf5)],'description':a9i(0xef)},async function(){const j=a9i;try{const a=new AWS();a[j(0xf7)]();}catch(b){b&&Log[j(0xf4)](b),process[j(0xf1)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1b6))/0x1*(-parseInt(f(0x1bd))/0x2)+parseInt(f(0x1b3))/0x3+parseInt(f(0x1af))/0x4*(-parseInt(f(0x1bb))/0x5)+-parseInt(f(0x1b1))/0x6+parseInt(f(0x1bc))/0x7*(parseInt(f(0x1b0))/0x8)+-parseInt(f(0x1b7))/0x9+parseInt(f(0x1c0))/0xa*(parseInt(f(0x1b4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x2af03));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x1ba)](h(0x1c3))['toString']()['constructor'](a10a)[h(0x1ba)](h(0x1c3));});function a10c(){const k=['1330011pSMaak','create','dkp','search','73130jWbmHH','126Eetyyg','2CWXOoB','maka\x20aws:describe-key-pairs','maka\x20aws:dkp','20HJSvVx','apply','error','(((.+)+)+)+$','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','72PsqfXo','8744cBkPyh','666474EMjaKs','describe-key-pairs','733836GrgfEw','928466qKdLKz','ec2describeKeys','264903ilytqb'];a10c=function(){return k;};return a10c();}a10a();import a10e from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1af;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[a10i(0x1b8)]({'name':a10i(0x1b2),'aliases':[a10i(0x1b9)],'usage':a10i(0x1be),'validOpts':[],'shortDesc':a10i(0x1c4),'examples':[a10i(0x1be),a10i(0x1bf)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x1b5)]();}catch(b){b&&Log[j(0x1c2)](b),process['exit'](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11o=a11d;
|
|
1
|
+
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x1df))/0x1+parseInt(l(0x1e8))/0x2+parseInt(l(0x1d3))/0x3+-parseInt(l(0x1d4))/0x4+-parseInt(l(0x1ce))/0x5+-parseInt(l(0x1cd))/0x6*(-parseInt(l(0x1de))/0x7)+parseInt(l(0x1e1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x1b55d));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x1ea)]()[n(0x1d9)](n(0x1e9))[n(0x1ea)]()[n(0x1d8)](a11a)[n(0x1d9)](n(0x1e9));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a11d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11c(){const s=['maka\x20aws:delete-sg','Deleting\x20a\x20','error','apply','260436nWskDU','(((.+)+)+)+$','toString','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','sgId','Not\x20deleting\x20secuirty\x20group','ask','exit','16086tEmnUr','1029260KZnHqT','isMakaProject','Deleted\x20','ID:\x20','forEach','162009jwsLCa','351772dbtedh','success','confirm','dsg','constructor','search','\x20SG\x20NAME:\x20','\x20SGID:\x20','appName','deleteSecurityGroup','273ZkKVpw','100293SglDHx','name','1738184OhmKlW','bright','includes'];a11c=function(){return s;};return a11c();}Command['create']({'name':'delete-security-group','aliases':[a11o(0x1d7)],'usage':a11o(0x1e4),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a11o(0x1e4),'maka\x20aws:dsg']},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1cf)]();let d='';if(c){const j=b['getMakaProjectConfig']();d=j[p(0x1dc)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0x1d2)](function(k){const q=p;c&&k['name'][q(0x1e3)](d)?Log['notice'](q(0x1d1)+k['id']+q(0x1da)+k['name']+'\x20SGID:\x20'+k['sgId']):Log[q(0x1e2)]('ID:\x20'+k['id']+q(0x1da)+k[q(0x1e0)]+q(0x1db)+k['sgId']);});let g='';const h=await Actions[p(0x1cb)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x1d2)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1ec)]);});if(!g)throw Log[p(0x1e6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x1d6)](p(0x1e5)+g+p(0x1eb),![]);i?(await a[p(0x1dd)](g),Log[p(0x1d5)](p(0x1d0)+g)):Log[p(0x1e6)](p(0x1ca)),process[p(0x1cc)](0x0);}catch(k){k&&Log[p(0x1e6)](k),process[p(0x1cc)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12i=a12d;
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x155))/0x1*(parseInt(f(0x15b))/0x2)+-parseInt(f(0x152))/0x3*(parseInt(f(0x162))/0x4)+parseInt(f(0x151))/0x5+-parseInt(f(0x16c))/0x6+parseInt(f(0x168))/0x7*(-parseInt(f(0x164))/0x8)+-parseInt(f(0x159))/0x9*(parseInt(f(0x156))/0xa)+parseInt(f(0x15a))/0xb*(parseInt(f(0x16b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x24185));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x153)]()[h(0x165)]('(((.+)+)+)+$')[h(0x153)]()[h(0x167)](a12a)[h(0x165)](h(0x16a));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';function a12c(){const k=['search','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','constructor','223237mrMgSV','create','(((.+)+)+)+$','9282372NRfCij','1475118fbQFMW','apply','instanceId','743930CZmoHE','68259xhckYC','toString','\x20is\x20still\x20running.','1QyHkbH','10UNFxeT','name','reboot-instance','1944693wrXCfH','11ClcHpk','112334iJxTHi','chooseInstance','\x20Ready?','error','Reboot\x20an\x20EC2\x20instance','maka\x20aws:reboot-instance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','48UYXBtg','status','24FIZxMm'];a12c=function(){return k;};return a12c();}import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x14f;let f=c[d];return f;},a12d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0x169)]({'name':a12i(0x158),'aliases':['rbi'],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a12i(0x15f),'examples':[a12i(0x160),'maka\x20aws:rbi']},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0x15c)]();if(b?.[j(0x163)]==='running'){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+j(0x15d));c&&b[j(0x150)]?a['ec2rebootInstance']({'instanceId':b[j(0x150)]}):Log['error'](j(0x161)+b[j(0x157)]+j(0x154));}else Log[j(0x15e)](j(0x166));}catch(d){d&&Log[j(0x15e)](d),process['exit'](0x1);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a13c(){const K=['
|
|
1
|
+
function a13c(){const K=['Organization\x20Name\x20[My\x20Company,\x20LLC.]:','rdn','123\x20Glorious\x20Way','domain','Duration\x20in\x20years\x20[1]:\x20','RESELLER','Contact','apply','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','\x20/\x20Year\x20\x0a','maka\x20aws:register-domain-name\x20--domain=example.com','COMPANY','Invalid\x202\x20character\x20country\x20code','Domain\x20name\x20is\x20unavailable','Choose\x20contact\x20type','warn','maka\x20aws:register-domain-name','200780MxEXCe','toString','66320ECmtiY','50aUSKsw','error','96816','1917870JZduRP','\x20/\x20Year)','Auto\x20Renew:\x20','Address\x20Line\x202:\x20','registerDomain','confirm','+1.5555555556','maka\x20aws:rdn\x20--domain=example.com','includes','register-domain-name','mail@example.com','9qxbVol','constructor','ask','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','PUBLIC_BODY','953100iEwEAZ','2751UnaARN','notice','\x20for\x20','211976vkkyXj','PERSON','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Do\x20you\x20wish\x20to\x20register\x20','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','options','2307534DPNJCW','ASSOCIATION','search','list','(((.+)+)+)+$','Are\x20you\x20sure?','+1.5555555555','OrganizationName','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','3176Xelywj','values','checkDomainAvailability'];a13c=function(){return K;};return a13c();}const a13I=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x131;let f=c[d];return f;},a13d(a,b);}(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x15d))/0x1+-parseInt(E(0x143))/0x2+parseInt(E(0x159))/0x3+-parseInt(E(0x145))/0x4*(parseInt(E(0x146))/0x5)+-parseInt(E(0x163))/0x6+parseInt(E(0x15a))/0x7*(parseInt(E(0x16c))/0x8)+-parseInt(E(0x154))/0x9*(-parseInt(E(0x149))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x37591));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a['toString']()[G(0x165)](G(0x167))[G(0x144)]()[G(0x155)](a13a)[G(0x165)]('(((.+)+)+)+$');});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(0x16d)](CountryCode)[H(0x151)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a13I(0x152),'aliases':[a13I(0x133)],'usage':a13I(0x142),'requiredOpts':['domain'],'validOpts':[],'shortDesc':a13I(0x16b),'examples':[a13I(0x13c),a13I(0x150)]},async function(a,b){const J=a13I;try{const c=b[J(0x135)],d=new AWS(),{available:f,cost:g}=await d[J(0x131)](c);if(f&&g){Log[J(0x15b)]('The\x20domain\x20name:\x20'+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0x13b));const j=await Actions[J(0x14e)](J(0x160)+c+'\x20?',![]);if(j){const k={'type':J(0x166),'name':'contactType','message':J(0x140),'choices':[J(0x164),J(0x13d),'PERSON',J(0x158),J(0x137)]},l=await Actions[J(0x156)](J(0x136))||'1',m=await Actions[J(0x156)]('Contact\x20First\x20Name\x20[Contact]:\x20')||J(0x138),n=await Actions[J(0x156)]('Contact\x20Last\x20Name\x20[Person]:\x20')||'Person',{contactType:o}=await Actions[J(0x162)](k),p=await Actions['ask'](J(0x15f))||J(0x134),q=await Actions[J(0x156)](J(0x14c)),r=await Actions[J(0x156)]('Zip\x20Code\x20[96816]:\x20')||J(0x148),s=await Actions[J(0x156)]('State\x20[HI]:\x20')||'HI',t=await Actions[J(0x156)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x13e));const v=await Actions['ask'](J(0x161))||J(0x169),w=await Actions[J(0x156)](J(0x13a))||J(0x14f),x=await Actions[J(0x156)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0x153),y=await Actions[J(0x14e)](J(0x14b)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0x15e)){const C=await Actions[J(0x156)](J(0x132))||'My\x20Comanpy,\x20LLC.';z[J(0x16a)]=C;}const A=h||0x0*parseInt(l);Log[J(0x15b)](J(0x157)),Log[J(0x141)](A+'\x20'+i+J(0x15c)+l+'\x20years\x20('+h+'\x20'+i+J(0x14a));const B=await Actions[J(0x14e)](J(0x168));B&&await d[J(0x14d)](z,c,parseInt(l),y);}}else throw J(0x13f);}catch(D){D&&Log[J(0x147)](D),process['exit'](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0x15d))/0x1*(-parseInt(h(0x165))/0x2)+parseInt(h(0x150))/0x3+-parseInt(h(0x149))/0x4*(parseInt(h(0x151))/0x5)+-parseInt(h(0x156))/0x6*(parseInt(h(0x15f))/0x7)+-parseInt(h(0x15e))/0x8*(parseInt(h(0x14b))/0x9)+parseInt(h(0x166))/0xa+parseInt(h(0x154))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xba9ee));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x164)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x14c)]()[j(0x14f)](j(0x14a))[j(0x14c)]()[j(0x153)](a14a)[j(0x14f)]('(((.+)+)+)+$');});a14a();function a14c(){const n=['deleteKeyPair','search','1178373TjUaEM','126920GPkkrf','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','constructor','13928937emXZbm','Deleted\x20','1570866sBzwFP','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','create','rkp','forEach','confirm','error','2439KQlstb','334048ScRfhF','14rEQvJQ','remove-key-pair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','exit','success','apply','648ttkQOs','12298340jnlANb','maka\x20aws:rkp','Deleting\x20a\x20','maka\x20aws:remove-key-pair','ec2describeKeys','name','108uwEPfV','(((.+)+)+)+$','27QMyZhh','toString','Please\x20choose\x20a\x20key\x20to\x20delete:'];a14c=function(){return n;};return a14c();}function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x145;let f=c[d];return f;},a14d(a,b);}import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x158)]({'name':a14k(0x160),'aliases':[a14k(0x159)],'usage':a14k(0x146),'validOpts':[],'shortDesc':a14k(0x157),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a14k(0x146),a14k(0x167)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x147)]();let c=undefined;const d=await Actions['ask'](l(0x14d));b?.[l(0x15a)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x148)]);});if(!c)throw Log['error'](l(0x152));const f=await Actions[l(0x15b)](l(0x145)+c+l(0x161),![]);f?(await a[l(0x14e)](c),Log[l(0x163)](l(0x155)+c)):Log[l(0x15c)]('Not\x20deleting\x20keypair'),process['exit'](0x0);}catch(g){g&&Log['error'](g),process[l(0x162)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(
|
|
1
|
+
const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x1f3))/0x1*(-parseInt(l(0x20a))/0x2)+-parseInt(l(0x201))/0x3*(-parseInt(l(0x209))/0x4)+-parseInt(l(0x1e4))/0x5*(parseInt(l(0x1e8))/0x6)+-parseInt(l(0x1f0))/0x7*(parseInt(l(0x213))/0x8)+-parseInt(l(0x1f8))/0x9*(parseInt(l(0x212))/0xa)+-parseInt(l(0x1ef))/0xb*(parseInt(l(0x1f9))/0xc)+-parseInt(l(0x1f5))/0xd*(-parseInt(l(0x205))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xc2b65));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(0x204)]()[m(0x1f2)](m(0x202))['toString']()['constructor'](a15a)[m(0x1f2)](m(0x202));});a15a();function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a15d(a,b);}function a15c(){const p=['997353DstkWy','(((.+)+)+)+$','exit','toString','392SiWtoz','env','error','join','12PtrRgF','11324hlbRxI','ssh.json','getAppConfigPath','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','\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','getMakaProjectConfig','utf8','success','310xertsu','594840WpUIHA','readFileSync','public','private','12965FkTBjM','privateIp','\x20IP\x20to\x20','sep','1584xbfHsR','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','template','writeFileSync','create','isFile','24189pBuTHi','7AndbZz','\x0aSaved\x20host\x20','search','1FSjKEv','ask','395798FAmtZS','host','sth','26811ydHtLP','1128giRkmr','fsi','maka\x20aws:set-host\x20--env\x20dev','set-host','parse','appName','publicIp','maka\x20aws:sth\x20--env\x20prod'];a15c=function(){return p;};return a15c();}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(0x1ed)]({'name':a15n(0x1fc),'aliases':[a15n(0x1f7)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a15n(0x206)],'validOpts':[],'shortDesc':a15n(0x1ea),'description':a15n(0x20e),'examples':[a15n(0x1fb),a15n(0x200)]},async function(a,b){const o=a15n;try{const c=new AWS(),d=this['fsi'][o(0x20c)](b['env']),f=this[o(0x1fa)][o(0x20f)](),g=await c['chooseInstance'](),h=a15e[o(0x208)](d,o(0x20b));!this['fsi'][o(0x1ee)](h)&&await this['fsi'][o(0x1eb)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[o(0x1fe)]},'config':f});const i=JSON[o(0x1fd)](a15f[o(0x1e1)](h,o(0x210))),j=await Actions[o(0x1f4)](o(0x1e9))||'public';if(j){if(j===o(0x1e2)||j==='private'){if(j==='public')i[o(0x1f6)]=g?.[o(0x1ff)];else j===o(0x1e3)&&(i[o(0x1f6)]=g?.[o(0x1e5)]);}else throw o(0x20d);}else i[o(0x1f6)]=g?.[o(0x1e5)];a15f[o(0x1ec)](a15e[o(0x208)](d,'ssh.json'),JSON['stringify'](i,null,0x2)),execSync('cat\x20'+a15e[o(0x208)](d,o(0x20b)),{'stdio':'inherit'}),Log[o(0x211)](o(0x1f1)+j+o(0x1e6)+d+a15e[o(0x1e7)]+o(0x20b));}catch(k){k&&Log[o(0x207)](k),process[o(0x203)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16i=a16d;
|
|
1
|
+
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x11b))/0x1+parseInt(f(0x11d))/0x2*(-parseInt(f(0x123))/0x3)+-parseInt(f(0x11f))/0x4+parseInt(f(0x111))/0x5+parseInt(f(0x127))/0x6*(parseInt(f(0x122))/0x7)+-parseInt(f(0x10f))/0x8*(-parseInt(f(0x124))/0x9)+parseInt(f(0x11a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x92dca));function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x10f;let f=c[d];return f;},a16d(a,b);}const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x115)]()[h(0x11e)](h(0x129))['toString']()['constructor'](a16a)[h(0x11e)](h(0x129));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16c(){const k=['113056qljIAl','chooseInstance','122dXjlTR','search','2273620zPPGaY','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','terminate-instance','1394169quIKpM','35283MfYcBO','18aQqInf','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','create','30TfxorK','exit','(((.+)+)+)+$','name','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','872104UnZlht','apply','1178625vioSbm','confirm','maka\x20aws:terminate-instance','ec2terminateInstance','toString','error','maka\x20aws:ti','instanceId','running','3247300tNpret'];a16c=function(){return k;};return a16c();}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[a16i(0x126)]({'name':a16i(0x121),'aliases':['ti'],'usage':a16i(0x113),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','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':['maka\x20aws:terminate-instance',a16i(0x117)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x11c)]();if(b?.[j(0x118)]&&b?.['status']===j(0x119)){const c=await Actions[j(0x112)](j(0x120)+b[j(0x12a)]+'\x20Ready?');c?a[j(0x114)]({'instanceId':b['instanceId']}):Log['error'](j(0x125)+b[j(0x12a)]+j(0x12b));}else Log[j(0x116)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x116)](d),process[j(0x128)](0x1);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x1d4;var f=c[d];return f;},a17d(a,b);}(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x1d4))/0x1+-parseInt(f(0x1d8))/0x2+parseInt(f(0x1d9))/0x3*(-parseInt(f(0x1dc))/0x4)+-parseInt(f(0x1dd))/0x5*(parseInt(f(0x1d7))/0x6)+parseInt(f(0x1de))/0x7+-parseInt(f(0x1e1))/0x8*(-parseInt(f(0x1df))/0x9)+-parseInt(f(0x1da))/0xa*(-parseInt(f(0x1d6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xc50df));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['toString']()[g(0x1db)](g(0x1e0))['toString']()[g(0x1d5)](a17a)[g(0x1db)]('(((.+)+)+)+$');});a17a();import'./build.js';function a17c(){var h=['constructor','26966225sInmYk','186ufAWQc','1917692RvYcAR','1251714wrkUnc','10HEkIJO','search','12rdIkHc','152505jBwROi','10677695FQhesh','90YBAIwn','(((.+)+)+)+$','1148480znqXhf','1449234YygIeb'];a17c=function(){return h;};return a17c();}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18p=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d
|
|
1
|
+
const a18p=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0x122))/0x1*(parseInt(n(0x120))/0x2)+parseInt(n(0x12e))/0x3*(-parseInt(n(0x118))/0x4)+-parseInt(n(0x139))/0x5+-parseInt(n(0x12f))/0x6+parseInt(n(0x13c))/0x7*(parseInt(n(0x129))/0x8)+-parseInt(n(0x140))/0x9+parseInt(n(0x137))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xae2db));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 o=a18d;return a18a[o(0x11f)]()['search'](o(0x13f))[o(0x11f)]()['constructor'](a18a)[o(0x12b)](o(0x13f));});a18a();function a18c(){const s=['argv','pathFromProject','toString','6IzGZXa','join','417099ingcuw','create','--force','existsSync','force','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','--release','304952khagnh','getGlobalMeteorVersion','search','slice','getProjectMeteorVersion','3zwEhOo','6801090MvVhfI','This\x20project\x27s\x20meteor\x20version\x20(','maka\x20build','exit','Aborted.','confirm',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','invokeMeteorCommand','46943450kZFPqM','app.tar.gz','6875715cHeeEY','autoupdate','error','161mzUQeM','\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','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','(((.+)+)+)+$','5925960bnBGNJ','build','1757008NyldsU','fsi','concat','splice','checkMeteorPackage'];a18c=function(){return s;};return a18c();}import a18e from'path';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x117;let f=c[d];return f;},a18d(a,b);}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[a18p(0x123)]({'name':a18p(0x117),'usage':a18p(0x131),'validOpts':[a18p(0x126)],'aliases':['b'],'shortDesc':a18p(0x13e),'mustBeInMakaProject':!![],'description':a18p(0x13d),'examples':[a18p(0x131)]},async function(a,b){const q=a18p;try{await this[q(0x119)][q(0x11c)](q(0x13a),{'shouldInstall':!![]});const c=b[q(0x126)];if(!c){const g=this[q(0x119)][q(0x12a)](),h=this[q(0x119)][q(0x12d)](),i=a18g['gt'](g,h);if(i){const j=await Actions[q(0x134)](q(0x130)+h+q(0x135)+g+').\x20Update?');j&&this['fsi']['invokeMeteorCommand']('update',[q(0x128),g]);}}const d=[this['fsi'][q(0x11e)]({'pathParts':[q(0x117)]})][q(0x11a)](process[q(0x11d)][q(0x12c)](0x3)),f=a18e[q(0x121)](this[q(0x119)]['pathFromProject']({}),q(0x117),q(0x138));if(a18f[q(0x125)](f)){const k=c??await Actions[q(0x134)](q(0x127));if(!k)throw Log['error'](q(0x133));}d['forEach']((l,m)=>{const r=q;l===r(0x124)&&d[r(0x11b)](m,0x2);}),this['fsi'][q(0x136)](q(0x117),d);}catch(l){console[q(0x13b)](l),process[q(0x132)](0x0);}});export default BuildCommand;
|