@maka/maka-cli 4.12.2 → 4.12.4
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/bundle/obf/package.json +1 -16
- 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/cecr.sub.cmd.js +1 -0
- 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/decr.sub.cmd.js +1 -0
- 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/lecr.sub.cmd.js +1 -0
- 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/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.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/register.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/undo.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/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.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/auth.mui.gen.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/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 -16
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -102,25 +102,10 @@
|
|
|
102
102
|
"javascript-obfuscator": "^4.1.0",
|
|
103
103
|
"jest": "^29.7.0",
|
|
104
104
|
"mkdirp": "^3.0.1",
|
|
105
|
-
"pkg": "^5.8.1",
|
|
106
105
|
"ts-jest": "^29.1.1",
|
|
107
106
|
"typescript": "^5.2.2",
|
|
108
107
|
"wait-on": "^7.0.1"
|
|
109
108
|
},
|
|
110
|
-
"pkg": {
|
|
111
|
-
"assets": [
|
|
112
|
-
"package.json",
|
|
113
|
-
".npmrc",
|
|
114
|
-
"bundle/typescript/src/commands",
|
|
115
|
-
"bundle/typescript/src/generators",
|
|
116
|
-
"bundle/typescript/src/templates",
|
|
117
|
-
"bundle/typescript/src/tools"
|
|
118
|
-
],
|
|
119
|
-
"scripts": [
|
|
120
|
-
"typescript/**/*.js",
|
|
121
|
-
"typescript/**/*.d.js"
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
109
|
"engines": {
|
|
125
110
|
"node": ">=14.0.0"
|
|
126
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x1e6))/0x1*(-parseInt(n(0x22a))/0x2)+parseInt(n(0x205))/0x3+-parseInt(n(0x203))/0x4+parseInt(n(0x1fa))/0x5+-parseInt(n(0x1e7))/0x6*(parseInt(n(0x1f5))/0x7)+parseInt(n(0x209))/0x8+-parseInt(n(0x1fe))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x8f939));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x236)]()[o(0x22f)](o(0x1f9))[o(0x236)]()['constructor'](a0a)['search'](o(0x1f9));});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 a0c(){const z=['validateMakaProject','aliases','keys','validateMeteorInstall','maxArgLength','notice','bind','run','Command.create\x20requires\x20a\x20handler\x20function!','forEach','call','Please\x20run\x20\x22maka\x20login\x22','join','unshift','getGlobalConfig','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','light','Please\x20run\x20\x22maka\x20install\x20meteor\x22','function','_handler','push','processAndRunCommand','error','assign','_commands','split','localeCompare','options','murder','match','2nmKAfH','mustBeInMakaProject','fsi','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','search','usage','help','Too\x20few\x20options','number','maxOptsLength','find','toString','validateMakaSubscription','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','setColorMode','Too\x20many\x20arguments','pallet','427657aNVwLC','2120658DgTffl','play','Command\x20not\x20found','mustHaveMeteorInstalled','length','minArgLength','create','validateUserIsLoggedIn','Name','exit','generate','bright','invoke','\x20not\x20found','7uZFjYw','Command\x20requires\x20a\x20name','slice','Sub-Commands:','(((.+)+)+)+$','1397015qCGQiA','Alias','name','maybeProxyCommandToMeteor','375876BbwWNF','addCommand\x20requires\x20a\x20Command\x20instance','validateParams','There\x20is\x20no\x20Meteor\x20application\x20here','minOptsLength','4214108gDbUiM','header','3163884mwANYJ','Command\x20requires\x20a\x20handler\x20function','shortDesc','Too\x20many\x20options','2201080HaQYNc','addCommand','tableList'];a0c=function(){return z;};return a0c();}function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0x227)];['_commands'];constructor(a,b){const q=a0p;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[q(0x1fc)])throw new Error(q(0x1f6));if(typeof b!==q(0x21e))throw new Error(q(0x206));this['options']=Object[q(0x223)]({},a),this[q(0x1fc)]=this['options'][q(0x1fc)],this[q(0x224)]=[],this[q(0x21f)]=b[q(0x212)](this);}static[a0p(0x1ed)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x21e))throw new Error(r(0x214));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.['options']?.[r(0x1fc)]}),c['addCommand'](d),d;}[a0p(0x20a)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x1ff));this['_commands'][s(0x220)](a);}async[a0p(0x213)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x22c)][t(0x21a)](),d=c[t(0x1e5)]===t(0x21c)?ColorMode['LIGHT']:ColorMode['DARK'];Log[t(0x1e3)](d),await this[t(0x237)](this);}catch(f){Log[t(0x222)](f),process[t(0x1f0)](0x0);}return await this[t(0x1f3)](a,b);}catch(g){process['exit'](0x1);}}async['invoke'](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(0x227)][u(0x1fc)]!==u(0x1f1)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x1eb)]===0x0)&&this['_commands'][u(0x1eb)]>=0x0,g=b[u(0x231)]||b['h'];if(f&&g){if(this[u(0x224)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x227)][u(0x22b)]){const h=this[u(0x20c)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x227)]['mustBeLoggedIn']){const i=await this[u(0x1ee)]();if(!i)throw new MustBeLoggedIn();}if(this[u(0x227)][u(0x1ea)]){const j=this[u(0x20f)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0x227)]['minArgLength']===u(0x233)){if(a[u(0x1eb)]<this['options'][u(0x1ec)]){Log[u(0x222)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[u(0x227)][u(0x210)]===u(0x233)){if(a[u(0x1eb)]>=this[u(0x227)]['maxArgLength']){Log['error'](u(0x1e4));throw new UsageError();}}if(typeof this['options']['minOptsLength']===u(0x233)){if(Object[u(0x20e)](b)['length']<this[u(0x227)][u(0x202)]){Log['error'](u(0x232));throw new UsageError();}}if(typeof this[u(0x227)][u(0x234)]==='number'){if(Object[u(0x20e)](b)['length']>=this[u(0x227)][u(0x234)]){Log['error'](u(0x208));throw new UsageError();}}}}b=await this[u(0x200)](a,b,this[u(0x227)]),_prevCmd=a[0x0];}return await this[u(0x21f)][u(0x216)](this,a,b);}catch(k){Log[u(0x230)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0x211)](u(0x1f8)),this[u(0x20b)](this[u(0x224)]),Log[u(0x204)](u(0x22e));else{if(k instanceof MustBeInProjectError)Log[u(0x222)](u(0x238));else{if(k instanceof NoMeteorFoundError)Log['error'](u(0x21b)),Log[u(0x211)](u(0x21d));else{if(k instanceof NoMeteorAppFoundError)Log[u(0x222)](u(0x201));else k instanceof MustBeLoggedIn&&(Log['error'](u(0x22d)),Log[u(0x211)](u(0x217)));}}}process['exit'](0x1);}}[a0p(0x20b)](a){const v=a0p,b=new a0e({});b[v(0x220)]([v(0x1ef),v(0x1fb),'Description']),a['sort']((c,d)=>{const w=v;return c[w(0x1fc)][w(0x226)](d[w(0x1fc)]);})[v(0x215)](c=>{const x=v;c[x(0x1fc)]!==x(0x228)&&c[x(0x1fc)]!==x(0x1e8)&&b['push']([c[x(0x1fc)],c[x(0x20d)](),c[x(0x207)]()]);}),Log[v(0x1f2)](b[v(0x236)]());}async[a0p(0x221)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x225)](':');if(!d||d[y(0x1eb)]===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===y(0x1f1)||d[0x0]==='g'&&d[y(0x1eb)]>0x1){const h=this[y(0x224)][y(0x235)](j=>j[y(0x229)](y(0x1f1)));if(!h)throw'Command\x20not\x20found';await this[y(0x237)](h);const i=d[y(0x1f7)](0x1)[y(0x218)](':');return b[y(0x219)](i),await h[y(0x213)](b,c);}let f=this[y(0x224)],g;for(const j of d){g=f[y(0x235)](k=>k['match'](j));if(!g)try{await this[y(0x22c)][y(0x1fd)]();}catch(k){throw'Command\x20'+j+y(0x1f4);}g&&(await this['validateMakaSubscription'](g),f=g[y(0x224)]);}if(g){const l=await g[y(0x213)](b,c);return l;}else throw y(0x1e9);}catch(m){Log[y(0x222)](m),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(0x1d3))/0x1*(parseInt(f(0x1da))/0x2)+parseInt(f(0x1d0))/0x3+parseInt(f(0x1d6))/0x4+parseInt(f(0x1d2))/0x5*(parseInt(f(0x1d5))/0x6)+parseInt(f(0x1cd))/0x7+parseInt(f(0x1d9))/0x8+-parseInt(f(0x1d4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x27f12));function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1cd;var f=c[d];return f;},a1d(a,b);}var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1d1)]()[h(0x1cf)](h(0x1d7))['toString']()[h(0x1d8)](a1a)['search'](h(0x1d7));});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';function a1c(){var i=['6oXRSjV','804660dEzNIe','(((.+)+)+)+$','constructor','358512JLGxih','2foeXta','1419481NzJqvw','apply','search','711393CAdsPU','toString','866415FGjQZo','23249PsDtAn','6469407CMMyzr'];a1c=function(){return i;};return a1c();}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'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0xfd))/0x1*(parseInt(h(0x11a))/0x2)+-parseInt(h(0x108))/0x3*(parseInt(h(0x114))/0x4)+parseInt(h(0x10d))/0x5*(parseInt(h(0x128))/0x6)+parseInt(h(0x12a))/0x7*(parseInt(h(0x10e))/0x8)+-parseInt(h(0x106))/0x9*(-parseInt(h(0x118))/0xa)+parseInt(h(0x10a))/0xb*(-parseInt(h(0x105))/0xc)+-parseInt(h(0x115))/0xd*(parseInt(h(0x111))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xd296f));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(0x104)]()[i(0x10f)](i(0x11c))[i(0x104)]()[i(0x12b)](a2a)[i(0x10f)](i(0x11c));});function a2c(){const n=['openapikey','text','Using\x20OpenAI\x20Key\x20','stdin','cert','6ziYxiu','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','4555824ESiWjw','constructor','error','53778MJCBeA','createInterface','log','Using\x20CA\x20Cert\x20','ChatGPT\x20style\x20AI\x20interface','data','cacert','toString','2739624ZzosWC','1476QieXNb','toLowerCase','536196ETZJpb','isFile','55dxxBSP','askGPT','choices','6508470ACDnqh','8iKqXmZ','search','openai','2643382HGwnTb','create','question','20zpUHnA','13IvACVX','getGlobalConfig','fsi','62590POHpGV','parse','4tgCKOj','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','(((.+)+)+)+$','exit','trim','close','bright','stdout','GPT:\x20'];a2c=function(){return n;};return a2c();}a2a();import{Command}from'../command.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xfd;let f=c[d];return f;},a2d(a,b);}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(0xfe)]({'input':process[j(0x126)],'output':process[j(0x121)]});c[j(0x113)]('You:\x20',async d=>{const k=j;if(d[k(0x107)]()==='exit'){c[k(0x11f)]();return;}try{const e=await HTTPS[k(0x10b)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x119)](e[k(0x102)]);if(f['error'])throw new Error(f[k(0x12c)]['message']);Log[k(0x120)](k(0x122)+f?.[k(0x10c)][0x0]?.[k(0x124)][k(0x11e)]());}catch(g){Log[k(0x12c)](g),process[k(0x11d)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x112)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':['cacert',a2l(0x123)],'shortDesc':a2l(0x101),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this['fsi'][m(0x109)](b[m(0x103)])?(c=b['cacert'],Log['notice'](m(0x100)+c)):Log['error']('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[m(0x117)][m(0x116)]();if(d[m(0x127)]){if(this[m(0x117)][m(0x109)](d[m(0x127)]))c=d[m(0x127)];else throw Log[m(0x12c)](m(0x11b)+c);}let f='';if(b[m(0x123)])f=b['openapikey'],Log['notice'](m(0x125)+f);else{if(d[m(0x110)])f=d[m(0x110)];else throw Log[m(0x12c)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[m(0xff)](m(0x129)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x12c)](g),process[m(0x11d)](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(0x14b))/0x1*(-parseInt(f(0x146))/0x2)+parseInt(f(0x14f))/0x3*(parseInt(f(0x153))/0x4)+-parseInt(f(0x147))/0x5+-parseInt(f(0x154))/0x6*(-parseInt(f(0x149))/0x7)+parseInt(f(0x145))/0x8+parseInt(f(0x151))/0x9*(-parseInt(f(0x152))/0xa)+parseInt(f(0x14d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x89ec6));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x14c)]()['search'](h(0x150))['toString']()[h(0x14e)](a3a)[h(0x148)](h(0x150));});a3a();import'./aws.command.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x145;var f=c[d];return f;},a3d(a,b);}import'./ci.sub.cmd.js';function a3c(){var i=['toString','3704085FBLbPO','constructor','9XPCLqb','(((.+)+)+)+$','162BLQXCG','102310PFEUxK','1407388qtsmVn','6LjKpoW','2704800WNYjhB','124526icjpwo','4019515umUdeL','search','501697sWMkay','apply','4IQwfeo'];a3c=function(){return i;};return a3c();}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xc7))/0x1+-parseInt(f(0xd9))/0x2+-parseInt(f(0xd7))/0x3*(parseInt(f(0xd3))/0x4)+-parseInt(f(0xcb))/0x5+-parseInt(f(0xd1))/0x6*(parseInt(f(0xd5))/0x7)+parseInt(f(0xc6))/0x8*(parseInt(f(0xce))/0x9)+-parseInt(f(0xd0))/0xa*(-parseInt(f(0xd2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x41359));function a4c(){const j=['28075YRMhrC','create','constructor','99OmsMJK','search','50WtevrA','3093474GPWtEm','798820zjKlta','28XLIqMX','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','7IbmhuK','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','62628pWxaoy','aws','220584nCZSeI','363464BTSaei','181852OQDMtJ','(((.+)+)+)+$','toString','apply'];a4c=function(){return j;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xc9)]()['search'](h(0xc8))[h(0xc9)]()[h(0xcd)](a4a)[h(0xcf)]('(((.+)+)+)+$');});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xc6;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xcc)]({'name':a4i(0xd8),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0xd4),'description':a4i(0xd6)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a5i=a5d;function a5c(){const k=['Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','cecr','exit','Repository\x20created\x20successfully.','constructor','2ateceM','12msjWzG','maka\x20aws:cecr\x20--name=my-new-repo','Repository\x20URI:\x20','search','3460935NalNEn','success','38549mWjXZp','toString','httpStatusCode','error','171764ISIhwJ','create','(((.+)+)+)+$','maka\x20aws:create-ecr\x20--name=my-new-repo','59030NnHgkh','24MbVKLN','700624vGbbBR','repository','repositoryUri','4764024xsQqva','Create\x20an\x20Elastic\x20Container\x20Repository','1727TNcSrD','24ndnGkJ','6TpOZvM','create-ecr','35406982IUBuqc','ecrCreateRepository'];a5c=function(){return k;};return a5c();}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xd7))/0x1*(parseInt(g(0xe8))/0x2)+-parseInt(g(0xcd))/0x3*(parseInt(g(0xe2))/0x4)+-parseInt(g(0xdc))/0x5*(parseInt(g(0xce))/0x6)+-parseInt(g(0xde))/0x7*(parseInt(g(0xe7))/0x8)+parseInt(g(0xeb))/0x9+parseInt(g(0xe6))/0xa*(-parseInt(g(0xed))/0xb)+parseInt(g(0xd8))/0xc*(parseInt(g(0xd0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x8bf87));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0xdf)]()['search'](h(0xe4))[h(0xdf)]()[h(0xd6)](a5a)[h(0xdb)](h(0xe4));});a5a();import a5e 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';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xcd;let f=c[d];return f;},a5d(a,b);}Command[a5i(0xe3)]({'name':a5i(0xcf),'aliases':[a5i(0xd3)],'usage':'maka\x20aws:create-ecr','requiredOpts':['name'],'validOpts':[],'shortDesc':a5i(0xec),'examples':[a5i(0xe5),a5i(0xd9)]},async function(a,b){const j=a5i;try{const c=new AWS(),d=await c[j(0xd1)](b);d&&d['$metadata'][j(0xe0)]===0xc8&&d[j(0xe9)]?(Log[j(0xdd)](j(0xd5)),Log['notice'](j(0xda)+d[j(0xe9)][j(0xea)])):Log['error'](j(0xd2)),process[j(0xd4)](0x0);}catch(f){Log[j(0xe1)](f),process[j(0xd4)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x1e0))/0x1+parseInt(i(0x1cf))/0x2*(parseInt(i(0x1e8))/0x3)+-parseInt(i(0x1de))/0x4*(-parseInt(i(0x1db))/0x5)+parseInt(i(0x1e6))/0x6+-parseInt(i(0x1e2))/0x7*(parseInt(i(0x1cd))/0x8)+parseInt(i(0x1e4))/0x9*(parseInt(i(0x1d6))/0xa)+-parseInt(i(0x1d0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xdae05));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cc;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1d7)]()[k(0x1dd)](k(0x1df))[k(0x1d7)]()[k(0x1e7)](a6a)[k(0x1dd)](k(0x1df));});function a6c(){const n=['route53CreateHostedZone','maka\x20aws:chz\x20--domain=example.com','create-hosted-zone','88rmjlpZ','publicIp','10bsjTSv','15982538Ahpewn','Instance\x20not\x20found','chooseInstance','exit','confirm','maka\x20aws:create-hosted-zone','40730KUhakl','toString','maka\x20aws:create-hosted-zone\x20--domain=example.com','domain','error','15tmfona','create','search','1492724eZwkEX','(((.+)+)+)+$','28763JIOWiH','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','675017VlwadZ','Set\x20hosted\x20zone\x20to\x20an\x20instance?','2007LuvYZF','apply','5499246ZSGwVP','constructor','262254fizCbf','chz'];a6c=function(){return n;};return a6c();}a6a();import a6e 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[a6l(0x1dc)]({'name':a6l(0x1cc),'aliases':[a6l(0x1e9)],'usage':a6l(0x1d5),'requiredOpts':[a6l(0x1d9)],'validOpts':[],'shortDesc':a6l(0x1e1),'examples':[a6l(0x1d8),a6l(0x1eb)]},async function(a,b){const m=a6l;try{const c=b[m(0x1d9)],d=new AWS();d[m(0x1ea)](c);const f=await Actions[m(0x1d4)](m(0x1e3));if(f){const g=await d[m(0x1d2)]();if(g?.['id']){if(!g[m(0x1ce)])throw Log[m(0x1da)]('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d['linkEC2ToRoute53'](g['id'],g[m(0x1ce)],c);}else throw m(0x1d1);}}catch(h){h&&Log[m(0x1da)](h),process[m(0x1d3)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0xca))/0x1*(-parseInt(ae(0xe7))/0x2)+-parseInt(ae(0xab))/0x3+-parseInt(ae(0xd6))/0x4*(-parseInt(ae(0x83))/0x5)+-parseInt(ae(0xd1))/0x6*(-parseInt(ae(0xc1))/0x7)+parseInt(ae(0xbf))/0x8+parseInt(ae(0xe5))/0x9+-parseInt(ae(0xbd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x57b4c));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const af=a6d;return a6a['toString']()[af(0xdc)](af(0xae))[af(0xbc)]()['constructor'](a6a)[af(0xdc)](af(0xae));});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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x7f;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a6c(){const at=['Creating\x20user\x20data\x20file\x20in\x20','\x20CIDR:\x20','notice','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','forEach','join','359322XNQDPu','cidr','parse','(((.+)+)+)+$','ec2createSG','cider','maka-cli','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','\x20DESCRIPTION:\x20','User\x20Data:','user-data','Would\x20you\x20like\x20to\x20include\x20user\x20data?','error','exit','Web\x20App','create','unlinkSync','toString','8903110ABxjCU','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=*','3019600hVzuzt','confirm','2065rAWxLj','success','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Remove\x20the\x20keypair\x20','**\x20Available\x20AMIs\x20**','created-by','Desc','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','env','5KCSnqX','subnetId','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','environment','Instance\x20Count:\x20','bright','maka\x20aws:create-instance','1062WASNKJ','split','ID:\x20','Setting\x20the\x20key-pair\x20to:\x20','number','52KjmqgB','**\x20Available\x20Security\x20Groups\x20**','log','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','maka\x20aws:ci\x20--env\x20prod','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','search','Setting\x20Subnet\x20ID\x20to\x20','deleteKeyPair','getSecurityGroups','readFileSync','desc','\x20SGID:\x20','*\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','2159595VYeXSC','sgId','171786YxIina','**\x20Available\x20Subnets\x20**','ec2describeKeys','Name','deleteSecurityGroup','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','push','103940ihCJmu','ec2create','Setting\x20AMI\x20ID\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\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','\x20SG\x20NAME:\x20','1:1','maka\x20aws:create-instance\x20--env\x20dev','Subnet:\x20','create-instance','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20:\x20','getConfigFromShorthand','date','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','EC2\x20Name:\x20[','amiId','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','chooseVPC','name','**\x20Available\x20key-pairs\x20**','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','build\x20on\x20','Security\x20Group:\x20','sort','string','Instace\x20Type:\x20','Setting\x20SG\x20ID\x20to:\x20','ask','isFile','amazon','fsi','\x20AMIID:\x20'];a6c=function(){return at;};return a6c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ag(0xba)]({'name':a6ag(0x8c),'aliases':['ci'],'usage':a6ag(0xd0),'examples':[a6ag(0x8a),a6ag(0xda)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0xc9)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ag(0x87)},async function(a,b){const ah=a6ag;try{const c=this[ah(0xa3)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ah(0x8f)](b['env']),i=this[ah(0xa3)][ah(0xe4)](h),j=g+'-'+h,k=await Actions[ah(0xa0)](ah(0x92)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0xc0)]('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[ah(0xc2)](ah(0xd4)+r);}else try{Log[ah(0xa7)](ah(0x97));const A=r?r:k,B=await d[ah(0xe9)]({'suggestion':A}),C=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ah(0xb7)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ah(0xa7)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0xa9)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D['name'],Log[ai(0xc2)](ai(0xd4)+r));});}catch(D){Log[ah(0xb7)](D);}l=await d[ah(0x95)]();const t=await Actions[ah(0xc0)](ah(0xcc),!![]);let u;if(t){const E=l===''?await d[ah(0x95)]():l;u=await Actions[ah(0xa0)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ah(0xa0)](ah(0xdb))||'22,80,443',G=F[ah(0xd2)](',');await d[ah(0xaf)]({'description':ah(0xb9),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0xdf)](u);if(I===''){Log['notice'](ah(0xd7)),J[ah(0xa9)](function(L){const aj=ah;L[aj(0x96)]===u?Log[aj(0xa7)](aj(0xd3)+L['id']+'\x20SG\x20NAME:\x20'+L[aj(0x96)]+aj(0xe2)+L[aj(0xe6)]):Log[aj(0xcf)](aj(0xd3)+L['id']+aj(0x88)+L[aj(0x96)]+aj(0xe2)+L[aj(0xe6)]);});const K=await Actions['ask'](ah(0xb2)+H+']\x20')||H[ah(0xbc)]();J[ah(0xa9)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0xe6)],Log[ak(0xc2)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ah(0xc2)](ah(0x9f)+m+'\x0a');if(m==='')throw Log[ah(0xb7)](ah(0x86));}catch(L){Log[ah(0xb7)](L);}try{const M=0x7e6;Log['notice'](ah(0xc5));const N=execSync(ah(0xbe)+M+ah(0xe3))[ah(0xbc)](),O=JSON[ah(0xad)](N),P=[],Q=[];O['forEach'](function(S){const al=ah;if(S['alias']===al(0xa2)){const T=S[al(0xc7)]['split'](al(0x9a))[0x1];P[al(0x82)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ah(0x9c)](function(S,T){const am=ah;return new Date(T[am(0x90)])['getTime']()-new Date(S['date'])['getTime']();}),P[ah(0xa9)](function(S,T){const an=ah;Q[an(0x82)]({'id':T,'amiId':S[an(0x93)],'desc':S['desc']});}),Q['forEach'](function(S){const ao=ah;console[ao(0xd8)](ao(0xd3)+S['id']+ao(0xa4)+S[ao(0x93)]+ao(0xb3)+S[ao(0xe1)]);});const R=await Actions[ah(0xa0)](ah(0x81))||'0';Q[ah(0xa9)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x93)],Log['success'](ap(0x85)+n+ap(0x8e)+S['desc']));});if(n==='')throw Log[ah(0xb7)](ah(0x86));}catch(S){Log['error'](S);}try{Log[ah(0xa7)](ah(0xe8));const T=execSync(ah(0x94))[ah(0xbc)](),U=JSON[ah(0xad)](T),V=[];U[ah(0xa9)](function(X,Y){const aq=ah;V[aq(0x82)]({'id':Y,'cidr':X[aq(0xb0)],'az':X['az'],'subnetId':X['subnetId']});}),V[ah(0xa9)](function(X){const ar=ah;console[ar(0xd8)](ar(0xd3)+X['id']+ar(0xa6)+X[ar(0xac)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ah(0xa0)](ah(0xc3))||'0';V[ah(0xa9)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0xcb)],Log['success'](as(0xdd)+p));});if(p==='')throw Log[ah(0xb7)](ah(0x86));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0xa0)](ah(0xc8))||ah(0x89),Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ah(0xd5)&&typeof parseInt(a0)===ah(0xd5)&&Log[ah(0xc2)](ah(0x91)+Z+':'+a0);}catch(a1){Log[ah(0xb7)](a1);}try{const a2=await Actions[ah(0xa0)](ah(0x98))||'t3.micro';typeof a2===ah(0x9d)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ah(0xc0)](ah(0xb6),![]);a4&&(x=a6f[ah(0xaa)](i,ah(0xb5)),Log[ah(0xa7)](ah(0xa5)+x),await this[ah(0xa3)]['createFile']({'filePath':x,'data':''}),await Actions['confirm'](ah(0xa8)));}catch(a5){Log[ah(0xb7)](a5);}try{const a6=JSON[ah(0xad)](execSync(ah(0x8d)+p+ah(0xd9))[ah(0xbc)]())[0x0]['subnet'];Log[ah(0xa7)]('ImageID:'+n),Log[ah(0xa7)](ah(0xce)+v+':'+w),Log[ah(0xa7)](ah(0x9e)+o),Log[ah(0xa7)]('Key-Pair:\x20'+r),Log[ah(0xa7)](ah(0x9b)+m),Log[ah(0xa7)](ah(0x8b)+a6);if(x){Log[ah(0xa7)](ah(0xb4)+x);const a8=a6g[ah(0xe0)](x)['toString']();Log['notice'](a8);}const a7=await Actions['confirm']('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ah(0x84)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0xc6),'Value':ah(0xb1)},{'Key':ah(0xcd),'Value':h},{'Key':ah(0x7f),'Value':k}],...x&&{'userData':x}});a9&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0xcf)](ah(0x99)));}else{Log[ah(0xa7)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ah(0xc0)](ah(0xc4)+r+'\x20?',!![]);aa&&(d[ah(0xde)](r),f[ah(0xa1)](s)&&a6g[ah(0xbb)](s));const ab=await Actions[ah(0xc0)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ah(0x80)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ah(0xb7)](ad),process[ah(0xb8)](0x0);}},a6e);
|
|
1
|
+
function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x167;let f=c[d];return f;},a7d(a,b);}const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x173))/0x1*(parseInt(ae(0x1d4))/0x2)+parseInt(ae(0x190))/0x3+-parseInt(ae(0x1b5))/0x4*(-parseInt(ae(0x192))/0x5)+parseInt(ae(0x184))/0x6+-parseInt(ae(0x1d0))/0x7+-parseInt(ae(0x194))/0x8*(parseInt(ae(0x1cb))/0x9)+parseInt(ae(0x1ce))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x22622));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x176)]()[ag(0x1c6)](ag(0x18c))[ag(0x176)]()[ag(0x1b9)](a7a)[ag(0x1c6)](ag(0x18c));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a7c(){const au=['Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','435540UoAkQm','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Creating\x20user\x20data\x20file\x20in\x20','Instance\x20Count:\x20','554HxjOze','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','ImageID:','\x20SUBNETID:\x20','log','desc','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ask','\x20:\x20','Key-Pair:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','cider','827hWcHiC','confirm','**\x20Available\x20AMIs\x20**','toString','getSecurityGroups','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20SGID:\x20','\x20CIDR:\x20','push','Subnet:\x20','Setting\x20the\x20key-pair\x20to:\x20','\x20DESCRIPTION:\x20','split','**\x20Available\x20Subnets\x20**','Remove\x20the\x20keypair\x20','Desc','ID:\x20','1281960IWhFmn','readFileSync','**\x20Available\x20key-pairs\x20**','sort','maka\x20aws:ci\x20--env\x20prod','build\x20on\x20','ec2create','\x20AZONE:\x20','(((.+)+)+)+$','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','\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','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','487707zStABW','getMakaProjectConfig','57165oEMLgD','getConfigFromShorthand','1448zvzKlf','env','ec2createSG','isFile','forEach','EC2\x20Name:\x20[','*\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','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','number','maka\x20aws:create-instance\x20--env\x20dev','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','maka\x20aws:create-instance','Would\x20you\x20like\x20to\x20include\x20user\x20data?','subnetId','maka-cli','fsi','user-data','Security\x20Group\x20Name:\x20[','No\x20instance\x20has\x20been\x20created.','22,80,443','Create\x20new\x20AWS\x20instance','deleteKeyPair','deleteSecurityGroup','notice','error','apply','join','subnet','exit','\x20SG\x20NAME:\x20','sgId','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=*','8eeeWHG','success','create-instance','bright','constructor','ec2describeKeys','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','name','Setting\x20Subnet\x20ID\x20to\x20','Setting\x20SG\x20ID\x20to:\x20','amiId','getTime','create','**\x20Available\x20Security\x20Groups\x20**','unlinkSync','parse','cidr','search','Security\x20Group:\x20','Setting\x20AMI\x20ID\x20to\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','chooseVPC','2781gwVzuF','alias','Name','889670Dgzpjf'];a7c=function(){return au;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x1c1)]({'name':a7ah(0x1b7),'aliases':['ci'],'usage':a7ah(0x1a0),'examples':[a7ah(0x19e),a7ah(0x188)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0x1a9),'description':a7ah(0x18e)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x1a4)][ai(0x191)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1a4)][ai(0x193)](b[ai(0x195)]),i=this[ai(0x1a4)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x16e)](ai(0x199)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x1b6)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0x1ac)](ai(0x186));const A=r?r:k,B=await d[ai(0x1ba)]({'suggestion':A}),C=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1ad)]('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(0x1a7));return;}B?.[ai(0x198)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x1b6)](aj(0x17d)+r));});}catch(D){Log[ai(0x1ad)](D);}l=await d[ai(0x1ca)]();const t=await Actions[ai(0x174)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x1ca)]():l;u=await Actions[ai(0x16e)](ai(0x1a6)+k+']')||k;const F=await Actions[ai(0x16e)](ai(0x1cf))||ai(0x1a8),G=F[ai(0x17f)](',');await d[ai(0x196)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x177)](u);if(I===''){Log['notice'](ai(0x1c2)),J[ai(0x198)](function(L){const ak=ai;L[ak(0x1bc)]===u?Log[ak(0x1ac)](ak(0x183)+L['id']+ak(0x1b2)+L[ak(0x1bc)]+ak(0x179)+L[ak(0x1b3)]):Log[ak(0x1b8)](ak(0x183)+L['id']+ak(0x1b2)+L[ak(0x1bc)]+'\x20SGID:\x20'+L[ak(0x1b3)]);});const K=await Actions[ai(0x16e)](ai(0x19c)+H+']\x20')||H[ai(0x176)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1b3)],Log[al(0x1b6)](al(0x1be)+m+'\x0a'));});}else m=I,Log[ai(0x1b6)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x1ad)](ai(0x1d1));}catch(L){Log[ai(0x1ad)](L);}try{const M=0x7e6;Log[ai(0x1ac)](ai(0x175));const N=execSync(ai(0x1b4)+M+ai(0x19a))[ai(0x176)](),O=JSON[ai(0x1c4)](N),P=[],Q=[];O[ai(0x198)](function(S){const am=ai;if(S[am(0x1cc)]==='amazon'){const T=S[am(0x182)]['split'](am(0x189))[0x1];P[am(0x17b)]({'amiId':S['ID'],'desc':S[am(0x182)],'date':T});}}),P[ai(0x187)](function(S,T){const an=ai;return new Date(T['date'])[an(0x1c0)]()-new Date(S['date'])['getTime']();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x17b)]({'id':T,'amiId':S[ao(0x1bf)],'desc':S['desc']});}),Q[ai(0x198)](function(S){const ap=ai;console[ap(0x16b)]('ID:\x20'+S['id']+'\x20AMIID:\x20'+S[ap(0x1bf)]+ap(0x17e)+S[ap(0x16c)]);});const R=await Actions[ai(0x16e)](ai(0x18f))||'0';Q[ai(0x198)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1bf)],Log[aq(0x1b6)](aq(0x1c8)+n+aq(0x16f)+S['desc']));});if(n==='')throw Log[ai(0x1ad)](ai(0x1d1));}catch(S){Log[ai(0x1ad)](S);}try{Log[ai(0x1ac)](ai(0x180));const T=execSync(ai(0x171))[ai(0x176)](),U=JSON[ai(0x1c4)](T),V=[];U[ai(0x198)](function(X,Y){const ar=ai;V[ar(0x17b)]({'id':Y,'cidr':X[ar(0x172)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x198)](function(X){const as=ai;console['log']('ID:\x20'+X['id']+as(0x17a)+X[as(0x1c5)]+as(0x18b)+X['az']+as(0x16a)+X[as(0x1a2)]);});const W=await Actions[ai(0x16e)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x198)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x1a2)],Log[at(0x1b6)](at(0x1bd)+p));});if(p==='')throw Log[ai(0x1ad)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x1ad)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x16e)](ai(0x168))||'1:1',Z=Y[ai(0x17f)](':')[0x0],a0=Y[ai(0x17f)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x19d)&&Log[ai(0x1b6)](ai(0x1bb)+Z+':'+a0);}catch(a1){Log[ai(0x1ad)](a1);}try{const a2=await Actions['ask'](ai(0x16d))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x1ad)](a3);}let x='';try{const a4=await Actions[ai(0x174)](ai(0x1a1),![]);a4&&(x=a7f[ai(0x1af)](i,ai(0x1a5)),Log['notice'](ai(0x1d2)+x),await this[ai(0x1a4)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x174)](ai(0x167)));}catch(a5){Log[ai(0x1ad)](a5);}try{const a6=JSON[ai(0x1c4)](execSync(ai(0x178)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x176)]())[0x0][ai(0x1b0)];Log[ai(0x1ac)](ai(0x169)+n),Log[ai(0x1ac)](ai(0x1d3)+v+':'+w),Log[ai(0x1ac)]('Instace\x20Type:\x20'+o),Log[ai(0x1ac)](ai(0x170)+r),Log[ai(0x1ac)](ai(0x1c7)+m),Log['notice'](ai(0x17c)+a6);if(x){Log['notice']('User\x20Data:'+x);const a8=a7g[ai(0x185)](x)[ai(0x176)]();Log[ai(0x1ac)](a8);}const a7=await Actions['confirm'](ai(0x18d));if(a7){const a9=await d[ai(0x18a)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x1a3)},{'Key':'environment','Value':h},{'Key':ai(0x1cd),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0x19f)),Log[ai(0x1b8)](ai(0x19b)));}else{Log[ai(0x1ac)](ai(0x1c9));const aa=await Actions[ai(0x174)](ai(0x181)+r+'\x20?',!![]);aa&&(d[ai(0x1aa)](r),f[ai(0x197)](s)&&a7g[ai(0x1c3)](s));const ab=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x1ab)](m);}}catch(ac){Log[ai(0x1ad)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x1b1)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x14e;let f=c[d];return f;},a8d(a,b);}const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x155))/0x1*(parseInt(g(0x167))/0x2)+-parseInt(g(0x164))/0x3*(parseInt(g(0x154))/0x4)+-parseInt(g(0x159))/0x5+-parseInt(g(0x15c))/0x6*(-parseInt(g(0x157))/0x7)+-parseInt(g(0x150))/0x8*(-parseInt(g(0x14f))/0x9)+parseInt(g(0x152))/0xa*(parseInt(g(0x15b))/0xb)+-parseInt(g(0x15e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x5c80c));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x163)]()[h(0x165)](h(0x160))[h(0x163)]()['constructor'](a8a)['search'](h(0x160));});a8a();function a8c(){const k=['toString','27177wXRopC','search','create-key-pair','6oDlCNW','error','29439rRHAbh','616tnwGLk','\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','1170QhcRtf','ckp','312thbgPt','95116bPfJhV','exit','175IvpEBW','getConfigFromShorthand','85965RpDCYM','maka\x20aws:create-key-pair','41569cARwTf','179130cUMJzu','env','628200mxBFth','maka\x20aws:ckp\x20--env\x20prod','(((.+)+)+)+$','maka\x20aws:create-key-pair\x20--env\x20prod','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance'];a8c=function(){return k;};return a8c();}import a8e 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['create']({'name':a8i(0x166),'aliases':[a8i(0x153)],'usage':a8i(0x15a),'examples':[a8i(0x161),a8i(0x15f)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8i(0x162),'description':a8i(0x151)},async function(a,b){const j=a8i;try{const c=new AWS(),d=this['fsi'][j(0x158)](b[j(0x15d)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[j(0x14e)](f),process[j(0x156)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0xaf))/0x1*(parseInt(m(0xb3))/0x2)+parseInt(m(0xb6))/0x3*(-parseInt(m(0xb4))/0x4)+-parseInt(m(0xc5))/0x5+parseInt(m(0xb8))/0x6+-parseInt(m(0xbe))/0x7+parseInt(m(0xb2))/0x8*(-parseInt(m(0xcc))/0x9)+parseInt(m(0xc2))/0xa*(parseInt(m(0xc9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x27271));function a9c(){const s=['chooseVPC','create','22JZtMcw','forEach','getMakaProjectConfig','7245dxZJur','maka\x20aws:create-secuirty-group','search','ask','257036BJJZug','apply','exit','584ddtckw','2ARXkCb','831684bqPFGN','Web\x20App','3FwghZG','split','653952hSHakk','toString','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','match','csg','Security\x20Group\x20Name:\x20[','433909ZEvrwN','(((.+)+)+)+$','name','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','3756010inSVPj','\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','maka\x20aws\x20create-security-group','570580UTJJSw','maka\x20aws:csg'];a9c=function(){return s;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xad;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0xb9)]()[o(0xad)]('(((.+)+)+)+$')['toString']()['constructor'](a9a)['search'](o(0xbf));});a9a();import a9e 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';import{Log}from'../../tools/log/log.class.js';Command[a9p(0xc8)]({'name':'create-security-group','aliases':[a9p(0xbc)],'usage':a9p(0xc4),'validOpts':[],'shortDesc':a9p(0xba),'description':a9p(0xc3),'examples':[a9p(0xcd),a9p(0xc6)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi'][q(0xcb)](),{appName:f}=d,g=await c[q(0xc7)](),h=b['name']?b[q(0xc0)]:''+f,i=await Actions[q(0xae)](q(0xbd)+h+']')||h,j=await Actions[q(0xae)](q(0xc1))||'22,80,443',k=j[q(0xb7)](',');k[q(0xca)](l=>{const r=q;if(!l[r(0xbb)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c['ec2createSG']({'description':q(0xb5),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process[q(0xb1)](0x1);}},a9e);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1c5))/0x1+-parseInt(f(0x1bf))/0x2*(parseInt(f(0x1c7))/0x3)+parseInt(f(0x1cb))/0x4*(-parseInt(f(0x1c8))/0x5)+-parseInt(f(0x1cc))/0x6*(parseInt(f(0x1c4))/0x7)+-parseInt(f(0x1b5))/0x8+parseInt(f(0x1b7))/0x9*(-parseInt(f(0x1b8))/0xa)+parseInt(f(0x1c6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x95af2));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(0x1b6)](g(0x1bc))['toString']()[g(0x1d1)](a10a)['search'](g(0x1bc));});a10a();import a10e 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';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a10d(a,b);}Command[a10h(0x1b9)]({'name':a10h(0x1c0),'aliases':[a10h(0x1c9)],'usage':a10h(0x1cd),'requiredOpts':[a10h(0x1c3),a10h(0x1c2)],'validOpts':[],'shortDesc':'Delete\x20an\x20Elastic\x20Container\x20Repository','examples':[a10h(0x1bb),a10h(0x1bd)]},async function(a,b){const i=a10h;try{const c=new AWS();await c[i(0x1ba)]({'repoName':b[i(0x1c3)],'region':b['region']}),Log[i(0x1c1)](i(0x1d0)+b[i(0x1c3)]+i(0x1ca)+b[i(0x1c2)]+'.'),process[i(0x1cf)](0x0);}catch(d){Log['error']('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[i(0x1c3)]+i(0x1ce)+b[i(0x1c2)]+i(0x1be)+d),process[i(0x1cf)](0x1);}},a10e);function a10c(){const j=['2691UwesSa','32050fBSwuE','create','ecrDeleteRepository','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','(((.+)+)+)+$','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','.\x20Error:\x20','2zGoAPn','delete-ecr','success','region','name','97594ixCKBf','1056960qKrlUV','52317716Yzzsud','2980566zNieZV','7705GCvpKA','decr','\x20deleted\x20successfully\x20in\x20region\x20','372Zzadfg','384lPJKtK','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','\x20in\x20region\x20','exit','Repository\x20','constructor','789376fxmYeS','search'];a10c=function(){return j;};return a10c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11h=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x187;let f=c[d];return f;},a11d(a,b);}function a11c(){const j=['6938286ZoTFrw','1055752jjYezv','\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','277316NQPftf','error','(((.+)+)+)+$','constructor','search','describe-instances','create','7856600PKfLGT','74292070bROcrv','exit','9lcxLYE','5514WOhUzr','ec2describeInstances','1294BCrbQM','maka\x20aws:describe-instances','70SHsgNF','1366593bwSdWk','toString'];a11c=function(){return j;};return a11c();}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x188))/0x1+parseInt(f(0x19a))/0x2*(-parseInt(f(0x198))/0x3)+parseInt(f(0x18d))/0x4+-parseInt(f(0x194))/0x5+-parseInt(f(0x18a))/0x6+parseInt(f(0x187))/0x7*(-parseInt(f(0x18b))/0x8)+-parseInt(f(0x197))/0x9*(-parseInt(f(0x195))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xda986));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const g=a11d;return a11a[g(0x189)]()[g(0x191)](g(0x18f))[g(0x189)]()[g(0x190)](a11a)['search'](g(0x18f));});a11a();import a11e 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[a11h(0x193)]({'name':a11h(0x192),'aliases':['di'],'usage':a11h(0x19b),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':a11h(0x18c)},async function(){const i=a11h;try{const a=new AWS();a[i(0x199)]();}catch(b){b&&Log[i(0x18e)](b),process[i(0x196)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1c7))/0x1*(parseInt(f(0x1c5))/0x2)+parseInt(f(0x1ca))/0x3+parseInt(f(0x1d3))/0x4*(-parseInt(f(0x1d2))/0x5)+-parseInt(f(0x1cf))/0x6+-parseInt(f(0x1d0))/0x7*(-parseInt(f(0x1c9))/0x8)+-parseInt(f(0x1c8))/0x9+parseInt(f(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x67441));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1d5)]()[h(0x1cc)](h(0x1cd))[h(0x1d5)]()['constructor'](a12a)['search'](h(0x1cd));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a12d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a12c(){const k=['16fdKOYn','1476948TWLqle','apply','search','(((.+)+)+)+$','describe-key-pairs','3298326gckizS','1535345KTNfHx','dkp','605VcIAUo','9124KXyfqM','maka\x20aws:dkp','toString','2916300bEFvkr','maka\x20aws:describe-key-pairs','exit','ec2describeKeys','10pYxCem','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','34082LdOPea','1298943XUuvrB'];a12c=function(){return k;};return a12c();}Command['create']({'name':a12i(0x1ce),'aliases':[a12i(0x1d1)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'shortDesc':a12i(0x1c6),'examples':[a12i(0x1c2),a12i(0x1d4)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x1c4)]();}catch(b){b&&Log['error'](b),process[j(0x1c3)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13n=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x1b1))/0x1*(parseInt(l(0x1bd))/0x2)+parseInt(l(0x1b7))/0x3*(parseInt(l(0x1be))/0x4)+-parseInt(l(0x1b0))/0x5+parseInt(l(0x1d3))/0x6+-parseInt(l(0x1b2))/0x7*(parseInt(l(0x1c1))/0x8)+-parseInt(l(0x1c7))/0x9*(-parseInt(l(0x1b9))/0xa)+-parseInt(l(0x1bf))/0xb*(parseInt(l(0x1d5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xbc5ea));function a13c(){const q=['\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','sgId','forEach','1708578dzptwt','\x20SGID:\x20','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','maka\x20aws:delete-sg','Deleting\x20a\x20','notice','delete-security-group','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','(((.+)+)+)+$','search','success','create','6605994DaeOQR','dsg','12FYRDpB','appName','getSecurityGroups','toString','name','Not\x20deleting\x20secuirty\x20group','Deleted\x20','6956845gUTDmv','314114SLRvEk','21YNrDjF','error','ID:\x20','deleteSecurityGroup','\x20SG\x20NAME:\x20','16098uuxTCa','isMakaProject','50qeeoHB','maka\x20aws:dsg','getMakaProjectConfig','bright','4BJzqHR','1116LxgZud','5475019cFwqun','includes','689160tABzSW','ask','constructor'];a13c=function(){return q;};return a13c();}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1af;let f=c[d];return f;},a13d(a,b);}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const m=a13d;return a13a[m(0x1d8)]()[m(0x1d0)](m(0x1cf))['toString']()[m(0x1c3)](a13a)[m(0x1d0)](m(0x1cf));});a13a();import a13e 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';import{Actions}from'../../tools/actions/actions.class.js';Command[a13n(0x1d2)]({'name':a13n(0x1cd),'aliases':[a13n(0x1d4)],'usage':a13n(0x1ca),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a13n(0x1ca),a13n(0x1ba)]},async function(){const o=a13n;try{const a=new AWS(),b=new FSI(),c=b[o(0x1b8)]();let d='';if(c){const j=b[o(0x1bb)]();d=j[o(0x1d6)];}const {sgList:f}=await a[o(0x1d7)]();f[o(0x1c6)](function(k){const p=o;c&&k[p(0x1d9)][p(0x1c0)](d)?Log[p(0x1cc)](p(0x1b4)+k['id']+p(0x1b6)+k[p(0x1d9)]+p(0x1c8)+k[p(0x1c5)]):Log[p(0x1bc)]('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[p(0x1d9)]+p(0x1c8)+k['sgId']);});let g='';const h=await Actions[o(0x1c2)](o(0x1c9));f['forEach'](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[o(0x1b3)](o(0x1ce));const i=await Actions['confirm'](o(0x1cb)+g+o(0x1c4),![]);i?(await a[o(0x1b5)](g),Log[o(0x1d1)](o(0x1af)+g)):Log[o(0x1b3)](o(0x1da)),process['exit'](0x0);}catch(k){k&&Log[o(0x1b3)](k),process['exit'](0x1);}},a13e);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a14i=a14d;function a14c(){const k=['lecr','maka\x20aws:lecr\x20--regions=all','26728OyhtCw','toString','create','success','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','6MmNlRD','exit','regions','766583AYRghI','6KThuIP','maka\x20aws:list-ecr','959352aUpXSO','2DXmXPD','136493qCBzsj','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','2656265kAtcJK','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','16815557CVCNgn','10020190AtzgYk','apply','search','(((.+)+)+)+$','2439UWXdAa','listAllEcrRepositories','constructor'];a14c=function(){return k;};return a14c();}(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x132))/0x1*(parseInt(f(0x136))/0x2)+parseInt(f(0x12f))/0x3*(parseInt(f(0x135))/0x4)+parseInt(f(0x139))/0x5*(-parseInt(f(0x133))/0x6)+-parseInt(f(0x137))/0x7+-parseInt(f(0x12a))/0x8*(-parseInt(f(0x140))/0x9)+-parseInt(f(0x13c))/0xa+parseInt(f(0x13b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x911f4));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x12b)]()[h(0x13e)]('(((.+)+)+)+$')['toString']()[h(0x127)](a14a)[h(0x13e)](h(0x13f));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x127;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x12c)]({'name':'list-ecr','aliases':[a14i(0x128)],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x131)],'shortDesc':a14i(0x12e),'examples':[a14i(0x134),a14i(0x138),a14i(0x129)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x141)](b[j(0x131)]),Log[j(0x12d)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x130)](0x0);}catch(d){Log['error'](j(0x13a)+d),process[j(0x130)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15i=a15d;function a15c(){const k=['360837GoHgDQ','name','(((.+)+)+)+$','145dLPvCa','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:rbi','create','error','search','constructor','status','27702zjkVae','2546MAaCrl','exit','\x20is\x20still\x20running.','216800CSpkct','reboot-instance','toString','1068UkANIW','instanceId','running','chooseInstance','436779scECgr','3900UtRlRI','1423120foAMSg','Reboot\x20an\x20EC2\x20instance','maka\x20aws:reboot-instance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','rbi'];a15c=function(){return k;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0xce))/0x1*(parseInt(f(0xb8))/0x2)+-parseInt(f(0xcb))/0x3+parseInt(f(0xbb))/0x4+parseInt(f(0xc3))/0x5*(parseInt(f(0xbe))/0x6)+parseInt(f(0xc2))/0x7+parseInt(f(0xc4))/0x8+-parseInt(f(0xb7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x1e9c9));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0xbd)]()[h(0xb4)](h(0xcd))[h(0xbd)]()[h(0xb5)](a15a)[h(0xb4)](h(0xcd));});a15a();import a15e 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-0xb1;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0xb2)]({'name':a15i(0xbc),'aliases':[a15i(0xca)],'usage':a15i(0xc6),'validOpts':[],'shortDesc':a15i(0xc5),'examples':[a15i(0xc6),a15i(0xb1)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xc1)]();if(b?.[j(0xb6)]===j(0xc0)){const c=await Actions['confirm'](j(0xc9)+b['name']+'\x20Ready?');c&&b[j(0xbf)]?a['ec2rebootInstance']({'instanceId':b[j(0xbf)]}):Log[j(0xb3)](j(0xc7)+b[j(0xcc)]+j(0xba));}else Log[j(0xb3)](j(0xcf));}catch(d){d&&Log[j(0xb3)](d),process[j(0xb9)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16H=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0x1b5))/0x1+parseInt(E(0x1ca))/0x2*(parseInt(E(0x1bd))/0x3)+parseInt(E(0x1a9))/0x4+-parseInt(E(0x1d4))/0x5*(parseInt(E(0x1c1))/0x6)+parseInt(E(0x1d5))/0x7+-parseInt(E(0x1c4))/0x8+-parseInt(E(0x1dc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x9195c));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 F=a16d;return a16a[F(0x1b6)]()[F(0x1c9)](F(0x1ce))[F(0x1b6)]()[F(0x1bc)](a16a)[F(0x1c9)](F(0x1ce));});a16a();import a16e 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';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a16d(a,b);}import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const G=a16d;return Object[G(0x1d8)](CountryCode)['includes'](a);}function a16c(){const J=['(((.+)+)+)+$','register-domain-name','Contact\x20Email\x20[mail@example.com]:\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','My\x20Comanpy,\x20LLC.','\x20/\x20Year)','4470vanPRF','8074563hswdvI','warn','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','values','Invalid\x202\x20character\x20country\x20code','checkDomainAvailability','Country\x20Code\x20[US]:\x20','8558532TuNjdj','96816','PUBLIC_BODY','contactType','\x20/\x20Year\x20\x0a','The\x20domain\x20name:\x20','Domain\x20name\x20is\x20unavailable','maka\x20aws:rdn\x20--domain=example.com','Do\x20you\x20wish\x20to\x20register\x20','domain','4107888kCCfCb','registerDomain','PERSON','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','notice','options','State\x20[HI]:\x20','RESELLER','error','confirm','Are\x20you\x20sure?','Contact','1087177HyUqEp','toString','mail@example.com','Zip\x20Code\x20[96816]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','123\x20Glorious\x20Way','constructor','9HHtmfx','exit','maka\x20aws:register-domain-name','+1.5555555555','822URqrBc','list','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','25464piufGa','Auto\x20Renew:\x20','Duration\x20in\x20years\x20[1]:\x20','ASSOCIATION','\x20for\x20','search','386414yNqNUg','ask','COMPANY','Address\x20Line\x202:\x20'];a16c=function(){return J;};return a16c();}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a16H(0x1cf),'aliases':['rdn'],'usage':a16H(0x1bf),'requiredOpts':[a16H(0x1a8)],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a16H(0x1b9),a16H(0x1a6)]},async function(a,b){const I=a16H;try{const c=b[I(0x1a8)],d=new AWS(),{available:f,cost:g}=await d[I(0x1da)](c);if(f&&g){Log[I(0x1ad)](I(0x1e1)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[I(0x1d6)]('\x20\x20'+h+'\x20'+i+I(0x1e0));const j=await Actions[I(0x1b2)](I(0x1a7)+c+'\x20?',![]);if(j){const k={'type':I(0x1c2),'name':I(0x1df),'message':'Choose\x20contact\x20type','choices':[I(0x1c7),I(0x1cc),I(0x1ab),I(0x1de),I(0x1b0)]},l=await Actions[I(0x1cb)](I(0x1c6))||'1',m=await Actions[I(0x1cb)](I(0x1ba))||I(0x1b4),n=await Actions[I(0x1cb)]('Contact\x20Last\x20Name\x20[Person]:\x20')||'Person',{contactType:o}=await Actions[I(0x1ae)](k),p=await Actions[I(0x1cb)](I(0x1c3))||I(0x1bb),q=await Actions[I(0x1cb)](I(0x1cd)),r=await Actions[I(0x1cb)](I(0x1b8))||I(0x1dd),s=await Actions['ask'](I(0x1af))||'HI',t=await Actions[I(0x1cb)](I(0x1db))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x1b1)](I(0x1d9));const v=await Actions[I(0x1cb)](I(0x1d7))||I(0x1c0),w=await Actions[I(0x1cb)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||'+1.5555555556',x=await Actions[I(0x1cb)](I(0x1d0))||I(0x1b7),y=await Actions[I(0x1b2)](I(0x1c5)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==I(0x1ab)){const C=await Actions[I(0x1cb)](I(0x1d1))||I(0x1d2);z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log['notice'](I(0x1ac)),Log[I(0x1d6)](A+'\x20'+i+I(0x1c8)+l+'\x20years\x20('+h+'\x20'+i+I(0x1d3));const B=await Actions['confirm'](I(0x1b3));B&&await d[I(0x1aa)](z,c,parseInt(l),y);}}else throw I(0x1e2);}catch(D){D&&Log['error'](D),process[I(0x1be)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0xfa))/0x1+-parseInt(h(0xfc))/0x2+-parseInt(h(0x109))/0x3*(-parseInt(h(0xfd))/0x4)+-parseInt(h(0x101))/0x5+-parseInt(h(0xff))/0x6+-parseInt(h(0x10b))/0x7+parseInt(h(0x102))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x5c73d));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0xf8)]()['search'](j(0x10e))[j(0xf8)]()[j(0xfb)](a17a)[j(0x10f)](j(0x10e));});function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0xf6;let f=c[d];return f;},a17d(a,b);}a17a();import a17e 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[a17k(0x100)]({'name':a17k(0x110),'aliases':[a17k(0x108)],'usage':a17k(0x104),'validOpts':[],'shortDesc':a17k(0xf7),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a17k(0x104),a17k(0x105)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x103)]();let c=undefined;const d=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0xfe)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x10d)](l(0xf9));const f=await Actions['confirm'](l(0xf6)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[l(0x10a)](c),Log['success'](l(0x106)+c)):Log['error']('Not\x20deleting\x20keypair'),process[l(0x107)](0x0);}catch(g){g&&Log[l(0x10d)](g),process[l(0x107)](0x1);}},a17e);function a17c(){const m=['maka\x20aws:rkp','Deleted\x20','exit','rkp','3sXNkoP','deleteKeyPair','1668604WqwUpL','apply','error','(((.+)+)+)+$','search','remove-key-pair','Deleting\x20a\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','101105NJvHDe','constructor','192196lkNeDW','1883708qFaauK','forEach','647274EDbDaz','create','3746495DZjTtA','9604088uJvpFX','ec2describeKeys','maka\x20aws:remove-key-pair'];a17c=function(){return m;};return a17c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18n=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0x1e0))/0x1*(parseInt(l(0x1c4))/0x2)+parseInt(l(0x1c7))/0x3+parseInt(l(0x1bf))/0x4*(parseInt(l(0x1c8))/0x5)+parseInt(l(0x1d5))/0x6+-parseInt(l(0x1de))/0x7*(parseInt(l(0x1c0))/0x8)+-parseInt(l(0x1cb))/0x9*(-parseInt(l(0x1c9))/0xa)+-parseInt(l(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xeb9cd));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 m=a18d;return a18a[m(0x1e3)]()['search'](m(0x1c2))[m(0x1e3)]()[m(0x1e2)](a18a)[m(0x1e6)](m(0x1c2));});a18a();import a18e from'path';function a18c(){const p=['ssh.json','4872dhhdyp','cat\x20','appName','5127540ACTyth','5SWYhEq','1100790NHnugE','23533961JpDFDL','63yVwgte','success','writeFileSync','isFile','getMakaProjectConfig','host','utf8','parse','join','maka\x20aws:sth\x20--env\x20prod','3055806NzXbqC','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','template','exit','stringify','ask','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','inherit','chooseInstance','2846879fwBqNZ','readFileSync','197vWNfts','privateIp','constructor','toString','getAppConfigPath','error','search','private','fsi','env','public','sep','maka\x20aws\x20set-host','7261876LPnvrf','24fmEHhg','\x20IP\x20to\x20','(((.+)+)+)+$'];a18c=function(){return p;};return a18c();}import a18f from'fs';import{execSync}from'child_process';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a18d(a,b);}import a18g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'set-host','aliases':['sth'],'usage':a18n(0x1be),'mustBeInMakaProject':!![],'requiredOpts':[a18n(0x1e9)],'validOpts':[],'shortDesc':a18n(0x1d6),'description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':['maka\x20aws:set-host\x20--env\x20dev',a18n(0x1d4)]},async function(a,b){const o=a18n;try{const c=new AWS(),d=this[o(0x1e8)][o(0x1e4)](b[o(0x1e9)]),f=this[o(0x1e8)][o(0x1cf)](),g=await c[o(0x1dd)](),h=a18e[o(0x1d3)](d,o(0x1c3));!this[o(0x1e8)][o(0x1ce)](h)&&await this[o(0x1e8)][o(0x1d7)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[o(0x1c6)]},'config':f});const i=JSON[o(0x1d2)](a18f[o(0x1df)](h,o(0x1d1))),j=await Actions[o(0x1da)](o(0x1db))||'public';if(j){if(j===o(0x1ea)||j===o(0x1e7)){if(j===o(0x1ea))i[o(0x1d0)]=g?.['publicIp'];else j===o(0x1e7)&&(i[o(0x1d0)]=g?.[o(0x1e1)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[o(0x1d0)]=g?.[o(0x1e1)];a18f[o(0x1cd)](a18e[o(0x1d3)](d,'ssh.json'),JSON[o(0x1d9)](i,null,0x2)),execSync(o(0x1c5)+a18e[o(0x1d3)](d,o(0x1c3)),{'stdio':o(0x1dc)}),Log[o(0x1cc)]('\x0aSaved\x20host\x20'+j+o(0x1c1)+d+a18e[o(0x1bd)]+'ssh.json');}catch(k){k&&Log[o(0x1e5)](k),process[o(0x1d8)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0xe7))/0x1+-parseInt(f(0xe5))/0x2+-parseInt(f(0xd2))/0x3+-parseInt(f(0xdb))/0x4+-parseInt(f(0xcc))/0x5*(-parseInt(f(0xcf))/0x6)+-parseInt(f(0xd9))/0x7+parseInt(f(0xce))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x1e290));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0xdd)]()[h(0xd4)](h(0xcd))[h(0xdd)]()['constructor'](a19a)[h(0xd4)]('(((.+)+)+)+$');});a19a();function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xcc;let f=c[d];return f;},a19d(a,b);}import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a19c(){const k=['147292lEpxdB','name','231307grXART','chooseInstance','ec2terminateInstance','5rzeiFl','(((.+)+)+)+$','2707728UiLOWP','910086BYuMiz','maka\x20aws:terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','550080qdthQh','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','search','Terminate\x20an\x20EC2\x20instance','running','status','confirm','1586375eDdvTs','error','457148xmgCLh','apply','toString','instanceId','\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','create','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','terminate-instance','\x20Ready?','exit'];a19c=function(){return k;};return a19c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0xe0)]({'name':a19i(0xe2),'aliases':['ti'],'usage':a19i(0xd0),'validOpts':[],'shortDesc':a19i(0xd5),'description':a19i(0xdf),'examples':['maka\x20aws:terminate-instance','maka\x20aws:ti']},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0xe8)]();if(b?.[j(0xde)]&&b?.[j(0xd7)]===j(0xd6)){const c=await Actions[j(0xd8)](j(0xd1)+b[j(0xe6)]+j(0xe3));c?a[j(0xe9)]({'instanceId':b[j(0xde)]}):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b['name']+j(0xd3));}else Log[j(0xda)](j(0xe1));}catch(d){d&&Log['error'](d),process[j(0xe4)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x11c))/0x1*(parseInt(f(0x116))/0x2)+parseInt(f(0x113))/0x3+parseInt(f(0x117))/0x4+-parseInt(f(0x111))/0x5+-parseInt(f(0x119))/0x6*(-parseInt(f(0x11b))/0x7)+-parseInt(f(0x112))/0x8+parseInt(f(0x110))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x9ecc4));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()[h(0x11a)](h(0x115))['toString']()[h(0x118)](a20a)[h(0x11a)](h(0x115));});function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x110;var f=c[d];return f;},a20d(a,b);}a20a();import'./build.js';import'./docker.sub.cmd.js';function a20c(){var i=['4747203aIdfkY','6132590ajeFBl','9807112IjYYKK','2575773UhMdlM','apply','(((.+)+)+)+$','342zglTzL','756344qWwmUm','constructor','468eIRpJI','search','102158diSbqe','2277SCPuRl'];a20c=function(){return i;};return a20c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0xb0))/0x1*(-parseInt(n(0xad))/0x2)+parseInt(n(0xa0))/0x3+parseInt(n(0xb5))/0x4+parseInt(n(0x90))/0x5+parseInt(n(0x94))/0x6+parseInt(n(0xb2))/0x7+parseInt(n(0xb3))/0x8*(-parseInt(n(0x9c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x8506b));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0xb4)]()[p(0x97)](p(0x99))[p(0xb4)]()[p(0xab)](a21a)[p(0x97)](p(0x99));});a21a();function a21c(){const t=['Aborted.','947vLoyfH','confirm','6920984DOJOWf','3504016WFDnNY','toString','2055828tlYdmp','exit','force','app.tar.gz','3488395kXKsUf','join','forEach','maka\x20build','408768iKHeHj','pathFromProject','create','search','splice','(((.+)+)+)+$','invokeMeteorCommand','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','54fDeimH','getProjectMeteorVersion','--force',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','721692hpEWIf','slice','checkMeteorPackage','fsi','getGlobalMeteorVersion','apply','build','autoupdate','update','\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','error','constructor','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','1402xAiWuh','This\x20project\x27s\x20meteor\x20version\x20('];a21c=function(){return t;};return a21c();}function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x8d;let f=c[d];return f;},a21d(a,b);}import a21e from'path';import a21f from'fs';import a21g 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[a21q(0x96)]({'name':a21q(0xa6),'usage':'maka\x20build','validOpts':[a21q(0x8e)],'aliases':['b'],'shortDesc':a21q(0x9b),'mustBeInMakaProject':!![],'description':a21q(0xa9),'examples':[a21q(0x93)]},async function(a,b){const r=a21q;try{await this[r(0xa3)][r(0xa2)](r(0xa7),{'shouldInstall':!![]});const c=b[r(0x8e)];if(!c){const g=this[r(0xa3)][r(0xa4)](),h=this[r(0xa3)][r(0x9d)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0xb1)](r(0xae)+h+r(0x9f)+g+').\x20Update?');j&&this['fsi'][r(0x9a)](r(0xa8),['--release',g]);}}const d=[this[r(0xa3)][r(0x95)]({'pathParts':[r(0xa6)]})]['concat'](process['argv'][r(0xa1)](0x3)),f=a21e[r(0x91)](this['fsi'][r(0x95)]({}),r(0xa6),r(0x8f));if(a21f['existsSync'](f)){const k=c??await Actions[r(0xb1)](r(0xac));if(!k)throw Log[r(0xaa)](r(0xaf));}d[r(0x92)]((l,m)=>{const s=r;l===s(0x9e)&&d[s(0x98)](m,0x2);}),this[r(0xa3)][r(0x9a)](r(0xa6),d);}catch(l){console['error'](l),process[r(0x8d)](0x0);}});export default BuildCommand;
|