@maka/maka-cli 4.12.22 → 4.12.23
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.23",
|
|
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
|
-
function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-
|
|
1
|
+
function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x149;let f=c[d];return f;},a0d(a,b);}const a0q=a0d;function a0c(){const A=['unshift','Description','fsi','header','pallet','_commands','Name','Command\x20requires\x20a\x20handler\x20function','help','match','minOptsLength','DARK','error','6369POBYfX','validateMakaSubscription','assign','localeCompare','aliases','mustHaveMeteorInstalled','There\x20is\x20no\x20Meteor\x20application\x20here','name','479970GiVTUz','minArgLength','Command.create\x20requires\x20some\x20options!','validateParams','bright','15882432BXIjJT','Command\x20requires\x20a\x20name','validateUserIsLoggedIn','keys','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Sub-Commands:','number','maxArgLength','Alias','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','maxOptsLength','toString','function','1ZgRkXI','6290pbRwQB','call','(((.+)+)+)+$','processAndRunCommand','sort','941445JlfHCc','getGlobalConfig','apply','exit','Please\x20run\x20\x22maka\x20install\x20meteor\x22','search','522kpwNkL','options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Command\x20format\x20is\x20incorrect','generate','play','10889774UEOlVK','Too\x20many\x20options','tableList','run','join','invoke','addCommand','_handler','addCommand\x20requires\x20a\x20Command\x20instance','length','Please\x20run\x20\x22maka\x20login\x22','1156jcOAlk','LIGHT','Too\x20few\x20arguments','Command\x20not\x20found','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','notice','3240aeRIVJ','Command.create\x20requires\x20a\x20handler\x20function!','push','split','14090VGHivN','find','murder','mustBeInMakaProject'];a0c=function(){return A;};return a0c();}(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x196))/0x1*(parseInt(n(0x183))/0x2)+parseInt(n(0x166))/0x3*(parseInt(n(0x160))/0x4)+-parseInt(n(0x16a))/0x5*(parseInt(n(0x14f))/0x6)+-parseInt(n(0x155))/0x7+parseInt(n(0x188))/0x8+-parseInt(n(0x149))/0x9+parseInt(n(0x197))/0xa*(parseInt(n(0x17b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xf3333));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x194)]()[p(0x14e)](p(0x199))['toString']()['constructor'](a0a)[p(0x14e)](p(0x199));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x150)];[a0q(0x173)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x192));if(!a[r(0x182)])throw new Error(r(0x189));if(typeof b!==r(0x195))throw new Error(r(0x175));this['options']=Object[r(0x17d)]({},a),this[r(0x182)]=this['options']['name'],this[r(0x173)]=[],this['_handler']=b['bind'](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0x185));if(typeof b!==s(0x195))throw new Error(s(0x167));const d=new Command(a,b);return c=c||a0f,Object[s(0x17d)](d,{'parent':c?.[s(0x150)]?.['name']}),c[s(0x15b)](d),d;}[a0q(0x15b)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x15d));this[t(0x173)][t(0x168)](a);}async['run'](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x170)][u(0x14a)](),d=c[u(0x172)]==='light'?ColorMode[u(0x161)]:ColorMode[u(0x179)];Log['setColorMode'](d),await this['validateMakaSubscription'](this);}catch(f){Log[u(0x17a)](f),process[u(0x14c)](0x0);}return await this[u(0x15a)](a,b);}catch(g){process[u(0x14c)](0x1);}}async[a0q(0x15a)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x150)];try{if(this[v(0x150)][v(0x182)]!==v(0x153)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x15e)]===0x0)&&this[v(0x173)][v(0x15e)]>=0x0,g=b[v(0x176)]||b['h'];if(f&&g){if(this[v(0x173)][v(0x15e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x150)][v(0x16d)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[v(0x150)]['mustBeLoggedIn']){const i=await this[v(0x18a)]();if(!i)throw new MustBeLoggedIn();}if(this[v(0x150)][v(0x180)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x150)][v(0x184)]===v(0x18e)){if(a['length']<this[v(0x150)][v(0x184)]){Log['error'](v(0x162));throw new UsageError();}}if(typeof this['options']['maxArgLength']==='number'){if(a[v(0x15e)]>=this[v(0x150)][v(0x18f)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options'][v(0x178)]==='number'){if(Object[v(0x18b)](b)[v(0x15e)]<this[v(0x150)][v(0x178)]){Log[v(0x17a)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[v(0x150)][v(0x193)]===v(0x18e)){if(Object[v(0x18b)](b)[v(0x15e)]>=this[v(0x150)]['maxOptsLength']){Log[v(0x17a)](v(0x156));throw new UsageError();}}}}b=await this[v(0x186)](a,b,this[v(0x150)]),_prevCmd=a[0x0];}return await this[v(0x15c)][v(0x198)](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0x165)](v(0x18d)),this[v(0x157)](this[v(0x173)]),Log[v(0x171)](v(0x18c));else{if(k instanceof MustBeInProjectError)Log[v(0x17a)](v(0x191));else{if(k instanceof NoMeteorFoundError)Log[v(0x17a)](v(0x151)),Log[v(0x165)](v(0x14d));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x17a)](v(0x181));else k instanceof MustBeLoggedIn&&(Log[v(0x17a)](v(0x164)),Log['notice'](v(0x15f)));}}}process[v(0x14c)](0x1);}}['tableList'](a){const w=a0q,b=new a0e({});b[w(0x168)]([w(0x174),w(0x190),w(0x16f)]),a[w(0x19b)]((c,d)=>{const x=w;return c[x(0x182)][x(0x17e)](d[x(0x182)]);})['forEach'](c=>{const y=w;c['name']!==y(0x16c)&&c['name']!==y(0x154)&&b[y(0x168)]([c[y(0x182)],c[y(0x17f)](),c['shortDesc']()]);}),Log[w(0x187)](b[w(0x194)]());}async[a0q(0x19a)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x169)](':');if(!d||d[z(0x15e)]===0x0)throw z(0x152);if(d[0x0]===z(0x153)||d[0x0]==='g'&&d['length']>0x1){const h=this[z(0x173)]['find'](j=>j[z(0x177)](z(0x153)));if(!h)throw z(0x163);await this[z(0x17c)](h);const i=d['slice'](0x1)[z(0x159)](':');return b[z(0x16e)](i),await h['run'](b,c);}let f=this['_commands'],g;for(const j of d){g=f[z(0x16b)](k=>k[z(0x177)](j));if(!g)try{await this['fsi']['maybeProxyCommandToMeteor']();}catch(k){throw'Command\x20'+j+'\x20not\x20found';}g&&(await this[z(0x17c)](g),f=g['_commands']);}if(g){const l=await g[z(0x158)](b,c);return l;}else throw z(0x163);}catch(m){Log['error'](m),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x136;var f=c[d];return f;},a1d(a,b);}(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x136))/0x1+-parseInt(f(0x13f))/0x2*(-parseInt(f(0x13c))/0x3)+-parseInt(f(0x13d))/0x4*(-parseInt(f(0x141))/0x5)+-parseInt(f(0x140))/0x6+parseInt(f(0x13e))/0x7*(-parseInt(f(0x142))/0x8)+parseInt(f(0x137))/0x9*(-parseInt(f(0x13a))/0xa)+-parseInt(f(0x139))/0xb*(-parseInt(f(0x145))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x193bd));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x138)]()[h(0x146)]('(((.+)+)+)+$')[h(0x138)]()[h(0x144)](a1a)[h(0x146)](h(0x13b));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';function a1c(){var i=['constructor','156iDSvhO','search','176080NEDXWk','9EJEBep','toString','34661yCdicK','1741780ploTvZ','(((.+)+)+)+$','133725cpATmz','4dkhoqr','13223HCIUrz','2HzFpsx','159270TNBkVt','353985ztUeaD','120FsGzWR','apply'];a1c=function(){return i;};return a1c();}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 a2m=a2d;function
|
|
1
|
+
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x135))/0x1+-parseInt(h(0x139))/0x2*(parseInt(h(0x131))/0x3)+parseInt(h(0x13f))/0x4*(parseInt(h(0x147))/0x5)+-parseInt(h(0x13a))/0x6*(-parseInt(h(0x14c))/0x7)+parseInt(h(0x132))/0x8+-parseInt(h(0x149))/0x9+parseInt(h(0x159))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x7400d));function a2c(){const o=['7FbfCUv','ChatGPT\x20style\x20AI\x20interface','error','notice','Using\x20CA\x20Cert\x20','(((.+)+)+)+$','getGlobalConfig','fsi','trim','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','cacert','search','16067250TkyeIh','Using\x20OpenAI\x20Key\x20','message','132xAAMiI','1907664zOjlVn','exit','choices','520321kToLWt','isFile','text','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','25562apeThB','1729236rUTvpm','stdout','GPT:\x20','openapikey','create','33572fPZRLw','openai','cert','apply','log','stdin','toLowerCase','You:\x20','85HQAhVe','question','6464124uRbweG','toString','data'];a2c=function(){return o;};return a2c();}const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x14a)]()[j(0x158)](j(0x151))[j(0x14a)]()['constructor'](a2a)[j(0x158)](j(0x151));});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x12f;let f=c[d];return f;},a2d(a,b);}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process[k(0x144)],'output':process[k(0x13b)]});c[k(0x148)](k(0x146),async d=>{const l=k;if(d[l(0x145)]()===l(0x133)){c['close']();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0x14b)]);if(f[l(0x14e)])throw new Error(f['error'][l(0x130)]);Log['bright'](l(0x13c)+f?.[l(0x134)][0x0]?.[l(0x137)][l(0x154)]());}catch(g){Log[l(0x14e)](g),process[l(0x133)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x13e)]({'name':'ai','description':a2m(0x14d),'validOpts':[a2m(0x157),a2m(0x13d)],'shortDesc':a2m(0x14d),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x153)][n(0x136)](b['cacert'])?(c=b['cacert'],Log[n(0x14f)](n(0x150)+c)):Log[n(0x14e)](n(0x156)+c));const d=await this[n(0x153)][n(0x152)]();if(d[n(0x141)]){if(this[n(0x153)][n(0x136)](d['cert']))c=d[n(0x141)];else throw Log[n(0x14e)](n(0x138)+c);}let f='';if(b[n(0x13d)])f=b[n(0x13d)],Log['notice'](n(0x12f)+f);else{if(d['openai'])f=d[n(0x140)];else throw Log[n(0x14e)](n(0x155));}console[n(0x143)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x14e)](g),process[n(0x133)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0xf8))/0x1+parseInt(f(0xf7))/0x2+parseInt(f(0xf4))/0x3+parseInt(f(0xf9))/0x4*(-parseInt(f(0xf5))/0x5)+parseInt(f(0xfa))/0x6*(-parseInt(f(0xfb))/0x7)+parseInt(f(0xf6))/0x8+parseInt(f(0xfd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xd7c5a));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(0xf3)]()[h(0xfc)]('(((.+)+)+)+$')[h(0xf3)]()[h(0xf1)](a3a)[h(0xfc)]('(((.+)+)+)+$');});function a3c(){var i=['169551sRzJQS','20HOhLGF','6473440PsITII','3304022GDmfYW','1265561ZmZcDV','197704uEWjRe','2994AaADnL','5383eXGOgi','search','1917810YmXnLp','constructor','apply','toString'];a3c=function(){return i;};return a3c();}a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xf1;var f=c[d];return f;},a3d(a,b);}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 a4h=a4d;function a4c(){const i=['aws','429SfdmnJ','maka\x20aws:<sub-command>','326316UajqdR','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','36968JTgTdD','342599FrMZBJ','1419102NnITAg','2087466ggBXQm','create','20TQvUEs','toString','41187PZuDZR','(((.+)+)+)+$','28hkgsfu','constructor','161FfZfqg','5rkDXrU','23340xivqiF','search'];a4c=function(){return i;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xe4))/0x1+parseInt(f(0xe1))/0x2+parseInt(f(0xea))/0x3*(-parseInt(f(0xd8))/0x4)+-parseInt(f(0xdb))/0x5*(parseInt(f(0xe6))/0x6)+-parseInt(f(0xda))/0x7*(parseInt(f(0xe3))/0x8)+-parseInt(f(0xe5))/0x9*(-parseInt(f(0xe8))/0xa)+parseInt(f(0xdf))/0xb*(-parseInt(f(0xdc))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x2f991));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(0xe9)]()[g(0xdd)](g(0xeb))[g(0xe9)]()[g(0xd9)](a4a)[g(0xdd)]('(((.+)+)+)+$');});a4a();import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xd8;let f=c[d];return f;},a4d(a,b);}import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0xe7)]({'name':a4h(0xde),'usage':a4h(0xe0),'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4h(0xe2)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x143))/0x1*(-parseInt(g(0x145))/0x2)+-parseInt(g(0x136))/0x3*(parseInt(g(0x135))/0x4)+-parseInt(g(0x13a))/0x5+-parseInt(g(0x13f))/0x6+-parseInt(g(0x147))/0x7*(-parseInt(g(0x144))/0x8)+-parseInt(g(0x14d))/0x9+parseInt(g(0x133))/0xa*(parseInt(g(0x134))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x74511));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x140)]()['search']('(((.+)+)+)+$')[i(0x140)]()[i(0x14a)](a5a)[i(0x138)](i(0x13d));});a5a();function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x132;let f=c[d];return f;},a5d(a,b);}import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const l=['create-ecr','3492780fFGhPf','toString','repositoryUri','maka\x20aws:cecr\x20--name=my-new-repo','30190FUzWMC','1379464hayHrb','40qcoyaN','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','14OnEIZm','repository','create','constructor','exit','apply','1397043HDOidj','maka\x20aws:create-ecr','10JciYlT','9609017yKGiGQ','12UjXHbV','563151hVBHip','Repository\x20created\x20successfully.','search','cecr','226360ulqFTW','httpStatusCode','name','(((.+)+)+)+$'];a5c=function(){return l;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0x149)]({'name':a5j(0x13e),'aliases':[a5j(0x139)],'usage':a5j(0x132),'requiredOpts':[a5j(0x13c)],'validOpts':['region'],'shortDesc':'Create\x20an\x20Elastic\x20Container\x20Repository','examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5j(0x142),a5j(0x146)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d['$metadata'][k(0x13b)]===0xc8&&d['repository']?(Log['success'](k(0x137)),Log['notice']('Repository\x20URI:\x20'+d[k(0x148)][k(0x141)])):Log['error']('Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.'),process[k(0x14b)](0x0);}catch(f){Log['error'](f),process['exit'](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x1c0))/0x1*(-parseInt(i(0x1bc))/0x2)+parseInt(i(0x1ad))/0x3*(parseInt(i(0x1b5))/0x4)+parseInt(i(0x1bf))/0x5+parseInt(i(0x1b6))/0x6+parseInt(i(0x1b3))/0x7*(parseInt(i(0x1be))/0x8)+-parseInt(i(0x1ab))/0x9*(-parseInt(i(0x1b2))/0xa)+-parseInt(i(0x1a8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xab42b));function a6c(){const n=['446971GkRQPc','apply','maka\x20aws:create-hosted-zone\x20--domain=example.com','Set\x20hosted\x20zone\x20to\x20an\x20instance?','create','toString','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','create-hosted-zone','14128884XnaGlb','(((.+)+)+)+$','confirm','1488735lzFRwO','domain','63930LgRATq','constructor','route53CreateHostedZone','exit','search','50XCWDaC','49QwUMyy','publicIp','92GEtiXI','608898uSGxYZ','chooseInstance','linkEC2ToRoute53','error','maka\x20aws:chz\x20--domain=example.com','Instance\x20not\x20found','6ypkqHD','maka\x20aws:create-hosted-zone','1311824RHcCTm','3801530tkVEEk'];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(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1c5)]()['search'](k(0x1a9))[k(0x1c5)]()[k(0x1ae)](a6a)[k(0x1b1)](k(0x1a9));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a6l(0x1c4)]({'name':a6l(0x1c7),'aliases':['chz'],'usage':a6l(0x1bd),'requiredOpts':[a6l(0x1ac)],'validOpts':[],'shortDesc':a6l(0x1c6),'examples':[a6l(0x1c2),a6l(0x1ba)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x1af)](c);const f=await Actions[m(0x1aa)](m(0x1c3));if(f){const g=await d[m(0x1b7)]();if(g?.['id']){if(!g['publicIp'])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0x1b8)](g['id'],g[m(0x1b4)],c);}else throw m(0x1bb);}}catch(h){h&&Log[m(0x1b9)](h),process[m(0x1b0)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ag=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x12a))/0x1+-parseInt(ae(0x13d))/0x2*(parseInt(ae(0x155))/0x3)+-parseInt(ae(0x12f))/0x4*(-parseInt(ae(0x150))/0x5)+-parseInt(ae(0x16f))/0x6*(parseInt(ae(0x131))/0x7)+parseInt(ae(0x12d))/0x8*(-parseInt(ae(0x12e))/0x9)+-parseInt(ae(0x15f))/0xa+parseInt(ae(0x149))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x6b148));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(0x11f)]()[af(0x13b)](af(0x14c))['toString']()[af(0x143)](a7a)['search'](af(0x14c));});function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x115;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';function a7c(){const at=['Create\x20new\x20AWS\x20instance','createKeyPair','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','**\x20Available\x20AMIs\x20**','constructor','EC2\x20Name:\x20[','Creating\x20user\x20data\x20file\x20in\x20','subnet','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','number','25819695fGAVQN','sgId','Instance\x20Count:\x20','(((.+)+)+)+$','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','Setting\x20SG\x20ID\x20to:\x20','chooseVPC','443695ZJFski','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','create','error','sort','39RxxNdA','**\x20Available\x20Subnets\x20**','Name','1:1','forEach','Security\x20Group:\x20','create-instance','subnetId','ID:\x20','split','8156150adfZja','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Remove\x20the\x20security\x20group\x20','ask','readFileSync','\x20DESCRIPTION:\x20','amiId','Subnet:\x20','Setting\x20the\x20key-pair\x20to:\x20','isFile','getTime','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Would\x20you\x20like\x20to\x20include\x20user\x20data?','name','maka\x20aws:create-instance','\x20AMIID:\x20','11154BwifCJ','cidr','\x20:\x20','ec2create','maka-cli','ec2createSG','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','environment','deleteKeyPair','getMakaProjectConfig','Setting\x20Subnet\x20ID\x20to\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Setting\x20AMI\x20ID\x20to\x20','user-data','env','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\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','Remove\x20the\x20keypair\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','push','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getAppConfigPath','build\x20on\x20','fsi','getEnvFromShorthand','join','notice','toString','ec2describeKeys','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','createFile','User\x20Data:','**\x20Available\x20key-pairs\x20**','desc','Web\x20App','success','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','exit','494701eoxNLa','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','maka\x20aws:create-instance\x20--env\x20dev','71184BmJwdz','513QouQvD','8VZbocj','confirm','2674bbKtfU','Security\x20Group\x20Name:\x20[','\x20SGID:\x20','parse','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20SUBNETID:\x20','bright','unlinkSync','Key-Pair:\x20','date','search','\x20SG\x20NAME:\x20','84290ZZvAGS','\x20AZONE:\x20'];a7c=function(){return at;};return a7c();}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ag(0x152)]({'name':a7ag(0x15b),'aliases':['ci'],'usage':a7ag(0x16d),'examples':[a7ag(0x12c),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ag(0x17d)}],'validOpts':[],'shortDesc':a7ag(0x13f),'description':a7ag(0x17f)},async function(a,b){const ah=a7ag;try{const c=this['fsi'][ah(0x178)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x11b)][ah(0x11c)](b[ah(0x17d)]),i=this['fsi'][ah(0x119)](h),j=g+'-'+h,k=await Actions[ah(0x162)](ah(0x144)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x130)](ah(0x141),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x140)]({'env':h});r=y,s=z,Log[ah(0x127)](ah(0x167)+r);}else try{Log[ah(0x11e)](ah(0x124));const A=r?r:k,B=await d[ah(0x120)]({'suggestion':A}),C=await Actions[ah(0x162)](ah(0x115))||'-1';if(parseInt(C)<0x0){Log['error']('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ah(0x11e)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0x159)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x16c)],Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ah(0x153)](D);}l=await d[ah(0x14f)]();const t=await Actions[ah(0x130)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ah(0x14f)]():l;u=await Actions[ah(0x162)](ah(0x132)+k+']')||k;const F=await Actions[ah(0x162)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F[ah(0x15e)](',');await d[ah(0x174)]({'description':ah(0x126),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x11e)]('**\x20Available\x20Security\x20Groups\x20**'),J[ah(0x159)](function(L){const aj=ah;L[aj(0x16c)]===u?Log[aj(0x11e)](aj(0x15d)+L['id']+aj(0x13c)+L[aj(0x16c)]+'\x20SGID:\x20'+L[aj(0x14a)]):Log[aj(0x137)](aj(0x15d)+L['id']+aj(0x13c)+L[aj(0x16c)]+aj(0x133)+L[aj(0x14a)]);});const K=await Actions['ask'](ah(0x175)+H+']\x20')||H[ah(0x11f)]();J[ah(0x159)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x14a)],Log[ak(0x127)](ak(0x14e)+m+'\x0a'));});}else m=I,Log[ah(0x127)](ah(0x14e)+m+'\x0a');if(m==='')throw Log[ah(0x153)](ah(0x121));}catch(L){Log[ah(0x153)](L);}try{const M=0x7e6;Log[ah(0x11e)](ah(0x142));const N=execSync(ah(0x14d)+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')[ah(0x11f)](),O=JSON[ah(0x134)](N),P=[],Q=[];O[ah(0x159)](function(S){const al=ah;if(S['alias']==='amazon'){const T=S['Desc'][al(0x15e)](al(0x11a))[0x1];P[al(0x117)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ah(0x154)](function(S,T){const am=ah;return new Date(T[am(0x13a)])[am(0x169)]()-new Date(S[am(0x13a)])[am(0x169)]();}),P[ah(0x159)](function(S,T){const an=ah;Q[an(0x117)]({'id':T,'amiId':S[an(0x165)],'desc':S[an(0x125)]});}),Q['forEach'](function(S){const ao=ah;console['log']('ID:\x20'+S['id']+ao(0x16e)+S[ao(0x165)]+ao(0x164)+S[ao(0x125)]);});const R=await Actions[ah(0x162)](ah(0x118))||'0';Q[ah(0x159)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x165)],Log[ap(0x127)](ap(0x17b)+n+ap(0x171)+S[ap(0x125)]));});if(n==='')throw Log['error'](ah(0x121));}catch(S){Log[ah(0x153)](S);}try{Log[ah(0x11e)](ah(0x156));const T=execSync(ah(0x12b))[ah(0x11f)](),U=JSON[ah(0x134)](T),V=[];U[ah(0x159)](function(X,Y){const aq=ah;V[aq(0x117)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x15c)]});}),V[ah(0x159)](function(X){const ar=ah;console['log'](ar(0x15d)+X['id']+'\x20CIDR:\x20'+X[ar(0x170)]+ar(0x13e)+X['az']+ar(0x136)+X[ar(0x15c)]);});const W=await Actions[ah(0x162)](ah(0x151))||'0';V[ah(0x159)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x15c)],Log['success'](as(0x179)+p));});if(p==='')throw Log[ah(0x153)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x17e))||ah(0x158),Z=Y[ah(0x15e)](':')[0x0],a0=Y[ah(0x15e)](':')[0x1];typeof parseInt(Z)===ah(0x148)&&typeof parseInt(a0)===ah(0x148)&&Log[ah(0x127)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x153)](a1);}try{const a2=await Actions[ah(0x162)](ah(0x160))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ah(0x153)](a3);}let x='';try{const a4=await Actions[ah(0x130)](ah(0x16b),![]);a4&&(x=a7f[ah(0x11d)](i,ah(0x17c)),Log[ah(0x11e)](ah(0x145)+x),await this[ah(0x11b)][ah(0x122)]({'filePath':x,'data':''}),await Actions['confirm'](ah(0x128)));}catch(a5){Log[ah(0x153)](a5);}try{const a6=JSON[ah(0x134)](execSync(ah(0x116)+p+ah(0x17a))[ah(0x11f)]())[0x0][ah(0x146)];Log[ah(0x11e)]('ImageID:'+n),Log[ah(0x11e)](ah(0x14b)+v+':'+w),Log[ah(0x11e)]('Instace\x20Type:\x20'+o),Log[ah(0x11e)](ah(0x139)+r),Log[ah(0x11e)](ah(0x15a)+m),Log[ah(0x11e)](ah(0x166)+a6);if(x){Log[ah(0x11e)](ah(0x123)+x);const a8=a7g[ah(0x163)](x)['toString']();Log['notice'](a8);}const a7=await Actions[ah(0x130)](ah(0x147));if(a7){const a9=await d[ah(0x172)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ah(0x173)},{'Key':ah(0x176),'Value':h},{'Key':ah(0x157),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x127)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0x137)](ah(0x135)));}else{Log['notice'](ah(0x16a));const aa=await Actions[ah(0x130)](ah(0x180)+r+'\x20?',!![]);aa&&(d[ah(0x177)](r),f[ah(0x168)](s)&&a7g[ah(0x138)](s));const ab=await Actions[ah(0x130)](ah(0x161)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ah(0x153)](ad),process[ah(0x129)](0x0);}},a7e);
|
|
1
|
+
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0xc9))/0x1+-parseInt(ae(0xb4))/0x2+parseInt(ae(0xd1))/0x3+parseInt(ae(0xec))/0x4+-parseInt(ae(0x108))/0x5*(-parseInt(ae(0xb1))/0x6)+parseInt(ae(0xc5))/0x7*(-parseInt(ae(0xe6))/0x8)+-parseInt(ae(0x107))/0x9*(parseInt(ae(0xfc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x70b93));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0xb6)]()[ag(0xbf)](ag(0xd3))[ag(0xb6)]()[ag(0x10c)](a7a)[ag(0xbf)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';function a7c(){const au=['2849SqAtuZ','\x20SUBNETID:\x20','Instace\x20Type:\x20','ID:\x20','481961zOvlxo','\x20SGID:\x20','join','User\x20Data:','sgId','getMakaProjectConfig','environment','ec2create','2511075NwJQrn','**\x20Available\x20key-pairs\x20**','(((.+)+)+)+$','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','getSecurityGroups','maka\x20aws:ci\x20--env\x20prod','chooseVPC','env','Setting\x20Subnet\x20ID\x20to\x20','amazon','getTime','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Setting\x20the\x20key-pair\x20to:\x20','**\x20Available\x20Security\x20Groups\x20**','number','Setting\x20SG\x20ID\x20to:\x20','fsi','string','name','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','7136uquIjB','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','subnetId','user-data','success','apply','608408wNsBIu','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','1:1','exit','confirm','push','\x20AMIID:\x20','Instance\x20Count:\x20','Security\x20Group:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','sort','Name','No\x20instance\x20has\x20been\x20created.','maka\x20aws:create-instance','Desc','alias','140AAHNQx','\x20AZONE:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','desc','\x20SG\x20NAME:\x20','cidr','bright','deleteSecurityGroup','error','Remove\x20the\x20security\x20group\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','583812XiMziM','1995885RmTPlq','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','getAppConfigPath','maka-cli','constructor','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','created-by','\x20DESCRIPTION:\x20','ec2describeKeys','Key-Pair:\x20','ask','Would\x20you\x20like\x20to\x20include\x20user\x20data?','unlinkSync','subnet','build\x20on\x20','ImageID:','Create\x20new\x20AWS\x20instance','22,80,443','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','parse','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Remove\x20the\x20keypair\x20','forEach','getEnvFromShorthand','6PFiZYG','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','create-instance','274708OdEdPm','date','toString','\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','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','*\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','\x20:\x20','Setting\x20AMI\x20ID\x20to\x20','amiId','Subnet:\x20','search','split','notice','**\x20Available\x20Subnets\x20**','Web\x20App','Creating\x20user\x20data\x20file\x20in\x20'];a7c=function(){return au;};return a7c();}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 a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xa4;let f=c[d];return f;},a7d(a,b);}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a7ah(0xb3),'aliases':['ci'],'usage':a7ah(0xf9),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a7ah(0xd7)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0xa9),'description':a7ah(0xb7)},async function(a,b){const ai=a7ah;try{const c=this[ai(0xe2)][ai(0xce)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xe2)][ai(0xb0)](b[ai(0xd9)]),i=this[ai(0xe2)][ai(0x10a)](h),j=g+'-'+h,k=await Actions[ai(0x113)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xf0)](ai(0xd4),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0xea)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0xc1)](ai(0xd2));const A=r?r:k,B=await d[ai(0x111)]({'suggestion':A}),C=await Actions[ai(0x113)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x104)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ai(0xc1)](ai(0xf8));return;}B?.[ai(0xaf)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xe4)],Log[aj(0xea)](aj(0xde)+r));});}catch(D){Log['error'](D);}l=await d[ai(0xd8)]();const t=await Actions[ai(0xf0)](ai(0x10d),!![]);let u;if(t){const E=l===''?await d[ai(0xd8)]():l;u=await Actions[ai(0x113)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x113)](ai(0x106))||ai(0xaa),G=F[ai(0xc0)](',');await d['ec2createSG']({'description':ai(0xc3),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xd6)](u);if(I===''){Log[ai(0xc1)](ai(0xdf)),J[ai(0xaf)](function(L){const ak=ai;L[ak(0xe4)]===u?Log[ak(0xc1)](ak(0xc8)+L['id']+ak(0x100)+L[ak(0xe4)]+ak(0xca)+L['sgId']):Log[ak(0x102)](ak(0xc8)+L['id']+ak(0x100)+L[ak(0xe4)]+'\x20SGID:\x20'+L[ak(0xcd)]);});const K=await Actions['ask'](ai(0xdd)+H+']\x20')||H[ai(0xb6)]();J[ai(0xaf)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xcd)],Log[al(0xea)](al(0xe1)+m+'\x0a'));});}else m=I,Log['success'](ai(0xe1)+m+'\x0a');if(m==='')throw Log[ai(0x104)](ai(0xb2));}catch(L){Log[ai(0x104)](L);}try{const M=0x7e6;Log[ai(0xc1)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0xb9)+M+ai(0xba))['toString'](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0xfb)]===am(0xdb)){const T=S[am(0xfa)][am(0xc0)](am(0xa7))[0x1];P[am(0xf1)]({'amiId':S['ID'],'desc':S[am(0xfa)],'date':T});}}),P[ai(0xf6)](function(S,T){const an=ai;return new Date(T[an(0xb5)])[an(0xdc)]()-new Date(S['date'])['getTime']();}),P[ai(0xaf)](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S[ao(0xbd)],'desc':S[ao(0xff)]});}),Q['forEach'](function(S){const ap=ai;console['log'](ap(0xc8)+S['id']+ap(0xf2)+S['amiId']+ap(0x110)+S[ap(0xff)]);});const R=await Actions[ai(0x113)](ai(0xf5))||'0';Q[ai(0xaf)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0xea)](aq(0xbc)+n+aq(0xbb)+S[aq(0xff)]));});if(n==='')throw Log[ai(0x104)](ai(0xb2));}catch(S){Log[ai(0x104)](S);}try{Log[ai(0xc1)](ai(0xc2));const T=execSync(ai(0x10e))['toString'](),U=JSON[ai(0xac)](T),V=[];U[ai(0xaf)](function(X,Y){const ar=ai;V[ar(0xf1)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0xe8)]});}),V[ai(0xaf)](function(X){const as=ai;console['log'](as(0xc8)+X['id']+'\x20CIDR:\x20'+X[as(0x101)]+as(0xfd)+X['az']+as(0xc6)+X[as(0xe8)]);});const W=await Actions['ask'](ai(0xe7))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xe8)],Log['success'](at(0xda)+p));});if(p==='')throw Log[ai(0x104)](ai(0xb2));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x113)](ai(0x109))||ai(0xee),Z=Y[ai(0xc0)](':')[0x0],a0=Y[ai(0xc0)](':')[0x1];typeof parseInt(Z)===ai(0xe0)&&typeof parseInt(a0)===ai(0xe0)&&Log[ai(0xea)](ai(0xfe)+Z+':'+a0);}catch(a1){Log[ai(0x104)](a1);}try{const a2=await Actions[ai(0x113)](ai(0xd5))||'t3.micro';typeof a2===ai(0xe3)&&(o=a2);}catch(a3){Log[ai(0x104)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0xa4),![]);a4&&(x=a7f[ai(0xcb)](i,ai(0xe9)),Log['notice'](ai(0xc4)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0xf0)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xac)](execSync(ai(0xe5)+p+ai(0xb8))['toString']())[0x0][ai(0xa6)];Log[ai(0xc1)](ai(0xa8)+n),Log[ai(0xc1)](ai(0xf3)+v+':'+w),Log[ai(0xc1)](ai(0xc7)+o),Log[ai(0xc1)](ai(0x112)+r),Log[ai(0xc1)](ai(0xf4)+m),Log[ai(0xc1)](ai(0xbe)+a6);if(x){Log['notice'](ai(0xcc)+x);const a8=a7g['readFileSync'](x)[ai(0xb6)]();Log[ai(0xc1)](a8);}const a7=await Actions[ai(0xf0)](ai(0xab));if(a7){const a9=await d[ai(0xd0)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x10f),'Value':ai(0x10b)},{'Key':ai(0xcf),'Value':h},{'Key':ai(0xf7),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xea)](ai(0xad)),Log['bright']('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0xc1)](ai(0xed));const aa=await Actions['confirm'](ai(0xae)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f['isFile'](s)&&a7g[ai(0xa5)](s));const ab=await Actions[ai(0xf0)](ai(0x105)+m+'\x20?',!![]);ab&&d[ai(0x103)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ai(0x104)](ad),process[ai(0xef)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8i=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x151;let f=c[d];return f;},a8d(a,b);}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x165))/0x1*(parseInt(g(0x157))/0x2)+-parseInt(g(0x16a))/0x3+parseInt(g(0x158))/0x4+-parseInt(g(0x15a))/0x5*(-parseInt(g(0x160))/0x6)+-parseInt(g(0x15d))/0x7*(-parseInt(g(0x155))/0x8)+-parseInt(g(0x15c))/0x9*(parseInt(g(0x166))/0xa)+-parseInt(g(0x151))/0xb*(parseInt(g(0x156))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x8053c));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(0x153)]()[h(0x167)](h(0x162))['toString']()[h(0x168)](a8a)[h(0x167)]('(((.+)+)+)+$');});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['create']({'name':'create-key-pair','aliases':[a8i(0x152)],'usage':a8i(0x154),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8i(0x15e)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8i(0x15b),'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(0x15f)][j(0x159)](b[j(0x163)]);c[j(0x169)]({'env':d});}catch(f){f&&Log[j(0x161)](f),process[j(0x164)](0x0);}},a8e);function a8c(){const k=['ckp','toString','maka\x20aws:create-key-pair','968kjjnJg','216JagbDt','14kLypGo','2311012FcYKmk','getEnvFromShorthand','395VFFcgK','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','9XfBSGl','49133tFuleZ','maka\x20aws:ckp\x20--env\x20prod','fsi','10566dOqvST','error','(((.+)+)+)+$','env','exit','84481dChcLp','832050LyIiTy','search','constructor','createKeyPair','446511qdbwBy','132693WOUFFZ'];a8c=function(){return k;};return a8c();}
|
|
@@ -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(0x1f7))/0x1+-parseInt(m(0x1f1))/0x2*(parseInt(m(0x20b))/0x3)+-parseInt(m(0x208))/0x4*(parseInt(m(0x202))/0x5)+-parseInt(m(0x1f3))/0x6*(-parseInt(m(0x1fd))/0x7)+-parseInt(m(0x204))/0x8+-parseInt(m(0x1f2))/0x9+parseInt(m(0x203))/0xa*(parseInt(m(0x1ee))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xa48fe));function a9c(){const s=['809985gkhaCj','(((.+)+)+)+$','name','toString','getMakaProjectConfig','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','175sGbAfF','match','fsi','22,80,443','chooseVPC','15AJmmbE','4347910RbJcHs','8749928noeGvg','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','search','maka\x20aws\x20create-security-group','328908OjsirY','apply','error','253809TzqBxr','forEach','ask','ec2createSG','create','maka\x20aws:create-secuirty-group','Web\x20App','55TAjYwB','List\x20is\x20not\x20all\x20numbers','constructor','22vEpSfT','4069026NXGckM','99186yGXvHE','split','Security\x20Group\x20Name:\x20[','csg'];a9c=function(){return s;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x1fa)]()[o(0x206)](o(0x1f8))['toString']()[o(0x1f0)](a9a)[o(0x206)](o(0x1f8));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a9d(a,b);}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(0x1eb)]({'name':'create-security-group','aliases':[a9p(0x1f6)],'usage':a9p(0x207),'validOpts':[],'shortDesc':a9p(0x1fc),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a9p(0x1ec),'maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x1ff)][q(0x1fb)](),{appName:f}=d,g=await c[q(0x201)](),h=b[q(0x1f9)]?b[q(0x1f9)]:''+f,i=await Actions[q(0x1e9)](q(0x1f5)+h+']')||h,j=await Actions[q(0x1e9)](q(0x205))||q(0x200),k=j[q(0x1f4)](',');k[q(0x1e8)](l=>{const r=q;if(!l[r(0x1fe)](/^\d+$/))throw r(0x1ef);}),await c[q(0x1ea)]({'description':q(0x1ed),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x20a)](l),process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x19a))/0x1+parseInt(f(0x1a7))/0x2+parseInt(f(0x1a2))/0x3*(-parseInt(f(0x1a5))/0x4)+parseInt(f(0x193))/0x5+-parseInt(f(0x194))/0x6+-parseInt(f(0x198))/0x7*(parseInt(f(0x1a4))/0x8)+-parseInt(f(0x1a1))/0x9*(-parseInt(f(0x191))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9c67b));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0x19f)]()[g(0x199)]('(((.+)+)+)+$')[g(0x19f)]()[g(0x1a6)](a10a)[g(0x199)](g(0x19d));});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x18d;let f=c[d];return f;},a10d(a,b);}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a10c(){const j=['5882490LATLnx','4877652jCShFe','exit','Failed\x20to\x20delete\x20the\x20repository:\x20','delete-ecr','35amcPzG','search','127698LMYXSW','Delete\x20an\x20Elastic\x20Container\x20Repository','ecrDeleteRepository','(((.+)+)+)+$','name','toString','error','1281447jUDktW','63YMVvFX','\x20in\x20region\x20','620136hruwav','112092zIrXwA','constructor','1053094XHZcrw','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','\x20deleted\x20successfully\x20in\x20region\x20','create','60FoAXfu','region'];a10c=function(){return j;};return a10c();}Command[a10h(0x190)]({'name':a10h(0x197),'aliases':['decr'],'usage':a10h(0x18d),'requiredOpts':[a10h(0x19e),'region'],'validOpts':[],'shortDesc':a10h(0x19b),'examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10h(0x18e)]},async function(a,b){const i=a10h;try{const c=new AWS();await c[i(0x19c)]({'repoName':b[i(0x19e)],'region':b[i(0x192)]}),Log['success']('Repository\x20'+b['name']+i(0x18f)+b[i(0x192)]+'.'),process[i(0x195)](0x0);}catch(d){Log[i(0x1a0)](i(0x196)+b['name']+i(0x1a3)+b[i(0x192)]+'.\x20Error:\x20'+d),process[i(0x195)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11i=a11d;
|
|
1
|
+
const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x123))/0x1+parseInt(f(0x121))/0x2*(parseInt(f(0x122))/0x3)+-parseInt(f(0x115))/0x4+parseInt(f(0x11c))/0x5+-parseInt(f(0x11a))/0x6*(-parseInt(f(0x113))/0x7)+-parseInt(f(0x124))/0x8+parseInt(f(0x116))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x22615));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x119)]()[h(0x112)]('(((.+)+)+)+$')[h(0x119)]()[h(0x125)](a11a)['search'](h(0x114));});a11a();function a11c(){const k=['error','301050xKxUoA','maka\x20aws:describe-instances','maka\x20aws:di','create','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','94DRVFdX','10428TTcACk','61941ntirqi','906248zYnAsy','constructor','apply','search','7mYrzmC','(((.+)+)+)+$','341612PwrxDp','584163JZbrca','ec2describeInstances','describe-instances','toString','677742WUOAIO'];a11c=function(){return k;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x111;let f=c[d];return f;},a11d(a,b);}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(0x11f)]({'name':a11i(0x118),'aliases':['di'],'usage':a11i(0x11d),'validOpts':[],'shortDesc':a11i(0x120),'examples':[a11i(0x11d),a11i(0x11e)],'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 j=a11i;try{const a=new AWS();a[j(0x117)]();}catch(b){b&&Log[j(0x11b)](b),process['exit'](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0xac))/0x1+parseInt(f(0xb3))/0x2*(-parseInt(f(0xa5))/0x3)+-parseInt(f(0xa2))/0x4*(parseInt(f(0xb4))/0x5)+parseInt(f(0xa4))/0x6+parseInt(f(0xad))/0x7+-parseInt(f(0xa1))/0x8+parseInt(f(0xa8))/0x9*(parseInt(f(0xa7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xb5cf1));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xa3)]()[h(0xaf)]('(((.+)+)+)+$')[h(0xa3)]()[h(0xb2)](a12a)[h(0xaf)](h(0xb1));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xa1;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';function a12c(){const k=['852xqjFkh','toString','533568RSarzL','57dkyyCx','exit','6981990TOztfz','9BtuqBC','maka\x20aws:describe-key-pairs','maka\x20aws:dkp','dkp','1446778bEwbmg','6343617JpfmzO','apply','search','error','(((.+)+)+)+$','constructor','4498SPwYie','22030qcEZXH','11313904PNPOpF'];a12c=function(){return k;};return a12c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'describe-key-pairs','aliases':[a12i(0xab)],'usage':a12i(0xa9),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a12i(0xa9),a12i(0xaa)]},async function(){const j=a12i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){b&&Log[j(0xb0)](b),process[j(0xa6)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
function a13c(){const s=['Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','includes','appName','2804418STjdmZ','maka\x20aws:delete-sg','error','apply','315040BwbAFk','name','maka\x20aws:dsg','toString','Not\x20deleting\x20secuirty\x20group','getSecurityGroups','3259216ZhUWwI','14855460CoQPcB','\x20SG\x20NAME:\x20','4883994XQBgjT','Deleting\x20a\x20','\x20SGID:\x20','39bwrKOf','exit','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','search','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','delete-security-group','403803AIAotZ','68328EnGaPG','create','sgId','success','7TJIfBG','(((.+)+)+)+$','32QYCdVp','ID:\x20','22ZpkFVj','constructor','180GRjvbm','forEach'];a13c=function(){return s;};return a13c();}const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x165))/0x1*(parseInt(l(0x16c))/0x2)+parseInt(l(0x17b))/0x3+parseInt(l(0x172))/0x4*(parseInt(l(0x17f))/0x5)+-parseInt(l(0x162))/0x6*(parseInt(l(0x170))/0x7)+parseInt(l(0x15f))/0x8+-parseInt(l(0x16b))/0x9*(-parseInt(l(0x176))/0xa)+-parseInt(l(0x174))/0xb*(parseInt(l(0x160))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xaa02d));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a['toString']()[n(0x168)](n(0x171))[n(0x182)]()[n(0x175)](a13a)[n(0x168)](n(0x171));});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';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x15d;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x16d)]({'name':a13o(0x16a),'aliases':['dsg'],'usage':a13o(0x17c),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a13o(0x17c),a13o(0x181)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b['getMakaProjectConfig']();d=j[p(0x17a)];}const {sgList:f}=await a[p(0x15e)]();f[p(0x177)](function(k){const q=p;c&&k['name'][q(0x179)](d)?Log['notice']('ID:\x20'+k['id']+q(0x161)+k[q(0x180)]+q(0x164)+k[q(0x16e)]):Log['bright'](q(0x173)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x180)]+q(0x164)+k['sgId']);});let g='';const h=await Actions['ask'](p(0x178));f[p(0x177)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x16e)]);});if(!g)throw Log[p(0x17d)](p(0x167));const i=await Actions['confirm'](p(0x163)+g+p(0x169),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x16f)]('Deleted\x20'+g)):Log['error'](p(0x15d)),process[p(0x166)](0x0);}catch(k){k&&Log[p(0x17d)](k),process[p(0x166)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a14i=a14d;function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x76;let f=c[d];return f;},a14d(a,b);}(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x8d))/0x1+parseInt(f(0x89))/0x2+parseInt(f(0x79))/0x3+parseInt(f(0x8a))/0x4*(parseInt(f(0x86))/0x5)+-parseInt(f(0x8f))/0x6*(-parseInt(f(0x85))/0x7)+parseInt(f(0x82))/0x8*(-parseInt(f(0x7e))/0x9)+parseInt(f(0x87))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x936f4));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x78)]()[h(0x83)](h(0x7c))[h(0x78)]()[h(0x7b)](a14a)[h(0x83)](h(0x7c));});function a14c(){const k=['6732280eMnVCa','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','2386azuYvp','121392yNLUSg','lecr','regions','1193026WtKibZ','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','3522lMgcOU','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','maka\x20aws:list-ecr','list-ecr','toString','2839662wGXxDd','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','constructor','(((.+)+)+)+$','error','889821MFHHeU','exit','success','apply','96ZLxCZK','search','Completed\x20listing\x20ECR\x20repositories.','6475OiRssX','135uqOqgw'];a14c=function(){return k;};return a14c();}a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14i(0x77),'aliases':[a14i(0x8b)],'usage':a14i(0x90),'requiredOpts':[],'validOpts':[a14i(0x8c)],'shortDesc':a14i(0x88),'examples':[a14i(0x76),a14i(0x7a),'maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x8c)]),Log[j(0x80)](j(0x84)),process[j(0x7f)](0x0);}catch(d){Log[j(0x7d)](j(0x8e)+d),process[j(0x7f)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15h=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x198))/0x1*(-parseInt(f(0x19c))/0x2)+parseInt(f(0x19b))/0x3*(-parseInt(f(0x1a0))/0x4)+-parseInt(f(0x1a3))/0x5+parseInt(f(0x1a5))/0x6+-parseInt(f(0x1a9))/0x7*(parseInt(f(0x1a2))/0x8)+parseInt(f(0x1a1))/0x9*(-parseInt(f(0x1a4))/0xa)+parseInt(f(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xc072e));function a15c(){const j=['11260wSZVqs','1141836XFABcB','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','name','exit','14atlTql','17955091LyLqef','rbi','maka\x20aws:reboot-instance','toString','chooseInstance','search','reboot-instance','instanceId','error','status','3567ecvapy','(((.+)+)+)+$','Reboot\x20an\x20EC2\x20instance','9318EEfvef','762tvEccj','maka\x20aws:rbi','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','\x20is\x20still\x20running.','1052qmkgCc','1422IgcpPf','1397744MxSIbv','5245610uBCqEM'];a15c=function(){return j;};return a15c();}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(0x1ad)]()[g(0x1af)]('(((.+)+)+)+$')[g(0x1ad)]()['constructor'](a15a)[g(0x1af)](g(0x199));});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';import{Log}from'../../tools/log/log.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x195;let f=c[d];return f;},a15d(a,b);}Command['create']({'name':a15h(0x1b0),'aliases':[a15h(0x1ab)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a15h(0x19a),'examples':[a15h(0x1ac),a15h(0x19d)]},async function(){const i=a15h;try{const a=new AWS(),b=await a[i(0x1ae)]();if(b?.[i(0x197)]==='running'){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[i(0x1a7)]+'\x20Ready?');c&&b[i(0x195)]?a['ec2rebootInstance']({'instanceId':b['instanceId']}):Log[i(0x196)](i(0x19e)+b['name']+i(0x19f));}else Log[i(0x196)](i(0x1a6));}catch(d){d&&Log[i(0x196)](d),process[i(0x1a8)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a16c(){const K=['constructor','registerDomain','Person','\x20years\x20(','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','(((.+)+)+)+$','Do\x20you\x20wish\x20to\x20register\x20','rdn','contactType','values','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','register-domain-name','15420QYATWX','70880ykTgjz','11liMjOo','623xtgsgU','warn','apply','maka\x20aws:rdn\x20--domain=example.com','Invalid\x202\x20character\x20country\x20code','Contact\x20Last\x20Name\x20[Person]:\x20','PERSON','notice','State\x20[HI]:\x20','9PaWhni','ASSOCIATION','maka\x20aws:register-domain-name','1236969YNKBYG','5CbfvRS','mail@example.com','\x20is\x20available\x20for:','239595drrneq','search','4159176bekynw','confirm','Choose\x20contact\x20type','RESELLER','Duration\x20in\x20years\x20[1]:\x20','9192920LrHWuB','exit','\x20/\x20Year)','2111756RkopJO','ask','+1.5555555555','PUBLIC_BODY','error','COMPANY','123\x20Glorious\x20Way','includes','maka\x20aws:register-domain-name\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','96816','Auto\x20Renew:\x20','OrganizationName','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','My\x20Comanpy,\x20LLC.','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Country\x20Code\x20[US]:\x20','\x20/\x20Year\x20\x0a','domain','toString','list','create','Zip\x20Code\x20[96816]:\x20','\x20for\x20'];a16c=function(){return K;};return a16c();}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x7b;let f=c[d];return f;},a16d(a,b);}const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0xad))/0x1*(-parseInt(E(0xa2))/0x2)+-parseInt(E(0xb4))/0x3+parseInt(E(0x7d))/0x4*(parseInt(E(0xb1))/0x5)+parseInt(E(0xa1))/0x6*(-parseInt(E(0xa4))/0x7)+parseInt(E(0xb6))/0x8+parseInt(E(0xb0))/0x9+parseInt(E(0xbb))/0xa*(-parseInt(E(0xa3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x4377e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x90)]()[G(0xb5)](G(0x9a))[G(0x90)]()[G(0x95)](a16a)['search']('(((.+)+)+)+$');});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(0x9e)](CountryCode)[H(0x84)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x92)]({'name':a16I(0xa0),'aliases':[a16I(0x9c)],'usage':a16I(0xaf),'requiredOpts':[a16I(0x8f)],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a16I(0x85),a16I(0xa7)]},async function(a,b){const J=a16I;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+J(0xb3));const {Price:h,Currency:i}=g;Log[J(0xa5)]('\x20\x20'+h+'\x20'+i+J(0x8e));const j=await Actions[J(0xb7)](J(0x9b)+c+'\x20?',![]);if(j){const k={'type':J(0x91),'name':J(0x9d),'message':J(0xb8),'choices':[J(0xae),J(0x82),J(0xaa),J(0x80),J(0xb9)]},l=await Actions[J(0x7e)](J(0xba))||'1',m=await Actions[J(0x7e)](J(0x86))||'Contact',n=await Actions['ask'](J(0xa9))||J(0x97),{contactType:o}=await Actions['options'](k),p=await Actions[J(0x7e)](J(0x8c))||J(0x83),q=await Actions['ask']('Address\x20Line\x202:\x20'),r=await Actions[J(0x7e)](J(0x93))||J(0x87),s=await Actions[J(0x7e)](J(0xac))||'HI',t=await Actions[J(0x7e)](J(0x8d))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x81)](J(0xa8));const v=await Actions[J(0x7e)](J(0x9f))||J(0x7f),w=await Actions[J(0x7e)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||'+1.5555555556',x=await Actions[J(0x7e)]('Contact\x20Email\x20[mail@example.com]:\x20')||J(0xb2),y=await Actions[J(0xb7)](J(0x88)),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(0xaa)){const C=await Actions[J(0x7e)](J(0x99))||J(0x8b);z[J(0x89)]=C;}const A=h||0x0*parseInt(l);Log[J(0xab)](J(0x8a)),Log['warn'](A+'\x20'+i+J(0x94)+l+J(0x98)+h+'\x20'+i+J(0x7c));const B=await Actions['confirm']('Are\x20you\x20sure?');B&&await d[J(0x96)](z,c,parseInt(l),y);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(D){D&&Log[J(0x81)](D),process[J(0x7b)](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(0x123))/0x1+-parseInt(h(0x12a))/0x2+parseInt(h(0x11f))/0x3*(-parseInt(h(0x116))/0x4)+parseInt(h(0x117))/0x5+parseInt(h(0x115))/0x6+-parseInt(h(0x121))/0x7*(parseInt(h(0x12e))/0x8)+-parseInt(h(0x127))/0x9*(-parseInt(h(0x11c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x985d7));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x118)]()[j(0x128)](j(0x131))[j(0x118)]()[j(0x132)](a17a)['search'](j(0x131));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x113;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a17c(){const n=['\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ec2describeKeys','name','27RiyILE','search','error','271088sfgRUE','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','confirm','create','1576LholvD','Deleting\x20a\x20','maka\x20aws:remove-key-pair','(((.+)+)+)+$','constructor','apply','exit','2561064OQxAhp','448aMHirE','5788880bAFjFE','toString','remove-key-pair','maka\x20aws:rkp','Deleted\x20','2310420DCdWlT','ask','Not\x20deleting\x20keypair','2946CplqpW','success','8764IvXuTA','forEach','1161487lOtfoO'];a17c=function(){return n;};return a17c();}Command[a17k(0x12d)]({'name':a17k(0x119),'aliases':['rkp'],'usage':a17k(0x130),'validOpts':[],'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':[a17k(0x130),a17k(0x11a)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x125)]();let c=undefined;const d=await Actions[l(0x11d)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0x122)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x126)]);});if(!c)throw Log['error'](l(0x12b));const f=await Actions[l(0x12c)](l(0x12f)+c+l(0x124),![]);f?(await a['deleteKeyPair'](c),Log[l(0x120)](l(0x11b)+c)):Log[l(0x129)](l(0x11e)),process[l(0x114)](0x0);}catch(g){g&&Log[l(0x129)](g),process['exit'](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18o=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(0x86))/0x1+parseInt(m(0x84))/0x2*(parseInt(m(0x95))/0x3)+parseInt(m(0x81))/0x4*(parseInt(m(0x7d))/0x5)+parseInt(m(0x8a))/0x6*(parseInt(m(0x7c))/0x7)+parseInt(m(0x8c))/0x8+-parseInt(m(0xa4))/0x9*(parseInt(m(0x98))/0xa)+-parseInt(m(0x7b))/0xb*(-parseInt(m(0xa0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xbb60c));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a['toString']()['search']('(((.+)+)+)+$')[n(0xa2)]()['constructor'](a18a)[n(0x97)]('(((.+)+)+)+$');});a18a();function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x78;let f=c[d];return f;},a18d(a,b);}import a18e from'path';import a18f from'fs';function a18c(){const q=['209xgnZDj','7xashgC','5ehsORx','maka\x20aws:sth\x20--env\x20prod','getMakaProjectConfig','parse','4428728PwqwCl','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','create','1900480OxRIzL','publicIp','1158063ydrbGL','env','appName','inherit','1547718bRFJea','stringify','2153368QsJTLQ','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','sth','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','ask','template','maka\x20aws\x20set-host','chooseInstance','\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','3rHJpAQ','getAppConfigPath','search','6781540MsBnII','sep','error','success','fsi','isFile','host','private','12108QRjzdE','\x0aSaved\x20host\x20','toString','join','9fkXfha','readFileSync','writeFileSync','public','ssh.json','privateIp'];a18c=function(){return q;};return a18c();}import{execSync}from'child_process';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[a18o(0x83)]({'name':'set-host','aliases':[a18o(0x8e)],'usage':a18o(0x92),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a18o(0x82),'description':a18o(0x94),'examples':['maka\x20aws:set-host\x20--env\x20dev',a18o(0x7e)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x9c)]['getEnvFromShorthand'](b[p(0x87)]),f=this[p(0x9c)][p(0x96)](d),g=this[p(0x9c)][p(0x7f)](),h=await c[p(0x93)](),i=a18e[p(0xa3)](f,p(0x79));!this['fsi'][p(0x9d)](i)&&await this[p(0x9c)][p(0x91)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':g[p(0x88)]},'config':g});const j=JSON[p(0x80)](a18f[p(0xa5)](i,'utf8')),k=await Actions[p(0x90)](p(0x8d))||p(0x78);if(k){if(k==='public'||k===p(0x9f)){if(k===p(0x78))j[p(0x9e)]=h?.[p(0x85)];else k===p(0x9f)&&(j[p(0x9e)]=h?.[p(0x7a)]);}else throw p(0x8f);}else j[p(0x9e)]=h?.[p(0x7a)];a18f[p(0xa6)](a18e['join'](f,p(0x79)),JSON[p(0x8b)](j,null,0x2)),execSync('cat\x20'+a18e[p(0xa3)](f,p(0x79)),{'stdio':p(0x89)}),Log[p(0x9b)](p(0xa1)+k+'\x20IP\x20to\x20'+f+a18e[p(0x99)]+p(0x79));}catch(l){l&&Log[p(0x9a)](l),process['exit'](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19h=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x1d2))/0x1*(-parseInt(f(0x1c8))/0x2)+-parseInt(f(0x1d4))/0x3*(parseInt(f(0x1da))/0x4)+-parseInt(f(0x1d5))/0x5*(parseInt(f(0x1bc))/0x6)+parseInt(f(0x1d8))/0x7+parseInt(f(0x1d7))/0x8*(parseInt(f(0x1b9))/0x9)+-parseInt(f(0x1bb))/0xa*(-parseInt(f(0x1cf))/0xb)+parseInt(f(0x1d1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xce79a));function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a19d(a,b);}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[g(0x1d0)]()[g(0x1cc)](g(0x1cb))['toString']()[g(0x1bf)](a19a)[g(0x1cc)](g(0x1cb));});a19a();function a19c(){const j=['There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','11229830HtyZPO','1727322VwAXUK','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','name','constructor','chooseInstance','create','maka\x20aws:terminate-instance','maka\x20aws:ti','\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','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','running','terminate-instance','21652gxutUH','confirm','error','(((.+)+)+)+$','search','\x20Ready?','status','11DRuaOl','toString','15691620HzEEHg','103DtqVuz','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','6DfEpyo','5LBfuOx','ec2terminateInstance','8KVCAEC','618744LJsSSD','instanceId','2499872JZnAtJ','8816517Zzkqie'];a19c=function(){return j;};return a19c();}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[a19h(0x1c1)]({'name':a19h(0x1c7),'aliases':['ti'],'usage':a19h(0x1c2),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19h(0x1c4),'examples':[a19h(0x1c2),a19h(0x1c3)]},async function(){const i=a19h;try{const a=new AWS(),b=await a[i(0x1c0)]();if(b?.[i(0x1d9)]&&b?.[i(0x1ce)]===i(0x1c6)){const c=await Actions[i(0x1c9)](i(0x1bd)+b[i(0x1be)]+i(0x1cd));c?a[i(0x1d6)]({'instanceId':b['instanceId']}):Log['error'](i(0x1d3)+b[i(0x1be)]+i(0x1c5));}else Log['error'](i(0x1ba));}catch(d){d&&Log[i(0x1ca)](d),process['exit'](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x176))/0x1*(-parseInt(f(0x173))/0x2)+-parseInt(f(0x170))/0x3+parseInt(f(0x174))/0x4*(parseInt(f(0x172))/0x5)+-parseInt(f(0x16a))/0x6+parseInt(f(0x16e))/0x7*(parseInt(f(0x16c))/0x8)+parseInt(f(0x16b))/0x9+-parseInt(f(0x169))/0xa*(-parseInt(f(0x175))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x9a881));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x177)]()[h(0x16d)](h(0x16f))[h(0x177)]()['constructor'](a20a)['search']('(((.+)+)+)+$');});function a20c(){var i=['(((.+)+)+)+$','3455799uuLeIp','apply','5MZSvag','812566bJfMea','833892mnLuZE','88VRJTkV','2ZNqitt','toString','1856170eZMfVS','698340zzjlcV','3264075KIGVzh','5262128PscNPq','search','7hvsRWs'];a20c=function(){return i;};return a20c();}a20a();import'./build.js';function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x169;var f=c[d];return f;},a20d(a,b);}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21p=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=parseInt(n(0x91))/0x1*(parseInt(n(0x8d))/0x2)+-parseInt(n(0x89))/0x3+parseInt(n(0x85))/0x4+parseInt(n(0x9a))/0x5+-parseInt(n(0x81))/0x6+-parseInt(n(0x95))/0x7+parseInt(n(0x84))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x2798d));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(0x88)]()[o(0x7c)](o(0x8e))[o(0x88)]()[o(0x92)](a21a)['search'](o(0x8e));});a21a();import a21e from'path';import a21f from'fs';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x76;let f=c[d];return f;},a21d(a,b);}import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a21c(){const s=['352516VdwXCL','app.tar.gz','existsSync','toString','163698wdrnxo','error','argv','--release','66246UYzeAF','(((.+)+)+)+$','\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','splice','1ivUqIo','constructor','build',').\x20Update?','1949122hdSeTA','Aborted.','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','confirm','pathFromProject','1366495RziyNw','--force','exit','fsi','checkMeteorPackage','getProjectMeteorVersion','maka\x20build','getGlobalMeteorVersion','autoupdate','force','search',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','update','create','concat','1866096xchsPS','invokeMeteorCommand','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','3293328utlrhZ'];a21c=function(){return s;};return a21c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21p(0x7f)]({'name':a21p(0x93),'usage':a21p(0x78),'validOpts':[a21p(0x7b)],'aliases':['b'],'shortDesc':a21p(0x83),'mustBeInMakaProject':!![],'description':a21p(0x8f),'examples':['maka\x20build']},async function(a,b){const q=a21p;try{await this[q(0x9d)][q(0x76)](q(0x7a),{'shouldInstall':!![]});const c=b[q(0x7b)];if(!c){const g=this['fsi'][q(0x79)](),h=this[q(0x9d)][q(0x77)](),i=a21g['gt'](g,h);if(i){const j=await Actions[q(0x98)]('This\x20project\x27s\x20meteor\x20version\x20('+h+q(0x7d)+g+q(0x94));j&&this[q(0x9d)]['invokeMeteorCommand'](q(0x7e),[q(0x8c),g]);}}const d=[this[q(0x9d)][q(0x99)]({'pathParts':[q(0x93)]})][q(0x80)](process[q(0x8b)]['slice'](0x3)),f=a21e['join'](this[q(0x9d)]['pathFromProject']({}),'build',q(0x86));if(a21f[q(0x87)](f)){const k=c??await Actions[q(0x98)](q(0x97));if(!k)throw Log[q(0x8a)](q(0x96));}d['forEach']((l,m)=>{const r=q;l===r(0x9b)&&d[r(0x90)](m,0x2);}),this[q(0x9d)][q(0x82)](q(0x93),d);}catch(l){console[q(0x8a)](l),process[q(0x9c)](0x0);}});export default BuildCommand;
|