@maka/maka-cli 4.6.19 → 4.6.20
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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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/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 -0
- package/bundle/obf/src/generators/kits/kit.js +1 -0
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -0
- package/bundle/obf/src/generators/kits/mui/layout.mui.gen.js +1 -0
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -0
- 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/src/generators/kit.js +0 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
3
|
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
-
"version": "4.6.
|
|
4
|
+
"version": "4.6.20",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
7
|
"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 m=a0d,c=a();while(!![]){try{const d=-parseInt(m(0x211))/0x1*(parseInt(m(0x230))/0x2)+-parseInt(m(0x23f))/0x3+-parseInt(m(0x227))/0x4*(parseInt(m(0x21e))/0x5)+-parseInt(m(0x215))/0x6*(-parseInt(m(0x22a))/0x7)+-parseInt(m(0x202))/0x8+-parseInt(m(0x22c))/0x9*(-parseInt(m(0x21a))/0xa)+parseInt(m(0x220))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x8181c));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x1f8)]()[o(0x234)](o(0x23e))[o(0x1f8)]()[o(0x20f)](a0a)[o(0x234)](o(0x23e));});a0a();function a0c(){const y=['run','683630nyCdcj','maybeProxyCommandToMeteor','usage','unshift','5oVsLlI','processAndRunCommand','15179494BhHqDP','fsi','find','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','bind','push','getGlobalConfig','518884tvfATB','Too\x20many\x20arguments','tableList','5089UcetvI','Name','27VFCxJQ','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','mustHaveMeteorInstalled','slice','22674MkxPxP','light','Alias','mustBeInMakaProject','search','bright','sort','maxOptsLength','addCommand','generate','Command.create\x20requires\x20a\x20handler\x20function!','function','pallet','keys','(((.+)+)+)+$','523383lpIGGP','exit','forEach','DARK','Command\x20not\x20found','Sub-Commands:','validateMakaSubscription','Command\x20format\x20is\x20incorrect','join','toString','name','length','setColorMode','minOptsLength','addCommand\x20requires\x20a\x20Command\x20instance','invoke','number','assign','Too\x20few\x20options','2518408PfAcvP','Command\x20requires\x20a\x20handler\x20function','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','header','match','apply','_commands','options','Command\x20','minArgLength','Too\x20many\x20options','error','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','constructor','maxArgLength','39bUfTjN','shortDesc','validateMakaProject','\x20not\x20found','54VyeMCQ','There\x20is\x20no\x20Meteor\x20application\x20here','play','notice'];a0c=function(){return y;};return a0c();}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0p(0x208)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x204));if(!a[q(0x1f9)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==q(0x23b))throw new Error(q(0x203));this[q(0x209)]=Object[q(0x200)]({},a),this['name']=this[q(0x209)]['name'],this[q(0x208)]=[],this['_handler']=b[q(0x224)](this);}static['create'](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x23b))throw new Error(r(0x23a));const d=new Command(a,b);return c=c||a0f,Object[r(0x200)](d,{'parent':c?.[r(0x209)]?.[r(0x1f9)]}),c['addCommand'](d),d;}[a0p(0x238)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0x1fd));this[s(0x208)]['push'](a);}async[a0p(0x219)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x221)][t(0x226)](),d=c[t(0x23c)]===t(0x231)?ColorMode['LIGHT']:ColorMode[t(0x242)];Log[t(0x1fb)](d),await this[t(0x1f5)](this);}catch(f){Log[t(0x20d)](f),process[t(0x240)](0x0);}await this['invoke'](a,b);}catch(g){process[t(0x240)](0x1);}}async[a0p(0x1fe)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0x209)];try{if(this[u(0x209)]['name']!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x1fa)]===0x0)&&this[u(0x208)]['length']>=0x0,g=b['help']||b['h'];if(f&&g){if(this[u(0x208)][u(0x1fa)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0x209)][u(0x233)]){const h=this[u(0x213)]();if(!h)throw new MustBeInProjectError();}if(this[u(0x209)][u(0x22e)]){const i=this['validateMeteorInstall']();if(!i)throw new NoMeteorFoundError();}if(typeof this[u(0x209)][u(0x20b)]===u(0x1ff)){if(a[u(0x1fa)]<this[u(0x209)][u(0x20b)]){Log[u(0x20d)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[u(0x209)][u(0x210)]===u(0x1ff)){if(a[u(0x1fa)]>=this[u(0x209)][u(0x210)]){Log[u(0x20d)](u(0x228));throw new UsageError();}}if(typeof this[u(0x209)][u(0x1fc)]==='number'){if(Object[u(0x23d)](b)[u(0x1fa)]<this['options'][u(0x1fc)]){Log[u(0x20d)](u(0x201));throw new UsageError();}}if(typeof this[u(0x209)][u(0x237)]===u(0x1ff)){if(Object['keys'](b)['length']>=this[u(0x209)]['maxOptsLength']){Log[u(0x20d)](u(0x20c));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[u(0x209)]),_prevCmd=a[0x0];}await this['_handler']['call'](this,a,b);}catch(j){Log[u(0x21c)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log[u(0x218)](u(0x1f4)),this['tableList'](this['_commands']),Log[u(0x205)](u(0x20e));else{if(j instanceof MustBeInProjectError)Log['error'](u(0x223));else{if(j instanceof NoMeteorFoundError)Log[u(0x20d)](u(0x22d)),Log[u(0x218)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else j instanceof NoMeteorAppFoundError?Log[u(0x20d)](u(0x216)):console[u(0x20d)](j);}}process[u(0x240)](0x1);}}[a0p(0x229)](a){const v=a0p,b=new a0e({});b['push']([v(0x22b),v(0x232),'Description']),a[v(0x236)]()[v(0x241)](c=>{const w=v;c[w(0x1f9)]!=='murder'&&c[w(0x1f9)]!==w(0x217)&&b[w(0x225)]([c['name'],c['aliases'](),c[w(0x212)]()]);}),Log[v(0x235)](b[v(0x1f8)]());}async[a0p(0x21f)](a,b=[],c={}){const x=a0p;try{const d=a?.['split'](':');if(!d||d[x(0x1fa)]===0x0)throw x(0x1f6);if(d[0x0]==='generate'||d[0x0]==='g'&&d[x(0x1fa)]>0x1){const h=this[x(0x208)][x(0x222)](j=>j[x(0x206)](x(0x239)));if(!h)throw x(0x1f3);await this[x(0x1f5)](h);const i=d[x(0x22f)](0x1)[x(0x1f7)](':');b[x(0x21d)](i),await h[x(0x219)](b,c);return;}let f=this['_commands'],g;for(const j of d){g=f[x(0x222)](k=>k[x(0x206)](j));if(!g)try{this[x(0x221)][x(0x21b)]();}catch(k){throw x(0x20a)+j+x(0x214);}g&&(await this['validateMakaSubscription'](g),f=g[x(0x208)]);}if(g)await g['run'](b,c);else throw x(0x1f3);}catch(l){Log[x(0x20d)](l),process[x(0x240)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x118))/0x1+-parseInt(f(0x11a))/0x2+parseInt(f(0x117))/0x3*(-parseInt(f(0x11c))/0x4)+-parseInt(f(0x11f))/0x5*(-parseInt(f(0x11e))/0x6)+parseInt(f(0x116))/0x7+parseInt(f(0x115))/0x8*(parseInt(f(0x11b))/0x9)+-parseInt(f(0x114))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x82553));var a1b=(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;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0x11d)]()['search']('(((.+)+)+)+$')[g(0x11d)]()['constructor'](a1a)[g(0x119)](g(0x120));});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';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x114;var f=c[d];return f;},a1d(a,b);}function a1c(){var h=['(((.+)+)+)+$','5681990Jweihy','3957432ToGVHB','5969796LOTJqc','57846kxwUoe','138539udXJLn','search','1631662tLbOTV','18wFCEHZ','116ZpEUqm','toString','12dXruLA','1240815VvXERZ'];a1c=function(){return h;};return a1c();}import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./ai.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2m=a2d;
|
|
1
|
+
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x164))/0x1+parseInt(h(0x186))/0x2*(parseInt(h(0x16e))/0x3)+-parseInt(h(0x171))/0x4+parseInt(h(0x166))/0x5+-parseInt(h(0x16c))/0x6+parseInt(h(0x185))/0x7*(parseInt(h(0x17f))/0x8)+-parseInt(h(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x92266));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x179)](j(0x17a))['toString']()['constructor'](a2a)[j(0x179)](j(0x17a));});a2a();function a2c(){const o=['text','2244680MmpLZd','error','choices','log','message','close','6749310pYXAkj','952209iyqIZh','433725TyeNRr','trim','openapikey','3991116CrUoft','create','cert','exit','openai','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','ChatGPT\x20style\x20AI\x20interface','You:\x20','search','(((.+)+)+)+$','notice','bright','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','question','16fGBRDO','data','fsi','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','stdout','askGPT','3809169gcTLVC','2nIFdoY','apply','cacert','toLowerCase','1145250bVVzlZ'];a2c=function(){return o;};return a2c();}function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x162;let f=c[d];return f;},a2d(a,b);}import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process['stdin'],'output':process[k(0x183)]});c[k(0x17e)](k(0x178),async d=>{const l=k;if(d[l(0x163)]()==='exit'){c[l(0x16b)]();return;}try{const e=await HTTPS[l(0x184)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0x180)]);if(f['error'])throw new Error(f[l(0x167)][l(0x16a)]);Log[l(0x17c)]('GPT:\x20'+f?.[l(0x168)][0x0]?.[l(0x165)][l(0x16f)]());}catch(g){Log[l(0x167)](g),process[l(0x174)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x172)]({'name':'ai','description':a2m(0x177),'validOpts':['cacert','openapikey'],'shortDesc':a2m(0x177),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x162)]&&(this['fsi']['isFile'](b['cacert'])?(c=b[n(0x162)],Log['notice']('Using\x20CA\x20Cert\x20'+c)):Log[n(0x167)](n(0x182)+c));const d=await this[n(0x181)]['getGlobalConfig']();if(d['cert']){if(this[n(0x181)]['isFile'](d[n(0x173)]))c=d[n(0x173)];else throw Log[n(0x167)](n(0x17d)+c);}let f='';if(b['openapikey'])f=b[n(0x170)],Log[n(0x17b)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d['openai'])f=d[n(0x175)];else throw Log[n(0x167)](n(0x176));}console[n(0x169)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x167)](g),process[n(0x174)](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(0x169))/0x1*(-parseInt(f(0x16b))/0x2)+parseInt(f(0x175))/0x3+-parseInt(f(0x16d))/0x4+-parseInt(f(0x173))/0x5+-parseInt(f(0x16c))/0x6+parseInt(f(0x16f))/0x7*(-parseInt(f(0x16e))/0x8)+parseInt(f(0x172))/0x9*(parseInt(f(0x16a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x45650));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x171)]()[h(0x174)]('(((.+)+)+)+$')[h(0x171)]()[h(0x168)](a3a)['search'](h(0x167));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x167;var f=c[d];return f;},a3d(a,b);}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';function a3c(){var i=['18890NvvLmD','1285410ozMtZD','2267520zsrDJX','8fYKKFf','1399349xKfVCD','apply','toString','10719bWpDPp','932360pbqdpu','search','833457OtttpU','(((.+)+)+)+$','constructor','48ZkQgxA','6050wecdQp'];a3c=function(){return i;};return a3c();}import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a4c(){const j=['create','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','310040hZmZcE','maka\x20aws:<sub-command>','819twCzUL','constructor','10BdUVGa','search','toString','136310eRrdoZ','992451suHjGq','110453PkbTEH','534822baWkLx','8PgtfbO','1019264EuDHGT','apply','119176GAxMGI','(((.+)+)+)+$'];a4c=function(){return j;};return a4c();}const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x18d))/0x1*(parseInt(f(0x190))/0x2)+-parseInt(f(0x18a))/0x3+-parseInt(f(0x18e))/0x4+-parseInt(f(0x198))/0x5*(-parseInt(f(0x18c))/0x6)+-parseInt(f(0x18b))/0x7+-parseInt(f(0x194))/0x8+parseInt(f(0x196))/0x9*(parseInt(f(0x19b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x49b00));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x19a)]()[h(0x199)](h(0x191))['toString']()[h(0x197)](a4a)['search'](h(0x191));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x18a;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x192)]({'name':'aws','usage':a4i(0x195),'validOpts':[],'isPro':!![],'shortDesc':a4i(0x193),'description':'\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'},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x96))/0x1+parseInt(i(0x9a))/0x2+parseInt(i(0x8f))/0x3*(-parseInt(i(0x98))/0x4)+-parseInt(i(0x86))/0x5+-parseInt(i(0x83))/0x6*(-parseInt(i(0x8d))/0x7)+-parseInt(i(0x9b))/0x8*(parseInt(i(0x8e))/0x9)+parseInt(i(0x8a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x924b3));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a['toString']()[k(0x88)](k(0x93))[k(0x92)]()[k(0x9d)](a5a)[k(0x88)](k(0x93));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x81;let f=c[d];return f;},a5d(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[a5l(0x9c)]({'name':a5l(0x89),'aliases':[a5l(0x9e)],'usage':a5l(0x81),'requiredOpts':[a5l(0x90)],'validOpts':[],'shortDesc':a5l(0x84),'examples':[a5l(0x8c),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a5l;try{const c=b['domain'],d=new AWS();d[m(0x85)](c);const f=await Actions[m(0x82)](m(0xa0));if(f){const g=await d[m(0x94)]();if(g?.['id']){if(!g[m(0x91)])throw Log[m(0x87)](m(0x8b));d[m(0x97)](g['id'],g[m(0x91)],c);}else throw Log[m(0x87)](m(0x99));}}catch(h){console[m(0x87)](h),process[m(0x95)](0x0);}},a5e);function a5c(){const n=['4184uXanVl','create','constructor','chz','apply','Set\x20hosted\x20zone\x20to\x20an\x20instance?','maka\x20aws:create-hosted-zone','confirm','12jvhocV','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','route53CreateHostedZone','5592180iMmnys','error','search','create-hosted-zone','11077620mKATQX','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','maka\x20aws:create-hosted-zone\x20--domain=example.com','4028311kwKPQK','18171AWrCnf','371394ZPfaVk','domain','publicIp','toString','(((.+)+)+)+$','chooseInstance','exit','361500WmwaLb','linkEC2ToRoute53','12WceCkl','Instance\x20not\x20found','1049556QPVeCc'];a5c=function(){return n;};return a5c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x101))/0x1*(parseInt(ae(0x11c))/0x2)+-parseInt(ae(0xf3))/0x3+parseInt(ae(0x10d))/0x4*(parseInt(ae(0x127))/0x5)+-parseInt(ae(0x129))/0x6+parseInt(ae(0x116))/0x7*(-parseInt(ae(0x12e))/0x8)+parseInt(ae(0xdf))/0x9+-parseInt(ae(0xde))/0xa*(-parseInt(ae(0x12f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x9294a));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a['toString']()[ag(0xfe)](ag(0xf5))[ag(0x119)]()[ag(0x128)](a6a)[ag(0xfe)](ag(0xf5));});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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xc6;let f=c[d];return f;},a6d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a6c(){const au=['\x20SGID:\x20','**\x20Available\x20key-pairs\x20**','ImageID:','confirm','name','4RgzmLz','maka-cli','No\x20instance\x20has\x20been\x20created.','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','cidr','maka\x20aws:create-instance\x20--env\x20dev','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x20CIDR:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','41965DfAJAl','desc','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','toString','create','t3.micro','2RailhX','amiId','Please\x20choose\x20a\x20key\x20to\x20use:\x20','\x20AMIID:\x20','ID:\x20','alias','success','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=*','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Setting\x20the\x20key-pair\x20to:\x20','\x20AZONE:\x20','772385toSrnt','constructor','5291754HOogzW','forEach','ec2describeKeys','\x20:\x20','createFile','856ljmnWs','420167lqtxqv','isFile','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Setting\x20SG\x20ID\x20to:\x20','getConfigPath','Would\x20you\x20like\x20to\x20include\x20user\x20data?','maka\x20aws:create-instance','**\x20Available\x20AMIs\x20**','amazon','date','error','ec2createSG','cider','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','getTime','apply','fsi','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','createKeyPair','Desc','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SG\x20NAME:\x20','Security\x20Group\x20Name:\x20[','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','parse','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Remove\x20the\x20keypair\x20','number','getProjectConfig','Instace\x20Type:\x20','created-by','Subnet:\x20','getSecurityGroups','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','630MUuyYr','4378221kkiVRf','Setting\x20Subnet\x20ID\x20to\x20','\x20SUBNETID:\x20','ask','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','22,80,443','\x20DESCRIPTION:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','subnetId','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','sgId','split','bright','Create\x20new\x20AWS\x20instance','subnet','string','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','env','getConfigFromShorthand','exit','1080540BwbBWb','sort','(((.+)+)+)+$','Instance\x20Count:\x20','push','Remove\x20the\x20security\x20group\x20','Web\x20App','user-data','ec2create','notice','chooseVPC','search','Creating\x20user\x20data\x20file\x20in\x20','User\x20Data:','563359vqqBIL','EC2\x20Name:\x20[','log','1:1','environment','Security\x20Group:\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'];a6c=function(){return au;};return a6c();}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x11a)]({'name':'create-instance','aliases':['ci'],'usage':a6ah(0x135),'examples':[a6ah(0x112),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0xf0)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ah(0xec),'description':a6ah(0x107)},async function(a,b){const ai=a6ah;try{const c=this[ai(0xcc)][ai(0xd8)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xcc)][ai(0xf1)](b[ai(0xf0)]),i=this[ai(0xcc)][ai(0x133)](h),j=g+'-'+h,k=await Actions[ai(0xe2)](ai(0x102)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x10b)](ai(0xd3),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xce)]({'env':h});r=y,s=z,Log[ai(0x122)](ai(0x125)+r);}else try{Log['notice'](ai(0x109));const A=r?r:k,B=await d[ai(0x12b)]({'suggestion':A}),C=await Actions[ai(0xe2)](ai(0x11e))||'-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(0xfc)](ai(0x10f));return;}B?.[ai(0x12a)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x10c)],Log[aj(0x122)](aj(0x125)+r));});}catch(D){Log[ai(0xc6)](D);}l=await d[ai(0xfd)]();const t=await Actions[ai(0x10b)](ai(0xdd),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0xe2)](ai(0xd2)+k+']')||k;const F=await Actions[ai(0xe2)](ai(0xd5))||ai(0xe4),G=F[ai(0xea)](',');await d[ai(0xc7)]({'description':ai(0xf9),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xdc)](u);if(I===''){Log['notice']('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x12a)](function(L){const ak=ai;L[ak(0x10c)]===u?Log[ak(0xfc)](ak(0x120)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x10c)]+ak(0x108)+L[ak(0xe9)]):Log[ak(0xeb)](ak(0x120)+L['id']+ak(0xd1)+L['name']+'\x20SGID:\x20'+L['sgId']);});const K=await Actions['ask'](ai(0xe8)+H+']\x20')||H[ai(0x119)]();J[ai(0x12a)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log['success'](al(0x132)+m+'\x0a'));});}else m=I,Log[ai(0x122)](ai(0x132)+m+'\x0a');if(m==='')throw Log[ai(0xc6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0xc6)](L);}try{const M=0x7e6;Log[ai(0xfc)](ai(0x136));const N=execSync(ai(0x123)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')[ai(0x119)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x12a)](function(S){const am=ai;if(S[am(0x121)]===am(0x137)){const T=S[am(0xcf)][am(0xea)]('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0xcf)],'date':T});}}),P[ai(0xf4)](function(S,T){const an=ai;return new Date(T[an(0x138)])['getTime']()-new Date(S[an(0x138)])[an(0xca)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0xf7)]({'id':T,'amiId':S[ao(0x11d)],'desc':S['desc']});}),Q[ai(0x12a)](function(S){const ap=ai;console[ap(0x103)](ap(0x120)+S['id']+ap(0x11f)+S['amiId']+ap(0xe5)+S[ap(0x117)]);});const R=await Actions[ai(0xe2)](ai(0xd0))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x11d)],Log[aq(0x122)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x12c)+S[aq(0x117)]));});if(n==='')throw Log[ai(0xc6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log['error'](S);}try{Log[ai(0xfc)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x115))['toString'](),U=JSON[ai(0xd4)](T),V=[];U[ai(0x12a)](function(X,Y){const ar=ai;V[ar(0xf7)]({'id':Y,'cidr':X[ar(0xc8)],'az':X['az'],'subnetId':X[ar(0xe7)]});}),V['forEach'](function(X){const as=ai;console[as(0x103)](as(0x120)+X['id']+as(0x114)+X[as(0x111)]+as(0x126)+X['az']+as(0xe1)+X[as(0xe7)]);});const W=await Actions['ask'](ai(0xe6))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log[at(0x122)](at(0xe0)+p));});if(p==='')throw Log['error'](ai(0x131));}catch(X){Log[ai(0xc6)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xe2)](ai(0x110))||ai(0x104),Z=Y[ai(0xea)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0xd7)&&Log['success'](ai(0x118)+Z+':'+a0);}catch(a1){Log[ai(0xc6)](a1);}try{const a2=await Actions[ai(0xe2)](ai(0x113))||ai(0x11b);typeof a2===ai(0xee)&&(o=a2);}catch(a3){Log[ai(0xc6)](a3);}let x='';try{const a4=await Actions[ai(0x10b)](ai(0x134),![]);a4&&(x=a6f['join'](i,ai(0xfa)),Log['notice'](ai(0xff)+x),await this[ai(0xcc)][ai(0x12d)]({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0xc6)](a5);}try{const a6=JSON[ai(0xd4)](execSync(ai(0xc9)+p+ai(0xe3))['toString']())[0x0][ai(0xed)];Log[ai(0xfc)](ai(0x10a)+n),Log['notice'](ai(0xf6)+v+':'+w),Log[ai(0xfc)](ai(0xd9)+o),Log[ai(0xfc)]('Key-Pair:\x20'+r),Log[ai(0xfc)](ai(0x106)+m),Log['notice'](ai(0xdb)+a6);if(x){Log['notice'](ai(0x100)+x);const a8=a6g['readFileSync'](x)[ai(0x119)]();Log[ai(0xfc)](a8);}const a7=await Actions[ai(0x10b)](ai(0x124));if(a7){const a9=await d[ai(0xfb)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xda),'Value':ai(0x10e)},{'Key':ai(0x105),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x122)](ai(0xcd)),Log[ai(0xeb)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0xfc)](ai(0xef));const aa=await Actions[ai(0x10b)](ai(0xd6)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x130)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ai(0x10b)](ai(0xf8)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console[ai(0x103)](ac),Log[ai(0xc6)](ac);}}catch(ad){console[ai(0xc6)](ad),process[ai(0xf2)](0x0);}},a6e);
|
|
1
|
+
const a6ag=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xc3;let f=c[d];return f;},a6d(a,b);}function a6c(){const at=['environment','(((.+)+)+)+$','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','bright','Instace\x20Type:\x20','Setting\x20AMI\x20ID\x20to\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Name','alias','818043uIbSqX','*\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','Setting\x20Subnet\x20ID\x20to\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=*','sgId','subnetId','No\x20instance\x20has\x20been\x20created.','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','5583984wclCgq','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x20SUBNETID:\x20','ImageID:','162gzqVBS','1224125fBEvAc','sort','notice','\x20DESCRIPTION:\x20','split','4lsNtio','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','1908006ttuaCT','name','created-by','confirm','Creating\x20user\x20data\x20file\x20in\x20','\x20SG\x20NAME:\x20','617840QNLfKT','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','**\x20Available\x20Subnets\x20**','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Create\x20new\x20AWS\x20instance','7HgMkrX','amazon','forEach','number','push','Desc','getConfigFromShorthand','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Key-Pair:\x20','EC2\x20Name:\x20[','create-instance','isFile','maka\x20aws:create-instance\x20--env\x20dev','date','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','\x20AZONE:\x20','cidr','createKeyPair','subnet','Security\x20Group\x20Name:\x20[','fsi','getTime','ask','user-data','\x20SGID:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','cider','Setting\x20the\x20key-pair\x20to:\x20','ec2describeKeys','24673792PDIfwg','env','join','1:1','ID:\x20','parse','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','amiId','\x20:\x20','success','create','log','getConfigPath','Setting\x20SG\x20ID\x20to:\x20','error','getSecurityGroups','readFileSync','maka-cli','772CxuFpr','search','toString','desc','1526qMnGtd','Security\x20Group:\x20','chooseVPC','\x20CIDR:\x20'];a6c=function(){return at;};return a6c();}(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0xe9))/0x1*(parseInt(ae(0xed))/0x2)+parseInt(ae(0xfa))/0x3*(parseInt(ae(0x10c))/0x4)+-parseInt(ae(0x107))/0x5+-parseInt(ae(0x111))/0x6*(parseInt(ae(0x11d))/0x7)+parseInt(ae(0x102))/0x8+-parseInt(ae(0x106))/0x9*(parseInt(ae(0x117))/0xa)+parseInt(ae(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe7e11));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const af=a6d;return a6a[af(0xeb)]()[af(0xea)](af(0xf2))[af(0xeb)]()['constructor'](a6a)[af(0xea)]('(((.+)+)+)+$');});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';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ag(0xe1)]({'name':a6ag(0xc3),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ag(0xc5),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0xd8)}],'validOpts':[],'shortDesc':a6ag(0x11c),'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 ah=a6ag;try{const c=this[ah(0xcd)]['getProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ah(0x123)](b['env']),i=this[ah(0xcd)][ah(0xe3)](h),j=g+'-'+h,k=await Actions[ah(0xcf)](ah(0x127)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x114)](ah(0x11b),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0xca)]({'env':h});r=y,s=z,Log[ah(0xe0)](ah(0xd5)+r);}else try{Log[ah(0x109)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ah(0xd6)]({'suggestion':A}),C=await Actions[ah(0xcf)](ah(0x10d))||'-1';if(parseInt(C)<0x0){Log[ah(0xe5)]('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(0x109)](ah(0x100));return;}B?.[ah(0x11f)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x112)],Log[ai(0xe0)](ai(0xd5)+r));});}catch(D){Log[ah(0xe5)](D);}l=await d['chooseVPC']();const t=await Actions['confirm'](ah(0x118),!![]);let u;if(t){const E=l===''?await d[ah(0xef)]():l;u=await Actions['ask'](ah(0xcc)+k+']')||k;const F=await Actions[ah(0xcf)](ah(0x10e))||'22,80,443',G=F['split'](',');await d['ec2createSG']({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ah(0xe6)](u);if(I===''){Log[ah(0x109)]('**\x20Available\x20Security\x20Groups\x20**'),J[ah(0x11f)](function(L){const aj=ah;L[aj(0x112)]===u?Log[aj(0x109)](aj(0xdb)+L['id']+aj(0x116)+L[aj(0x112)]+aj(0xd1)+L[aj(0xfe)]):Log[aj(0xf4)](aj(0xdb)+L['id']+aj(0x116)+L[aj(0x112)]+aj(0xd1)+L['sgId']);});const K=await Actions[ah(0xcf)](ah(0x11a)+H+']\x20')||H[ah(0xeb)]();J[ah(0x11f)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0xfe)],Log[ak(0xe0)](ak(0xe4)+m+'\x0a'));});}else m=I,Log[ah(0xe0)](ah(0xe4)+m+'\x0a');if(m==='')throw Log[ah(0xe5)](ah(0xdd));}catch(L){Log[ah(0xe5)](L);}try{const M=0x7e6;Log[ah(0x109)]('**\x20Available\x20AMIs\x20**');const N=execSync(ah(0xfd)+M+ah(0xfb))['toString'](),O=JSON[ah(0xdc)](N),P=[],Q=[];O[ah(0x11f)](function(S){const al=ah;if(S[al(0xf9)]===al(0x11e)){const T=S['Desc'][al(0x10b)]('build\x20on\x20')[0x1];P[al(0x121)]({'amiId':S['ID'],'desc':S[al(0x122)],'date':T});}}),P[ah(0x108)](function(S,T){const am=ah;return new Date(T[am(0xc6)])[am(0xce)]()-new Date(S[am(0xc6)])['getTime']();}),P[ah(0x11f)](function(S,T){const an=ah;Q[an(0x121)]({'id':T,'amiId':S[an(0xde)],'desc':S[an(0xec)]});}),Q['forEach'](function(S){const ao=ah;console['log'](ao(0xdb)+S['id']+'\x20AMIID:\x20'+S[ao(0xde)]+ao(0x10a)+S['desc']);});const R=await Actions['ask'](ah(0x101))||'0';Q[ah(0x11f)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0xde)],Log[ap(0xe0)](ap(0xf6)+n+ap(0xdf)+S[ap(0xec)]));});if(n==='')throw Log['error'](ah(0xdd));}catch(S){Log[ah(0xe5)](S);}try{Log['notice'](ah(0x119));const T=execSync(ah(0xd3))['toString'](),U=JSON[ah(0xdc)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V[aq(0x121)]({'id':Y,'cidr':X[aq(0xd4)],'az':X['az'],'subnetId':X['subnetId']});}),V[ah(0x11f)](function(X){const ar=ah;console[ar(0xe2)](ar(0xdb)+X['id']+ar(0xf0)+X[ar(0xc9)]+ar(0xc8)+X['az']+ar(0x104)+X[ar(0xff)]);});const W=await Actions['ask'](ah(0x125))||'0';V[ah(0x11f)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0xff)],Log[as(0xe0)](as(0xfc)+p));});if(p==='')throw Log[ah(0xe5)](ah(0xdd));}catch(X){Log[ah(0xe5)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0xf3))||ah(0xda),Z=Y[ah(0x10b)](':')[0x0],a0=Y[ah(0x10b)](':')[0x1];typeof parseInt(Z)===ah(0x120)&&typeof parseInt(a0)==='number'&&Log[ah(0xe0)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0xe5)](a1);}try{const a2=await Actions[ah(0xcf)](ah(0x110))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ah(0xe5)](a3);}let x='';try{const a4=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f[ah(0xd9)](i,ah(0xd0)),Log[ah(0x109)](ah(0x115)+x),await this[ah(0xcd)]['createFile']({'filePath':x,'data':''}),await Actions[ah(0x114)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ah(0xe5)](a5);}try{const a6=JSON[ah(0xdc)](execSync(ah(0x103)+p+ah(0x10f))[ah(0xeb)]())[0x0][ah(0xcb)];Log[ah(0x109)](ah(0x105)+n),Log[ah(0x109)]('Instance\x20Count:\x20'+v+':'+w),Log['notice'](ah(0xf5)+o),Log['notice'](ah(0x126)+r),Log[ah(0x109)](ah(0xee)+m),Log['notice']('Subnet:\x20'+a6);if(x){Log[ah(0x109)]('User\x20Data:'+x);const a8=a6g[ah(0xe7)](x)['toString']();Log[ah(0x109)](a8);}const a7=await Actions[ah(0x114)](ah(0x124));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x113),'Value':ah(0xe8)},{'Key':ah(0xf1),'Value':h},{'Key':ah(0xf8),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ah(0xd2)),Log['bright'](ah(0xf7)));}else{Log['notice'](ah(0xc7));const aa=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ah(0xc4)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ah(0x114)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){console['log'](ac),Log[ah(0xe5)](ac);}}catch(ad){console[ah(0xe5)](ad),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=-parseInt(g(0x159))/0x1+-parseInt(g(0x153))/0x2*(parseInt(g(0x157))/0x3)+parseInt(g(0x14a))/0x4+-parseInt(g(0x15d))/0x5*(parseInt(g(0x15f))/0x6)+parseInt(g(0x150))/0x7*(-parseInt(g(0x14b))/0x8)+parseInt(g(0x14d))/0x9+parseInt(g(0x148))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x4b41c));function a7c(){const l=['1089684OCJSHQ','constructor','env','54250HgmJpj','\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','maka\x20aws:create-key-pair\x20--env\x20prod','62tDsFBt','fsi','toString','create-key-pair','27552EldPmC','exit','415264TQSwyZ','maka\x20aws:create-key-pair','maka\x20aws:ckp\x20--env\x20prod','(((.+)+)+)+$','115kWBOey','search','35286VyeCBu','apply','error','10924930CeftUu','getConfigFromShorthand','1672656XxowPn','504xXRsKq','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance'];a7c=function(){return l;};return a7c();}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x155)]()[i(0x15e)](i(0x15c))[i(0x155)]()[i(0x14e)](a7a)[i(0x15e)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x148;let f=c[d];return f;},a7d(a,b);}Command['create']({'name':a7j(0x156),'aliases':['ckp'],'usage':a7j(0x15a),'examples':[a7j(0x152),a7j(0x15b)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x14f)],'validOpts':[],'shortDesc':a7j(0x14c),'description':a7j(0x151)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x154)][k(0x149)](b['env']);c['createKeyPair']({'env':d});}catch(f){console[k(0x161)](f),process[k(0x158)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=parseInt(m(0x120))/0x1+parseInt(m(0x139))/0x2*(-parseInt(m(0x12c))/0x3)+-parseInt(m(0x13d))/0x4+-parseInt(m(0x12a))/0x5+parseInt(m(0x124))/0x6*(-parseInt(m(0x13b))/0x7)+-parseInt(m(0x134))/0x8*(-parseInt(m(0x127))/0x9)+parseInt(m(0x126))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x9688c));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0x122)]()['search'](o(0x140))[o(0x122)]()['constructor'](a8a)[o(0x129)]('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8c(){const s=['name','search','3352755IqvEPq','create','1813554OTppmC','error','maka\x20aws\x20create-security-group','chooseVPC','ask','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','exit','apply','40OmvbSK','List\x20is\x20not\x20all\x20numbers','getProjectConfig','maka\x20aws:csg','Security\x20Group\x20Name:\x20[','2EINwBv','22,80,443','311549FfyGRu','create-security-group','3396488eAdCFU','ec2createSG','\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','(((.+)+)+)+$','377824LsVrIl','csg','toString','split','138qkuaIS','fsi','27646810hRQnKo','1119483voAtXv'];a8c=function(){return s;};return a8c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x120;let f=c[d];return f;},a8d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a8p(0x12b)]({'name':a8p(0x13c),'aliases':[a8p(0x121)],'usage':a8p(0x12e),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a8p(0x13f),'examples':['maka\x20aws:create-secuirty-group',a8p(0x137)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0x125)][q(0x136)](),{appName:f}=d,g=await c[q(0x12f)](),h=b[q(0x128)]?b[q(0x128)]:''+f,i=await Actions[q(0x130)](q(0x138)+h+']')||h,j=await Actions[q(0x130)](q(0x131))||q(0x13a),k=j[q(0x123)](',');k['forEach'](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x135);}),await c[q(0x13e)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0x12d)](l),process[q(0x132)](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9i=a9d;function a9c(){const k=['135hRRKWl','\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','apply','maka\x20aws:describe-instances','5072215emSksG','constructor','(((.+)+)+)+$','create','error','16815656nvRxMF','search','ec2describeInstances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','383054STkyJR','408310roljPw','maka\x20aws:di','toString','describe-instances','614316xPEfFL','503502MXnNAg','3158gyPfzb'];a9c=function(){return k;};return a9c();}(function(a,b){const f=a9d,c=a();while(!![]){try{const d=-parseInt(f(0x1d4))/0x1+-parseInt(f(0x1da))/0x2*(-parseInt(f(0x1db))/0x3)+-parseInt(f(0x1d8))/0x4+-parseInt(f(0x1df))/0x5+parseInt(f(0x1d9))/0x6+-parseInt(f(0x1d3))/0x7+parseInt(f(0x1e4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x98cd3));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x1d6)]()[h(0x1e5)](h(0x1e1))[h(0x1d6)]()[h(0x1e0)](a9a)['search'](h(0x1e1));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a9d(a,b);}Command[a9i(0x1e2)]({'name':a9i(0x1d7),'aliases':['di'],'usage':a9i(0x1de),'validOpts':[],'shortDesc':a9i(0x1d2),'examples':[a9i(0x1de),a9i(0x1d5)],'description':a9i(0x1dc)},async function(){const j=a9i;try{const a=new AWS();a[j(0x1e6)]();}catch(b){console[j(0x1e3)](b),process['exit'](0x0);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1bd))/0x1+parseInt(f(0x1bb))/0x2+parseInt(f(0x1c5))/0x3+-parseInt(f(0x1cb))/0x4+parseInt(f(0x1c7))/0x5*(parseInt(f(0x1ca))/0x6)+parseInt(f(0x1c4))/0x7+-parseInt(f(0x1c0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xd6591));function a10c(){const j=['5740195fywEmi','(((.+)+)+)+$','search','6JXaFIU','6943236AMhUyZ','error','1463574InkwgF','toString','100784lHSfvs','maka\x20aws:describe-key-pairs','ec2describeKeys','11109304gjQAeY','describe-key-pairs','exit','create','2237718ToIjWq','5106471IMWHWk','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS'];a10c=function(){return j;};return a10c();}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(0x1bc)]()[g(0x1c9)](g(0x1c8))[g(0x1bc)]()['constructor'](a10a)[g(0x1c9)](g(0x1c8));});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1ba;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';Command[a10h(0x1c3)]({'name':a10h(0x1c1),'aliases':['dkp'],'usage':a10h(0x1be),'validOpts':[],'shortDesc':a10h(0x1c6),'examples':[a10h(0x1be),'maka\x20aws:dkp']},async function(){const i=a10h;try{const a=new AWS();a[i(0x1bf)]();}catch(b){console[i(0x1ba)](b),process[i(0x1c2)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(
|
|
1
|
+
const a11o=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0xc7))/0x1+-parseInt(l(0xc0))/0x2*(-parseInt(l(0xbd))/0x3)+-parseInt(l(0xd3))/0x4+parseInt(l(0xbe))/0x5+parseInt(l(0xd7))/0x6*(parseInt(l(0xcb))/0x7)+parseInt(l(0xd4))/0x8+-parseInt(l(0xcf))/0x9*(parseInt(l(0xc8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x65c10));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0xba)]()['search'](n(0xd9))['toString']()[n(0xcc)](a11a)[n(0xb8)](n(0xd9));});a11a();import a11e 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 a11c(){const r=['ID:\x20','success','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','confirm','getProjectConfig','243566WLpckS','16328350OAZTCe','dsg','includes','3491131DYLCQa','constructor','deleteSecurityGroup','isMakaProject','9yfIdby','\x20SGID:\x20','\x20SG\x20NAME:\x20','bright','2335080QHwUrA','6598520MbcgOq','maka\x20aws:delete-sg','Deleting\x20a\x20','6lpEhKo','name','(((.+)+)+)+$','appName','apply','Not\x20deleting\x20secuirty\x20group','delete-security-group','ask','getSecurityGroups','maka\x20aws:dsg','search','error','toString','notice','exit','36JCgJPA','3941075jEOxTV','sgId','127532rsTEcV'];a11c=function(){return r;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xb2;let f=c[d];return f;},a11d(a,b);}Command['create']({'name':a11o(0xb4),'aliases':[a11o(0xc9)],'usage':a11o(0xd5),'validOpts':[],'shortDesc':a11o(0xc4),'examples':[a11o(0xd5),a11o(0xb7)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0xce)]();let d='';if(c){const j=b[p(0xc6)]();d=j[p(0xda)];}const {sgList:f}=await a[p(0xb6)]();f['forEach'](function(k){const q=p;c&&k[q(0xd8)][q(0xca)](d)?Log[q(0xbb)](q(0xc1)+k['id']+q(0xd1)+k[q(0xd8)]+q(0xd0)+k[q(0xbf)]):Log[q(0xd2)](q(0xc1)+k['id']+q(0xd1)+k[q(0xd8)]+q(0xd0)+k[q(0xbf)]);});let g='';const h=await Actions[p(0xb5)]('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f['forEach'](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log['error'](p(0xc3));const i=await Actions[p(0xc5)](p(0xd6)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0xcd)](g),Log[p(0xc2)]('Deleted\x20'+g)):Log[p(0xb9)](p(0xb3)),process[p(0xbc)](0x0);}catch(k){process[p(0xbc)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a12c(){const k=['search','\x20is\x20still\x20running.','error','8NTiNIu','5758KriVlG','\x20Ready?','12335NutHiZ','instanceId','744cAEdDu','682583qZxxWi','rbi','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','running','status','(((.+)+)+)+$','Reboot\x20an\x20EC2\x20instance','confirm','45UjsLgv','create','79838iSfzpy','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','name','6zidfyF','831010vZunOc','1636368IvcjCv','toString','ec2rebootInstance','108633GXITXf'];a12c=function(){return k;};return a12c();}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x20b))/0x1+-parseInt(f(0x1fb))/0x2*(-parseInt(f(0x20e))/0x3)+parseInt(f(0x1ff))/0x4*(-parseInt(f(0x1fd))/0x5)+parseInt(f(0x1f3))/0x6+-parseInt(f(0x1f6))/0x7*(-parseInt(f(0x1fa))/0x8)+-parseInt(f(0x209))/0x9*(-parseInt(f(0x20f))/0xa)+-parseInt(f(0x200))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x41891));function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a12d(a,b);}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x202)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()[h(0x1f7)]('(((.+)+)+)+$')[h(0x1f4)]()['constructor'](a12a)['search'](h(0x206));});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';Command[a12i(0x20a)]({'name':'reboot-instance','aliases':[a12i(0x201)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a12i(0x207),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x205)]===j(0x204)){const c=await Actions[j(0x208)](j(0x203)+b[j(0x20d)]+j(0x1fc));c&&b['instanceId']?a[j(0x1f5)]({'instanceId':b[j(0x1fe)]}):Log[j(0x1f9)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0x20d)]+j(0x1f8));}else Log[j(0x1f9)](j(0x20c));}catch(d){console[j(0x1f9)](d),process['exit'](0x0);}},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(0x1ad))/0x1*(-parseInt(E(0x1b3))/0x2)+-parseInt(E(0x1a9))/0x3+parseInt(E(0x19e))/0x4*(-parseInt(E(0x1bc))/0x5)+-parseInt(E(0x191))/0x6+-parseInt(E(0x186))/0x7*(-parseInt(E(0x1bb))/0x8)+-parseInt(E(0x1c1))/0x9*(parseInt(E(0x1af))/0xa)+-parseInt(E(0x19c))/0xb*(-parseInt(E(0x19b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xa67aa));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x196)]()[G(0x1b5)]('(((.+)+)+)+$')[G(0x196)]()[G(0x1bf)](a13a)[G(0x1b5)]('(((.+)+)+)+$');});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x182;let f=c[d];return f;},a13d(a,b);}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 a13c(){const K=['Contact\x20Last\x20Name\x20[Person]:\x20','\x20for\x20','domain','Domain\x20name\x20is\x20unavailable','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','3027504biENzV','ASSOCIATION','Address\x20Line\x202:\x20','options','288EZmsFC','notice','258760dRbtNq','Are\x20you\x20sure?','maka\x20aws:register-domain-name\x20--domain=example.com','RESELLER','9028fQRTwx','Do\x20you\x20wish\x20to\x20register\x20','search','mail@example.com','+1.5555555555','123\x20Glorious\x20Way','\x20years\x20(','\x20/\x20Year)','3883448ChhtQG','510rmBGsx','rdn','confirm','constructor','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','423ewKhvK','My\x20Comanpy,\x20LLC.','\x20/\x20Year\x20\x0a','error','Person','maka\x20aws:rdn\x20--domain=example.com','Contact\x20First\x20Name\x20[Contact]:\x20','7aQVAvM','register-domain-name','maka\x20aws:register-domain-name','registerDomain','PERSON','values','Country\x20Code\x20[US]:\x20','Choose\x20contact\x20type','State\x20[HI]:\x20','checkDomainAvailability','apply','7139568cfxJdB','Duration\x20in\x20years\x20[1]:\x20','Contact\x20Email\x20[mail@example.com]:\x20','Invalid\x202\x20character\x20country\x20code','create','toString','ask','The\x20domain\x20name:\x20','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','+1.5555555556','136668ZEbCJs','2893emctGb','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','26808BsgbRh','exit','PUBLIC_BODY','includes','\x20is\x20available\x20for:'];a13c=function(){return K;};return a13c();}function isValidCountryCode(a){const H=a13d;return Object[H(0x18b)](CountryCode)[H(0x1a1)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0x195)]({'name':a13I(0x187),'aliases':[a13I(0x1bd)],'usage':a13I(0x188),'requiredOpts':[a13I(0x1a5)],'validOpts':[],'shortDesc':a13I(0x19d),'examples':[a13I(0x1b1),a13I(0x184)]},async function(a,b){const J=a13I;try{const c=b[J(0x1a5)],d=new AWS(),{available:f,cost:g}=await d[J(0x18f)](c);if(f&&g){Log[J(0x1ae)](J(0x198)+c+J(0x1a2));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0x1c3));const j=await Actions[J(0x1be)](J(0x1b4)+c+'\x20?',![]);if(j){const k={'type':'list','name':'contactType','message':J(0x18d),'choices':[J(0x1aa),'COMPANY',J(0x18a),J(0x1a0),J(0x1b2)]},l=await Actions[J(0x197)](J(0x192))||'1',m=await Actions[J(0x197)](J(0x185))||'Contact',n=await Actions[J(0x197)](J(0x1a3))||J(0x183),{contactType:o}=await Actions[J(0x1ac)](k),p=await Actions[J(0x197)](J(0x1a7))||J(0x1b8),q=await Actions[J(0x197)](J(0x1ab)),r=await Actions[J(0x197)]('Zip\x20Code\x20[96816]:\x20')||'96816',s=await Actions['ask'](J(0x18e))||'HI',t=await Actions['ask'](J(0x18c))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x182)](J(0x194));const v=await Actions[J(0x197)](J(0x199))||J(0x1b7),w=await Actions[J(0x197)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||J(0x19a),x=await Actions[J(0x197)](J(0x193))||J(0x1b6),y=await Actions[J(0x1be)]('Auto\x20Renew:\x20'),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==J(0x18a)){const C=await Actions[J(0x197)](J(0x1c0))||J(0x1c2);z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log[J(0x1ae)](J(0x1a8)),Log['warn'](A+'\x20'+i+J(0x1a4)+l+J(0x1b9)+h+'\x20'+i+J(0x1ba));const B=await Actions['confirm'](J(0x1b0));B&&await d[J(0x189)](z,c,parseInt(l),y);}}else throw Log[J(0x182)](J(0x1a6));}catch(D){console[J(0x182)](D),process[J(0x19f)](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(0xd7))/0x1+parseInt(h(0xcf))/0x2*(-parseInt(h(0xd0))/0x3)+-parseInt(h(0xdc))/0x4*(parseInt(h(0xd6))/0x5)+parseInt(h(0xc3))/0x6+-parseInt(h(0xc9))/0x7*(-parseInt(h(0xcd))/0x8)+parseInt(h(0xc5))/0x9+-parseInt(h(0xdd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xee654));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a['toString']()[j(0xd4)](j(0xc8))['toString']()[j(0xce)](a14a)['search'](j(0xc8));});function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xc0;let f=c[d];return f;},a14d(a,b);}a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14c(){const m=['ec2describeKeys','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','search','apply','10hevDpP','1850488TeofKi','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','Not\x20deleting\x20keypair','Deleted\x20','exit','3449352OIxtPr','10732770vHfaHn','\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','remove-key-pair','error','9553782gHkzMj','Deleting\x20a\x20','3166074FwLLmb','maka\x20aws:rkp','deleteKeyPair','(((.+)+)+)+$','1400119hNwXzk','Please\x20choose\x20a\x20key\x20to\x20delete:','create','ask','8itHvyt','constructor','2878roluJJ','459KNhYAN','rkp'];a14c=function(){return m;};return a14c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0xcb)]({'name':a14k(0xc1),'aliases':[a14k(0xd1)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':a14k(0xd3),'description':a14k(0xc0),'examples':['maka\x20aws:remove-key-pair',a14k(0xc6)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0xd2)]();let c=undefined;const d=await Actions[l(0xcc)](l(0xca));b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0xc2)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions['confirm'](l(0xc4)+c+l(0xd8),![]);f?(await a[l(0xc7)](c),Log['success'](l(0xda)+c)):Log[l(0xc2)](l(0xd9)),process['exit'](0x0);}catch(g){process[l(0xdb)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d
|
|
1
|
+
const a15o=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x1fb))/0x1+-parseInt(l(0x203))/0x2+-parseInt(l(0x210))/0x3+-parseInt(l(0x1fe))/0x4+parseInt(l(0x1ff))/0x5*(-parseInt(l(0x1ed))/0x6)+parseInt(l(0x215))/0x7*(parseInt(l(0x1fc))/0x8)+parseInt(l(0x1f8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x6881c));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x20c)]()['search'](n(0x208))[n(0x20c)]()[n(0x1f7)](a15a)[n(0x1f4)](n(0x208));});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-0x1eb;let f=c[d];return f;},a15d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a15c(){const q=['template','constructor','24255261aUcZue','cat\x20','sep','497466AbcTnV','620344zISPYj','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','1651476kCxDOk','5xWMloj','maka\x20aws\x20set-host','parse','publicIp','1633698OYarWx','appName','maka\x20aws:set-host\x20--env\x20dev','getProjectConfig','public','(((.+)+)+)+$','\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','isFile','env','toString','\x0aSaved\x20host\x20','private','fsi','1463859BXxvng','getConfigPath','ssh.json','chooseInstance','stringify','7EXFTcc','maka\x20aws:sth\x20--env\x20prod','create','utf8','success','host','776250QUBuUr','\x20IP\x20to\x20','inherit','apply','privateIp','join','sth','search','writeFileSync'];a15c=function(){return q;};return a15c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15o(0x217)]({'name':'set-host','aliases':[a15o(0x1f3)],'usage':a15o(0x200),'mustBeInMakaProject':!![],'requiredOpts':[a15o(0x20b)],'validOpts':[],'shortDesc':a15o(0x1fd),'description':a15o(0x209),'examples':[a15o(0x205),a15o(0x216)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x20f)][p(0x211)](b['env']),f=this[p(0x20f)][p(0x206)](),g=await c[p(0x213)](),h=a15e[p(0x1f2)](d,p(0x212));!this[p(0x20f)][p(0x20a)](h)&&await this[p(0x20f)][p(0x1f6)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[p(0x204)]},'config':f});const i=JSON[p(0x201)](a15f['readFileSync'](h,p(0x218))),j=await Actions['ask']('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||p(0x207);if(j){if(j===p(0x207)||j===p(0x20e)){if(j===p(0x207))i[p(0x1ec)]=g?.[p(0x202)];else j===p(0x20e)&&(i[p(0x1ec)]=g?.[p(0x1f1)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i['host']=g?.[p(0x1f1)];a15f[p(0x1f5)](a15e[p(0x1f2)](d,p(0x212)),JSON[p(0x214)](i,null,0x2)),execSync(p(0x1f9)+a15e[p(0x1f2)](d,p(0x212)),{'stdio':p(0x1ef)}),Log[p(0x1eb)](p(0x20d)+j+p(0x1ee)+d+a15e[p(0x1fa)]+'ssh.json');}catch(k){console['error'](k),process['exit'](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d
|
|
1
|
+
const a16h=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1+parseInt(f(0x1de))/0x2*(-parseInt(f(0x1df))/0x3)+parseInt(f(0x1da))/0x4*(-parseInt(f(0x1e1))/0x5)+parseInt(f(0x1d9))/0x6+parseInt(f(0x1e3))/0x7*(-parseInt(f(0x1e5))/0x8)+parseInt(f(0x1d0))/0x9*(-parseInt(f(0x1dc))/0xa)+parseInt(f(0x1d3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xdbeea));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const g=a16d;return a16a[g(0x1e0)]()[g(0x1e7)]('(((.+)+)+)+$')[g(0x1e0)]()[g(0x1d4)](a16a)[g(0x1e7)](g(0x1e6));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16c(){const j=['constructor','chooseInstance','maka\x20aws:terminate-instance','instanceId','confirm','2069928bwWMBq','76vuLpdV','exit','13750660MCWCRO','850084ZulElP','33826XRHbBt','237dPTUxI','toString','135635unLLJL','name','16163FHkZfM','create','1064gkeMVD','(((.+)+)+)+$','search','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','\x20Ready?','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','9jDbjXb','Terminate\x20an\x20EC2\x20instance','error','54336051KYprBA'];a16c=function(){return j;};return a16c();}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1cc;let f=c[d];return f;},a16d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a16h(0x1e4)]({'name':a16h(0x1ce),'aliases':['ti'],'usage':a16h(0x1d6),'validOpts':[],'shortDesc':a16h(0x1d1),'description':'\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','examples':[a16h(0x1d6),'maka\x20aws:ti']},async function(){const i=a16h;try{const a=new AWS(),b=await a[i(0x1d5)]();if(b?.[i(0x1d7)]&&b?.['status']==='running'){const c=await Actions[i(0x1d8)](i(0x1cf)+b['name']+i(0x1cc));c?a['ec2terminateInstance']({'instanceId':b[i(0x1d7)]}):Log[i(0x1d2)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[i(0x1e2)]+i(0x1e8));}else Log[i(0x1d2)](i(0x1cd));}catch(d){console[i(0x1d2)](d),process[i(0x1db)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=parseInt(f(0x120))/0x1+-parseInt(f(0x11c))/0x2+parseInt(f(0x127))/0x3*(-parseInt(f(0x125))/0x4)+parseInt(f(0x122))/0x5+-parseInt(f(0x123))/0x6+parseInt(f(0x124))/0x7+-parseInt(f(0x121))/0x8*(-parseInt(f(0x128))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xbd477));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(0x11e)]()[g(0x11d)](g(0x126))['toString']()[g(0x11f)](a17a)['search']('(((.+)+)+)+$');});a17a();import'./build.js';function a17c(){var h=['2719534jjSzxy','search','toString','constructor','1337854BjGhEC','13832xnREVr','5550070QERdbb','6035640nhqUgq','4265646yToLRM','812zmlSVx','(((.+)+)+)+$','16623FrEZWs','6291jCrhWQ'];a17c=function(){return h;};return a17c();}function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x11c;var f=c[d];return f;},a17d(a,b);}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18r=a18d;(function(a,b){const o=a18d,c=a();while(!![]){try{const d=parseInt(o(0xf0))/0x1*(parseInt(o(0x107))/0x2)+parseInt(o(0x108))/0x3+parseInt(o(0x10a))/0x4*(parseInt(o(0xf9))/0x5)+-parseInt(o(0x102))/0x6+parseInt(o(0xf1))/0x7*(parseInt(o(0xee))/0x8)+-parseInt(o(0xe5))/0x9*(-parseInt(o(0x110))/0xa)+-parseInt(o(0xef))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x8e52c));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a18d;if(c){const e=c[p(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const q=a18d;return a18a[q(0xeb)]()[q(0x105)](q(0x10c))[q(0xeb)]()[q(0xf5)](a18a)[q(0x105)]('(((.+)+)+)+$');});a18a();import a18e from'path';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xe4;let f=c[d];return f;},a18d(a,b);}function a18c(){const u=['\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','getGlobalMeteorVersion','confirm','--force','fsi','join','notice','pathFromProject','4165578kMylKZ','autoupdate','This\x20project\x27s\x20meteor\x20version\x20(','search','create','22332czZCXG','3406344humTri',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','232856rohWjX','maka\x20build','(((.+)+)+)+$','getProjectMeteorVersion','invokeMeteorCommand','Verifying\x20meteor\x20package\x20requirements\x20...','490JXqjdJ','slice','133011VnrQaJ','update','checkMeteorPackage','findProjectDirectory','exit','forEach','toString','error','--release','2264HAqqie','30979575rNlMUm','3oICCOg','27069Amvztm','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','force','concat','constructor','splice','apply','build','95AZwQfM'];a18c=function(){return u;};return a18c();}import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18r(0x106)]({'name':a18r(0xf8),'usage':a18r(0x10b),'validOpts':[a18r(0xf3)],'shortDesc':a18r(0xf2),'mustBeInMakaProject':!![],'description':a18r(0xfa),'examples':['maka\x20build']},async function(a,b){const s=a18r;try{const c=this['fsi'][s(0xe8)]();!this[s(0xfe)][s(0xe7)](s(0x103))&&(Log[s(0x100)](s(0x10f)),await this[s(0xfe)]['installMeteorPackage'](s(0x103),{'cwd':c}));const d=b[s(0xf3)];if(!d){const h=this['fsi'][s(0xfb)](),i=this[s(0xfe)][s(0x10d)](),j=a18g['gt'](h,i);if(j){const k=await Actions['confirm'](s(0x104)+i+s(0x109)+h+').\x20Update?');k&&this['fsi'][s(0x10e)](s(0xe6),[s(0xed),h]);}}const f=[this[s(0xfe)]['pathFromProject']({'pathParts':[s(0xf8)]})][s(0xf4)](process['argv'][s(0xe4)](0x3)),g=a18e[s(0xff)](this['fsi'][s(0x101)]({}),'build','app.tar.gz');if(a18f['existsSync'](g)){const l=d??await Actions[s(0xfc)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!l)throw Log[s(0xec)]('Aborted.');}f[s(0xea)]((m,n)=>{const t=s;m===t(0xfd)&&f[t(0xf6)](n,0x2);}),this[s(0xfe)][s(0x10e)](s(0xf8),f);}catch(m){console['error'](m),process[s(0xe9)](0x0);}});export default BuildCommand;
|