@maka/maka-cli 4.9.15 → 4.10.1
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/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.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/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/methods.js +1 -1
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/tests.js +0 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +2 -7
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +2 -7
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +4 -5
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +4 -5
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +319 -0
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +0 -1
- package/bundle/obf/src/templates/react/component/component.js.jsx +2 -14
- package/bundle/obf/src/templates/react/component/component.js.tsx +2 -13
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +2 -9
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +2 -10
- 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.
|
|
3
|
+
"version": "4.10.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x1c6))/0x1*(-parseInt(n(0x1ad))/0x2)+-parseInt(n(0x1c4))/0x3*(-parseInt(n(0x1bc))/0x4)+-parseInt(n(0x1a6))/0x5+parseInt(n(0x1e0))/0x6*(parseInt(n(0x1cc))/0x7)+-parseInt(n(0x1af))/0x8*(parseInt(n(0x1aa))/0x9)+-parseInt(n(0x1c9))/0xa*(-parseInt(n(0x1d1))/0xb)+-parseInt(n(0x1db))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x69b98));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x1bd)]()[o(0x1de)](o(0x19e))[o(0x1bd)]()['constructor'](a0a)[o(0x1de)](o(0x19e));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x195;let f=c[d];return f;},a0d(a,b);}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';function a0c(){const z=['sort','push','slice','3718sfZWVy','error','Description','Name','exit','play','minOptsLength','notice','validateMakaProject','function','7928376MxKBQt','fsi','processAndRunCommand','search','getGlobalConfig','126HOMaAr','bright','addCommand','match','addCommand\x20requires\x20a\x20Command\x20instance','localeCompare','Command\x20requires\x20a\x20handler\x20function','assign','minArgLength','mustBeInMakaProject','Command.create\x20requires\x20a\x20handler\x20function!','help','run','number','(((.+)+)+)+$','\x20not\x20found','tableList','usage','generate','Alias','validateParams','maxArgLength','4020065qOLvhX','DARK','invoke','Too\x20many\x20options','36VYksDn','_handler','shortDesc','14IintNk','create','1408416njmtAi','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Too\x20few\x20arguments','validateMeteorInstall','_commands','call','Command\x20format\x20is\x20incorrect','setColorMode','maxOptsLength','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','name','maybeProxyCommandToMeteor','find','2754268FdjIFC','toString','Command.create\x20requires\x20some\x20options!','mustHaveMeteorInstalled','length','Command\x20not\x20found','options','Command\x20','3ozQHjG','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','101351ZnzhTB','validateMakaSubscription','There\x20is\x20no\x20Meteor\x20application\x20here','23270bFaeWC','Sub-Commands:','Command\x20requires\x20a\x20name','139139LErLlO','keys'];a0c=function(){return z;};return a0c();}export class Command extends Tool{[a0p(0x1c2)];[a0p(0x1b3)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x1c5));if(!a['name'])throw new Error(q(0x1cb));if(typeof b!==q(0x1da))throw new Error(q(0x196));this[q(0x1c2)]=Object[q(0x197)]({},a),this[q(0x1b9)]=this['options'][q(0x1b9)],this['_commands']=[],this[q(0x1ab)]=b['bind'](this);}static[a0p(0x1ae)](a,b,c){const r=a0p;if(!a)throw new Error(r(0x1be));if(typeof b!=='function')throw new Error(r(0x19a));const d=new Command(a,b);return c=c||a0f,Object[r(0x197)](d,{'parent':c?.[r(0x1c2)]?.['name']}),c[r(0x1e2)](d),d;}[a0p(0x1e2)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x1e4));this['_commands'][s(0x1cf)](a);}async[a0p(0x19c)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x1dc)][t(0x1df)](),d=c['pallet']==='light'?ColorMode['LIGHT']:ColorMode[t(0x1a7)];Log[t(0x1b6)](d),await this[t(0x1c7)](this);}catch(f){Log[t(0x1d2)](f),process[t(0x1d5)](0x0);}return await this[t(0x1a8)](a,b);}catch(g){process[t(0x1d5)](0x1);}}async[a0p(0x1a8)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x1c2)];try{if(this['options'][u(0x1b9)]!==u(0x1a2)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x1c0)]===0x0)&&this[u(0x1b3)][u(0x1c0)]>=0x0,g=b[u(0x19b)]||b['h'];if(f&&g){if(this[u(0x1b3)][u(0x1c0)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x1c2)][u(0x199)]){const h=this[u(0x1d9)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x1c2)]['mustBeLoggedIn']){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[u(0x1c2)][u(0x1bf)]){const j=this[u(0x1b2)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][u(0x198)]==='number'){if(a[u(0x1c0)]<this[u(0x1c2)][u(0x198)]){Log[u(0x1d2)](u(0x1b1));throw new UsageError();}}if(typeof this[u(0x1c2)][u(0x1a5)]===u(0x19d)){if(a[u(0x1c0)]>=this[u(0x1c2)]['maxArgLength']){Log[u(0x1d2)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options'][u(0x1d7)]===u(0x19d)){if(Object[u(0x1cd)](b)['length']<this[u(0x1c2)][u(0x1d7)]){Log[u(0x1d2)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[u(0x1c2)][u(0x1b7)]===u(0x19d)){if(Object[u(0x1cd)](b)[u(0x1c0)]>=this[u(0x1c2)][u(0x1b7)]){Log['error'](u(0x1a9));throw new UsageError();}}}}b=await this[u(0x1a4)](a,b,this['options']),_prevCmd=a[0x0];}return await this[u(0x1ab)][u(0x1b4)](this,a,b);}catch(k){Log[u(0x1a1)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0x1d8)](u(0x1ca)),this[u(0x1a0)](this[u(0x1b3)]),Log['header']('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(k instanceof MustBeInProjectError)Log['error'](u(0x1b8));else{if(k instanceof NoMeteorFoundError)Log['error'](u(0x1b0)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(k instanceof NoMeteorAppFoundError)Log[u(0x1d2)](u(0x1c8));else k instanceof MustBeLoggedIn&&(Log[u(0x1d2)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log[u(0x1d8)]('Please\x20run\x20\x22maka\x20login\x22'));}}}process[u(0x1d5)](0x1);}}[a0p(0x1a0)](a){const v=a0p,b=new a0e({});b[v(0x1cf)]([v(0x1d4),v(0x1a3),v(0x1d3)]),a[v(0x1ce)]((c,d)=>{const w=v;return c[w(0x1b9)][w(0x195)](d[w(0x1b9)]);})['forEach'](c=>{const x=v;c[x(0x1b9)]!=='murder'&&c['name']!==x(0x1d6)&&b[x(0x1cf)]([c['name'],c['aliases'](),c[x(0x1ac)]()]);}),Log[v(0x1e1)](b[v(0x1bd)]());}async[a0p(0x1dd)](a,b=[],c={}){const y=a0p;try{const d=a?.['split'](':');if(!d||d[y(0x1c0)]===0x0)throw y(0x1b5);if(d[0x0]===y(0x1a2)||d[0x0]==='g'&&d['length']>0x1){const h=this[y(0x1b3)][y(0x1bb)](j=>j[y(0x1e3)]('generate'));if(!h)throw y(0x1c1);await this[y(0x1c7)](h);const i=d[y(0x1d0)](0x1)['join'](':');return b['unshift'](i),await h[y(0x19c)](b,c);}let f=this[y(0x1b3)],g;for(const j of d){g=f[y(0x1bb)](k=>k[y(0x1e3)](j));if(!g)try{await this[y(0x1dc)][y(0x1ba)]();}catch(k){throw y(0x1c3)+j+y(0x19f);}g&&(await this[y(0x1c7)](g),f=g[y(0x1b3)]);}if(g){const l=await g[y(0x19c)](b,c);return l;}else throw'Command\x20not\x20found';}catch(m){Log[y(0x1d2)](m),process[y(0x1d5)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xe9))/0x1*(-parseInt(f(0xe6))/0x2)+-parseInt(f(0xf4))/0x3+-parseInt(f(0xf6))/0x4*(-parseInt(f(0xec))/0x5)+-parseInt(f(0xe8))/0x6*(parseInt(f(0xee))/0x7)+parseInt(f(0xef))/0x8*(parseInt(f(0xea))/0x9)+-parseInt(f(0xf2))/0xa+-parseInt(f(0xf3))/0xb*(-parseInt(f(0xf1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x9d1d2));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0xf0)](h(0xeb))[h(0xed)]()[h(0xf5)](a1a)['search']('(((.+)+)+)+$');});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';function a1c(){var i=['apply','5328DOxxCQ','313SikFjO','4684518dJxbSx','(((.+)+)+)+$','5zelNvL','toString','6139ecHVSE','16mnfswo','search','2719932DMSSWP','5741610PGYITe','66WwMzkj','501198UpNbAV','constructor','2856364mowGXh','6080Enaqlm'];a1c=function(){return i;};return a1c();}import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xe6;var f=c[d];return f;},a1d(a,b);}import'./undo.js';import'./register.js';import'./patreon.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2m=a2d;function a2c(){const o=['900018ZOeRJC','12eMbKvc','notice','openapikey','Using\x20CA\x20Cert\x20','openai','toString','268172zIxcQk','question','1947610jIAFxQ','cacert','createInterface','Using\x20OpenAI\x20Key\x20','167624oHWWFs','constructor','getGlobalConfig','stdout','data','close','ChatGPT\x20style\x20AI\x20interface','GPT:\x20','search','cert','7ClhmJM','choices','4881KdheFI','askGPT','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','text','You:\x20','33vCBZNR','exit','(((.+)+)+)+$','16pvLsWH','message','1378140sqkWuO','error','trim','bright','439902bLGVzY','isFile','create','apply','fsi'];a2c=function(){return o;};return a2c();}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x1a6))/0x1+parseInt(h(0x1a0))/0x2+parseInt(h(0x1b2))/0x3*(-parseInt(h(0x1c6))/0x4)+-parseInt(h(0x1bc))/0x5+-parseInt(h(0x1c0))/0x6*(-parseInt(h(0x1b0))/0x7)+parseInt(h(0x1ba))/0x8*(-parseInt(h(0x1c5))/0x9)+-parseInt(h(0x1a2))/0xa*(-parseInt(h(0x1b7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x230bd));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x1ae)](j(0x1b9))[j(0x1cb)]()[j(0x1a7)](a2a)[j(0x1ae)](j(0x1b9));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x1a4)]({'input':process['stdin'],'output':process[k(0x1a9)]});c[k(0x1a1)](k(0x1b6),async d=>{const l=k;if(d['toLowerCase']()===l(0x1b8)){c[l(0x1ab)]();return;}try{const e=await HTTPS[l(0x1b3)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0x1aa)]);if(f[l(0x1bd)])throw new Error(f[l(0x1bd)][l(0x1bb)]);Log[l(0x1bf)](l(0x1ad)+f?.[l(0x1b1)][0x0]?.[l(0x1b5)][l(0x1be)]());}catch(g){Log['error'](g),process[l(0x1b8)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x1c2)]({'name':'ai','description':a2m(0x1ac),'validOpts':[a2m(0x1a3),a2m(0x1c8)],'shortDesc':a2m(0x1ac),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x1a3)]&&(this['fsi']['isFile'](b[n(0x1a3)])?(c=b[n(0x1a3)],Log[n(0x1c7)](n(0x1c9)+c)):Log[n(0x1bd)](n(0x1b4)+c));const d=await this[n(0x1c4)][n(0x1a8)]();if(d[n(0x1af)]){if(this[n(0x1c4)][n(0x1c1)](d['cert']))c=d['cert'];else throw Log[n(0x1bd)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0x1c8)])f=b[n(0x1c8)],Log[n(0x1c7)](n(0x1a5)+f);else{if(d[n(0x1ca)])f=d[n(0x1ca)];else throw Log[n(0x1bd)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console['log']('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1bd)](g),process[n(0x1b8)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0xe6))/0x1+-parseInt(f(0xe0))/0x2*(parseInt(f(0xdf))/0x3)+parseInt(f(0xe9))/0x4*(parseInt(f(0xe5))/0x5)+-parseInt(f(0xde))/0x6*(parseInt(f(0xe7))/0x7)+parseInt(f(0xeb))/0x8*(-parseInt(f(0xea))/0x9)+parseInt(f(0xe3))/0xa+parseInt(f(0xe4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xc4c60));function a3c(){var i=['162928EgJwCT','search','165162jGvaVR','69BVuGrn','97466VMoJuS','toString','apply','1864160uvsyvv','44488697SikMcj','5QaBtDe','50610PTtNvc','287FBhpJT','constructor','65292ZPURmf','549mKRxTG'];a3c=function(){return i;};return a3c();}var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()[h(0xdd)]('(((.+)+)+)+$')[h(0xe1)]()[h(0xe8)](a3a)['search']('(((.+)+)+)+$');});a3a();function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xdd;var f=c[d];return f;},a3d(a,b);}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';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1df))/0x1*(-parseInt(f(0x1ed))/0x2)+parseInt(f(0x1ec))/0x3*(-parseInt(f(0x1e4))/0x4)+parseInt(f(0x1f3))/0x5*(-parseInt(f(0x1eb))/0x6)+-parseInt(f(0x1e1))/0x7*(-parseInt(f(0x1e0))/0x8)+-parseInt(f(0x1e6))/0x9*(-parseInt(f(0x1de))/0xa)+parseInt(f(0x1e7))/0xb*(parseInt(f(0x1e5))/0xc)+parseInt(f(0x1f1))/0xd*(-parseInt(f(0x1e8))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd76e2));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1e3)]()[h(0x1e2)](h(0x1e9))[h(0x1e3)]()[h(0x1ef)](a4a)[h(0x1e2)](h(0x1e9));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1de;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':a4i(0x1ee),'usage':a4i(0x1f4),'validOpts':[],'shortDesc':a4i(0x1f2),'description':a4i(0x1ea)},async function(){throw UsageError;});export default AWSCommand;function a4c(){const j=['175EqAttd','search','toString','607088qVULef','1719888KWJfeM','4798269YDKYtc','22IdfaAT','28UhKtsU','(((.+)+)+)+$','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20','413670CPpERX','15VdEqEq','29466nRvqWI','aws','constructor','apply','5701969EVYydj','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','65iTdBWA','maka\x20aws:<sub-command>','20YgSqkM','21JxTtAm','560784NWoumd'];a4c=function(){return j;};return a4c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5k=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a5d(a,b);}(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0x1ee))/0x1*(parseInt(i(0x1dc))/0x2)+parseInt(i(0x1dd))/0x3+parseInt(i(0x1df))/0x4*(-parseInt(i(0x1e9))/0x5)+parseInt(i(0x1ea))/0x6+-parseInt(i(0x1d5))/0x7+-parseInt(i(0x1e7))/0x8*(parseInt(i(0x1eb))/0x9)+-parseInt(i(0x1db))/0xa*(-parseInt(i(0x1e2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x849fd));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const j=a5d;return a5a[j(0x1ed)]()[j(0x1e5)](j(0x1de))[j(0x1ed)]()[j(0x1ef)](a5a)[j(0x1e5)]('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5c(){const m=['2266581Idxcny','(((.+)+)+)+$','11636jQiOIm','domain','Set\x20hosted\x20zone\x20to\x20an\x20instance?','15928VfMnLV','create-hosted-zone','linkEC2ToRoute53','search','maka\x20aws:create-hosted-zone\x20--domain=example.com','7689928QnoGQk','maka\x20aws:chz\x20--domain=example.com','65bXpOYg','143880XDoUhG','9zEQinn','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','toString','978001Wsupjn','constructor','chooseInstance','2471189UKczGF','error','create','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','chz','route53CreateHostedZone','14460zwmKRm','2gdrbAk'];a5c=function(){return m;};return a5c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5k(0x1d7)]({'name':a5k(0x1e3),'aliases':[a5k(0x1d9)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a5k(0x1e0)],'validOpts':[],'shortDesc':a5k(0x1d8),'examples':[a5k(0x1e6),a5k(0x1e8)]},async function(a,b){const l=a5k;try{const c=b[l(0x1e0)],d=new AWS();d[l(0x1da)](c);const f=await Actions['confirm'](l(0x1e1));if(f){const g=await d[l(0x1d4)]();if(g?.['id']){if(!g['publicIp'])throw Log['error'](l(0x1ec));d[l(0x1e4)](g['id'],g['publicIp'],c);}else throw'Instance\x20not\x20found';}}catch(h){h&&Log[l(0x1d6)](h),process['exit'](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;function a6c(){const au=['Setting\x20AMI\x20ID\x20to\x20','30110gRiJbf','created-by','environment','Setting\x20Subnet\x20ID\x20to\x20','amiId','getTime','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','2PnaOYb','readFileSync','cidr','sgId','number','133511jTRduU','search','3592264oYeFSk','170505rcnZpg','notice','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','toString','createKeyPair','\x20AZONE:\x20','30iAYaCg','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','\x20SGID:\x20','env','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','2289470pjlJxq','Setting\x20SG\x20ID\x20to:\x20','Setting\x20the\x20key-pair\x20to:\x20','No\x20instance\x20has\x20been\x20created.','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20AMIID:\x20','ask','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','amazon','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','ID:\x20','success','getMakaProjectConfig','Create\x20new\x20AWS\x20instance','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','sort','Remove\x20the\x20security\x20group\x20','EC2\x20Name:\x20[','string','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','parse','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','forEach','log','ec2create','name','create','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','exit','ec2describeKeys','(((.+)+)+)+$','ec2createSG','user-data','2286HOdfGa','\x20DESCRIPTION:\x20','confirm','create-instance','Creating\x20user\x20data\x20file\x20in\x20','desc','maka\x20aws:ci\x20--env\x20prod','subnetId','\x20CIDR:\x20','build\x20on\x20','deleteKeyPair','fsi','error','*\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','ImageID:','apply','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','maka\x20aws:create-instance\x20--env\x20dev','1123168LwvsAt','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','1:1','Web\x20App','238929PUqbeY','Desc','Security\x20Group:\x20','createFile','split','t3.micro','alias','bright','Instace\x20Type:\x20','Name','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','maka-cli','push','Would\x20you\x20like\x20to\x20include\x20user\x20data?'];a6c=function(){return au;};return a6c();}(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0xec))/0x1+-parseInt(ae(0xe4))/0x2*(-parseInt(ae(0xce))/0x3)+parseInt(ae(0xca))/0x4+parseInt(ae(0xf7))/0x5+parseInt(ae(0xf2))/0x6*(-parseInt(ae(0xe9))/0x7)+parseInt(ae(0xeb))/0x8+-parseInt(ae(0xb8))/0x9*(parseInt(ae(0xdd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x39c9a));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0xc7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0xef)]()[ag(0xea)](ag(0xb5))[ag(0xef)]()['constructor'](a6a)['search'](ag(0xb5));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xa1;let f=c[d];return f;},a6d(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[a6ah(0xb1)]({'name':a6ah(0xbb),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ah(0xc9),a6ah(0xbe)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0xf5)}],'validOpts':[],'shortDesc':a6ah(0xa4),'description':'\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'},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0xa3)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xc3)]['getConfigFromShorthand'](b[ai(0xf5)]),i=this[ai(0xc3)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0xfd)](ai(0xa8)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xba)](ai(0xf6),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xf0)]({'env':h});r=y,s=z,Log[ai(0xa2)](ai(0xf9)+r);}else try{Log[ai(0xed)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0xb4)]({'suggestion':A}),C=await Actions[ai(0xfd)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-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[ai(0xed)](ai(0xfa));return;}B?.[ai(0xad)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xb0)],Log['success'](aj(0xf9)+r));});}catch(D){Log[ai(0xc4)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0xba)](ai(0x100),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0xfd)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0xfd)](ai(0xe3))||'22,80,443',G=F['split'](',');await d[ai(0xb6)]({'description':ai(0xcd),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ai(0xed)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0xad)](function(L){const ak=ai;L[ak(0xb0)]===u?Log['notice'](ak(0xa1)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xb0)]+'\x20SGID:\x20'+L[ak(0xe7)]):Log[ak(0xd5)](ak(0xa1)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0xb0)]+ak(0xf4)+L[ak(0xe7)]);});const K=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0xef)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xe7)],Log[al(0xa2)](al(0xf8)+m+'\x0a'));});}else m=I,Log[ai(0xa2)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ai(0xfb));}catch(L){Log[ai(0xc4)](L);}try{const M=0x7e6;Log[ai(0xed)]('**\x20Available\x20AMIs\x20**');const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0xc5))['toString'](),O=JSON[ai(0xab)](N),P=[],Q=[];O[ai(0xad)](function(S){const am=ai;if(S[am(0xd4)]===am(0xff)){const T=S[am(0xcf)][am(0xd2)](am(0xc1))[0x1];P[am(0xda)]({'amiId':S['ID'],'desc':S[am(0xcf)],'date':T});}}),P[ai(0xa6)](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S['date'])[an(0xe2)]();}),P[ai(0xad)](function(S,T){const ao=ai;Q[ao(0xda)]({'id':T,'amiId':S[ao(0xe1)],'desc':S[ao(0xbd)]});}),Q[ai(0xad)](function(S){const ap=ai;console[ap(0xae)](ap(0xa1)+S['id']+ap(0xfc)+S[ap(0xe1)]+ap(0xb9)+S[ap(0xbd)]);});const R=await Actions['ask'](ai(0xa5))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xe1)],Log[aq(0xa2)](aq(0xdc)+n+'\x20:\x20'+S[aq(0xbd)]));});if(n==='')throw Log['error'](ai(0xfb));}catch(S){Log['error'](S);}try{Log['notice']('**\x20Available\x20Subnets\x20**');const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0xef)](),U=JSON[ai(0xab)](T),V=[];U[ai(0xad)](function(X,Y){const ar=ai;V[ar(0xda)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0xbf)]});}),V['forEach'](function(X){const as=ai;console['log']('ID:\x20'+X['id']+as(0xc0)+X[as(0xe6)]+as(0xf1)+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ai(0xfd)](ai(0xac))||'0';V[ai(0xad)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xbf)],Log['success'](at(0xe0)+p));});if(p==='')throw Log[ai(0xc4)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xfd)](ai(0xee))||ai(0xcc),Z=Y[ai(0xd2)](':')[0x0],a0=Y[ai(0xd2)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0xe8)&&Log[ai(0xa2)](ai(0xd8)+Z+':'+a0);}catch(a1){Log[ai(0xc4)](a1);}try{const a2=await Actions[ai(0xfd)](ai(0xaa))||ai(0xd3);typeof a2===ai(0xa9)&&(o=a2);}catch(a3){Log[ai(0xc4)](a3);}let x='';try{const a4=await Actions[ai(0xba)](ai(0xdb),![]);a4&&(x=a6f['join'](i,ai(0xb7)),Log[ai(0xed)](ai(0xbc)+x),await this[ai(0xc3)][ai(0xd1)]({'filePath':x,'data':''}),await Actions[ai(0xba)](ai(0xf3)));}catch(a5){Log[ai(0xc4)](a5);}try{const a6=JSON[ai(0xab)](execSync(ai(0xc8)+p+ai(0xcb))['toString']())[0x0]['subnet'];Log[ai(0xed)](ai(0xc6)+n),Log[ai(0xed)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0xed)](ai(0xd6)+o),Log[ai(0xed)]('Key-Pair:\x20'+r),Log['notice'](ai(0xd0)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log[ai(0xed)]('User\x20Data:'+x);const a8=a6g[ai(0xe5)](x)['toString']();Log['notice'](a8);}const a7=await Actions[ai(0xba)](ai(0xfe));if(a7){const a9=await d[ai(0xaf)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xde),'Value':ai(0xd9)},{'Key':ai(0xdf),'Value':h},{'Key':ai(0xd7),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0xb2)),Log['bright']('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0xba)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0xc2)](r),f['isFile'](s)&&a6g['unlinkSync'](s));const ab=await Actions[ai(0xba)](ai(0xa7)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log[ai(0xc4)](ac);}}catch(ad){ad&&Log[ai(0xc4)](ad),process[ai(0xb3)](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;function a6c(){const au=['18CBIaPR','amiId','1452759rIZPeF','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','fsi','7232064zKCFDf','name','subnetId','deleteSecurityGroup','subnet','162zrlNCX','149260pgKfpr','Setting\x20the\x20key-pair\x20to:\x20','sort','**\x20Available\x20key-pairs\x20**','amazon','readFileSync','maka\x20aws:create-instance\x20--env\x20dev','join','Subnet:\x20','parse','\x20SUBNETID:\x20','created-by','maka-cli','2961hSkTCW','log','cidr','Desc','split','getTime','\x20DESCRIPTION:\x20','t3.micro','maka\x20aws:create-instance','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Would\x20you\x20like\x20to\x20include\x20user\x20data?','alias','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','user-data','Create\x20new\x20AWS\x20instance','\x20SGID:\x20','1:1','string','\x20AZONE:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Setting\x20Subnet\x20ID\x20to\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','isFile','(((.+)+)+)+$','push','ImageID:','Setting\x20AMI\x20ID\x20to\x20','\x20SG\x20NAME:\x20','ask','confirm','3592356aOLOhQ','\x20:\x20','success','desc','bright','chooseVPC','date','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','**\x20Available\x20Subnets\x20**','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Instance\x20Count:\x20','number','constructor','\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','ec2describeKeys','Key-Pair:\x20','sgId','2100UOFgXF','build\x20on\x20','search','3806405yCcjWF','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Web\x20App','ec2create','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','create','error','*\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','forEach','env','Setting\x20SG\x20ID\x20to:\x20','Security\x20Group\x20Name:\x20[','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','deleteKeyPair','create-instance','notice','toString','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','getSecurityGroups','**\x20Available\x20AMIs\x20**','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','apply','User\x20Data:','ID:\x20','cider','38287IzEyzw','\x20AMIID:\x20'];a6c=function(){return au;};return a6c();}(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x22b))/0x1*(parseInt(ae(0x22d))/0x2)+parseInt(ae(0x22f))/0x3+-parseInt(ae(0x1fd))/0x4+parseInt(ae(0x211))/0x5+-parseInt(ae(0x20e))/0x6*(parseInt(ae(0x1df))/0x7)+parseInt(ae(0x232))/0x8+-parseInt(ae(0x237))/0x9*(parseInt(ae(0x238))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x77aa8));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x227)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a['toString']()[ag(0x210)]('(((.+)+)+)+$')[ag(0x222)]()[ag(0x209)](a6a)[ag(0x210)](ag(0x1f6));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a6d(a,b);}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x217)]({'name':a6ah(0x220),'aliases':['ci'],'usage':a6ah(0x1e7),'examples':[a6ah(0x1d8),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x21b)}],'validOpts':[],'shortDesc':a6ah(0x1ed),'description':a6ah(0x20a)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x231)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x231)]['getConfigFromShorthand'](b[ai(0x21b)]),i=this[ai(0x231)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1fb)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x1fc)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log['success'](ai(0x239)+r);}else try{Log[ai(0x221)](ai(0x23b));const A=r?r:k,B=await d[ai(0x20b)]({'suggestion':A}),C=await Actions['ask'](ai(0x1f4))||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x223)),Log[ai(0x221)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x1ff)](aj(0x239)+r));});}catch(D){Log['error'](D);}l=await d[ai(0x202)]();const t=await Actions[ai(0x1fc)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0x202)]():l;u=await Actions[ai(0x1fb)](ai(0x21d)+k+']')||k;const F=await Actions[ai(0x1fb)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F[ai(0x1e3)](',');await d['ec2createSG']({'description':ai(0x214),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x224)](u);if(I===''){Log[ai(0x221)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x21a)](function(L){const ak=ai;L[ak(0x233)]===u?Log[ak(0x221)](ak(0x229)+L['id']+ak(0x1fa)+L[ak(0x233)]+ak(0x1ee)+L[ak(0x20d)]):Log[ak(0x201)]('ID:\x20'+L['id']+ak(0x1fa)+L[ak(0x233)]+ak(0x1ee)+L['sgId']);});const K=await Actions[ai(0x1fb)](ai(0x226)+H+']\x20')||H[ai(0x222)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x20d)],Log[al(0x1ff)](al(0x21c)+m+'\x0a'));});}else m=I,Log[ai(0x1ff)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ai(0x1e8));}catch(L){Log['error'](L);}try{const M=0x7e6;Log[ai(0x221)](ai(0x225));const N=execSync(ai(0x204)+M+ai(0x219))['toString'](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x21a)](function(S){const am=ai;if(S[am(0x1ea)]===am(0x23c)){const T=S[am(0x1e2)]['split'](am(0x20f))[0x1];P[am(0x1f7)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ai(0x23a)](function(S,T){const an=ai;return new Date(T[an(0x203)])[an(0x1e4)]()-new Date(S['date'])['getTime']();}),P[ai(0x21a)](function(S,T){const ao=ai;Q[ao(0x1f7)]({'id':T,'amiId':S[ao(0x22e)],'desc':S['desc']});}),Q[ai(0x21a)](function(S){const ap=ai;console[ap(0x1e0)]('ID:\x20'+S['id']+ap(0x22c)+S[ap(0x22e)]+ap(0x1e5)+S[ap(0x200)]);});const R=await Actions[ai(0x1fb)](ai(0x213))||'0';Q[ai(0x21a)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x22e)],Log[aq(0x1ff)](aq(0x1f9)+n+aq(0x1fe)+S['desc']));});if(n==='')throw Log[ai(0x218)](ai(0x1e8));}catch(S){Log[ai(0x218)](S);}try{Log[ai(0x221)](ai(0x205));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x222)](),U=JSON['parse'](T),V=[];U[ai(0x21a)](function(X,Y){const ar=ai;V[ar(0x1f7)]({'id':Y,'cidr':X[ar(0x22a)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x21a)](function(X){const as=ai;console[as(0x1e0)](as(0x229)+X['id']+'\x20CIDR:\x20'+X[as(0x1e1)]+as(0x1f1)+X['az']+as(0x1dc)+X[as(0x234)]);});const W=await Actions[ai(0x1fb)](ai(0x21e))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x234)],Log[at(0x1ff)](at(0x1f3)+p));});if(p==='')throw Log[ai(0x218)](ai(0x1e8));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ai(0x206))||ai(0x1ef),Z=Y['split'](':')[0x0],a0=Y[ai(0x1e3)](':')[0x1];typeof parseInt(Z)===ai(0x208)&&typeof parseInt(a0)===ai(0x208)&&Log['success']('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x218)](a1);}try{const a2=await Actions['ask'](ai(0x1f2))||ai(0x1e6);typeof a2===ai(0x1f0)&&(o=a2);}catch(a3){Log[ai(0x218)](a3);}let x='';try{const a4=await Actions[ai(0x1fc)](ai(0x1e9),![]);a4&&(x=a6f[ai(0x1d9)](i,ai(0x1ec)),Log['notice']('Creating\x20user\x20data\x20file\x20in\x20'+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0x1fc)](ai(0x212)));}catch(a5){Log[ai(0x218)](a5);}try{const a6=JSON[ai(0x1db)](execSync(ai(0x1eb)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x222)]())[0x0][ai(0x236)];Log[ai(0x221)](ai(0x1f8)+n),Log['notice'](ai(0x207)+v+':'+w),Log[ai(0x221)]('Instace\x20Type:\x20'+o),Log[ai(0x221)](ai(0x20c)+r),Log[ai(0x221)]('Security\x20Group:\x20'+m),Log['notice'](ai(0x1da)+a6);if(x){Log[ai(0x221)](ai(0x228)+x);const a8=a6g[ai(0x23d)](x)[ai(0x222)]();Log[ai(0x221)](a8);}const a7=await Actions[ai(0x1fc)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x215)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1dd),'Value':ai(0x1de)},{'Key':'environment','Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1ff)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0x201)](ai(0x230)));}else{Log[ai(0x221)](ai(0x216));const aa=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x21f)](r),f[ai(0x1f5)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ai(0x1fc)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x235)](m);}}catch(ac){Log[ai(0x218)](ac);}}catch(ad){ad&&Log[ai(0x218)](ad),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a7c(){const l=['1615105pNutlN','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','(((.+)+)+)+$','101130QnSyse','maka\x20aws:ckp\x20--env\x20prod','fsi','428347LpSmMB','error','toString','2583702XaayDk','createKeyPair','99CPURem','env','3095970wIJqPQ','search','390454ZnqDiE','\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','4EGooFI','create','create-key-pair','constructor','729155UiOzPr','getConfigFromShorthand','8dSSeuq','apply'];a7c=function(){return l;};return a7c();}const a7j=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x136;let f=c[d];return f;},a7d(a,b);}(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x14e))/0x1+parseInt(g(0x13e))/0x2+parseInt(g(0x138))/0x3+parseInt(g(0x140))/0x4*(parseInt(g(0x148))/0x5)+-parseInt(g(0x13c))/0x6+parseInt(g(0x144))/0x7*(parseInt(g(0x146))/0x8)+-parseInt(g(0x13a))/0x9*(-parseInt(g(0x14b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9ed34));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x137)]()['search'](i(0x14a))[i(0x137)]()[i(0x143)](a7a)[i(0x13d)](i(0x14a));});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a7j(0x141)]({'name':a7j(0x142),'aliases':['ckp'],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a7j(0x14c)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a7j(0x149),'description':a7j(0x13f)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x14d)][k(0x145)](b[k(0x13b)]);c[k(0x139)]({'env':d});}catch(f){f&&Log[k(0x136)](f),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d
|
|
1
|
+
const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0xef))/0x1+parseInt(m(0xec))/0x2+parseInt(m(0xed))/0x3*(parseInt(m(0xf7))/0x4)+parseInt(m(0x100))/0x5+parseInt(m(0xfd))/0x6+-parseInt(m(0x10c))/0x7*(-parseInt(m(0x105))/0x8)+-parseInt(m(0xfc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x23b8b));function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xeb;let f=c[d];return f;},a8d(a,b);}const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xf6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a['toString']()[o(0xf3)](o(0xf9))[o(0xf8)]()[o(0xfa)](a8a)[o(0xf3)](o(0xf9));});a8a();function a8c(){const s=['29548WxVJVx','toString','(((.+)+)+)+$','constructor','ask','828837uNfwoi','146808HLcdoD','List\x20is\x20not\x20all\x20numbers','22,80,443','480020iPMGdo','\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','exit','ec2createSG','create','856VJoigb','Security\x20Group\x20Name:\x20[','csg','Web\x20App','name','getMakaProjectConfig','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','9646rnIYFV','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','81758IlFiXR','9mgnxNe','fsi','92550CHumOM','create-security-group','maka\x20aws:csg','maka\x20aws:create-secuirty-group','search','chooseVPC','forEach','apply'];a8c=function(){return s;};return a8c();}import a8e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8p(0x104)]({'name':a8p(0xf0),'aliases':[a8p(0x107)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a8p(0x10b),'description':a8p(0x101),'examples':[a8p(0xf2),a8p(0xf1)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0xee)][q(0x10a)](),{appName:f}=d,g=await c[q(0xf4)](),h=b[q(0x109)]?b[q(0x109)]:''+f,i=await Actions[q(0xfb)](q(0x106)+h+']')||h,j=await Actions[q(0xfb)](q(0xeb))||q(0xff),k=j['split'](',');k[q(0xf5)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0xfe);}),await c[q(0x103)]({'description':q(0x108),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process[q(0x102)](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a9c(){const k=['create','299648PchMdN','error','953799YiXwJN','18GZFIkx','apply','1718590orhTkL','35XntVgr','348qfChFb','\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','6817qcuujt','50DpdzWx','maka\x20aws:describe-instances','814072ptZFeQ','168114mxQuAC','constructor','describe-instances','(((.+)+)+)+$','80Tfuhdj','ec2describeInstances','exit','331958xlryAo','search'];a9c=function(){return k;};return a9c();}const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0xcb))/0x1*(parseInt(f(0xbc))/0x2)+parseInt(f(0xc4))/0x3+parseInt(f(0xb7))/0x4+-parseInt(f(0xb5))/0x5*(-parseInt(f(0xb8))/0x6)+parseInt(f(0xc8))/0x7*(parseInt(f(0xc2))/0x8)+parseInt(f(0xc5))/0x9*(parseInt(f(0xc7))/0xa)+parseInt(f(0xbf))/0xb*(-parseInt(f(0xc9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x2d1dd));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0xc6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a['toString']()[h(0xc0)](h(0xbb))['toString']()[h(0xb9)](a9a)[h(0xc0)]('(((.+)+)+)+$');});a9a();import a9e 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 a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xb5;let f=c[d];return f;},a9d(a,b);}Command[a9i(0xc1)]({'name':a9i(0xba),'aliases':['di'],'usage':a9i(0xb6),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':a9i(0xca)},async function(){const j=a9i;try{const a=new AWS();a[j(0xbd)]();}catch(b){b&&Log[j(0xc3)](b),process[j(0xbe)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-
|
|
1
|
+
const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x158;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x169))/0x1*(-parseInt(f(0x15c))/0x2)+parseInt(f(0x15d))/0x3+-parseInt(f(0x163))/0x4+-parseInt(f(0x166))/0x5+-parseInt(f(0x15b))/0x6+-parseInt(f(0x161))/0x7*(parseInt(f(0x15e))/0x8)+parseInt(f(0x15a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x91add));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x167)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()[h(0x162)](h(0x160))['toString']()[h(0x165)](a10a)[h(0x162)](h(0x160));});function a10c(){const k=['2021890winMpv','apply','create','11lSgKoy','ec2describeKeys','describe-key-pairs','20172699zjeYvc','4227276GKCpLt','85256UpzEEY','1235163TYHIyT','1524080AFDuhO','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','(((.+)+)+)+$','7AFFyZd','search','1152356GpdeUR','maka\x20aws:describe-key-pairs','constructor'];a10c=function(){return k;};return a10c();}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x168)]({'name':a10i(0x159),'aliases':['dkp'],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'shortDesc':a10i(0x15f),'examples':[a10i(0x164),'maka\x20aws:dkp']},async function(){const j=a10i;try{const a=new AWS();a[j(0x158)]();}catch(b){b&&Log['error'](b),process['exit'](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x143;let f=c[d];return f;},a11d(a,b);}const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=parseInt(l(0x158))/0x1*(parseInt(l(0x14e))/0x2)+-parseInt(l(0x154))/0x3+-parseInt(l(0x157))/0x4*(parseInt(l(0x153))/0x5)+parseInt(l(0x15c))/0x6+parseInt(l(0x163))/0x7+parseInt(l(0x164))/0x8+-parseInt(l(0x145))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x42b9d));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0x144)]()[n(0x15b)]('(((.+)+)+)+$')[n(0x144)]()[n(0x167)](a11a)[n(0x15b)]('(((.+)+)+)+$');});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11c(){const s=['ID:\x20','constructor','\x20SGID:\x20','notice','dsg','Not\x20deleting\x20secuirty\x20group','toString','3185334cPvefb','\x20SG\x20NAME:\x20','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','maka\x20aws:delete-sg','name','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','exit','Deleted\x20','ask','171266fNRUXS','bright','apply','Deleting\x20a\x20','getSecurityGroups','156455erfTYQ','1041405RnligJ','error','appName','40TQRBOb','2pHphHQ','forEach','create','search','2816688fMImoQ','deleteSecurityGroup','maka\x20aws:dsg','isMakaProject','confirm','sgId','success','3701313uwuEnN','942456fBtqQx','getMakaProjectConfig'];a11c=function(){return s;};return a11c();}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[a11o(0x15a)]({'name':'delete-security-group','aliases':[a11o(0x16a)],'usage':a11o(0x148),'validOpts':[],'shortDesc':a11o(0x14a),'examples':[a11o(0x148),a11o(0x15e)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0x15f)]();let d='';if(c){const j=b[p(0x165)]();d=j[p(0x156)];}const {sgList:f}=await a[p(0x152)]();f[p(0x159)](function(k){const q=p;c&&k[q(0x149)]['includes'](d)?Log[q(0x169)]('ID:\x20'+k['id']+q(0x146)+k[q(0x149)]+q(0x168)+k[q(0x161)]):Log[q(0x14f)](q(0x166)+k['id']+q(0x146)+k[q(0x149)]+q(0x168)+k['sgId']);});let g='';const h=await Actions[p(0x14d)](p(0x147));f[p(0x159)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x161)]);});if(!g)throw Log[p(0x155)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x160)](p(0x151)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x15d)](g),Log[p(0x162)](p(0x14c)+g)):Log['error'](p(0x143)),process[p(0x14b)](0x0);}catch(k){k&&Log[p(0x155)](k),process[p(0x14b)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xb3;let f=c[d];return f;},a12d(a,b);}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xca))/0x1*(-parseInt(f(0xc1))/0x2)+parseInt(f(0xbc))/0x3+-parseInt(f(0xb8))/0x4+-parseInt(f(0xc7))/0x5+parseInt(f(0xc4))/0x6+-parseInt(f(0xc6))/0x7+parseInt(f(0xc8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x4144c));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xcc)]()[h(0xb3)]('(((.+)+)+)+$')[h(0xcc)]()[h(0xb7)](a12a)[h(0xb3)](h(0xc0));});a12a();import a12e 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 a12c(){const k=['1698528LAleAZ','reboot-instance','348362BbtHZO','1056840ihfiwV','1420040vNsFps','chooseInstance','1069tQNKmY','create','toString','search','maka\x20aws:reboot-instance','apply','confirm','constructor','1121156LWDOAB','exit','name','error','836055bMPWFz','rbi','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:rbi','(((.+)+)+)+$','130WoCWci','\x20Ready?','instanceId'];a12c=function(){return k;};return a12c();}Command[a12i(0xcb)]({'name':a12i(0xc5),'aliases':[a12i(0xbd)],'usage':a12i(0xb4),'validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a12i(0xb4),a12i(0xbf)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0xc9)]();if(b?.['status']==='running'){const c=await Actions[j(0xb6)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0xba)]+j(0xc2));c&&b[j(0xc3)]?a['ec2rebootInstance']({'instanceId':b[j(0xc3)]}):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0xba)]+'\x20is\x20still\x20running.');}else Log[j(0xbb)](j(0xbe));}catch(d){d&&Log[j(0xbb)](d),process[j(0xb9)](0x1);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x105))/0x1+-parseInt(E(0xeb))/0x2+parseInt(E(0x112))/0x3+parseInt(E(0xe4))/0x4*(parseInt(E(0xf6))/0x5)+parseInt(E(0x10f))/0x6+parseInt(E(0xe2))/0x7*(parseInt(E(0x110))/0x8)+-parseInt(E(0xe1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x2c541));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x109)]()[G(0x10b)]('(((.+)+)+)+$')[G(0x109)]()[G(0xf0)](a13a)['search'](G(0x10a));});function a13c(){const K=['Invalid\x202\x20character\x20country\x20code','\x20for\x20','State\x20[HI]:\x20','warn','Contact\x20Last\x20Name\x20[Person]:\x20','5aSGxNT','RESELLER','Are\x20you\x20sure?','COMPANY','maka\x20aws:register-domain-name','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','checkDomainAvailability','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','maka\x20aws:rdn\x20--domain=example.com','apply','values','+1.5555555556','domain','exit','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','93367IGRWYu','Choose\x20contact\x20type','Person','PUBLIC_BODY','toString','(((.+)+)+)+$','search','ask','create','Do\x20you\x20wish\x20to\x20register\x20','210966sxOVsh','2199448ZKrgzs','\x20/\x20Year)','1011714ubTeFK','Duration\x20in\x20years\x20[1]:\x20','options','OrganizationName','confirm','The\x20domain\x20name:\x20','3464217sQifoO','7riiPBH','contactType','201564QGvdRK','\x20/\x20Year\x20\x0a','rdn','ASSOCIATION','includes','PERSON','My\x20Comanpy,\x20LLC.','449212lossVI','error','+1.5555555555','Auto\x20Renew:\x20','registerDomain','constructor'];a13c=function(){return K;};return a13c();}a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object[H(0x100)](CountryCode)[H(0xe8)](a);}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xdf;let f=c[d];return f;},a13d(a,b);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x10d)]({'name':'register-domain-name','aliases':[a13I(0xe6)],'usage':a13I(0xfa),'requiredOpts':['domain'],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':['maka\x20aws:register-domain-name\x20--domain=example.com',a13I(0xfe)]},async function(a,b){const J=a13I;try{const c=b[J(0x102)],d=new AWS(),{available:f,cost:g}=await d[J(0xfc)](c);if(f&&g){Log['notice'](J(0xe0)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0xf4)]('\x20\x20'+h+'\x20'+i+J(0xe5));const j=await Actions[J(0xdf)](J(0x10e)+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0xe3),'message':J(0x106),'choices':[J(0xe7),J(0xf9),J(0xe9),J(0x108),J(0xf7)]},l=await Actions['ask'](J(0x113))||'1',m=await Actions[J(0x10c)]('Contact\x20First\x20Name\x20[Contact]:\x20')||'Contact',n=await Actions[J(0x10c)](J(0xf5))||J(0x107),{contactType:o}=await Actions[J(0x114)](k),p=await Actions[J(0x10c)](J(0x104))||'123\x20Glorious\x20Way',q=await Actions['ask']('Address\x20Line\x202:\x20'),r=await Actions[J(0x10c)]('Zip\x20Code\x20[96816]:\x20')||'96816',s=await Actions[J(0x10c)](J(0xf3))||'HI',t=await Actions[J(0x10c)]('Country\x20Code\x20[US]:\x20')||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xec)](J(0xf1));const v=await Actions[J(0x10c)](J(0xfd))||J(0xed),w=await Actions['ask']('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x101),x=await Actions[J(0x10c)]('Contact\x20Email\x20[mail@example.com]:\x20')||'mail@example.com',y=await Actions[J(0xdf)](J(0xee)),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(0xe9)){const C=await Actions[J(0x10c)](J(0xfb))||J(0xea);z[J(0x115)]=C;}const A=h||0x0*parseInt(l);Log['notice']('Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'),Log[J(0xf4)](A+'\x20'+i+J(0xf2)+l+'\x20years\x20('+h+'\x20'+i+J(0x111));const B=await Actions[J(0xdf)](J(0xf8));B&&await d[J(0xef)](z,c,parseInt(l),y);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(D){D&&Log[J(0xec)](D),process[J(0x103)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14k=a14d;
|
|
1
|
+
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x1dc))/0x1+parseInt(h(0x1de))/0x2*(-parseInt(h(0x1eb))/0x3)+parseInt(h(0x1db))/0x4+-parseInt(h(0x1e0))/0x5+-parseInt(h(0x1d7))/0x6*(parseInt(h(0x1e7))/0x7)+-parseInt(h(0x1df))/0x8*(parseInt(h(0x1d3))/0x9)+parseInt(h(0x1e9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xa0cdb));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x1d5)]()[j(0x1e1)](j(0x1d9))[j(0x1d5)]()[j(0x1e6)](a14a)[j(0x1e1)](j(0x1d9));});function a14c(){const n=['exit','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','27027RQBMtS','apply','toString','name','516eSjrFr','error','(((.+)+)+)+$','Not\x20deleting\x20keypair','3678252tuqpYi','42824Captzy','confirm','10IascFK','64xNdkXS','2979555ZDXfNt','search','forEach','Deleted\x20','rkp','maka\x20aws:remove-key-pair','constructor','24122WfpVoF','create','10983980OmllIs','Please\x20choose\x20a\x20key\x20to\x20delete:','240117PGcUDh','\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'];a14c=function(){return n;};return a14c();}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-0x1d3;let f=c[d];return f;},a14d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x1e8)]({'name':'remove-key-pair','aliases':[a14k(0x1e4)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a14k(0x1ec),'examples':[a14k(0x1e5),'maka\x20aws:rkp']},async function(){const l=a14k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions['ask'](l(0x1ea));b?.[l(0x1e2)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x1d6)]);});if(!c)throw Log[l(0x1d8)](l(0x1ee));const f=await Actions[l(0x1dd)]('Deleting\x20a\x20'+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a['deleteKeyPair'](c),Log['success'](l(0x1e3)+c)):Log[l(0x1d8)](l(0x1da)),process[l(0x1ed)](0x0);}catch(g){g&&Log[l(0x1d8)](g),process[l(0x1ed)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15o=a15d;
|
|
1
|
+
const a15o=a15d;function a15c(){const q=['success','755864FweLub','toString','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','exit','985128FJUSWs','getMakaProjectConfig','15544629Rmwyvb','(((.+)+)+)+$','create','1826619DNQEpR','privateIp','appName','env','config/ssh.json','getAppConfigPath','join','isFile','stringify','1475537lTACDj','ask','apply','ssh.json','host','inherit','4IUSxgm','12lkrbpP','error','readFileSync','set-host','cat\x20','\x0aSaved\x20host\x20','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','public','maka\x20aws:set-host\x20--env\x20dev','sth','384715kiCCrc','publicIp','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','chooseInstance','\x20IP\x20to\x20','569431zBIOwQ','parse','utf8','search','\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','fsi'];a15c=function(){return q;};return a15c();}(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x130))/0x1+-parseInt(l(0x137))/0x2+-parseInt(l(0x111))/0x3*(parseInt(l(0x120))/0x4)+parseInt(l(0x12b))/0x5*(parseInt(l(0x121))/0x6)+parseInt(l(0x11a))/0x7+-parseInt(l(0x13b))/0x8+parseInt(l(0x13d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x64b41));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x138)]()['search'](n(0x10f))[n(0x138)]()['constructor'](a15a)[n(0x133)](n(0x10f));});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x10f;let f=c[d];return f;},a15d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15o(0x110)]({'name':a15o(0x124),'aliases':[a15o(0x12a)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a15o(0x139),'description':a15o(0x134),'examples':[a15o(0x129),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x135)][p(0x116)](b[p(0x114)]),f=this[p(0x135)][p(0x13c)](),g=await c[p(0x12e)](),h=a15e[p(0x117)](d,p(0x11d));!this['fsi'][p(0x118)](h)&&await this[p(0x135)]['template']({'srcPath':p(0x115),'destPath':h,'context':{'app':f[p(0x113)]},'config':f});const i=JSON[p(0x131)](a15f[p(0x123)](h,p(0x132))),j=await Actions[p(0x11b)](p(0x12d))||'public';if(j){if(j===p(0x128)||j==='private'){if(j===p(0x128))i[p(0x11e)]=g?.[p(0x12c)];else j==='private'&&(i['host']=g?.[p(0x112)]);}else throw p(0x127);}else i['host']=g?.[p(0x112)];a15f['writeFileSync'](a15e[p(0x117)](d,'ssh.json'),JSON[p(0x119)](i,null,0x2)),execSync(p(0x125)+a15e[p(0x117)](d,p(0x11d)),{'stdio':p(0x11f)}),Log[p(0x136)](p(0x126)+j+p(0x12f)+d+a15e['sep']+p(0x11d));}catch(k){k&&Log[p(0x122)](k),process[p(0x13a)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=parseInt(f(0x1a2))/0x1+-parseInt(f(0x1b8))/0x2*(-parseInt(f(0x1a5))/0x3)+parseInt(f(0x19c))/0x4+parseInt(f(0x1ac))/0x5*(-parseInt(f(0x1ab))/0x6)+-parseInt(f(0x19a))/0x7*(-parseInt(f(0x19d))/0x8)+-parseInt(f(0x1b4))/0x9+parseInt(f(0x19e))/0xa*(-parseInt(f(0x1a1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x8eee4));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x1a3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x1a4)]()[h(0x1af)](h(0x1aa))[h(0x1a4)]()[h(0x1b7)](a16a)[h(0x1af)](h(0x1aa));});a16a();import a16e from'./aws.command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x199;let f=c[d];return f;},a16d(a,b);}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';function a16c(){const k=['constructor','1816526CjTsNG','\x20Ready?','14snPvYQ','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','3506744IdcEee','3046448dApLUb','78940LlFXLc','status','\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','1881bQvWWJ','691251ydvlQN','apply','toString','3eOTHGl','running','chooseInstance','maka\x20aws:terminate-instance','Terminate\x20an\x20EC2\x20instance','(((.+)+)+)+$','12lKYwhX','2688745BEjYEj','error','terminate-instance','search','instanceId','maka\x20aws:ti','confirm','name','2042964AfKcZA','exit','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'];a16c=function(){return k;};return a16c();}Command['create']({'name':a16i(0x1ae),'aliases':['ti'],'usage':a16i(0x1a8),'validOpts':[],'shortDesc':a16i(0x1a9),'description':a16i(0x1a0),'examples':[a16i(0x1a8),a16i(0x1b1)]},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x1a7)]();if(b?.[j(0x1b0)]&&b?.[j(0x19f)]===j(0x1a6)){const c=await Actions[j(0x1b2)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+j(0x199));c?a['ec2terminateInstance']({'instanceId':b[j(0x1b0)]}):Log[j(0x1ad)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x1b3)]+j(0x19b));}else Log[j(0x1ad)](j(0x1b6));}catch(d){d&&Log[j(0x1ad)](d),process[j(0x1b5)](0x1);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a17d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=parseInt(f(0x159))/0x1+parseInt(f(0x162))/0x2*(-parseInt(f(0x163))/0x3)+parseInt(f(0x15d))/0x4+-parseInt(f(0x15a))/0x5+parseInt(f(0x15f))/0x6+-parseInt(f(0x15b))/0x7+parseInt(f(0x15e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x19e98));function a17c(){var h=['538806VFYEJG','constructor','(((.+)+)+)+$','48144NFXBmu','9qnnnKn','search','8987LmfyXc','637290DMfcsS','1108891dtodgZ','toString','565444YNaaHV','1792592SevwzS'];a17c=function(){return h;};return a17c();}var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var g=a17d;return a17a[g(0x15c)]()[g(0x158)]('(((.+)+)+)+$')['toString']()[g(0x160)](a17a)['search'](g(0x161));});a17a();function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x158;var f=c[d];return f;},a17d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=parseInt(n(0x11a))/0x1*(-parseInt(n(0x11d))/0x2)+-parseInt(n(0x122))/0x3*(-parseInt(n(0x11b))/0x4)+-parseInt(n(0x119))/0x5+parseInt(n(0x133))/0x6*(parseInt(n(0x12b))/0x7)+-parseInt(n(0x123))/0x8+-parseInt(n(0x12c))/0x9*(-parseInt(n(0x116))/0xa)+parseInt(n(0x114))/0xb*(-parseInt(n(0x124))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xa370e));function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x10c;let f=c[d];return f;},a18d(a,b);}const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0x127)]()['search']('(((.+)+)+)+$')[p(0x127)]()[p(0x111)](a18a)[p(0x121)](p(0x126));});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a18c(){const t=['This\x20project\x27s\x20meteor\x20version\x20(','existsSync','1053668CbgJit','create','10HnNwzV','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','invokeMeteorCommand','1063380euYkdM','1JKvoax','75484hBlhKZ','--force','2074652oHdmXH','force','error','app.tar.gz','search','207KQWjRs','8921976IMbeRo','84qQCQiD','checkMeteorPackage','(((.+)+)+)+$','toString','Aborted.','maka\x20build','getGlobalMeteorVersion','539KPnkIZ','11632941hfXOcw','build','exit','fsi','forEach','\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','confirm','86538ERORSa','join','pathFromProject','apply',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','--release','constructor'];a18c=function(){return t;};return a18c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18q(0x115)]({'name':'build','usage':'maka\x20build','validOpts':[a18q(0x11e)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a18q(0x131),'examples':[a18q(0x129)]},async function(a,b){const r=a18q;try{await this[r(0x12f)][r(0x125)]('autoupdate',{'shouldInstall':!![]});const c=b[r(0x11e)];if(!c){const g=this[r(0x12f)][r(0x12a)](),h=this[r(0x12f)]['getProjectMeteorVersion'](),i=a18g['gt'](g,h);if(i){const j=await Actions['confirm'](r(0x112)+h+r(0x10f)+g+').\x20Update?');j&&this[r(0x12f)][r(0x118)]('update',[r(0x110),g]);}}const d=[this[r(0x12f)][r(0x10d)]({'pathParts':[r(0x12d)]})]['concat'](process['argv']['slice'](0x3)),f=a18e[r(0x10c)](this['fsi']['pathFromProject']({}),r(0x12d),r(0x120));if(a18f[r(0x113)](f)){const k=c??await Actions[r(0x132)](r(0x117));if(!k)throw Log[r(0x11f)](r(0x128));}d[r(0x130)]((l,m)=>{const s=r;l===s(0x11c)&&d['splice'](m,0x2);}),this[r(0x12f)]['invokeMeteorCommand'](r(0x12d),d);}catch(l){console[r(0x11f)](l),process[r(0x12e)](0x0);}});export default BuildCommand;
|