@maka/maka-cli 4.12.16 → 4.12.17
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 -1
- 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 -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/decr.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/lecr.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/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/templates/meteor/config/docker-compose.yaml +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/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.17",
|
|
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.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x22d))/0x1*(parseInt(n(0x233))/0x2)+parseInt(n(0x218))/0x3+parseInt(n(0x21f))/0x4+-parseInt(n(0x23c))/0x5+-parseInt(n(0x1fe))/0x6+parseInt(n(0x22f))/0x7*(-parseInt(n(0x213))/0x8)+-parseInt(n(0x22c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x373af));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1fc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x239)]()[p(0x20c)](p(0x21c))['toString']()[p(0x227)](a0a)[p(0x20c)](p(0x21c));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a0d(a,b);}function a0c(){const A=['find','197811rowbnt','1TjNvsI','Name','406OKMjHS','minArgLength','options','Too\x20few\x20options','367594QUQwKm','mustHaveMeteorInstalled','_handler','aliases','Command\x20not\x20found','pallet','toString','length','help','1451445Grbosz','localeCompare','bright','Command.create\x20requires\x20a\x20handler\x20function!','maybeProxyCommandToMeteor','exit','generate','light','validateMeteorInstall','processAndRunCommand','addCommand\x20requires\x20a\x20Command\x20instance','function','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','play','Command\x20requires\x20a\x20handler\x20function','addCommand','slice','keys','apply','push','958374GwpJrJ','Command\x20format\x20is\x20incorrect','DARK','notice','assign','maxOptsLength','minOptsLength','header','Please\x20run\x20\x22maka\x20install\x20meteor\x22','match','\x20not\x20found','murder','join','forEach','search','Please\x20run\x20\x22maka\x20login\x22','unshift','Command.create\x20requires\x20some\x20options!','invoke','sort','shortDesc','36760REraCO','_commands','call','tableList','maxArgLength','1176153MPSmVp','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Sub-Commands:','validateUserIsLoggedIn','(((.+)+)+)+$','fsi','LIGHT','1555528btUnSX','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','name','run','validateMakaSubscription','Command\x20','mustBeLoggedIn','error','constructor','Too\x20few\x20arguments','number','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details'];a0c=function(){return A;};return a0c();}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x231)];['_commands'];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x220));if(!a[r(0x221)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==r(0x1f5))throw new Error(r(0x1f8));this[r(0x231)]=Object[r(0x202)]({},a),this['name']=this[r(0x231)][r(0x221)],this[r(0x214)]=[],this[r(0x235)]=b['bind'](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0x20f));if(typeof b!==s(0x1f5))throw new Error(s(0x23f));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[s(0x231)]?.['name']}),c[s(0x1f9)](d),d;}[a0q(0x1f9)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1f4));this[t(0x214)]['push'](a);}async[a0q(0x222)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x21d)]['getGlobalConfig'](),d=c[u(0x238)]===u(0x1f1)?ColorMode[u(0x21e)]:ColorMode[u(0x200)];Log['setColorMode'](d),await this[u(0x223)](this);}catch(f){Log[u(0x226)](f),process[u(0x1ef)](0x0);}return await this[u(0x210)](a,b);}catch(g){process[u(0x1ef)](0x1);}}async[a0q(0x210)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[v(0x231)][v(0x221)]!==v(0x1f0)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x23a)]===0x0)&&this[v(0x214)][v(0x23a)]>=0x0,g=b[v(0x23b)]||b['h'];if(f&&g){if(this[v(0x214)][v(0x23a)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options']['mustBeInMakaProject']){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[v(0x231)][v(0x225)]){const i=await this[v(0x21b)]();if(!i)throw new MustBeLoggedIn();}if(this[v(0x231)][v(0x234)]){const j=this[v(0x1f2)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x231)][v(0x230)]===v(0x229)){if(a[v(0x23a)]<this['options']['minArgLength']){Log[v(0x226)](v(0x228));throw new UsageError();}}if(typeof this[v(0x231)][v(0x217)]===v(0x229)){if(a[v(0x23a)]>=this[v(0x231)][v(0x217)]){Log[v(0x226)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[v(0x231)]['minOptsLength']==='number'){if(Object[v(0x1fb)](b)[v(0x23a)]<this['options'][v(0x204)]){Log[v(0x226)](v(0x232));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===v(0x229)){if(Object['keys'](b)[v(0x23a)]>=this['options'][v(0x203)]){Log['error']('Too\x20many\x20options');throw new UsageError();}}}}b=await this['validateParams'](a,b,this[v(0x231)]),_prevCmd=a[0x0];}return await this[v(0x235)][v(0x215)](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log['notice'](v(0x21a)),this[v(0x216)](this[v(0x214)]),Log[v(0x205)](v(0x22a));else{if(k instanceof MustBeInProjectError)Log['error'](v(0x1f6));else{if(k instanceof NoMeteorFoundError)Log[v(0x226)](v(0x219)),Log[v(0x201)](v(0x206));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x226)]('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log[v(0x226)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log['notice'](v(0x20d)));}}}process[v(0x1ef)](0x1);}}[a0q(0x216)](a){const w=a0q,b=new a0e({});b[w(0x1fd)]([w(0x22e),'Alias','Description']),a[w(0x211)]((c,d)=>{const x=w;return c[x(0x221)][x(0x23d)](d['name']);})[w(0x20b)](c=>{const y=w;c[y(0x221)]!==y(0x209)&&c[y(0x221)]!==y(0x1f7)&&b[y(0x1fd)]([c[y(0x221)],c[y(0x236)](),c[y(0x212)]()]);}),Log[w(0x23e)](b['toString']());}async[a0q(0x1f3)](a,b=[],c={}){const z=a0q;try{const d=a?.['split'](':');if(!d||d['length']===0x0)throw z(0x1ff);if(d[0x0]==='generate'||d[0x0]==='g'&&d[z(0x23a)]>0x1){const h=this[z(0x214)]['find'](j=>j['match'](z(0x1f0)));if(!h)throw z(0x237);await this[z(0x223)](h);const i=d[z(0x1fa)](0x1)[z(0x20a)](':');return b[z(0x20e)](i),await h[z(0x222)](b,c);}let f=this[z(0x214)],g;for(const j of d){g=f[z(0x22b)](k=>k[z(0x207)](j));if(!g)try{await this[z(0x21d)][z(0x1ee)]();}catch(k){throw z(0x224)+j+z(0x208);}g&&(await this[z(0x223)](g),f=g[z(0x214)]);}if(g){const l=await g[z(0x222)](b,c);return l;}else throw z(0x237);}catch(m){Log[z(0x226)](m),process[z(0x1ef)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x7d))/0x1*(parseInt(f(0x87))/0x2)+-parseInt(f(0x81))/0x3+parseInt(f(0x83))/0x4*(-parseInt(f(0x7f))/0x5)+-parseInt(f(0x84))/0x6*(parseInt(f(0x82))/0x7)+parseInt(f(0x85))/0x8*(parseInt(f(0x89))/0x9)+parseInt(f(0x8b))/0xa+parseInt(f(0x7e))/0xb*(-parseInt(f(0x8a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xdade6));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x86)]()['search'](h(0x80))[h(0x86)]()[h(0x8c)](a1a)['search'](h(0x80));});a1a();function a1c(){var i=['apply','3778479psskwz','113028TEzsGk','17749830TdiiDh','constructor','211HYAqcE','451qgoCfu','406585impCmt','(((.+)+)+)+$','390507CtMrka','770NxirZd','44zflAnC','29622uKDvuS','8gfNxZB','toString','6214sikfPf'];a1c=function(){return i;};return a1c();}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x7d;var f=c[d];return f;},a1d(a,b);}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
|
-
const
|
|
1
|
+
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x197))/0x1*(-parseInt(h(0x1ab))/0x2)+-parseInt(h(0x19e))/0x3+parseInt(h(0x1ad))/0x4+parseInt(h(0x1a9))/0x5+-parseInt(h(0x19f))/0x6*(-parseInt(h(0x1ba))/0x7)+parseInt(h(0x19a))/0x8+parseInt(h(0x1a5))/0x9*(-parseInt(h(0x198))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xa1f68));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x1a8)]()['search'](j(0x1a1))[j(0x1a8)]()[j(0x1b2)](a2a)[j(0x1b1)]('(((.+)+)+)+$');});a2a();function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x194;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';function a2c(){const o=['182GTKKcB','message','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','askGPT','trim','close','You:\x20','943444YCFjsQ','10RLeZkv','bright','8125056vWNCsA','openai','create','data','1565619Dwgppl','186186KuGRZO','cert','(((.+)+)+)+$','text','cacert','Using\x20OpenAI\x20Key\x20','21130497GOcsYw','stdin','isFile','toString','1384510bPQMoh','choices','2QCyAdu','createInterface','1961288bhMppw','openapikey','exit','toLowerCase','search','constructor','getGlobalConfig','question','notice','parse','apply','error','fsi'];a2c=function(){return o;};return a2c();}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x1ac)]({'input':process[k(0x1a6)],'output':process['stdout']});c[k(0x1b4)](k(0x196),async d=>{const l=k;if(d[l(0x1b0)]()===l(0x1af)){c[l(0x195)]();return;}try{const e=await HTTPS[l(0x1bd)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1b6)](e[l(0x19d)]);if(f[l(0x1b8)])throw new Error(f[l(0x1b8)][l(0x1bb)]);Log[l(0x199)]('GPT:\x20'+f?.[l(0x1aa)][0x0]?.[l(0x1a2)][l(0x194)]());}catch(g){Log[l(0x1b8)](g),process[l(0x1af)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x19c)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2m(0x1a3),a2m(0x1ae)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x1b9)][n(0x1a7)](b['cacert'])?(c=b[n(0x1a3)],Log[n(0x1b5)]('Using\x20CA\x20Cert\x20'+c)):Log[n(0x1b8)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this[n(0x1b9)][n(0x1b3)]();if(d[n(0x1a0)]){if(this['fsi'][n(0x1a7)](d['cert']))c=d[n(0x1a0)];else throw Log[n(0x1b8)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0x1ae)])f=b['openapikey'],Log[n(0x1b5)](n(0x1a4)+f);else{if(d['openai'])f=d[n(0x19b)];else throw Log[n(0x1b8)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console['log'](n(0x1bc)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1b8)](g),process[n(0x1af)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0xbf))/0x1+parseInt(f(0xbb))/0x2+parseInt(f(0xc3))/0x3+-parseInt(f(0xc4))/0x4*(-parseInt(f(0xc5))/0x5)+parseInt(f(0xc1))/0x6*(parseInt(f(0xbe))/0x7)+-parseInt(f(0xb7))/0x8*(-parseInt(f(0xbd))/0x9)+parseInt(f(0xb8))/0xa*(-parseInt(f(0xb6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xad15f));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()['search'](h(0xba))[h(0xb9)]()[h(0xc2)](a3a)[h(0xbc)](h(0xba));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';function a3c(){var i=['252KcwygG','constructor','887283iqwZaa','4yvDABc','3113590pUYqGP','15488wOJBZw','256Lgzids','18470arNTtv','toString','(((.+)+)+)+$','944824RNVOhc','search','347382UAvRcz','192136nuENHW','469308AceGRZ','apply'];a3c=function(){return i;};return a3c();}function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xb6;var f=c[d];return f;},a3d(a,b);}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(0xdb))/0x1+-parseInt(f(0xe5))/0x2*(-parseInt(f(0xe0))/0x3)+parseInt(f(0xeb))/0x4+-parseInt(f(0xe3))/0x5*(-parseInt(f(0xdf))/0x6)+-parseInt(f(0xe8))/0x7+-parseInt(f(0xea))/0x8*(parseInt(f(0xdd))/0x9)+-parseInt(f(0xdc))/0xa*(-parseInt(f(0xe2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x805c9));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xe1)]()[h(0xed)](h(0xe9))['toString']()[h(0xe7)](a4a)[h(0xed)](h(0xe9));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xdb;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xec)]({'name':a4i(0xe6),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0xe4),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'},async function(){throw UsageError;});export default AWSCommand;function a4c(){const j=['Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','22HqOjzz','aws','constructor','2600626rhMUiS','(((.+)+)+)+$','11608EGggMI','719416cBEzjw','create','search','402176oKzXRC','396510PZLWVZ','1827FpxJWa','apply','1881918LidbVe','53358hFjENh','toString','77eWsrNw','15VGnviA'];a4c=function(){return j;};return a4c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x1d9))/0x1*(parseInt(g(0x1dc))/0x2)+parseInt(g(0x1c8))/0x3+-parseInt(g(0x1e3))/0x4+-parseInt(g(0x1db))/0x5*(-parseInt(g(0x1da))/0x6)+parseInt(g(0x1cc))/0x7+parseInt(g(0x1ca))/0x8*(-parseInt(g(0x1d0))/0x9)+parseInt(g(0x1d8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe20e3));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1e2)]()['search'](i(0x1d7))['toString']()[i(0x1d1)](a5a)[i(0x1d3)](i(0x1d7));});a5a();import a5e from'./aws.command.js';function a5c(){const l=['exit','toString','2381488okJWHX','maka\x20aws:create-ecr','5022828ircXNI','Repository\x20URI:\x20','3054440UGwwxI','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','1119377wQHgwI','cecr','name','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','36cgZEyo','constructor','Create\x20an\x20Elastic\x20Container\x20Repository','search','apply','create','$metadata','(((.+)+)+)+$','804650hwYvAS','19875vCfUrK','12dnbZhd','2387470clqzUG','18KnMLgi','repository','success','maka\x20aws:create-ecr\x20--name=my-new-repo','create-ecr'];a5c=function(){return l;};return a5c();}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-0x1c8;let f=c[d];return f;},a5d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a5j(0x1d5)]({'name':a5j(0x1e0),'aliases':[a5j(0x1cd)],'usage':a5j(0x1e4),'requiredOpts':[a5j(0x1ce)],'validOpts':['region'],'shortDesc':a5j(0x1d2),'examples':[a5j(0x1df),'maka\x20aws:cecr\x20--name=my-new-repo',a5j(0x1cb)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0x1d6)]['httpStatusCode']===0xc8&&d[k(0x1dd)]?(Log[k(0x1de)]('Repository\x20created\x20successfully.'),Log['notice'](k(0x1c9)+d[k(0x1dd)]['repositoryUri'])):Log['error'](k(0x1cf)),process[k(0x1e1)](0x0);}catch(f){Log['error'](f),process[k(0x1e1)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x14c))/0x1*(-parseInt(i(0x14f))/0x2)+-parseInt(i(0x159))/0x3+-parseInt(i(0x157))/0x4*(parseInt(i(0x15d))/0x5)+parseInt(i(0x167))/0x6*(-parseInt(i(0x150))/0x7)+-parseInt(i(0x166))/0x8*(parseInt(i(0x15c))/0x9)+-parseInt(i(0x15e))/0xa*(parseInt(i(0x151))/0xb)+parseInt(i(0x154))/0xc*(parseInt(i(0x160))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9cab0));function a6c(){const n=['chooseInstance','10894767AXdrHj','(((.+)+)+)+$','chz','search','route53CreateHostedZone','apply','274648TnLJLP','193086HWveMG','5821TKUFNE','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','error','280KRjKfs','49PxhtpU','3259883bRRsSt','domain','maka\x20aws:chz\x20--domain=example.com','60adyeLo','exit','create','1172ebQYSS','publicIp','2738433rhBpMz','Set\x20hosted\x20zone\x20to\x20an\x20instance?','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','9BZfsAZ','21585YWjFPQ','10QsNrJh'];a6c=function(){return n;};return a6c();}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x165)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a['toString']()['search'](k(0x161))['toString']()['constructor'](a6a)[k(0x163)](k(0x161));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x14c;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6l(0x156)]({'name':'create-hosted-zone','aliases':[a6l(0x162)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0x152)],'validOpts':[],'shortDesc':a6l(0x14d),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a6l(0x153)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x164)](c);const f=await Actions['confirm'](m(0x15a));if(f){const g=await d[m(0x15f)]();if(g?.['id']){if(!g[m(0x158)])throw Log[m(0x14e)](m(0x15b));d['linkEC2ToRoute53'](g['id'],g[m(0x158)],c);}else throw'Instance\x20not\x20found';}}catch(h){h&&Log[m(0x14e)](h),process[m(0x155)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0xac))/0x1+parseInt(ae(0x81))/0x2+parseInt(ae(0xc3))/0x3*(parseInt(ae(0xa7))/0x4)+-parseInt(ae(0xa2))/0x5+-parseInt(ae(0xbd))/0x6+parseInt(ae(0x74))/0x7+-parseInt(ae(0x8b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x4f80a));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0xab)]()[ag(0xd8)](ag(0x72))[ag(0xab)]()[ag(0xbb)](a7a)[ag(0xd8)]('(((.+)+)+)+$');});function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x72;let f=c[d];return f;},a7d(a,b);}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';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a7c(){const au=['notice','success','build\x20on\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Instace\x20Type:\x20','cider','name','getAppConfigPath','Subnet:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Security\x20Group:\x20','getSecurityGroups','search','(((.+)+)+)+$','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','2720305QDUEqL','sgId','\x20SG\x20NAME:\x20','Web\x20App','ID:\x20','env','forEach','\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','createKeyPair','parse','t3.micro','Create\x20new\x20AWS\x20instance','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','49378KIZDBl','Setting\x20the\x20key-pair\x20to:\x20','ImageID:','error','fsi','split','\x20AZONE:\x20','amazon','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','exit','2604344dgxuXi','unlinkSync','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','create','created-by','subnet','\x20SGID:\x20','log','maka\x20aws:create-instance','getConfigFromShorthand','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x20AMIID:\x20','desc','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','apply','Remove\x20the\x20keypair\x20','\x20DESCRIPTION:\x20','Security\x20Group\x20Name:\x20[','ask','date','Instance\x20Count:\x20','isFile','1446710UhczjC','ec2create','join','ec2createSG','maka-cli','54572Annluq','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Setting\x20SG\x20ID\x20to:\x20','Creating\x20user\x20data\x20file\x20in\x20','toString','275986pttNgr','amiId','create-instance','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','\x20SUBNETID:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','User\x20Data:','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','push','subnetId','cidr','ec2describeKeys','sort','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','deleteKeyPair','constructor','No\x20instance\x20has\x20been\x20created.','211596QXUUXU','readFileSync','Desc','Key-Pair:\x20','getTime','environment','63brpNOB','confirm','bright','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','number','\x20CIDR:\x20','createFile','Setting\x20AMI\x20ID\x20to\x20','22,80,443'];a7c=function(){return au;};return a7c();}Command[a7ah(0x8e)]({'name':a7ah(0xae),'aliases':['ci'],'usage':a7ah(0x93),'examples':['maka\x20aws:create-instance\x20--env\x20dev','maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x79)}],'validOpts':[],'shortDesc':a7ah(0x7f),'description':a7ah(0x7b)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x85)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x85)][ai(0x94)](b[ai(0x79)]),i=this[ai(0x85)][ai(0xd3)](h),j=g+'-'+h,k=await Actions[ai(0x9e)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xc4)](ai(0xcf),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x7c)]({'env':h});r=y,s=z,Log['success'](ai(0x82)+r);}else try{Log[ai(0xcc)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0xb7)]({'suggestion':A}),C=await Actions[ai(0x9e)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x73)),Log[ai(0xcc)](ai(0xbc));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0xcd)](aj(0x82)+r));});}catch(D){Log['error'](D);}l=await d['chooseVPC']();const t=await Actions['confirm'](ai(0x95),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0x9e)](ai(0x9d)+k+']')||k;const F=await Actions[ai(0x9e)](ai(0x8d))||ai(0xcb),G=F[ai(0x86)](',');await d[ai(0xa5)]({'description':ai(0x77),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xd7)](u);if(I===''){Log[ai(0xcc)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x7a)](function(L){const ak=ai;L[ak(0xd2)]===u?Log[ak(0xcc)](ak(0x78)+L['id']+ak(0x76)+L['name']+ak(0x91)+L[ak(0x75)]):Log[ak(0xc5)](ak(0x78)+L['id']+ak(0x76)+L[ak(0xd2)]+ak(0x91)+L['sgId']);});const K=await Actions['ask'](ai(0xaf)+H+']\x20')||H[ai(0xab)]();J[ai(0x7a)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x75)],Log[al(0xcd)](al(0xa9)+m+'\x0a'));});}else m=I,Log['success'](ai(0xa9)+m+'\x0a');if(m==='')throw Log[ai(0x84)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0x84)](L);}try{const M=0x7e6;Log[ai(0xcc)]('**\x20Available\x20AMIs\x20**');const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')[ai(0xab)](),O=JSON[ai(0x7d)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S['alias']===am(0x88)){const T=S[am(0xbf)][am(0x86)](am(0xce))[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0xbf)],'date':T});}}),P[ai(0xb8)](function(S,T){const an=ai;return new Date(T['date'])[an(0xc1)]()-new Date(S[an(0x9f)])[an(0xc1)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0xb4)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0x97)]});}),Q[ai(0x7a)](function(S){const ap=ai;console[ap(0x92)](ap(0x78)+S['id']+ap(0x96)+S[ap(0xad)]+ap(0x9c)+S[ap(0x97)]);});const R=await Actions[ai(0x9e)](ai(0xb3))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0xcd)](aq(0xca)+n+'\x20:\x20'+S['desc']));});if(n==='')throw Log[ai(0x84)](ai(0xb9));}catch(S){Log[ai(0x84)](S);}try{Log['notice']('**\x20Available\x20Subnets\x20**');const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0xab)](),U=JSON[ai(0x7d)](T),V=[];U[ai(0x7a)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0xd1)],'az':X['az'],'subnetId':X[ar(0xb5)]});}),V['forEach'](function(X){const as=ai;console[as(0x92)](as(0x78)+X['id']+as(0xc8)+X[as(0xb6)]+as(0x87)+X['az']+as(0xb0)+X[as(0xb5)]);});const W=await Actions[ai(0x9e)](ai(0x99))||'0';V[ai(0x7a)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xb5)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x84)](ai(0xb9));}catch(X){Log[ai(0x84)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x9e)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||'1:1',Z=Y[ai(0x86)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0xc7)&&typeof parseInt(a0)==='number'&&Log[ai(0xcd)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x84)](a1);}try{const a2=await Actions[ai(0x9e)](ai(0x80))||ai(0x7e);typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x84)](a3);}let x='';try{const a4=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a7f[ai(0xa4)](i,'user-data'),Log[ai(0xcc)](ai(0xaa)+x),await this['fsi'][ai(0xc9)]({'filePath':x,'data':''}),await Actions['confirm'](ai(0xb1)));}catch(a5){Log[ai(0x84)](a5);}try{const a6=JSON[ai(0x7d)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0xd5))['toString']())[0x0][ai(0x90)];Log[ai(0xcc)](ai(0x83)+n),Log['notice'](ai(0xa0)+v+':'+w),Log[ai(0xcc)](ai(0xd0)+o),Log[ai(0xcc)](ai(0xc0)+r),Log[ai(0xcc)](ai(0xd6)+m),Log['notice'](ai(0xd4)+a6);if(x){Log[ai(0xcc)](ai(0xb2)+x);const a8=a7g[ai(0xbe)](x)[ai(0xab)]();Log[ai(0xcc)](a8);}const a7=await Actions[ai(0xc4)](ai(0xc6));if(a7){const a9=await d[ai(0xa3)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x8f),'Value':ai(0xa6)},{'Key':ai(0xc2),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0x98)),Log['bright'](ai(0xa8)));}else{Log[ai(0xcc)](ai(0x89));const aa=await Actions[ai(0xc4)](ai(0x9b)+r+'\x20?',!![]);aa&&(d[ai(0xba)](r),f[ai(0xa1)](s)&&a7g[ai(0x8c)](s));const ab=await Actions[ai(0xc4)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log[ai(0x84)](ac);}}catch(ad){ad&&Log[ai(0x84)](ad),process[ai(0x8a)](0x0);}},a7e);
|
|
1
|
+
const a7ag=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x189))/0x1+-parseInt(ae(0x154))/0x2+-parseInt(ae(0x178))/0x3+parseInt(ae(0x151))/0x4*(parseInt(ae(0x14f))/0x5)+-parseInt(ae(0x143))/0x6*(parseInt(ae(0x18c))/0x7)+-parseInt(ae(0x150))/0x8*(-parseInt(ae(0x14c))/0x9)+parseInt(ae(0x186))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x7fc8d));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const af=a7d;return a7a[af(0x13e)]()[af(0x19a)](af(0x179))[af(0x13e)]()['constructor'](a7a)[af(0x19a)](af(0x179));});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x139;let f=c[d];return f;},a7d(a,b);}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 at=['Name','**\x20Available\x20AMIs\x20**','isFile','alias','User\x20Data:','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Instace\x20Type:\x20','search','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','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','22,80,443','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','ID:\x20','maka\x20aws:create-instance\x20--env\x20dev','getMakaProjectConfig','created-by','getSecurityGroups','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','**\x20Available\x20key-pairs\x20**','subnetId','toString','\x20AMIID:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','fsi','EC2\x20Name:\x20[','456ipzLPP','1:1','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=*','notice','Web\x20App','createFile','ImageID:','amiId','create-instance','9rBTOGT','split','No\x20instance\x20has\x20been\x20created.','25950QSJyXn','1604504ipXyVF','716PdbDqQ','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Create\x20new\x20AWS\x20instance','185210umXaeC','Instance\x20Count:\x20','chooseVPC','readFileSync','Key-Pair:\x20','forEach','createKeyPair','\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','exit','**\x20Available\x20Security\x20Groups\x20**','Would\x20you\x20like\x20to\x20include\x20user\x20data?','bright','Setting\x20the\x20key-pair\x20to:\x20','Desc','getConfigFromShorthand','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Creating\x20user\x20data\x20file\x20in\x20','subnet','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20SG\x20NAME:\x20','sgId','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','env','ask','log','deleteKeyPair','deleteSecurityGroup','Subnet:\x20','Setting\x20SG\x20ID\x20to:\x20','Security\x20Group:\x20','ec2describeKeys','confirm','Security\x20Group\x20Name:\x20[','\x20SGID:\x20','user-data','Remove\x20the\x20keypair\x20','2007804ntNhSB','(((.+)+)+)+$','push','maka-cli','parse','name','cidr','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','desc','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','unlinkSync','ec2create','\x20CIDR:\x20','getTime','7193000YJYhJV','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','success','228055fFmSQs','number','getAppConfigPath','30905KtyRSe','maka\x20aws:create-instance','error','t3.micro','*\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','date','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'];a7c=function(){return at;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a7ag(0x14b),'aliases':['ci'],'usage':a7ag(0x18d),'examples':[a7ag(0x1a0),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ag(0x153),'description':a7ag(0x15b)},async function(a,b){const ah=a7ag;try{const c=this[ah(0x141)][ah(0x1a1)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x141)][ah(0x162)](b[ah(0x16a)]),i=this[ah(0x141)][ah(0x18b)](h),j=g+'-'+h,k=await Actions[ah(0x16b)](ah(0x142)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x173)](ah(0x19e),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x15a)]({'env':h});r=y,s=z,Log[ah(0x188)](ah(0x160)+r);}else try{Log[ah(0x146)](ah(0x13c));const A=r?r:k,B=await d[ah(0x172)]({'suggestion':A}),C=await Actions[ah(0x16b)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log['error'](ah(0x19b)),Log[ah(0x146)](ah(0x14e));return;}B?.[ah(0x159)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x17d)],Log[ai(0x188)](ai(0x160)+r));});}catch(D){Log[ah(0x18e)](D);}l=await d['chooseVPC']();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ah(0x156)]():l;u=await Actions[ah(0x16b)](ah(0x174)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x19d),G=F[ah(0x14d)](',');await d['ec2createSG']({'description':ah(0x147),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0x13a)](u);if(I===''){Log[ah(0x146)](ah(0x15d)),J[ah(0x159)](function(L){const aj=ah;L['name']===u?Log[aj(0x146)]('ID:\x20'+L['id']+aj(0x167)+L[aj(0x17d)]+aj(0x175)+L[aj(0x168)]):Log[aj(0x15f)](aj(0x19f)+L['id']+aj(0x167)+L[aj(0x17d)]+aj(0x175)+L[aj(0x168)]);});const K=await Actions[ah(0x16b)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ah(0x13e)]();J['forEach'](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L['sgId'],Log[ak(0x188)](ak(0x170)+m+'\x0a'));});}else m=I,Log[ah(0x188)](ah(0x170)+m+'\x0a');if(m==='')throw Log['error'](ah(0x166));}catch(L){Log[ah(0x18e)](L);}try{const M=0x7e6;Log[ah(0x146)](ah(0x194));const N=execSync(ah(0x145)+M+ah(0x190))[ah(0x13e)](),O=JSON[ah(0x17c)](N),P=[],Q=[];O['forEach'](function(S){const al=ah;if(S[al(0x196)]==='amazon'){const T=S[al(0x161)]['split']('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0x161)],'date':T});}}),P['sort'](function(S,T){const am=ah;return new Date(T[am(0x191)])[am(0x185)]()-new Date(S[am(0x191)])[am(0x185)]();}),P[ah(0x159)](function(S,T){const an=ah;Q[an(0x17a)]({'id':T,'amiId':S[an(0x14a)],'desc':S[an(0x180)]});}),Q[ah(0x159)](function(S){const ao=ah;console[ao(0x16c)](ao(0x19f)+S['id']+ao(0x13f)+S[ao(0x14a)]+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions[ah(0x16b)](ah(0x192))||'0';Q[ah(0x159)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S['amiId'],Log[ap(0x188)]('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+S[ap(0x180)]));});if(n==='')throw Log[ah(0x18e)](ah(0x166));}catch(S){Log[ah(0x18e)](S);}try{Log[ah(0x146)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x19c))[ah(0x13e)](),U=JSON[ah(0x17c)](T),V=[];U[ah(0x159)](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x13d)]});}),V[ah(0x159)](function(X){const ar=ah;console[ar(0x16c)]('ID:\x20'+X['id']+ar(0x184)+X[ar(0x17e)]+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[ar(0x13d)]);});const W=await Actions[ah(0x16b)](ah(0x152))||'0';V[ah(0x159)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x13d)],Log[as(0x188)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ah(0x18e)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x169))||ah(0x144),Z=Y[ah(0x14d)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ah(0x18a)&&typeof parseInt(a0)===ah(0x18a)&&Log[ah(0x188)](ah(0x13b)+Z+':'+a0);}catch(a1){Log[ah(0x18e)](a1);}try{const a2=await Actions[ah(0x16b)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ah(0x18f);typeof a2==='string'&&(o=a2);}catch(a3){Log[ah(0x18e)](a3);}let x='';try{const a4=await Actions['confirm'](ah(0x15e),![]);a4&&(x=a7f['join'](i,ah(0x176)),Log['notice'](ah(0x164)+x),await this[ah(0x141)][ah(0x148)]({'filePath':x,'data':''}),await Actions[ah(0x173)](ah(0x187)));}catch(a5){Log['error'](a5);}try{const a6=JSON['parse'](execSync(ah(0x181)+p+ah(0x140))[ah(0x13e)]())[0x0][ah(0x165)];Log['notice'](ah(0x149)+n),Log['notice'](ah(0x155)+v+':'+w),Log[ah(0x146)](ah(0x199)+o),Log[ah(0x146)](ah(0x158)+r),Log[ah(0x146)](ah(0x171)+m),Log[ah(0x146)](ah(0x16f)+a6);if(x){Log['notice'](ah(0x197)+x);const a8=a7g[ah(0x157)](x)[ah(0x13e)]();Log[ah(0x146)](a8);}const a7=await Actions[ah(0x173)](ah(0x198));if(a7){const a9=await d[ah(0x183)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x139),'Value':ah(0x17b)},{'Key':'environment','Value':h},{'Key':ah(0x193),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x188)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ah(0x17f)));}else{Log['notice'](ah(0x163));const aa=await Actions['confirm'](ah(0x177)+r+'\x20?',!![]);aa&&(d[ah(0x16d)](r),f[ah(0x195)](s)&&a7g[ah(0x182)](s));const ab=await Actions[ah(0x173)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ah(0x16e)](m);}}catch(ac){Log[ah(0x18e)](ac);}}catch(ad){ad&&Log[ah(0x18e)](ad),process[ah(0x15c)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x7c))/0x1*(parseInt(g(0x87))/0x2)+-parseInt(g(0x85))/0x3*(-parseInt(g(0x8f))/0x4)+parseInt(g(0x77))/0x5*(-parseInt(g(0x79))/0x6)+parseInt(g(0x7b))/0x7*(-parseInt(g(0x8d))/0x8)+-parseInt(g(0x92))/0x9*(-parseInt(g(0x80))/0xa)+parseInt(g(0x93))/0xb*(-parseInt(g(0x82))/0xc)+-parseInt(g(0x90))/0xd*(-parseInt(g(0x83))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x7a0d0));function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x77;let f=c[d];return f;},a8d(a,b);}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(0x89)]()[h(0x91)]('(((.+)+)+)+$')[h(0x89)]()[h(0x8c)](a8a)['search'](h(0x7a));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8c(){const k=['9ggvgAf','42691RzVnqH','22070SAkDag','maka\x20aws:create-key-pair','1206oqEFHf','(((.+)+)+)+$','9611OfvOFk','5581npwGRD','maka\x20aws:ckp\x20--env\x20prod','ckp','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','3516740JoPiNh','error','1164vtORuO','16772UoBhFZ','env','5889xipMPS','getConfigFromShorthand','194jRRygX','exit','toString','maka\x20aws:create-key-pair\x20--env\x20prod','create','constructor','4632yAwljV','fsi','1292dvayyW','11193KvjRiF','search'];a8c=function(){return k;};return a8c();}import{Log}from'../../tools/log/log.class.js';Command[a8i(0x8b)]({'name':'create-key-pair','aliases':[a8i(0x7e)],'usage':a8i(0x78),'examples':[a8i(0x8a),a8i(0x7d)],'mustBeInMakaProject':!![],'requiredOpts':[a8i(0x84)],'validOpts':[],'shortDesc':a8i(0x7f),'description':'\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'},async function(a,b){const j=a8i;try{const c=new AWS(),d=this[j(0x8e)][j(0x86)](b['env']);c['createKeyPair']({'env':d});}catch(f){f&&Log[j(0x81)](f),process[j(0x88)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(
|
|
1
|
+
function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xb2;let f=c[d];return f;},a9d(a,b);}const a9p=a9d;function a9c(){const s=['ask','6uHDRBp','1760780RJPszr','42581WdMhlr','error','toString','chooseVPC','2643325IEzwfw','getMakaProjectConfig','8zbNuXH','create-security-group','csg','List\x20is\x20not\x20all\x20numbers','22,80,443','Web\x20App','split','5640ABeKmm','maka\x20aws:csg','name','(((.+)+)+)+$','6sSPFVI','450408Qebuxw','forEach','maka\x20aws\x20create-security-group','\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','Security\x20Group\x20Name:\x20[','3iUDMAR','match','216085dOJTEE','create','1345473YnVeUC','1272172xjSfWv','exit','apply','search'];a9c=function(){return s;};return a9c();}(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0xc8))/0x1*(parseInt(m(0xd0))/0x2)+-parseInt(m(0xc6))/0x3*(parseInt(m(0xcb))/0x4)+-parseInt(m(0xb3))/0x5*(parseInt(m(0xc0))/0x6)+parseInt(m(0xc1))/0x7+-parseInt(m(0xb5))/0x8*(-parseInt(m(0xca))/0x9)+-parseInt(m(0xd1))/0xa+-parseInt(m(0xd2))/0xb*(-parseInt(m(0xbc))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x586ba));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0xd4)]()[o(0xce)](o(0xbf))[o(0xd4)]()['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(0xc9)]({'name':a9p(0xb6),'aliases':[a9p(0xb7)],'usage':a9p(0xc3),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a9p(0xc4),'examples':['maka\x20aws:create-secuirty-group',a9p(0xbd)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi'][q(0xb4)](),{appName:f}=d,g=await c[q(0xb2)](),h=b[q(0xbe)]?b[q(0xbe)]:''+f,i=await Actions[q(0xcf)](q(0xc5)+h+']')||h,j=await Actions[q(0xcf)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0xb9),k=j[q(0xbb)](',');k[q(0xc2)](l=>{const r=q;if(!l[r(0xc7)](/^\d+$/))throw r(0xb8);}),await c['ec2createSG']({'description':q(0xba),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xd3)](l),process[q(0xcc)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a10c(){const k=['exit','942360geYRJA','9848542aRJevI','success','(((.+)+)+)+$','5465316YQoejz','Delete\x20an\x20Elastic\x20Container\x20Repository','Failed\x20to\x20delete\x20the\x20repository:\x20','67806MptOQT','create','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','6QmTkCQ','error','485937uSoyYw','search','36uZmBBR','decr','constructor','10nfeLpB','6629784xbWDmh','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','toString','104lPrpHP','Repository\x20','529035fcKvii','apply','ecrDeleteRepository','region','name'];a10c=function(){return k;};return a10c();}const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x13b;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x13c))/0x1+parseInt(f(0x146))/0x2*(-parseInt(f(0x148))/0x3)+parseInt(f(0x14a))/0x4*(-parseInt(f(0x153))/0x5)+-parseInt(f(0x140))/0x6+parseInt(f(0x14e))/0x7+parseInt(f(0x151))/0x8*(parseInt(f(0x143))/0x9)+-parseInt(f(0x14d))/0xa*(-parseInt(f(0x13d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x82492));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x154)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x150)]()[h(0x149)](h(0x13f))[h(0x150)]()[h(0x14c)](a10a)[h(0x149)](h(0x13f));});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';Command[a10i(0x144)]({'name':'delete-ecr','aliases':[a10i(0x14b)],'usage':a10i(0x14f),'requiredOpts':['name','region'],'validOpts':[],'shortDesc':a10i(0x141),'examples':[a10i(0x145),'maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1']},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x155)]({'repoName':b['name'],'region':b[j(0x156)]}),Log[j(0x13e)](j(0x152)+b[j(0x157)]+'\x20deleted\x20successfully\x20in\x20region\x20'+b[j(0x156)]+'.'),process[j(0x13b)](0x0);}catch(d){Log[j(0x147)](j(0x142)+b[j(0x157)]+'\x20in\x20region\x20'+b['region']+'.\x20Error:\x20'+d),process[j(0x13b)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a11c(){const k=['1197792XXLRDC','search','maka\x20aws:describe-instances','162492mkNiZN','toString','\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','27uyMmzv','6705340AWHWSA','7728895wlUtRM','apply','196946XuPhat','constructor','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','24167700srivni','describe-instances','create','ec2describeInstances','14tUrkhJ','maka\x20aws:di','12215040HNqzBw','(((.+)+)+)+$'];a11c=function(){return k;};return a11c();}const a11i=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xf9;let f=c[d];return f;},a11d(a,b);}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x103))/0x1+-parseInt(f(0x10a))/0x2*(parseInt(f(0x106))/0x3)+parseInt(f(0x107))/0x4+-parseInt(f(0x108))/0x5+-parseInt(f(0x100))/0x6*(-parseInt(f(0xfc))/0x7)+-parseInt(f(0xfe))/0x8+parseInt(f(0x10d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xeb77b));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a['toString']()[h(0x101)](h(0xff))[h(0x104)]()[h(0x10b)](a11a)[h(0x101)](h(0xff));});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[a11i(0xfa)]({'name':a11i(0xf9),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'shortDesc':a11i(0x10c),'examples':[a11i(0x102),a11i(0xfd)],'description':a11i(0x105)},async function(){const j=a11i;try{const a=new AWS();a[j(0xfb)]();}catch(b){b&&Log['error'](b),process['exit'](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1*(-parseInt(f(0x1ec))/0x2)+parseInt(f(0x1ee))/0x3+parseInt(f(0x1ea))/0x4+parseInt(f(0x1e4))/0x5*(-parseInt(f(0x1e1))/0x6)+-parseInt(f(0x1e8))/0x7*(parseInt(f(0x1dc))/0x8)+-parseInt(f(0x1e9))/0x9*(parseInt(f(0x1de))/0xa)+-parseInt(f(0x1d9))/0xb*(-parseInt(f(0x1e0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x41ef4));function a12c(){const k=['search','6661424DARfgQ','create','exit','8JUPsdT','22KiqHwW','3325450Bqjsmy','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','12NizJkh','6EyggKj','constructor','toString','275155rsmTqS','error','maka\x20aws:dkp','apply','3730846CLTrUf','9RfphWO','686276WANAMy','maka\x20aws:describe-key-pairs','29186GFUGjM','ec2describeKeys','277269OXHFuo'];a12c=function(){return k;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1e3)]()[h(0x1d8)]('(((.+)+)+)+$')['toString']()[h(0x1e2)](a12a)[h(0x1d8)]('(((.+)+)+)+$');});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a12i(0x1da)]({'name':'describe-key-pairs','aliases':['dkp'],'usage':a12i(0x1eb),'validOpts':[],'shortDesc':a12i(0x1df),'examples':[a12i(0x1eb),a12i(0x1e6)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x1ed)]();}catch(b){b&&Log[j(0x1e5)](b),process[j(0x1db)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x84))/0x1+parseInt(l(0x73))/0x2+-parseInt(l(0x87))/0x3+parseInt(l(0x67))/0x4+parseInt(l(0x66))/0x5*(-parseInt(l(0x78))/0x6)+-parseInt(l(0x68))/0x7*(-parseInt(l(0x65))/0x8)+parseInt(l(0x7d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xdfedf));function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x65;let f=c[d];return f;},a13d(a,b);}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x7e)]()[n(0x7f)](n(0x85))[n(0x7e)]()['constructor'](a13a)[n(0x7f)](n(0x85));});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';function a13c(){const s=['10PBhOmy','4151080cnUqgP','7wKRSri','Not\x20deleting\x20secuirty\x20group','maka\x20aws:delete-sg','Deleting\x20a\x20','success','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','exit','Deleted\x20','maka\x20aws:dsg','sgId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','2553760tRsXjb','error','ask','delete-security-group','apply','3306642bggjiD','getMakaProjectConfig','\x20SG\x20NAME:\x20','includes','confirm','5457375fXzWRr','toString','search','dsg','ID:\x20','create','bright','551162llSBcq','(((.+)+)+)+$','notice','1456044MihMSI','\x20SGID:\x20','name','1079312OpHkQJ'];a13c=function(){return s;};return a13c();}import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x82)]({'name':a13o(0x76),'aliases':[a13o(0x80)],'usage':a13o(0x6a),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a13o(0x6a),a13o(0x70)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x79)]();d=j['appName'];}const {sgList:f}=await a['getSecurityGroups']();f['forEach'](function(k){const q=p;c&&k['name'][q(0x7b)](d)?Log[q(0x86)](q(0x81)+k['id']+q(0x7a)+k[q(0x89)]+q(0x88)+k[q(0x71)]):Log[q(0x83)]('ID:\x20'+k['id']+q(0x7a)+k['name']+q(0x88)+k[q(0x71)]);});let g='';const h=await Actions[p(0x75)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x71)]);});if(!g)throw Log[p(0x74)](p(0x72));const i=await Actions[p(0x7c)](p(0x6b)+g+p(0x6d),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x6c)](p(0x6f)+g)):Log[p(0x74)](p(0x69)),process[p(0x6e)](0x0);}catch(k){k&&Log[p(0x74)](k),process[p(0x6e)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x195))/0x1*(-parseInt(f(0x192))/0x2)+parseInt(f(0x19f))/0x3+parseInt(f(0x19c))/0x4+parseInt(f(0x1a2))/0x5+-parseInt(f(0x193))/0x6+-parseInt(f(0x19e))/0x7+-parseInt(f(0x196))/0x8*(parseInt(f(0x19b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x88eb0));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x194)]()[h(0x1a1)](h(0x19d))[h(0x194)]()[h(0x1a5)](a14a)[h(0x1a1)]('(((.+)+)+)+$');});a14a();import a14e from'./aws.command.js';function a14c(){const k=['List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','constructor','exit','success','apply','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','listAllEcrRepositories','9192mEVwiZ','991248WNOPzN','toString','163SzdObS','472936lOodjX','error','maka\x20aws:list-ecr','Completed\x20listing\x20ECR\x20repositories.','regions','9wHrjrT','3874496CeTLjo','(((.+)+)+)+$','508270uBhdwN','1726710sNOuTo','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','search','313525UtjJOe'];a14c=function(){return k;};return a14c();}import{Command}from'../../command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x18e;let f=c[d];return f;},a14d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'list-ecr','aliases':['lecr'],'usage':a14i(0x1a0),'requiredOpts':[],'validOpts':[a14i(0x19a)],'shortDesc':a14i(0x1a3),'examples':[a14i(0x198),a14i(0x190),'maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x191)](b[j(0x19a)]),Log[j(0x18e)](j(0x199)),process[j(0x1a6)](0x0);}catch(d){Log[j(0x197)](j(0x1a4)+d),process[j(0x1a6)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15h=a15d;function a15c(){const j=['confirm','\x20is\x20still\x20running.','name','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','Reboot\x20an\x20EC2\x20instance','203253pNpbAJ','(((.+)+)+)+$','status','exit','instanceId','8937313PCHqRP','\x20Ready?','error','6636160eqIoVA','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','chooseInstance','668459wkMPeZ','maka\x20aws:rbi','822hWLncY','1877328AOHuFj','ec2rebootInstance','30115NSjpPH','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','9Gucnco','4dgaMtP','running','search','maka\x20aws:reboot-instance','36275100GRCRIx'];a15c=function(){return j;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x19c))/0x1+-parseInt(f(0x181))/0x2+parseInt(f(0x190))/0x3*(-parseInt(f(0x186))/0x4)+parseInt(f(0x183))/0x5*(-parseInt(f(0x19e))/0x6)+-parseInt(f(0x195))/0x7+parseInt(f(0x198))/0x8+parseInt(f(0x185))/0x9*(parseInt(f(0x18a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xa6136));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 g=a15d;return a15a[g(0x199)]()['search']('(((.+)+)+)+$')[g(0x199)]()['constructor'](a15a)[g(0x188)](g(0x191));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x181;let f=c[d];return f;},a15d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':['rbi'],'usage':a15h(0x189),'validOpts':[],'shortDesc':a15h(0x18f),'examples':[a15h(0x189),a15h(0x19d)]},async function(){const i=a15h;try{const a=new AWS(),b=await a[i(0x19b)]();if(b?.[i(0x192)]===i(0x187)){const c=await Actions[i(0x18b)](i(0x184)+b['name']+i(0x196));c&&b['instanceId']?a[i(0x182)]({'instanceId':b[i(0x194)]}):Log['error'](i(0x18e)+b[i(0x18d)]+i(0x18c));}else Log[i(0x197)](i(0x19a));}catch(d){d&&Log[i(0x197)](d),process[i(0x193)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d
|
|
1
|
+
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0xa5))/0x1+parseInt(E(0xa3))/0x2+parseInt(E(0x70))/0x3+parseInt(E(0x89))/0x4*(-parseInt(E(0x91))/0x5)+parseInt(E(0x7f))/0x6*(parseInt(E(0x81))/0x7)+parseInt(E(0x98))/0x8*(parseInt(E(0xaa))/0x9)+-parseInt(E(0xab))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x65a27));function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x6e;let f=c[d];return f;},a16d(a,b);}function a16c(){const K=['Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','\x20for\x20','ask','rdn','registerDomain','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','register-domain-name','63464caLoaQ','State\x20[HI]:\x20','The\x20domain\x20name:\x20','Invalid\x202\x20character\x20country\x20code','OrganizationName','(((.+)+)+)+$','PUBLIC_BODY','confirm','220HofsEy','maka\x20aws:rdn\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','notice','domain','Contact\x20Email\x20[mail@example.com]:\x20','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','2568712CneEnv','maka\x20aws:register-domain-name\x20--domain=example.com','apply','exit','maka\x20aws:register-domain-name','Person','Are\x20you\x20sure?','create','123\x20Glorious\x20Way','values','PERSON','777296wkwNAO','ASSOCIATION','486752ZBkrEO','My\x20Comanpy,\x20LLC.','\x20/\x20Year)','error','Choose\x20contact\x20type','9RngHLl','2707170LDDOjq','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Domain\x20name\x20is\x20unavailable','1228473lxjBmD','mail@example.com','list','COMPANY','Zip\x20Code\x20[96816]:\x20','Contact','Contact\x20Last\x20Name\x20[Person]:\x20','checkDomainAvailability','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','options','constructor','96816','toString','\x20is\x20available\x20for:','24tQjSNK','Address\x20Line\x202:\x20','1317120TUQlzF'];a16c=function(){return K;};return a16c();}const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x7d)]()['search'](G(0x8e))[G(0x7d)]()[G(0x7b)](a16a)['search'](G(0x8e));});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';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0xa1)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x9f)]({'name':a16I(0x88),'aliases':[a16I(0x85)],'usage':a16I(0x9c),'requiredOpts':[a16I(0x95)],'validOpts':[],'shortDesc':a16I(0x6e),'examples':[a16I(0x99),a16I(0x92)]},async function(a,b){const J=a16I;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[J(0x77)](c);if(f&&g){Log[J(0x94)](J(0x8b)+c+J(0x7e));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions['confirm']('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':J(0x72),'name':'contactType','message':J(0xa9),'choices':[J(0xa4),J(0x73),J(0xa2),J(0x8f),'RESELLER']},l=await Actions[J(0x84)]('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0x84)](J(0x93))||J(0x75),n=await Actions[J(0x84)](J(0x76))||J(0x9d),{contactType:o}=await Actions[J(0x7a)](k),p=await Actions[J(0x84)](J(0x82))||J(0xa0),q=await Actions['ask'](J(0x80)),r=await Actions['ask'](J(0x74))||J(0x7c),s=await Actions[J(0x84)](J(0x8a))||'HI',t=await Actions[J(0x84)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x8c));const v=await Actions[J(0x84)](J(0x78))||'+1.5555555555',w=await Actions[J(0x84)](J(0x97))||'+1.5555555556',x=await Actions[J(0x84)](J(0x96))||J(0x71),y=await Actions[J(0x90)]('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0xa2)){const C=await Actions['ask'](J(0x79))||J(0xa6);z[J(0x8d)]=C;}const A=h||0x0*parseInt(l);Log[J(0x94)](J(0x87)),Log['warn'](A+'\x20'+i+J(0x83)+l+'\x20years\x20('+h+'\x20'+i+J(0xa7));const B=await Actions['confirm'](J(0x9e));B&&await d[J(0x86)](z,c,parseInt(l),y);}}else throw J(0x6f);}catch(D){D&&Log[J(0xa8)](D),process[J(0x9b)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x12a))/0x1+parseInt(h(0x116))/0x2+parseInt(h(0x111))/0x3*(parseInt(h(0x124))/0x4)+parseInt(h(0x11d))/0x5+-parseInt(h(0x114))/0x6+-parseInt(h(0x118))/0x7*(-parseInt(h(0x112))/0x8)+-parseInt(h(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x5c5bd));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a['toString']()[j(0x122)](j(0x12e))[j(0x11a)]()[j(0x113)](a17a)['search'](j(0x12e));});a17a();function a17c(){const n=['name','toString','forEach','6890292frbUHc','3342350WGOMIV','create','maka\x20aws:rkp','exit','remove-key-pair','search','Not\x20deleting\x20keypair','275564RZaHvF','deleteKeyPair','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','\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','success','apply','482750vGnZvS','Deleting\x20a\x20','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','error','(((.+)+)+)+$','Please\x20choose\x20a\x20key\x20to\x20delete:','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','21TsGyRr','3934040akXsmN','constructor','2135166dUdetX','maka\x20aws:remove-key-pair','680076XMRRKE','confirm','7CmIUJb'];a17c=function(){return n;};return a17c();}import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x111;let f=c[d];return f;},a17d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x11e)]({'name':a17k(0x121),'aliases':['rkp'],'usage':a17k(0x115),'validOpts':[],'shortDesc':a17k(0x12c),'description':a17k(0x127),'examples':[a17k(0x115),a17k(0x11f)]},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions['ask'](l(0x12f));b?.[l(0x11b)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x119)]);});if(!c)throw Log['error'](l(0x130));const f=await Actions[l(0x117)](l(0x12b)+c+l(0x126),![]);f?(await a[l(0x125)](c),Log[l(0x128)]('Deleted\x20'+c)):Log['error'](l(0x123)),process[l(0x120)](0x0);}catch(g){g&&Log[l(0x12d)](g),process[l(0x120)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=parseInt(l(0x1b5))/0x1*(-parseInt(l(0x1af))/0x2)+-parseInt(l(0x1bd))/0x3+parseInt(l(0x1ab))/0x4+-parseInt(l(0x1a8))/0x5+parseInt(l(0x1a2))/0x6*(-parseInt(l(0x1c5))/0x7)+-parseInt(l(0x1ac))/0x8*(parseInt(l(0x1b4))/0x9)+parseInt(l(0x1bb))/0xa*(parseInt(l(0x1c9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x2d2d3));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a['toString']()[n(0x19c)](n(0x1c3))[n(0x1ad)]()[n(0x1a7)](a18a)[n(0x19c)](n(0x1c3));});function a18c(){const q=['11olhGVr','search','sep','join','host','maka\x20aws:set-host\x20--env\x20dev','\x0aSaved\x20host\x20','6sAzmzc','exit','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','sth','private','constructor','1053340kzPZjV','utf8','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','933980TFFUmP','1208aLMYTy','toString','apply','120oiaCwQ','set-host','getMakaProjectConfig','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','parse','17829oOiyQi','2460gOCUrs','ssh.json','appName','ask','cat\x20','public','10589360pQhlmD','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','337056YheeXd','maka\x20aws:sth\x20--env\x20prod','writeFileSync','isFile','privateIp','env','(((.+)+)+)+$','fsi','2363459yhMceG','success','inherit','getAppConfigPath'];a18c=function(){return q;};return a18c();}a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x19c;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':a18o(0x1b0),'aliases':[a18o(0x1a5)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a18o(0x1c2)],'validOpts':[],'shortDesc':a18o(0x1bc),'description':a18o(0x1aa),'examples':[a18o(0x1a0),a18o(0x1be)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x1c4)][p(0x1c8)](b[p(0x1c2)]),f=this[p(0x1c4)][p(0x1b1)](),g=await c['chooseInstance'](),h=a18e[p(0x19e)](d,'ssh.json');!this[p(0x1c4)][p(0x1c0)](h)&&await this[p(0x1c4)]['template']({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x1b7)]},'config':f});const i=JSON[p(0x1b3)](a18f['readFileSync'](h,p(0x1a9))),j=await Actions[p(0x1b8)](p(0x1a4))||p(0x1ba);if(j){if(j===p(0x1ba)||j===p(0x1a6)){if(j==='public')i[p(0x19f)]=g?.['publicIp'];else j===p(0x1a6)&&(i[p(0x19f)]=g?.['privateIp']);}else throw p(0x1b2);}else i[p(0x19f)]=g?.[p(0x1c1)];a18f[p(0x1bf)](a18e[p(0x19e)](d,'ssh.json'),JSON['stringify'](i,null,0x2)),execSync(p(0x1b9)+a18e[p(0x19e)](d,p(0x1b6)),{'stdio':p(0x1c7)}),Log[p(0x1c6)](p(0x1a1)+j+'\x20IP\x20to\x20'+d+a18e[p(0x19d)]+p(0x1b6));}catch(k){k&&Log['error'](k),process[p(0x1a3)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a19i=a19d;function a19c(){const k=['search','9FIIMvq','50HLkEmB','\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','status','constructor','291352hxmxAX','\x20Ready?','9SWkPun','11mAujDq','name','354600otniFU','instanceId','3777eBYKqi','Terminate\x20an\x20EC2\x20instance','ec2terminateInstance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:ti','(((.+)+)+)+$','3839032hoYjBq','running','exit','10743036pxqeqD','confirm','terminate-instance','764005QMvUZW','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','apply','error','168rtygmV','create','maka\x20aws:terminate-instance','99043IVImPf'];a19c=function(){return k;};return a19c();}(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x84))/0x1*(parseInt(f(0x79))/0x2)+parseInt(f(0x7f))/0x3*(-parseInt(f(0x7d))/0x4)+-parseInt(f(0x6f))/0x5+-parseInt(f(0x73))/0x6*(-parseInt(f(0x76))/0x7)+parseInt(f(0x8a))/0x8*(-parseInt(f(0x78))/0x9)+-parseInt(f(0x82))/0xa+parseInt(f(0x80))/0xb*(parseInt(f(0x6c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x4bc4a));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x71)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a['toString']()[h(0x77)]('(((.+)+)+)+$')['toString']()[h(0x7c)](a19a)[h(0x77)](h(0x89));});a19a();function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x6a;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';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x74)]({'name':a19i(0x6e),'aliases':['ti'],'usage':a19i(0x75),'validOpts':[],'shortDesc':a19i(0x85),'description':a19i(0x7a),'examples':[a19i(0x75),a19i(0x88)]},async function(){const j=a19i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.['instanceId']&&b?.[j(0x7b)]===j(0x6a)){const c=await Actions[j(0x6d)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x81)]+j(0x7e));c?a[j(0x86)]({'instanceId':b[j(0x83)]}):Log[j(0x72)](j(0x70)+b[j(0x81)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x72)](j(0x87));}catch(d){d&&Log[j(0x72)](d),process[j(0x6b)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x91))/0x1+-parseInt(f(0x90))/0x2*(parseInt(f(0x9c))/0x3)+parseInt(f(0x9e))/0x4*(-parseInt(f(0x99))/0x5)+-parseInt(f(0x95))/0x6*(-parseInt(f(0x8f))/0x7)+parseInt(f(0x96))/0x8*(-parseInt(f(0x9a))/0x9)+parseInt(f(0x92))/0xa*(-parseInt(f(0x9b))/0xb)+parseInt(f(0x98))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xdf6e1));function a20c(){var h=['66JzuPxm','21hHqNWf','search','114828RDvxqR','7kRrIjG','418056VkQitB','1683363JEAUCW','628700InggUn','(((.+)+)+)+$','toString','6856356idiapG','48WHuIsY','constructor','24400140MzzdQZ','175gknuTT','1648656VPWpfk'];a20c=function(){return h;};return a20c();}var a20b=(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;};}()),a20a=a20b(this,function(){var g=a20d;return a20a['toString']()['search'](g(0x93))[g(0x94)]()[g(0x97)](a20a)[g(0x9d)](g(0x93));});a20a();function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x8f;var f=c[d];return f;},a20d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d
|
|
1
|
+
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x144))/0x1+-parseInt(n(0x15d))/0x2*(parseInt(n(0x153))/0x3)+parseInt(n(0x14a))/0x4+-parseInt(n(0x143))/0x5+-parseInt(n(0x161))/0x6+parseInt(n(0x15b))/0x7*(parseInt(n(0x15e))/0x8)+parseInt(n(0x151))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x8bbb4));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x164)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x152)]()[p(0x162)](p(0x15a))[p(0x152)]()['constructor'](a21a)[p(0x162)]('(((.+)+)+)+$');});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x143;let f=c[d];return f;},a21d(a,b);}a21a();import a21e from'path';import a21f from'fs';function a21c(){const t=['search','slice','apply','join','3687450jRZQwc','897757xyjSrn','maka\x20build',').\x20Update?','splice','concat','error','968316kSfZmc','force','invokeMeteorCommand','fsi','confirm','create','build','15069960papoOQ','toString','21ZTaQNV','getGlobalMeteorVersion','argv','app.tar.gz','checkMeteorPackage','\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','pathFromProject','(((.+)+)+)+$','4102KgndTB','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','1078MSMhID','4376zxhchB','--release','existsSync','154206ZzFgrH'];a21c=function(){return t;};return a21c();}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(0x14f)]({'name':a21q(0x150),'usage':a21q(0x145),'validOpts':[a21q(0x14b)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a21q(0x158),'examples':[a21q(0x145)]},async function(a,b){const r=a21q;try{await this[r(0x14d)][r(0x157)]('autoupdate',{'shouldInstall':!![]});const c=b[r(0x14b)];if(!c){const g=this[r(0x14d)][r(0x154)](),h=this['fsi']['getProjectMeteorVersion'](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x14e)]('This\x20project\x27s\x20meteor\x20version\x20('+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+r(0x146));j&&this[r(0x14d)][r(0x14c)]('update',[r(0x15f),g]);}}const d=[this[r(0x14d)][r(0x159)]({'pathParts':[r(0x150)]})][r(0x148)](process[r(0x155)][r(0x163)](0x3)),f=a21e[r(0x165)](this[r(0x14d)][r(0x159)]({}),'build',r(0x156));if(a21f[r(0x160)](f)){const k=c??await Actions[r(0x14e)](r(0x15c));if(!k)throw Log[r(0x149)]('Aborted.');}d['forEach']((l,m)=>{const s=r;l==='--force'&&d[s(0x147)](m,0x2);}),this[r(0x14d)]['invokeMeteorCommand'](r(0x150),d);}catch(l){console[r(0x149)](l),process['exit'](0x0);}});export default BuildCommand;
|