@maka/maka-cli 4.12.7 → 4.12.8
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/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.8",
|
|
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 a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x155))/0x1+parseInt(n(0x114))/0x2+-parseInt(n(0x161))/0x3+-parseInt(n(0x151))/0x4+-parseInt(n(0x150))/0x5+-parseInt(n(0x139))/0x6+parseInt(n(0x15f))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x34b2b));function a0c(){const A=['search','exit','(((.+)+)+)+$','Command.create\x20requires\x20a\x20handler\x20function!','call','run','2282406QHgsNG','constructor','aliases','minArgLength','Too\x20many\x20arguments','tableList','error','_commands','_handler','bind','maxArgLength','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','addCommand\x20requires\x20a\x20Command\x20instance','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','slice','Too\x20few\x20arguments','validateParams','notice','\x20not\x20found','forEach','push','usage','setColorMode','1696100AHAjrq','149820XEGFPd','mustBeLoggedIn','match','sort','369628ezHRWo','generate','Name','Command.create\x20requires\x20some\x20options!','assign','addCommand','shortDesc','Command\x20','LIGHT','length','9875551YVWfrw','Sub-Commands:','726498SvGtoB','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','function','minOptsLength','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','find','DARK','347856TxvwFC','mustHaveMeteorInstalled','pallet','invoke','Command\x20requires\x20a\x20handler\x20function','split','light','There\x20is\x20no\x20Meteor\x20application\x20here','name','validateUserIsLoggedIn','Command\x20format\x20is\x20incorrect','keys','validateMakaSubscription','localeCompare','number','validateMakaProject','help','play','bright','Please\x20run\x20\x22maka\x20install\x20meteor\x22','apply','Too\x20many\x20options','validateMeteorInstall','toString','Please\x20run\x20\x22maka\x20login\x22','options','getGlobalConfig','maybeProxyCommandToMeteor','Alias','fsi','maxOptsLength'];a0c=function(){return A;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a['toString']()[p(0x133)](p(0x135))[p(0x12b)]()[p(0x13a)](a0a)[p(0x133)](p(0x135));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x112;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x12d)];[a0q(0x140)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x162));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(r(0x118));this['options']=Object['assign']({},a),this[r(0x11c)]=this[r(0x12d)][r(0x11c)],this[r(0x140)]=[],this[r(0x141)]=b[r(0x142)](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0x158));if(typeof b!==s(0x163))throw new Error(s(0x136));const d=new Command(a,b);return c=c||a0f,Object[s(0x159)](d,{'parent':c?.[s(0x12d)]?.['name']}),c['addCommand'](d),d;}[a0q(0x15a)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x145));this[t(0x140)]['push'](a);}async['run'](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x131)][u(0x12e)](),d=c[u(0x116)]===u(0x11a)?ColorMode[u(0x15d)]:ColorMode[u(0x113)];Log[u(0x14f)](d),await this['validateMakaSubscription'](this);}catch(f){Log[u(0x13f)](f),process[u(0x134)](0x0);}return await this[u(0x117)](a,b);}catch(g){process['exit'](0x1);}}async[a0q(0x117)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x12d)];try{if(this[v(0x12d)]['name']!==v(0x156)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[v(0x140)][v(0x15e)]>=0x0,g=b[v(0x124)]||b['h'];if(f&&g){if(this['_commands'][v(0x15e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x12d)]['mustBeInMakaProject']){const h=this[v(0x123)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x12d)][v(0x152)]){const i=await this[v(0x11d)]();if(!i)throw new MustBeLoggedIn();}if(this['options'][v(0x115)]){const j=this[v(0x12a)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x12d)][v(0x13c)]===v(0x122)){if(a[v(0x15e)]<this[v(0x12d)]['minArgLength']){Log[v(0x13f)](v(0x148));throw new UsageError();}}if(typeof this['options'][v(0x143)]==='number'){if(a['length']>=this['options'][v(0x143)]){Log[v(0x13f)](v(0x13d));throw new UsageError();}}if(typeof this['options'][v(0x164)]==='number'){if(Object[v(0x11f)](b)[v(0x15e)]<this['options']['minOptsLength']){Log[v(0x13f)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[v(0x12d)][v(0x132)]===v(0x122)){if(Object[v(0x11f)](b)[v(0x15e)]>=this['options'][v(0x132)]){Log[v(0x13f)](v(0x129));throw new UsageError();}}}}b=await this[v(0x149)](a,b,this['options']),_prevCmd=a[0x0];}return await this[v(0x141)][v(0x137)](this,a,b);}catch(k){Log[v(0x14e)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log['notice'](v(0x160)),this[v(0x13e)](this['_commands']),Log['header'](v(0x146));else{if(k instanceof MustBeInProjectError)Log[v(0x13f)](v(0x165));else{if(k instanceof NoMeteorFoundError)Log[v(0x13f)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](v(0x127));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x13f)](v(0x11b));else k instanceof MustBeLoggedIn&&(Log[v(0x13f)](v(0x144)),Log[v(0x14a)](v(0x12c)));}}}process[v(0x134)](0x1);}}[a0q(0x13e)](a){const w=a0q,b=new a0e({});b[w(0x14d)]([w(0x157),w(0x130),'Description']),a[w(0x154)]((c,d)=>{const x=w;return c['name'][x(0x121)](d[x(0x11c)]);})[w(0x14c)](c=>{const y=w;c['name']!=='murder'&&c[y(0x11c)]!==y(0x125)&&b[y(0x14d)]([c[y(0x11c)],c[y(0x13b)](),c[y(0x15b)]()]);}),Log[w(0x126)](b[w(0x12b)]());}async['processAndRunCommand'](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x119)](':');if(!d||d[z(0x15e)]===0x0)throw z(0x11e);if(d[0x0]==='generate'||d[0x0]==='g'&&d[z(0x15e)]>0x1){const h=this[z(0x140)]['find'](j=>j[z(0x153)](z(0x156)));if(!h)throw'Command\x20not\x20found';await this[z(0x120)](h);const i=d[z(0x147)](0x1)['join'](':');return b['unshift'](i),await h['run'](b,c);}let f=this['_commands'],g;for(const j of d){g=f[z(0x112)](k=>k[z(0x153)](j));if(!g)try{await this['fsi'][z(0x12f)]();}catch(k){throw z(0x15c)+j+z(0x14b);}g&&(await this[z(0x120)](g),f=g['_commands']);}if(g){const l=await g[z(0x138)](b,c);return l;}else throw'Command\x20not\x20found';}catch(m){Log['error'](m),process[z(0x134)](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(0x7b))/0x1+-parseInt(f(0x83))/0x2+parseInt(f(0x82))/0x3+parseInt(f(0x80))/0x4+parseInt(f(0x7a))/0x5*(parseInt(f(0x7c))/0x6)+parseInt(f(0x7d))/0x7+-parseInt(f(0x77))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x7d66f));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x79)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x7f)]()[h(0x7e)](h(0x78))[h(0x7f)]()[h(0x81)](a1a)[h(0x7e)]('(((.+)+)+)+$');});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';function a1c(){var i=['105168HfUdiR','constructor','499263FFGAaU','93628DnTgsj','3620640KTIJEy','(((.+)+)+)+$','apply','589670hmdNTC','205567mIsVly','6vOyRuD','6355727aXyUiI','search','toString'];a1c=function(){return i;};return a1c();}import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x77;var f=c[d];return f;},a1d(a,b);}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(0xc2))/0x1*(parseInt(h(0xe2))/0x2)+parseInt(h(0xd6))/0x3+-parseInt(h(0xc5))/0x4+parseInt(h(0xea))/0x5+-parseInt(h(0xd1))/0x6+parseInt(h(0xe5))/0x7*(parseInt(h(0xc9))/0x8)+-parseInt(h(0xe1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x32b68));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0xca)]()[j(0xcc)](j(0xc8))[j(0xca)]()['constructor'](a2a)[j(0xcc)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xbf;let f=c[d];return f;},a2d(a,b);}import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process[k(0xde)],'output':process[k(0xe9)]});c[k(0xe0)](k(0xc0),async d=>{const l=k;if(d[l(0xda)]()==='exit'){c['close']();return;}try{const e=await HTTPS[l(0xc3)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0xbf)](e[l(0xe7)]);if(f['error'])throw new Error(f['error'][l(0xd8)]);Log[l(0xe8)]('GPT:\x20'+f?.[l(0xc7)][0x0]?.[l(0xc1)][l(0xd3)]());}catch(g){Log['error'](g),process[l(0xd9)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0xdb)]({'name':'ai','description':a2m(0xce),'validOpts':[a2m(0xe3),a2m(0xcd)],'shortDesc':a2m(0xce),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this['fsi']['isFile'](b[n(0xe3)])?(c=b['cacert'],Log[n(0xcb)](n(0xdc)+c)):Log[n(0xe4)](n(0xd7)+c));const d=await this['fsi'][n(0xd4)]();if(d['cert']){if(this[n(0xd2)][n(0xc4)](d[n(0xcf)]))c=d['cert'];else throw Log['error'](n(0xc6)+c);}let f='';if(b[n(0xcd)])f=b[n(0xcd)],Log[n(0xcb)](n(0xdf)+f);else{if(d['openai'])f=d[n(0xdd)];else throw Log[n(0xe4)](n(0xd5));}console[n(0xe6)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0xe4)](g),process[n(0xd9)](0x1);}});function a2c(){const o=['message','exit','toLowerCase','create','Using\x20CA\x20Cert\x20','openai','stdin','Using\x20OpenAI\x20Key\x20','question','1508229xnQdwQ','2MSkuxC','cacert','error','42PuyuBt','log','data','bright','stdout','1976035WBiAIN','parse','You:\x20','text','260629KsNLxr','askGPT','isFile','1048016ZVHfZo','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','choices','(((.+)+)+)+$','86312LAeIKQ','toString','notice','search','openapikey','ChatGPT\x20style\x20AI\x20interface','cert','apply','638148kUFFLb','fsi','trim','getGlobalConfig','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','69279AvCxlU','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'];a2c=function(){return o;};return a2c();}
|
|
@@ -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(0xf8))/0x1+-parseInt(f(0xf1))/0x2*(parseInt(f(0xef))/0x3)+parseInt(f(0xf7))/0x4+parseInt(f(0xf6))/0x5*(-parseInt(f(0xed))/0x6)+-parseInt(f(0xee))/0x7+-parseInt(f(0xec))/0x8+parseInt(f(0xf3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xdeb2c));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xf5)]()['search'](h(0xf4))[h(0xf5)]()[h(0xeb)](a3a)[h(0xf0)](h(0xf4));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xeb;var f=c[d];return f;},a3d(a,b);}import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';function a3c(){var i=['79331WhlVBs','567IAJHgz','search','8818qfiPhH','apply','27630495DTXqvg','(((.+)+)+)+$','toString','285HdzIPp','3068884BEwPdn','43301SVgwZY','constructor','2101616NCwvWQ','186786vhfWAy'];a3c=function(){return i;};return a3c();}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
|
-
|
|
1
|
+
const a4h=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x9d))/0x1*(-parseInt(f(0xa1))/0x2)+-parseInt(f(0xa0))/0x3+-parseInt(f(0xa6))/0x4+parseInt(f(0x9b))/0x5+parseInt(f(0x9a))/0x6*(parseInt(f(0xa5))/0x7)+-parseInt(f(0xa3))/0x8*(parseInt(f(0xa7))/0x9)+-parseInt(f(0xa8))/0xa*(-parseInt(f(0xa4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x8daff));const a4b=(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;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0xab)]()[g(0x9c)](g(0x9e))[g(0xab)]()['constructor'](a4a)[g(0x9c)]('(((.+)+)+)+$');});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0xa9)]({'name':a4h(0x9f),'usage':a4h(0xa2),'validOpts':[],'shortDesc':a4h(0xaa),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'},async function(){throw UsageError;});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x9a;let f=c[d];return f;},a4d(a,b);}function a4c(){const i=['toString','4423794jiANrB','3770590ceLTru','search','163FBTWAf','(((.+)+)+)+$','aws','518958LMGATP','3238JXPdxy','maka\x20aws:<sub-command>','457584kTQlTn','53438PPjygb','7zIxkwn','1273708ChkNrX','117jKCDkx','1210CHSVCt','create','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs'];a4c=function(){return i;};return a4c();}export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(
|
|
1
|
+
function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x178;let f=c[d];return f;},a5d(a,b);}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x194))/0x1*(-parseInt(g(0x187))/0x2)+-parseInt(g(0x18a))/0x3+-parseInt(g(0x17d))/0x4+-parseInt(g(0x185))/0x5*(-parseInt(g(0x196))/0x6)+parseInt(g(0x192))/0x7+-parseInt(g(0x18b))/0x8+parseInt(g(0x191))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xb2508));function a5c(){const l=['2070976IMHvsO','Create\x20an\x20Elastic\x20Container\x20Repository','maka\x20aws:cecr\x20--name=my-new-repo','error','region','search','name','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','712165OAkfVa','exit','2194qfftPA','maka\x20aws:create-ecr','toString','1514775MwAmjV','9126784UVoMsr','notice','$metadata','success','repository','repositoryUri','8409420WZfvIy','4157475WegRnE','create','1115CujYxm','ecrCreateRepository','6ZMeIJM','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','create-ecr','cecr','constructor','(((.+)+)+)+$','maka\x20aws:create-ecr\x20--name=my-new-repo','Repository\x20created\x20successfully.','httpStatusCode','apply'];a5c=function(){return l;};return a5c();}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x189)]()[i(0x182)]('(((.+)+)+)+$')['toString']()[i(0x19a)](a5a)[i(0x182)](i(0x178));});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';Command[a5j(0x193)]({'name':a5j(0x198),'aliases':[a5j(0x199)],'usage':a5j(0x188),'requiredOpts':[a5j(0x183)],'validOpts':[a5j(0x181)],'shortDesc':a5j(0x17e),'examples':[a5j(0x179),a5j(0x17f),a5j(0x197)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x195)](b);d&&d[k(0x18d)][k(0x17b)]===0xc8&&d['repository']?(Log[k(0x18e)](k(0x17a)),Log[k(0x18c)]('Repository\x20URI:\x20'+d[k(0x18f)][k(0x190)])):Log['error'](k(0x184)),process[k(0x186)](0x0);}catch(f){Log[k(0x180)](f),process[k(0x186)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6l=a6d;
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x93))/0x1*(-parseInt(i(0x85))/0x2)+-parseInt(i(0x80))/0x3*(-parseInt(i(0x9b))/0x4)+parseInt(i(0x98))/0x5*(-parseInt(i(0x88))/0x6)+-parseInt(i(0x81))/0x7+-parseInt(i(0x91))/0x8*(-parseInt(i(0x83))/0x9)+-parseInt(i(0x8d))/0xa*(-parseInt(i(0x84))/0xb)+parseInt(i(0x9d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x1accf));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a['toString']()['search'](k(0x94))[k(0x9f)]()[k(0x87)](a6a)[k(0x86)](k(0x94));});function a6c(){const n=['958yOhEYC','search','constructor','437538MoYTdr','Instance\x20not\x20found','route53CreateHostedZone','Set\x20hosted\x20zone\x20to\x20an\x20instance?','exit','84820HNqxOK','maka\x20aws:chz\x20--domain=example.com','chz','confirm','248rfMHAH','linkEC2ToRoute53','291rRrqsL','(((.+)+)+)+$','apply','create-hosted-zone','error','10AfFkCD','maka\x20aws:create-hosted-zone','maka\x20aws:create-hosted-zone\x20--domain=example.com','233528uMNzkY','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','174804TLuXAw','publicIp','toString','9rPDkDs','969374EfKmOH','domain','53019ZQdHfY','209EsZnRe'];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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x80;let f=c[d];return f;},a6d(a,b);}Command['create']({'name':a6l(0x96),'aliases':[a6l(0x8f)],'usage':a6l(0x99),'requiredOpts':[a6l(0x82)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a6l(0x9a),a6l(0x8e)]},async function(a,b){const m=a6l;try{const c=b[m(0x82)],d=new AWS();d[m(0x8a)](c);const f=await Actions[m(0x90)](m(0x8b));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x97)](m(0x9c));d[m(0x92)](g['id'],g[m(0x9e)],c);}else throw m(0x89);}}catch(h){h&&Log[m(0x97)](h),process[m(0x8c)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x92))/0x1*(-parseInt(ae(0xe8))/0x2)+-parseInt(ae(0xe6))/0x3*(parseInt(ae(0x89))/0x4)+-parseInt(ae(0x8e))/0x5+parseInt(ae(0xd6))/0x6*(parseInt(ae(0x98))/0x7)+-parseInt(ae(0x91))/0x8*(parseInt(ae(0xbd))/0x9)+parseInt(ae(0xe9))/0xa+-parseInt(ae(0x82))/0xb*(-parseInt(ae(0xe1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x7268b));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x75;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x9c)]()[ag(0x81)](ag(0xc5))['toString']()[ag(0xc1)](a7a)[ag(0x81)](ag(0xc5));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';function a7c(){const au=['Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\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','Creating\x20user\x20data\x20file\x20in\x20','Setting\x20AMI\x20ID\x20to\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','parse','subnetId','desc','createFile','createKeyPair','create','fsi','Setting\x20SG\x20ID\x20to:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','amazon','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=*','6lADebc','getConfigFromShorthand','User\x20Data:','amiId','EC2\x20Name:\x20[','getAppConfigPath','deleteSecurityGroup','Create\x20new\x20AWS\x20instance','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','environment','\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','24XENTBT','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Name','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','22,80,443','607917BXoJhT','join','2254Wtunck','8875940wovpDW','Subnet:\x20','t3.micro','**\x20Available\x20key-pairs\x20**','Security\x20Group\x20Name:\x20[','subnet','\x20SUBNETID:\x20','error','\x20CIDR:\x20','1:1','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','forEach','ID:\x20','cider','ec2describeKeys','search','3071431KLNBJz','readFileSync','sgId','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','bright','string','exit','4kuodAH','ask','build\x20on\x20','ImageID:','Remove\x20the\x20security\x20group\x20','933995TYvzcb','alias','cidr','6408504nzQDvq','161bYLROM','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20SGID:\x20','split','chooseVPC','apply','221459ZuYfWb','\x20SG\x20NAME:\x20','unlinkSync','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','toString','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Desc','confirm','\x20AMIID:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','date','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','\x20DESCRIPTION:\x20','Instace\x20Type:\x20','Remove\x20the\x20keypair\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','name','Security\x20Group:\x20','\x20AZONE:\x20','maka\x20aws:ci\x20--env\x20prod','Setting\x20Subnet\x20ID\x20to\x20','ec2create','number','getMakaProjectConfig','Web\x20App','log','push','maka\x20aws:create-instance','success','\x20:\x20','maka-cli','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','env','getSecurityGroups','Would\x20you\x20like\x20to\x20include\x20user\x20data?','**\x20Available\x20Subnets\x20**','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','9cWGjNQ','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','notice','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','constructor','maka\x20aws:create-instance\x20--env\x20dev','Key-Pair:\x20','isFile','(((.+)+)+)+$'];a7c=function(){return au;};return a7c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0xd0)]({'name':'create-instance','aliases':['ci'],'usage':a7ah(0xb3),'examples':[a7ah(0xc2),a7ah(0xab)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0xb8)}],'validOpts':[],'shortDesc':a7ah(0xdd),'description':a7ah(0xe0)},async function(a,b){const ai=a7ah;try{const c=this[ai(0xd1)][ai(0xaf)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xd1)][ai(0xd7)](b[ai(0xb8)]),i=this[ai(0xd1)][ai(0xdb)](h),j=g+'-'+h,k=await Actions[ai(0x8a)](ai(0xda)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0xca),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xcf)]({'env':h});r=y,s=z,Log[ai(0xb4)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0xbf)](ai(0x75));const A=r?r:k,B=await d[ai(0x80)]({'suggestion':A}),C=await Actions[ai(0x8a)](ai(0xa7))||'-1';if(parseInt(C)<0x0){Log[ai(0x79)](ai(0xbc)),Log[ai(0xbf)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x7d)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xa8)],Log[aj(0xb4)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x79)](D);}l=await d[ai(0x96)]();const t=await Actions[ai(0x9f)](ai(0xde),!![]);let u;if(t){const E=l===''?await d[ai(0x96)]():l;u=await Actions[ai(0x8a)](ai(0x76)+k+']')||k;const F=await Actions[ai(0x8a)](ai(0x85))||ai(0xe5),G=F['split'](',');await d['ec2createSG']({'description':ai(0xb0),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xb9)](u);if(I===''){Log[ai(0xbf)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x7d)](function(L){const ak=ai;L[ak(0xa8)]===u?Log[ak(0xbf)](ak(0x7e)+L['id']+ak(0x99)+L[ak(0xa8)]+ak(0x94)+L[ak(0x84)]):Log[ak(0x86)](ak(0x7e)+L['id']+ak(0x99)+L[ak(0xa8)]+'\x20SGID:\x20'+L[ak(0x84)]);});const K=await Actions[ai(0x8a)](ai(0x9b)+H+']\x20')||H[ai(0x9c)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x84)],Log[al(0xb4)](al(0xd2)+m+'\x0a'));});}else m=I,Log[ai(0xb4)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x79)](ai(0x7c));}catch(L){Log[ai(0x79)](L);}try{const M=0x7e6;Log[ai(0xbf)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0xd5)+M+ai(0xc7))['toString'](),O=JSON[ai(0xcb)](N),P=[],Q=[];O[ai(0x7d)](function(S){const am=ai;if(S[am(0x8f)]===am(0xd4)){const T=S[am(0x9e)][am(0x95)](am(0x8b))[0x1];P[am(0xb2)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S[an(0xa2)])['getTime']();}),P[ai(0x7d)](function(S,T){const ao=ai;Q[ao(0xb2)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0xcd)]});}),Q[ai(0x7d)](function(S){const ap=ai;console['log'](ap(0x7e)+S['id']+ap(0xa0)+S[ap(0xd9)]+ap(0xa4)+S[ap(0xcd)]);});const R=await Actions[ai(0x8a)](ai(0xe2))||'0';Q[ai(0x7d)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xd9)],Log[aq(0xb4)](aq(0xc9)+n+aq(0xb5)+S[aq(0xcd)]));});if(n==='')throw Log['error'](ai(0x7c));}catch(S){Log['error'](S);}try{Log['notice'](ai(0xbb));const T=execSync(ai(0xc0))[ai(0x9c)](),U=JSON['parse'](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0xb2)]({'id':Y,'cidr':X[ar(0x7f)],'az':X['az'],'subnetId':X[ar(0xcc)]});}),V[ai(0x7d)](function(X){const as=ai;console[as(0xb1)]('ID:\x20'+X['id']+as(0x7a)+X[as(0x90)]+as(0xaa)+X['az']+as(0x78)+X[as(0xcc)]);});const W=await Actions[ai(0x8a)](ai(0xc6))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xcc)],Log[at(0xb4)](at(0xac)+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x79)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x8a)](ai(0xa1))||ai(0x7b),Z=Y[ai(0x95)](':')[0x0],a0=Y[ai(0x95)](':')[0x1];typeof parseInt(Z)===ai(0xae)&&typeof parseInt(a0)===ai(0xae)&&Log[ai(0xb4)](ai(0xe4)+Z+':'+a0);}catch(a1){Log[ai(0x79)](a1);}try{const a2=await Actions[ai(0x8a)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0xeb);typeof a2===ai(0x87)&&(o=a2);}catch(a3){Log[ai(0x79)](a3);}let x='';try{const a4=await Actions[ai(0x9f)](ai(0xba),![]);a4&&(x=a7f[ai(0xe7)](i,'user-data'),Log[ai(0xbf)](ai(0xc8)+x),await this[ai(0xd1)][ai(0xce)]({'filePath':x,'data':''}),await Actions[ai(0x9f)](ai(0xbe)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xcb)](execSync(ai(0x9d)+p+ai(0xa3))[ai(0x9c)]())[0x0][ai(0x77)];Log[ai(0xbf)](ai(0x8c)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log[ai(0xbf)](ai(0xa5)+o),Log[ai(0xbf)](ai(0xc3)+r),Log['notice'](ai(0xa9)+m),Log[ai(0xbf)](ai(0xea)+a6);if(x){Log[ai(0xbf)](ai(0xd8)+x);const a8=a7g[ai(0x83)](x)[ai(0x9c)]();Log[ai(0xbf)](a8);}const a7=await Actions[ai(0x9f)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0xad)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0xb6)},{'Key':ai(0xdf),'Value':h},{'Key':ai(0xe3),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0xd3)),Log['bright'](ai(0x93)));}else{Log[ai(0xbf)](ai(0xb7));const aa=await Actions['confirm'](ai(0xa6)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0xc4)](s)&&a7g[ai(0x9a)](s));const ab=await Actions[ai(0x9f)](ai(0x8d)+m+'\x20?',!![]);ab&&d[ai(0xdc)](m);}}catch(ac){Log[ai(0x79)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x88)](0x0);}},a7e);
|
|
1
|
+
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x23a))/0x1+parseInt(ae(0x233))/0x2+-parseInt(ae(0x200))/0x3+parseInt(ae(0x205))/0x4*(-parseInt(ae(0x237))/0x5)+-parseInt(ae(0x251))/0x6+-parseInt(ae(0x20e))/0x7*(parseInt(ae(0x246))/0x8)+parseInt(ae(0x254))/0x9*(parseInt(ae(0x21f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x75c98));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x241)]()[ag(0x242)](ag(0x20c))[ag(0x241)]()[ag(0x222)](a7a)[ag(0x242)](ag(0x20c));});function a7c(){const au=['*\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','createFile','Setting\x20SG\x20ID\x20to:\x20','split','1:1','Setting\x20Subnet\x20ID\x20to\x20','EC2\x20Name:\x20[','10NpyRCX','subnetId','env','constructor','Name','forEach','**\x20Available\x20Subnets\x20**','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','22,80,443','No\x20instance\x20has\x20been\x20created.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','fsi','cidr','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','bright','success','push','Please\x20choose\x20a\x20key\x20to\x20use:\x20','number','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','100102NQNKYZ','createKeyPair','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','3794690mXfpre','Creating\x20user\x20data\x20file\x20in\x20','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','324402jBOPgx','created-by','getAppConfigPath','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Key-Pair:\x20','ID:\x20','build\x20on\x20','toString','search','name','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','48jzVxnr','subnet','ec2describeKeys','ImageID:','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','log','amazon','t3.micro','desc','isFile','Remove\x20the\x20security\x20group\x20','665472BvYBlb','join','**\x20Available\x20AMIs\x20**','14322087lUDdlq','Create\x20new\x20AWS\x20instance','sort','\x20DESCRIPTION:\x20','ask','Setting\x20the\x20key-pair\x20to:\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','sgId','create','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=*','deleteKeyPair','**\x20Available\x20Security\x20Groups\x20**','\x20SG\x20NAME:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','apply','maka\x20aws:create-instance\x20--env\x20dev','Instance\x20Count:\x20','exit','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','notice','\x20AMIID:\x20','readFileSync','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','deleteSecurityGroup','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Desc','1639122fOFZeu','cider','\x20SGID:\x20','amiId','alias','4rFIVtn','\x20AZONE:\x20','error','getSecurityGroups','getConfigFromShorthand','date','getTime','(((.+)+)+)+$','maka-cli','78302xQevnh','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','string','ec2create','ec2createSG','create-instance','confirm','chooseVPC','Subnet:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?'];a7c=function(){return au;};return a7c();}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';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x1ee)]({'name':a7ah(0x213),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0x1f5),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x221)}],'validOpts':[],'shortDesc':a7ah(0x255),'description':a7ah(0x239)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x22a)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x22a)][ai(0x209)](b[ai(0x221)]),i=this[ai(0x22a)][ai(0x23c)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x21e)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x214)](ai(0x217),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x234)]({'env':h});r=y,s=z,Log[ai(0x22e)](ai(0x1eb)+r);}else try{Log[ai(0x1f9)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x248)]({'suggestion':A}),C=await Actions[ai(0x1ea)](ai(0x230))||'-1';if(parseInt(C)<0x0){Log[ai(0x207)](ai(0x1fc)),Log[ai(0x1f9)](ai(0x228));return;}B?.[ai(0x224)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x22e)](aj(0x1eb)+r));});}catch(D){Log['error'](D);}l=await d['chooseVPC']();const t=await Actions['confirm'](ai(0x245),!![]);let u;if(t){const E=l===''?await d[ai(0x215)]():l;u=await Actions[ai(0x1ea)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x1ea)](ai(0x226))||ai(0x227),G=F[ai(0x21b)](',');await d[ai(0x212)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x208)](u);if(I===''){Log[ai(0x1f9)](ai(0x1f1)),J[ai(0x224)](function(L){const ak=ai;L[ak(0x243)]===u?Log[ak(0x1f9)](ak(0x23f)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x243)]+ak(0x202)+L[ak(0x1ed)]):Log[ak(0x22d)](ak(0x23f)+L['id']+ak(0x1f2)+L[ak(0x243)]+ak(0x202)+L[ak(0x1ed)]);});const K=await Actions['ask'](ai(0x23d)+H+']\x20')||H[ai(0x241)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1ed)],Log[al(0x22e)](al(0x21a)+m+'\x0a'));});}else m=I,Log[ai(0x22e)](ai(0x21a)+m+'\x0a');if(m==='')throw Log['error'](ai(0x1f3));}catch(L){Log[ai(0x207)](L);}try{const M=0x7e6;Log[ai(0x1f9)](ai(0x253));const N=execSync(ai(0x1ef)+M+ai(0x218))['toString'](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x204)]===am(0x24c)){const T=S[am(0x1ff)][am(0x21b)](am(0x240))[0x1];P[am(0x22f)]({'amiId':S['ID'],'desc':S[am(0x1ff)],'date':T});}}),P[ai(0x1e8)](function(S,T){const an=ai;return new Date(T[an(0x20a)])[an(0x20b)]()-new Date(S['date'])['getTime']();}),P[ai(0x224)](function(S,T){const ao=ai;Q[ao(0x22f)]({'id':T,'amiId':S[ao(0x203)],'desc':S['desc']});}),Q[ai(0x224)](function(S){const ap=ai;console[ap(0x24b)](ap(0x23f)+S['id']+ap(0x1fa)+S[ap(0x203)]+ap(0x1e9)+S[ap(0x24e)]);});const R=await Actions[ai(0x1ea)](ai(0x236))||'0';Q[ai(0x224)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x203)],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+S[aq(0x24e)]));});if(n==='')throw Log[ai(0x207)](ai(0x1f3));}catch(S){Log['error'](S);}try{Log['notice'](ai(0x225));const T=execSync(ai(0x22c))[ai(0x241)](),U=JSON['parse'](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x22f)]({'id':Y,'cidr':X[ar(0x201)],'az':X['az'],'subnetId':X['subnetId']});}),V['forEach'](function(X){const as=ai;console[as(0x24b)](as(0x23f)+X['id']+'\x20CIDR:\x20'+X[as(0x22b)]+as(0x206)+X['az']+'\x20SUBNETID:\x20'+X[as(0x220)]);});const W=await Actions['ask'](ai(0x229))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x22e)](at(0x21d)+p));});if(p==='')throw Log['error'](ai(0x1f3));}catch(X){Log[ai(0x207)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1ea)](ai(0x244))||ai(0x21c),Z=Y[ai(0x21b)](':')[0x0],a0=Y[ai(0x21b)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x231)&&Log[ai(0x22e)](ai(0x235)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ai(0x1ea)](ai(0x24a))||ai(0x24d);typeof a2===ai(0x210)&&(o=a2);}catch(a3){Log[ai(0x207)](a3);}let x='';try{const a4=await Actions[ai(0x214)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a7f[ai(0x252)](i,'user-data'),Log[ai(0x1f9)](ai(0x238)+x),await this[ai(0x22a)][ai(0x219)]({'filePath':x,'data':''}),await Actions[ai(0x214)](ai(0x20f)));}catch(a5){Log['error'](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x1f8))['toString']())[0x0][ai(0x247)];Log[ai(0x1f9)](ai(0x249)+n),Log[ai(0x1f9)](ai(0x1f6)+v+':'+w),Log[ai(0x1f9)]('Instace\x20Type:\x20'+o),Log[ai(0x1f9)](ai(0x23e)+r),Log[ai(0x1f9)]('Security\x20Group:\x20'+m),Log['notice'](ai(0x216)+a6);if(x){Log[ai(0x1f9)]('User\x20Data:'+x);const a8=a7g[ai(0x1fb)](x)['toString']();Log[ai(0x1f9)](a8);}const a7=await Actions['confirm'](ai(0x232));if(a7){const a9=await d[ai(0x211)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x23b),'Value':ai(0x20d)},{'Key':'environment','Value':h},{'Key':ai(0x223),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x22e)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ai(0x1fe)));}else{Log['notice'](ai(0x1ec));const aa=await Actions[ai(0x214)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x1f0)](r),f[ai(0x24f)](s)&&a7g['unlinkSync'](s));const ab=await Actions['confirm'](ai(0x250)+m+'\x20?',!![]);ab&&d[ai(0x1fd)](m);}}catch(ac){Log[ai(0x207)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x1f7)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8j=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-
|
|
1
|
+
function a8c(){const l=['create','getConfigFromShorthand','apply','350450qdouzf','maka\x20aws:create-key-pair\x20--env\x20prod','ckp','9755973Orazba','2623360oeKFoe','constructor','createKeyPair','maka\x20aws:ckp\x20--env\x20prod','fsi','340202PIrJgW','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','(((.+)+)+)+$','10lycqCu','118806tjXTWi','\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','2ezoqBd','search','672984pmbaDF','42CSQPKS','toString','error','maka\x20aws:create-key-pair','1561384npQMGd','env'];a8c=function(){return l;};return a8c();}const a8j=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x144;let f=c[d];return f;},a8d(a,b);}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x158))/0x1*(parseInt(g(0x15e))/0x2)+parseInt(g(0x145))/0x3+-parseInt(g(0x14a))/0x4+parseInt(g(0x14f))/0x5+-parseInt(g(0x15c))/0x6*(parseInt(g(0x146))/0x7)+-parseInt(g(0x153))/0x8+-parseInt(g(0x152))/0x9*(-parseInt(g(0x15b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x311b5));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()[i(0x144)](i(0x15a))[i(0x147)]()[i(0x154)](a8a)['search']('(((.+)+)+)+$');});a8a();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[a8j(0x14c)]({'name':'create-key-pair','aliases':[a8j(0x151)],'usage':a8j(0x149),'examples':[a8j(0x150),a8j(0x156)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x14b)],'validOpts':[],'shortDesc':a8j(0x159),'description':a8j(0x15d)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x157)][k(0x14d)](b[k(0x14b)]);c[k(0x155)]({'env':d});}catch(f){f&&Log[k(0x148)](f),process['exit'](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x1d1))/0x1+parseInt(m(0x1d5))/0x2+-parseInt(m(0x1cf))/0x3*(parseInt(m(0x1ce))/0x4)+parseInt(m(0x1dd))/0x5*(-parseInt(m(0x1c4))/0x6)+parseInt(m(0x1d4))/0x7+-parseInt(m(0x1c6))/0x8*(-parseInt(m(0x1cc))/0x9)+-parseInt(m(0x1d9))/0xa*(-parseInt(m(0x1de))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x25f69));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x1d3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x1e6)]()[o(0x1c7)]('(((.+)+)+)+$')[o(0x1e6)]()['constructor'](a9a)['search'](o(0x1cd));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a9d(a,b);}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';function a9c(){const s=['maka\x20aws:csg','match','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','toString','exit','84756XrtRol','ask','184maLhYU','search','maka\x20aws\x20create-security-group','chooseVPC','csg','create-security-group','113751yswddf','(((.+)+)+)+$','4EOQsia','591807wxCPbR','name','76560OYiQFA','fsi','apply','1428378OlUcPv','143168dFVzOu','\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','List\x20is\x20not\x20all\x20numbers','split','10DlJWEC','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','error','create','100iaAZjg','1600621SfLtvx','forEach','ec2createSG','22,80,443','getMakaProjectConfig'];a9c=function(){return s;};return a9c();}import{Log}from'../../tools/log/log.class.js';Command[a9p(0x1dc)]({'name':a9p(0x1cb),'aliases':[a9p(0x1ca)],'usage':a9p(0x1c8),'validOpts':[],'shortDesc':a9p(0x1da),'description':a9p(0x1d6),'examples':['maka\x20aws:create-secuirty-group',a9p(0x1e3)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x1d2)][q(0x1e2)](),{appName:f}=d,g=await c[q(0x1c9)](),h=b[q(0x1d0)]?b[q(0x1d0)]:''+f,i=await Actions['ask']('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x1c5)](q(0x1e5))||q(0x1e1),k=j[q(0x1d8)](',');k[q(0x1df)](l=>{const r=q;if(!l[r(0x1e4)](/^\d+$/))throw r(0x1d7);}),await c[q(0x1e0)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x1db)](l),process[q(0x1c3)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x89))/0x1*(parseInt(f(0x8f))/0x2)+parseInt(f(0x8c))/0x3+-parseInt(f(0x7c))/0x4+parseInt(f(0x80))/0x5*(-parseInt(f(0x78))/0x6)+parseInt(f(0x82))/0x7+parseInt(f(0x8d))/0x8*(-parseInt(f(0x86))/0x9)+parseInt(f(0x87))/0xa*(parseInt(f(0x83))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xb419a));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x93)]()[h(0x7f)](h(0x88))[h(0x93)]()['constructor'](a10a)[h(0x7f)]('(((.+)+)+)+$');});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x78;let f=c[d];return f;},a10d(a,b);}a10a();function a10c(){const k=['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','toString','18YoFrBP','\x20in\x20region\x20','create','.\x20Error:\x20','1943792QhpWCk','apply','ecrDeleteRepository','search','916445AeLHNM','name','9115876MFDpNu','745701iLrKsJ','region','Failed\x20to\x20delete\x20the\x20repository:\x20','10953hqsjEM','100UTWFkA','(((.+)+)+)+$','1GVJCrs','Delete\x20an\x20Elastic\x20Container\x20Repository','exit','3848631SbyJBg','4488KbaqUU','Repository\x20','1613626tnAbfF','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','decr'];a10c=function(){return k;};return a10c();}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(0x7a)]({'name':'delete-ecr','aliases':[a10i(0x91)],'usage':'maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','requiredOpts':[a10i(0x81),a10i(0x84)],'validOpts':[],'shortDesc':a10i(0x8a),'examples':[a10i(0x92),a10i(0x90)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x7e)]({'repoName':b['name'],'region':b[j(0x84)]}),Log['success'](j(0x8e)+b[j(0x81)]+'\x20deleted\x20successfully\x20in\x20region\x20'+b[j(0x84)]+'.'),process['exit'](0x0);}catch(d){Log['error'](j(0x85)+b[j(0x81)]+j(0x79)+b[j(0x84)]+j(0x7b)+d),process[j(0x8b)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d
|
|
1
|
+
const a11h=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a11d(a,b);}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x1ee))/0x1*(-parseInt(f(0x1ff))/0x2)+parseInt(f(0x1f8))/0x3*(-parseInt(f(0x1f1))/0x4)+parseInt(f(0x1fb))/0x5+-parseInt(f(0x1f0))/0x6+-parseInt(f(0x1f7))/0x7*(-parseInt(f(0x1f2))/0x8)+parseInt(f(0x1f6))/0x9*(-parseInt(f(0x1fe))/0xa)+-parseInt(f(0x1ef))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x6854b));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(0x1ec)]()[g(0x1fa)](g(0x1f5))['toString']()[g(0x1ed)](a11a)[g(0x1fa)](g(0x1f5));});a11a();function a11c(){const j=['105738XRtaOv','717272aXYyIP','104GkKkPA','error','create','(((.+)+)+)+$','1350MeApFL','212779iJgpio','9KwvJkB','ec2describeInstances','search','1308430wVYgwF','maka\x20aws:describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','1670XqyviK','1419094yXmsDH','exit','describe-instances','maka\x20aws:di','toString','constructor','1cvbwpT','3942708ZpwcKS'];a11c=function(){return j;};return a11c();}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(0x1f4)]({'name':a11h(0x201),'aliases':['di'],'usage':a11h(0x1fc),'validOpts':[],'shortDesc':a11h(0x1fd),'examples':[a11h(0x1fc),a11h(0x202)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const i=a11h;try{const a=new AWS();a[i(0x1f9)]();}catch(b){b&&Log[i(0x1f3)](b),process[i(0x200)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a12c(){const j=['3212010mnIBxT','describe-key-pairs','3685640sfpGRH','maka\x20aws:describe-key-pairs','(((.+)+)+)+$','1069527yvautB','search','148iGRbuE','3228835gPHlba','maka\x20aws:dkp','4OqBMRI','dkp','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','1297264odnubX','create','toString','2752MBvuru','ec2describeKeys','1163256Iupmls'];a12c=function(){return j;};return a12c();}const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x15b))/0x1*(parseInt(f(0x151))/0x2)+parseInt(f(0x159))/0x3*(parseInt(f(0x15e))/0x4)+-parseInt(f(0x15c))/0x5+parseInt(f(0x153))/0x6+parseInt(f(0x156))/0x7+parseInt(f(0x14e))/0x8+-parseInt(f(0x154))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x6b6f6));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x14c;let f=c[d];return f;},a12d(a,b);}const a12b=(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;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0x150)]()[g(0x15a)](g(0x158))[g(0x150)]()['constructor'](a12a)[g(0x15a)](g(0x158));});a12a();import a12e 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[a12h(0x14f)]({'name':a12h(0x155),'aliases':[a12h(0x14c)],'usage':a12h(0x157),'validOpts':[],'shortDesc':a12h(0x14d),'examples':[a12h(0x157),a12h(0x15d)]},async function(){const i=a12h;try{const a=new AWS();a[i(0x152)]();}catch(b){b&&Log['error'](b),process['exit'](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(
|
|
1
|
+
const a13o=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x75;let f=c[d];return f;},a13d(a,b);}(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x7f))/0x1+parseInt(l(0x77))/0x2+-parseInt(l(0x76))/0x3+parseInt(l(0x8b))/0x4*(-parseInt(l(0x96))/0x5)+parseInt(l(0x86))/0x6*(parseInt(l(0x9a))/0x7)+parseInt(l(0x8c))/0x8*(-parseInt(l(0x9c))/0x9)+parseInt(l(0x84))/0xa*(parseInt(l(0x9b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x192b9));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x9d)]()[n(0x87)](n(0x89))[n(0x9d)]()[n(0x83)](a13a)[n(0x87)]('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const s=['That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','6461bjlNzd','2409glXopQ','36WiCLEO','toString','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','581460IHeVXt','50502roWcmz','create','ask','Not\x20deleting\x20secuirty\x20group','getMakaProjectConfig','apply','Deleted\x20','ID:\x20','137754AIByQj','confirm','appName','includes','constructor','20830wxtJOJ','sgId','696Ohmmqq','search','exit','(((.+)+)+)+$','success','52AZDvqG','167432PbKmcF','maka\x20aws:delete-sg','dsg','notice','error','forEach','getSecurityGroups','\x20SG\x20NAME:\x20','name','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','26965YGyjJY','isMakaProject','deleteSecurityGroup'];a13c=function(){return s;};return a13c();}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[a13o(0x78)]({'name':'delete-security-group','aliases':[a13o(0x8e)],'usage':a13o(0x8d),'validOpts':[],'shortDesc':a13o(0x75),'examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x97)]();let d='';if(c){const j=b[p(0x7b)]();d=j[p(0x81)];}const {sgList:f}=await a[p(0x92)]();f['forEach'](function(k){const q=p;c&&k['name'][q(0x82)](d)?Log[q(0x8f)]('ID:\x20'+k['id']+q(0x93)+k[q(0x94)]+'\x20SGID:\x20'+k[q(0x85)]):Log['bright'](q(0x7e)+k['id']+q(0x93)+k[q(0x94)]+'\x20SGID:\x20'+k[q(0x85)]);});let g='';const h=await Actions[p(0x79)](p(0x95));f[p(0x91)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x85)]);});if(!g)throw Log[p(0x90)](p(0x99));const i=await Actions[p(0x80)]('Deleting\x20a\x20'+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x98)](g),Log[p(0x8a)](p(0x7d)+g)):Log[p(0x90)](p(0x7a)),process[p(0x88)](0x0);}catch(k){k&&Log['error'](k),process[p(0x88)](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(0x18e))/0x1+-parseInt(f(0x189))/0x2*(-parseInt(f(0x185))/0x3)+-parseInt(f(0x18a))/0x4*(-parseInt(f(0x188))/0x5)+parseInt(f(0x183))/0x6*(parseInt(f(0x182))/0x7)+-parseInt(f(0x193))/0x8*(-parseInt(f(0x198))/0x9)+parseInt(f(0x197))/0xa*(parseInt(f(0x184))/0xb)+-parseInt(f(0x192))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x30a79));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x196)]()['search'](h(0x18d))[h(0x196)]()[h(0x191)](a14a)['search'](h(0x18d));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x180;let f=c[d];return f;},a14d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a14i(0x18f)]({'name':a14i(0x18b),'aliases':[a14i(0x194)],'usage':a14i(0x18c),'requiredOpts':[],'validOpts':[a14i(0x195)],'shortDesc':a14i(0x180),'examples':['maka\x20aws:list-ecr','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x195)]),Log['success']('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x186)](0x0);}catch(d){Log[j(0x187)](j(0x190)+d),process[j(0x186)](0x1);}},a14e);function a14c(){const k=['4eXdmLa','list-ecr','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','(((.+)+)+)+$','329741SwzuNY','create','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','constructor','10273884VvNRqI','40UENtNs','lecr','regions','toString','1164770myHIdJ','23013glFdTB','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','apply','14OvxZbk','1026546ighkIN','11JwjiZN','3FIQBkb','exit','error','1009805AuCyDm','104600YFALsz'];a14c=function(){return k;};return a14c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d
|
|
1
|
+
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x10e))/0x1+parseInt(f(0x110))/0x2+parseInt(f(0x104))/0x3+parseInt(f(0xfe))/0x4+-parseInt(f(0x10f))/0x5*(parseInt(f(0x10c))/0x6)+-parseInt(f(0x111))/0x7*(-parseInt(f(0x103))/0x8)+-parseInt(f(0x107))/0x9*(parseInt(f(0xfc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x91b00));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x10b)]()[h(0x102)](h(0xfb))['toString']()['constructor'](a15a)['search'](h(0xfb));});function a15c(){const k=['(((.+)+)+)+$','712850TlaFiL','instanceId','1064724akkAIK','Reboot\x20an\x20EC2\x20instance','running','maka\x20aws:reboot-instance','search','4982408qHeEMl','879507ygmDcn','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','\x20is\x20still\x20running.','207wDROWa','chooseInstance','apply','exit','toString','90ibFsnT','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','1069903aKNNDb','78915whJMgf','441964Llpbpf','7dHeVWD','name','confirm','rbi','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','error'];a15c=function(){return k;};return a15c();}a15a();import a15e 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';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xf9;let f=c[d];return f;},a15d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':[a15i(0x114)],'usage':a15i(0x101),'validOpts':[],'shortDesc':a15i(0xff),'examples':[a15i(0x101),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x108)]();if(b?.['status']===j(0x100)){const c=await Actions[j(0x113)](j(0x105)+b[j(0x112)]+'\x20Ready?');c&&b[j(0xfd)]?a['ec2rebootInstance']({'instanceId':b[j(0xfd)]}):Log['error'](j(0xf9)+b[j(0x112)]+j(0x106));}else Log[j(0xfa)](j(0x10d));}catch(d){d&&Log['error'](d),process[j(0x10a)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(
|
|
1
|
+
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x16f))/0x1*(-parseInt(E(0x173))/0x2)+parseInt(E(0x164))/0x3+-parseInt(E(0x166))/0x4*(parseInt(E(0x169))/0x5)+parseInt(E(0x167))/0x6+-parseInt(E(0x171))/0x7*(-parseInt(E(0x15e))/0x8)+parseInt(E(0x170))/0x9*(-parseInt(E(0x165))/0xa)+parseInt(E(0x15f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x95ecd));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x16c)]()[G(0x158)](G(0x16b))[G(0x16c)]()['constructor'](a16a)[G(0x158)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x141;let f=c[d];return f;},a16d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0x154)](CountryCode)[H(0x15a)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}function a16c(){const K=['Duration\x20in\x20years\x20[1]:\x20','760554WmwehK','177860mGZZph','8hlvPMM','999480XXnTZL','\x20for\x20','14945PqxWUS','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','(((.+)+)+)+$','toString','notice','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','4WvxDvm','549iZRlfW','28ZxvxsC','registerDomain','123766QQdHGK','\x20is\x20available\x20for:','96816','\x20years\x20(','Domain\x20name\x20is\x20unavailable','list','My\x20Comanpy,\x20LLC.','RESELLER','Contact\x20First\x20Name\x20[Contact]:\x20','Invalid\x202\x20character\x20country\x20code','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','confirm','\x20/\x20Year)','apply','Do\x20you\x20wish\x20to\x20register\x20','exit','contactType','Address\x20Line\x202:\x20','123\x20Glorious\x20Way','maka\x20aws:register-domain-name','domain','rdn','Zip\x20Code\x20[96816]:\x20','Are\x20you\x20sure?','PUBLIC_BODY','ask','values','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Person','search','The\x20domain\x20name:\x20','includes','warn','register-domain-name','maka\x20aws:register-domain-name\x20--domain=example.com','1453888qOCZGv','8860577wDLRPb','create','Auto\x20Renew:\x20','+1.5555555555'];a16c=function(){return K;};return a16c();}Command[a16I(0x160)]({'name':a16I(0x15c),'aliases':[a16I(0x14f)],'usage':a16I(0x14d),'requiredOpts':[a16I(0x14e)],'validOpts':[],'shortDesc':a16I(0x144),'examples':[a16I(0x15d),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const J=a16I;try{const c=b[J(0x14e)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log[J(0x16d)](J(0x159)+c+J(0x174));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[J(0x145)](J(0x148)+c+'\x20?',![]);if(j){const k={'type':J(0x178),'name':J(0x14a),'message':'Choose\x20contact\x20type','choices':['ASSOCIATION','COMPANY','PERSON',J(0x152),J(0x141)]},l=await Actions['ask'](J(0x163))||'1',m=await Actions['ask'](J(0x142))||'Contact',n=await Actions[J(0x153)]('Contact\x20Last\x20Name\x20[Person]:\x20')||J(0x157),{contactType:o}=await Actions['options'](k),p=await Actions['ask']('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||J(0x14c),q=await Actions[J(0x153)](J(0x14b)),r=await Actions[J(0x153)](J(0x150))||J(0x175),s=await Actions['ask']('State\x20[HI]:\x20')||'HI',t=await Actions[J(0x153)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error'](J(0x143));const v=await Actions[J(0x153)](J(0x156))||J(0x162),w=await Actions['ask'](J(0x16a))||'+1.5555555556',x=await Actions[J(0x153)]('Contact\x20Email\x20[mail@example.com]:\x20')||'mail@example.com',y=await Actions['confirm'](J(0x161)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!=='PERSON'){const C=await Actions[J(0x153)](J(0x155))||J(0x179);z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log[J(0x16d)](J(0x16e)),Log[J(0x15b)](A+'\x20'+i+J(0x168)+l+J(0x176)+h+'\x20'+i+J(0x146));const B=await Actions['confirm'](J(0x151));B&&await d[J(0x172)](z,c,parseInt(l),y);}}else throw J(0x177);}catch(D){D&&Log['error'](D),process[J(0x149)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17j=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x1af))/0x1+parseInt(h(0x197))/0x2+-parseInt(h(0x198))/0x3+parseInt(h(0x1a6))/0x4+parseInt(h(0x1aa))/0x5+parseInt(h(0x1ab))/0x6*(-parseInt(h(0x19f))/0x7)+-parseInt(h(0x19d))/0x8*(-parseInt(h(0x1a1))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xd0875));const a17b=(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;};}()),a17a=a17b(this,function(){const i=a17d;return a17a['toString']()[i(0x19b)](i(0x19c))[i(0x1a4)]()['constructor'](a17a)[i(0x19b)](i(0x19c));});a17a();function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x194;let f=c[d];return f;},a17d(a,b);}import a17e from'./aws.command.js';function a17c(){const l=['remove-key-pair','689400xFdQIO','deleteKeyPair','confirm','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','45328hntuXK','4820031wCPzDZ','Please\x20choose\x20a\x20key\x20to\x20delete:','error','search','(((.+)+)+)+$','357208jSieiU','create','7581833SViHiX','exit','99qOlLFt','Not\x20deleting\x20keypair','maka\x20aws:rkp','toString','Deleting\x20a\x20','4757996TjVVGT','\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','forEach','maka\x20aws:remove-key-pair','5756025jDYJXS','6baQURk','ask','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?'];a17c=function(){return l;};return a17c();}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[a17j(0x19e)]({'name':a17j(0x1ae),'aliases':['rkp'],'usage':a17j(0x1a9),'validOpts':[],'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a17j(0x1a7),'examples':[a17j(0x1a9),a17j(0x1a3)]},async function(){const k=a17j;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[k(0x1ac)](k(0x199));b?.[k(0x1a8)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[k(0x19a)](k(0x196));const f=await Actions[k(0x195)](k(0x1a5)+c+k(0x1ad),![]);f?(await a[k(0x194)](c),Log['success']('Deleted\x20'+c)):Log[k(0x19a)](k(0x1a2)),process[k(0x1a0)](0x0);}catch(g){g&&Log[k(0x19a)](g),process[k(0x1a0)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0xf3))/0x1+-parseInt(l(0xfa))/0x2*(parseInt(l(0x102))/0x3)+-parseInt(l(0xf7))/0x4+-parseInt(l(0x10e))/0x5*(-parseInt(l(0xff))/0x6)+-parseInt(l(0x100))/0x7*(parseInt(l(0x108))/0x8)+-parseInt(l(0x10f))/0x9+parseInt(l(0xed))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x2525e));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0x106)]()[n(0x103)]('(((.+)+)+)+$')[n(0x106)]()[n(0x111)](a18a)[n(0x103)](n(0x114));});function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xeb;let f=c[d];return f;},a18d(a,b);}a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';function a18c(){const q=['chooseInstance','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','10823400oYYkOE','config/ssh.json','readFileSync','sth','\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','cat\x20','272580QcClMx','maka\x20aws:sth\x20--env\x20prod','utf8','writeFileSync','1099580oUgVTa','private','set-host','214180fWmsaz','public','\x0aSaved\x20host\x20','privateIp','ask','276ecTGgG','14mCeCLj','join','6SszMvY','search','fsi','template','toString','isFile','594376UOPiZq','create','stringify','\x20IP\x20to\x20','getMakaProjectConfig','success','19315WbYxwF','1778679RpYStp','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','constructor','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','appName','(((.+)+)+)+$','parse','env','sep','apply','ssh.json','exit','maka\x20aws:set-host\x20--env\x20dev','host'];a18c=function(){return q;};return a18c();}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[a18o(0x109)]({'name':a18o(0xf9),'aliases':[a18o(0xf0)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a18o(0x112),'description':a18o(0xf1),'examples':[a18o(0x11b),a18o(0xf4)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this['fsi']['getAppConfigPath'](b[p(0x116)]),f=this[p(0x104)][p(0x10c)](),g=await c[p(0xeb)](),h=a18e[p(0x101)](d,p(0x119));!this[p(0x104)][p(0x107)](h)&&await this[p(0x104)][p(0x105)]({'srcPath':p(0xee),'destPath':h,'context':{'app':f[p(0x113)]},'config':f});const i=JSON[p(0x115)](a18f[p(0xef)](h,p(0xf5))),j=await Actions[p(0xfe)](p(0xec))||p(0xfb);if(j){if(j===p(0xfb)||j===p(0xf8)){if(j==='public')i[p(0x11c)]=g?.['publicIp'];else j===p(0xf8)&&(i[p(0x11c)]=g?.[p(0xfd)]);}else throw p(0x110);}else i[p(0x11c)]=g?.['privateIp'];a18f[p(0xf6)](a18e[p(0x101)](d,p(0x119)),JSON[p(0x10a)](i,null,0x2)),execSync(p(0xf2)+a18e[p(0x101)](d,p(0x119)),{'stdio':'inherit'}),Log[p(0x10d)](p(0xfc)+j+p(0x10b)+d+a18e[p(0x117)]+p(0x119));}catch(k){k&&Log['error'](k),process[p(0x11a)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a19c(){const
|
|
1
|
+
function a19c(){const j=['maka\x20aws:ti','13140BrVBfk','search','chooseInstance','1941SOELzK','31433xUpdlH','create','maka\x20aws:terminate-instance','1036815UJjZwn','toString','\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','8110UzWyOf','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','name','1574974EBScCO','instanceId','(((.+)+)+)+$','ec2terminateInstance','status','1827UYNfdR','36351bHyDBW','4120552QybCia','constructor','error','4420tTIPPd'];a19c=function(){return j;};return a19c();}const a19h=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x132))/0x1+-parseInt(f(0x13c))/0x2+-parseInt(f(0x131))/0x3*(parseInt(f(0x12c))/0x4)+-parseInt(f(0x135))/0x5+parseInt(f(0x12e))/0x6*(-parseInt(f(0x141))/0x7)+-parseInt(f(0x129))/0x8+parseInt(f(0x128))/0x9*(parseInt(f(0x138))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x7ca9a));const a19b=(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;};}()),a19a=a19b(this,function(){const g=a19d;return a19a['toString']()[g(0x12f)](g(0x13e))[g(0x136)]()[g(0x12a)](a19a)['search'](g(0x13e));});a19a();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';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x128;let f=c[d];return f;},a19d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a19h(0x133)]({'name':'terminate-instance','aliases':['ti'],'usage':a19h(0x134),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19h(0x137),'examples':['maka\x20aws:terminate-instance',a19h(0x12d)]},async function(){const i=a19h;try{const a=new AWS(),b=await a[i(0x130)]();if(b?.['instanceId']&&b?.[i(0x140)]==='running'){const c=await Actions['confirm']('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[i(0x13b)]+'\x20Ready?');c?a[i(0x13f)]({'instanceId':b[i(0x13d)]}):Log[i(0x12b)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[i(0x13b)]+i(0x13a));}else Log[i(0x12b)](i(0x139));}catch(d){d&&Log['error'](d),process['exit'](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x1a4))/0x1+parseInt(f(0x1ab))/0x2*(-parseInt(f(0x1b1))/0x3)+-parseInt(f(0x1b0))/0x4*(parseInt(f(0x1a3))/0x5)+-parseInt(f(0x1af))/0x6+-parseInt(f(0x1a7))/0x7*(parseInt(f(0x1a8))/0x8)+parseInt(f(0x1ac))/0x9+parseInt(f(0x1a6))/0xa*(parseInt(f(0x1aa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x90414));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()['search'](h(0x1a5))[h(0x1ad)]()['constructor'](a20a)[h(0x1a9)](h(0x1a5));});function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x1a3;var f=c[d];return f;},a20d(a,b);}function a20c(){var i=['1516CbpABX','16986nYalwt','10510AgKQNT','552155kJloBN','(((.+)+)+)+$','17174580nOVccC','28diZYvX','1595704MeKNXw','search','11GrUZhf','32ozILFp','341946rvarmz','toString','apply','189822byXhFl'];a20c=function(){return i;};return a20c();}a20a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21p=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=parseInt(n(0x17c))/0x1+parseInt(n(0x17b))/0x2*(parseInt(n(0x172))/0x3)+-parseInt(n(0x17f))/0x4+parseInt(n(0x16a))/0x5*(parseInt(n(0x171))/0x6)+parseInt(n(0x184))/0x7+-parseInt(n(0x186))/0x8*(-parseInt(n(0x189))/0x9)+parseInt(n(0x167))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x3e9cb));const a21b=(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;};}()),a21a=a21b(this,function(){const o=a21d;return a21a[o(0x182)]()[o(0x16c)](o(0x16d))[o(0x182)]()[o(0x187)](a21a)['search']('(((.+)+)+)+$');});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a21c(){const s=['This\x20project\x27s\x20meteor\x20version\x20(','25orapIc','checkMeteorPackage','search','(((.+)+)+)+$','pathFromProject','--release','Aborted.','97170tnwktn','21jbYUpV','slice','update','existsSync','error','force','\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','fsi','getProjectMeteorVersion','15298twgMJZ','28572WolVRP','confirm','--force','534360YwSObm','maka\x20build','join','toString','concat','174944GvgvPg','getGlobalMeteorVersion','32oYnHfZ','constructor','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','19269NlDGLb','invokeMeteorCommand','1934030xYSLmj','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'];a21c=function(){return s;};return a21c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x167;let f=c[d];return f;},a21d(a,b);}const BuildCommand=Command['create']({'name':'build','usage':a21p(0x180),'validOpts':[a21p(0x177)],'aliases':['b'],'shortDesc':a21p(0x188),'mustBeInMakaProject':!![],'description':a21p(0x178),'examples':['maka\x20build']},async function(a,b){const q=a21p;try{await this[q(0x179)][q(0x16b)]('autoupdate',{'shouldInstall':!![]});const c=b[q(0x177)];if(!c){const g=this['fsi'][q(0x185)](),h=this[q(0x179)][q(0x17a)](),i=a21g['gt'](g,h);if(i){const j=await Actions[q(0x17d)](q(0x169)+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+').\x20Update?');j&&this['fsi'][q(0x18a)](q(0x174),[q(0x16f),g]);}}const d=[this[q(0x179)]['pathFromProject']({'pathParts':['build']})][q(0x183)](process['argv'][q(0x173)](0x3)),f=a21e[q(0x181)](this[q(0x179)][q(0x16e)]({}),'build','app.tar.gz');if(a21f[q(0x175)](f)){const k=c??await Actions[q(0x17d)](q(0x168));if(!k)throw Log[q(0x176)](q(0x170));}d['forEach']((l,m)=>{const r=q;l===r(0x17e)&&d['splice'](m,0x2);}),this[q(0x179)][q(0x18a)]('build',d);}catch(l){console[q(0x176)](l),process['exit'](0x0);}});export default BuildCommand;
|