@maka/maka-cli 4.6.19 → 4.6.21
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.21",
|
|
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(0xbd))/0x1+parseInt(m(0xcb))/0x2+-parseInt(m(0xb0))/0x3+-parseInt(m(0xcd))/0x4*(parseInt(m(0x91))/0x5)+parseInt(m(0xab))/0x6+-parseInt(m(0xb8))/0x7*(-parseInt(m(0xa6))/0x8)+-parseInt(m(0x90))/0x9*(parseInt(m(0xc9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb4b7c));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a0d;if(c){const e=c[n(0xd1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0xa3)]()['search'](o(0x9e))[o(0xa3)]()[o(0xa2)](a0a)[o(0xa9)](o(0x9e));});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-0x89;let f=c[d];return f;},a0d(a,b);}function a0c(){const y=['DARK','1229802pPCPhf','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Too\x20few\x20arguments','split','Name','create','maybeProxyCommandToMeteor','options','2232503PNKbGz','Command\x20format\x20is\x20incorrect','Too\x20many\x20options','number','Command.create\x20requires\x20a\x20handler\x20function!','1439159UEQBvj','find','validateMakaProject','keys','forEach','assign','processAndRunCommand','join','exit','pallet','invoke','Alias','4329590LWyRur','validateMakaSubscription','308444amsSRT','minOptsLength','2640668wYxBXq','Command\x20','LIGHT','Description','apply','generate','match','setColorMode','validateParams','unshift','name','addCommand','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','validateMeteorInstall','There\x20is\x20no\x20Meteor\x20application\x20here','function','_handler','9urSQUE','5mHIeEK','maxArgLength','length','Too\x20many\x20arguments','Command\x20not\x20found','slice','tableList','minArgLength','fsi','error','mustHaveMeteorInstalled','light','Please\x20run\x20\x22maka\x20install\x20meteor\x22','(((.+)+)+)+$','_commands','maxOptsLength','run','constructor','toString','Command\x20requires\x20a\x20name','mustBeInMakaProject','8GtOXRj','push','notice','search','Command\x20requires\x20a\x20handler\x20function','1985820wazXZa','\x20not\x20found','aliases','bright'];a0c=function(){return y;};return a0c();}import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0xb7)];[a0p(0x9f)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x8b));if(!a[q(0x89)])throw new Error(q(0xa4));if(typeof b!==q(0x8e))throw new Error(q(0xaa));this['options']=Object['assign']({},a),this['name']=this['options'][q(0x89)],this['_commands']=[],this[q(0x8f)]=b['bind'](this);}static[a0p(0xb5)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x8e))throw new Error(r(0xbc));const d=new Command(a,b);return c=c||a0f,Object[r(0xc2)](d,{'parent':c?.[r(0xb7)]?.[r(0x89)]}),c[r(0x8a)](d),d;}[a0p(0x8a)](a){const s=a0p;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[s(0x9f)][s(0xa7)](a);}async[a0p(0xa1)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this['fsi']['getGlobalConfig'](),d=c[t(0xc6)]===t(0x9c)?ColorMode[t(0xcf)]:ColorMode[t(0xaf)];Log[t(0xd4)](d),await this[t(0xca)](this);}catch(f){Log['error'](f),process['exit'](0x0);}await this['invoke'](a,b);}catch(g){process['exit'](0x1);}}async[a0p(0xc7)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[u(0xb7)][u(0x89)]!==u(0xd2)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0x93)]===0x0)&&this[u(0x9f)][u(0x93)]>=0x0,g=b['help']||b['h'];if(f&&g){if(this[u(0x9f)][u(0x93)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0xb7)][u(0xa5)]){const h=this[u(0xbf)]();if(!h)throw new MustBeInProjectError();}if(this[u(0xb7)][u(0x9b)]){const i=this[u(0x8c)]();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][u(0x98)]==='number'){if(a['length']<this[u(0xb7)][u(0x98)]){Log[u(0x9a)](u(0xb2));throw new UsageError();}}if(typeof this['options'][u(0x92)]===u(0xbb)){if(a[u(0x93)]>=this[u(0xb7)][u(0x92)]){Log[u(0x9a)](u(0x94));throw new UsageError();}}if(typeof this['options'][u(0xcc)]===u(0xbb)){if(Object[u(0xc0)](b)['length']<this[u(0xb7)][u(0xcc)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[u(0xb7)][u(0xa0)]===u(0xbb)){if(Object[u(0xc0)](b)[u(0x93)]>=this[u(0xb7)]['maxOptsLength']){Log['error'](u(0xba));throw new UsageError();}}}}b=await this[u(0xd5)](a,b,this['options']),_prevCmd=a[0x0];}await this[u(0x8f)]['call'](this,a,b);}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[u(0x97)](this[u(0x9f)]),Log['header'](u(0xb1));else{if(j instanceof MustBeInProjectError)Log[u(0x9a)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(j instanceof NoMeteorFoundError)Log[u(0x9a)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[u(0xa8)](u(0x9d));else j instanceof NoMeteorAppFoundError&&Log[u(0x9a)](u(0x8d));}}process['exit'](0x1);}}['tableList'](a){const v=a0p,b=new a0e({});b['push']([v(0xb4),v(0xc8),v(0xd0)]),a['sort']()[v(0xc1)](c=>{const w=v;c[w(0x89)]!=='murder'&&c[w(0x89)]!=='play'&&b['push']([c['name'],c[w(0xad)](),c['shortDesc']()]);}),Log[v(0xae)](b[v(0xa3)]());}async[a0p(0xc3)](a,b=[],c={}){const x=a0p;try{const d=a?.[x(0xb3)](':');if(!d||d[x(0x93)]===0x0)throw x(0xb9);if(d[0x0]==='generate'||d[0x0]==='g'&&d[x(0x93)]>0x1){const h=this[x(0x9f)][x(0xbe)](j=>j[x(0xd3)](x(0xd2)));if(!h)throw x(0x95);await this[x(0xca)](h);const i=d[x(0x96)](0x1)[x(0xc4)](':');b[x(0xd6)](i),await h[x(0xa1)](b,c);return;}let f=this[x(0x9f)],g;for(const j of d){g=f[x(0xbe)](k=>k['match'](j));if(!g)try{this[x(0x99)][x(0xb6)]();}catch(k){throw x(0xce)+j+x(0xac);}g&&(await this[x(0xca)](g),f=g[x(0x9f)]);}if(g)await g[x(0xa1)](b,c);else throw x(0x95);}catch(l){Log[x(0x9a)](l),process[x(0xc5)](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(0xa2))/0x1+-parseInt(f(0x98))/0x2*(-parseInt(f(0x9d))/0x3)+-parseInt(f(0x96))/0x4+-parseInt(f(0x95))/0x5+-parseInt(f(0x9e))/0x6*(-parseInt(f(0x99))/0x7)+-parseInt(f(0x9f))/0x8+-parseInt(f(0xa0))/0x9*(-parseInt(f(0xa1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x3d2e8));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x97)]()['search']('(((.+)+)+)+$')[h(0x97)]()[h(0x9c)](a1a)['search'](h(0x9a));});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';function a1c(){var i=['675QBeCFy','72510VGrDvG','93620fobdDX','1188770GRElxi','1761876ewNWLH','toString','54568xEeJFi','14fyPyST','(((.+)+)+)+$','apply','constructor','6fCccdy','1142502brGWGK','1152192tqsLzv'];a1c=function(){return i;};return a1c();}import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x95;var f=c[d];return f;},a1d(a,b);}import'./help.js';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(0x19e))/0x1+-parseInt(h(0x1a2))/0x2+parseInt(h(0x197))/0x3*(-parseInt(h(0x1ac))/0x4)+-parseInt(h(0x1ad))/0x5*(parseInt(h(0x18a))/0x6)+parseInt(h(0x19c))/0x7+-parseInt(h(0x1a3))/0x8*(parseInt(h(0x1b0))/0x9)+-parseInt(h(0x196))/0xa*(-parseInt(h(0x1aa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x4230d));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x190)]()[j(0x198)](j(0x19b))[j(0x190)]()['constructor'](a2a)['search'](j(0x19b));});a2a();function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x18a;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';function a2c(){const o=['2055480FmfZVr','GPT:\x20','219788nRqXSt','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','ChatGPT\x20style\x20AI\x20interface','exit','698866hpLnLw','56qcBJzx','askGPT','text','error','stdin','openapikey','data','3982eXoOTL','message','546292sqRhYl','35EfBJqa','trim','cacert','268101ZqNBDG','222096xWkTqA','fsi','isFile','You:\x20','cert','apply','toString','log','openai','create','getGlobalConfig','notice','19650RhiUdH','3HlTVFP','search','stdout','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','(((.+)+)+)+$'];a2c=function(){return o;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process[k(0x1a7)],'output':process[k(0x199)]});c['question'](k(0x18d),async d=>{const l=k;if(d['toLowerCase']()===l(0x1a1)){c['close']();return;}try{const e=await HTTPS[l(0x1a4)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0x1a9)]);if(f['error'])throw new Error(f['error'][l(0x1ab)]);Log['bright'](l(0x19d)+f?.['choices'][0x0]?.[l(0x1a5)][l(0x1ae)]());}catch(g){Log[l(0x1a6)](g),process[l(0x1a1)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x193)]({'name':'ai','description':a2m(0x1a0),'validOpts':[a2m(0x1af),'openapikey'],'shortDesc':a2m(0x1a0),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x1af)]&&(this[n(0x18b)][n(0x18c)](b['cacert'])?(c=b['cacert'],Log[n(0x195)]('Using\x20CA\x20Cert\x20'+c)):Log[n(0x1a6)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this['fsi'][n(0x194)]();if(d[n(0x18e)]){if(this[n(0x18b)][n(0x18c)](d[n(0x18e)]))c=d['cert'];else throw Log[n(0x1a6)](n(0x19f)+c);}let f='';if(b[n(0x1a8)])f=b[n(0x1a8)],Log[n(0x195)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x192)])f=d[n(0x192)];else throw Log[n(0x1a6)](n(0x19a));}console[n(0x191)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1a6)](g),process[n(0x1a1)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x120))/0x1*(-parseInt(f(0x118))/0x2)+parseInt(f(0x115))/0x3+parseInt(f(0x11a))/0x4*(-parseInt(f(0x117))/0x5)+parseInt(f(0x11e))/0x6*(parseInt(f(0x113))/0x7)+parseInt(f(0x11c))/0x8+parseInt(f(0x116))/0x9*(-parseInt(f(0x11b))/0xa)+parseInt(f(0x11f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xada98));var a3b=(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;};}()),a3a=a3b(this,function(){var g=a3d;return a3a['toString']()[g(0x112)](g(0x11d))[g(0x119)]()[g(0x114)](a3a)['search']('(((.+)+)+)+$');});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x112;var f=c[d];return f;},a3d(a,b);}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';function a3c(){var h=['toString','372hECQmj','10gVpihh','4450360ZKqfMk','(((.+)+)+)+$','6pOQlJV','30789143jKpuop','204973MocuGl','search','3125990HZSuFv','constructor','149688ssuapU','10927278HlGHLF','70505aQJcXr','6BYALEq'];a3c=function(){return h;};return a3c();}import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-
|
|
1
|
+
const a4h=a4d;function a4c(){const i=['926434ZFbWcC','7098855knqAnZ','constructor','24IQZLZB','2217228RyRric','2715832EGOohG','3296310fisfME','(((.+)+)+)+$','create','3896991IvNcQY','6ZuZITg','112380uAvPbR','4rvFodF','aws','search','3410aCIHgs','toString'];a4c=function(){return i;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x117;let f=c[d];return f;},a4d(a,b);}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x124))/0x1+parseInt(f(0x117))/0x2+parseInt(f(0x119))/0x3+parseInt(f(0x11f))/0x4*(parseInt(f(0x125))/0x5)+-parseInt(f(0x11d))/0x6*(-parseInt(f(0x118))/0x7)+parseInt(f(0x127))/0x8*(parseInt(f(0x11c))/0x9)+-parseInt(f(0x11e))/0xa*(parseInt(f(0x122))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xdcaea));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0x123)]()[g(0x121)](g(0x11a))[g(0x123)]()[g(0x126)](a4a)['search'](g(0x11a));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0x11b)]({'name':a4h(0x120),'usage':'maka\x20aws:<sub-command>','validOpts':[],'isPro':!![],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','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(0x1a7))/0x1*(parseInt(i(0x1ae))/0x2)+parseInt(i(0x1bb))/0x3*(-parseInt(i(0x1b2))/0x4)+parseInt(i(0x1ad))/0x5+-parseInt(i(0x1b9))/0x6*(parseInt(i(0x1a8))/0x7)+-parseInt(i(0x1af))/0x8+parseInt(i(0x1b6))/0x9+parseInt(i(0x1b1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xb4947));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x1b3)]()[k(0x1a3)](k(0x1a5))[k(0x1b3)]()[k(0x1ba)](a5a)[k(0x1a3)](k(0x1a5));});a5a();import a5e from'./aws.command.js';function a5c(){const n=['exit','route53CreateHostedZone','10801647DoGfkv','maka\x20aws:chz\x20--domain=example.com','create-hosted-zone','3418902QyMOzO','constructor','279TFCEZz','linkEC2ToRoute53','error','confirm','domain','search','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','(((.+)+)+)+$','maka\x20aws:create-hosted-zone\x20--domain=example.com','1902aktIoG','7IMmaim','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','apply','publicIp','chooseInstance','2535315NYVCJH','1058Fvfasf','11567128JHjFzC','maka\x20aws:create-hosted-zone','21856840WnAHQp','5652RBvYYy','toString'];a5c=function(){return n;};return a5c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a5d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a5l(0x1b8),'aliases':['chz'],'usage':a5l(0x1b0),'requiredOpts':[a5l(0x1a2)],'validOpts':[],'shortDesc':a5l(0x1a4),'examples':[a5l(0x1a6),a5l(0x1b7)]},async function(a,b){const m=a5l;try{const c=b[m(0x1a2)],d=new AWS();d[m(0x1b5)](c);const f=await Actions[m(0x1a1)]('Set\x20hosted\x20zone\x20to\x20an\x20instance?');if(f){const g=await d[m(0x1ac)]();if(g?.['id']){if(!g[m(0x1ab)])throw Log[m(0x1a0)](m(0x1a9));d[m(0x1bc)](g['id'],g[m(0x1ab)],c);}else throw Log[m(0x1a0)]('Instance\x20not\x20found');}}catch(h){console[m(0x1a0)](h),process[m(0x1b4)](0x0);}},a5e);
|
|
@@ -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 a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x164))/0x1*(parseInt(ae(0x130))/0x2)+parseInt(ae(0x141))/0x3*(-parseInt(ae(0x17c))/0x4)+parseInt(ae(0x12a))/0x5*(parseInt(ae(0x16c))/0x6)+-parseInt(ae(0x166))/0x7*(-parseInt(ae(0x13d))/0x8)+parseInt(ae(0x140))/0x9*(parseInt(ae(0x15d))/0xa)+parseInt(ae(0x13e))/0xb*(-parseInt(ae(0x184))/0xc)+-parseInt(ae(0x137))/0xd*(parseInt(ae(0x155))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x2f2b3));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x173)]()['search'](ag(0x12f))[ag(0x173)]()[ag(0x17b)](a6a)[ag(0x16d)](ag(0x12f));});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';function a6c(){const au=['env','Instance\x20Count:\x20','exit','maka\x20aws:create-instance\x20--env\x20dev','subnetId','14xmfQhU','date','Instace\x20Type:\x20','user-data','number','push','chooseVPC','create','1663160WjEgvu','\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','create-instance','getTime','Security\x20Group\x20Name:\x20[','sgId','Setting\x20AMI\x20ID\x20to\x20','9839dPNxvF','getConfigPath','2508989ESfaHT','success','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Desc','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','**\x20Available\x20Security\x20Groups\x20**','6IfivzV','search','cidr','Create\x20new\x20AWS\x20instance','1:1','**\x20Available\x20Subnets\x20**','subnet','toString','Key-Pair:\x20','Remove\x20the\x20security\x20group\x20','desc','ec2create','isFile','confirm','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','constructor','332mwQkmJ','\x20SG\x20NAME:\x20','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Setting\x20the\x20key-pair\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','error','\x20SGID:\x20','getSecurityGroups','24VUcNhq','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=*','EC2\x20Name:\x20[','\x20AMIID:\x20','maka-cli','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','join','\x20CIDR:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','ID:\x20','deleteSecurityGroup','bright','ImageID:','**\x20Available\x20key-pairs\x20**','getProjectConfig','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','375245UQPQJL','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20AZONE:\x20','**\x20Available\x20AMIs\x20**','fsi','(((.+)+)+)+$','6NRmNlh','22,80,443','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','log','createKeyPair','name','maka\x20aws:create-instance','3982537kjouGd','amazon','apply','Setting\x20SG\x20ID\x20to:\x20','ec2createSG','forEach','8LsXoeZ','554345xaGxOZ','getConfigFromShorthand','9KtKVUF','1047gZwbHg','split','Remove\x20the\x20keypair\x20','notice','alias','ec2describeKeys','*\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','amiId','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Please\x20choose\x20a\x20key\x20to\x20use:\x20','sort','Creating\x20user\x20data\x20file\x20in\x20','cider','ask','Would\x20you\x20like\x20to\x20include\x20user\x20data?'];a6c=function(){return au;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x121;let f=c[d];return f;},a6d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x15c)]({'name':a6ah(0x15f),'aliases':['ci'],'usage':a6ah(0x136),'examples':[a6ah(0x153),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x150)}],'validOpts':[],'shortDesc':a6ah(0x16f),'description':a6ah(0x15e)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x12e)][ai(0x128)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x12e)][ai(0x13f)](b[ai(0x150)]),i=this['fsi'][ai(0x165)](h),j=g+'-'+h,k=await Actions[ai(0x14e)](ai(0x186)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x179)](ai(0x149),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x134)]({'env':h});r=y,s=z,Log[ai(0x167)](ai(0x17f)+r);}else try{Log['notice'](ai(0x127));const A=r?r:k,B=await d[ai(0x146)]({'suggestion':A}),C=await Actions[ai(0x14e)](ai(0x14a))||'-1';if(parseInt(C)<0x0){Log[ai(0x181)]('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(0x144)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x13c)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x167)](aj(0x17f)+r));});}catch(D){Log[ai(0x181)](D);}l=await d[ai(0x15b)]();const t=await Actions['confirm'](ai(0x121),!![]);let u;if(t){const E=l===''?await d[ai(0x15b)]():l;u=await Actions[ai(0x14e)](ai(0x161)+k+']')||k;const F=await Actions[ai(0x14e)](ai(0x122))||ai(0x131),G=F[ai(0x142)](',');await d[ai(0x13b)]({'description':'Web\x20App','name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x183)](u);if(I===''){Log[ai(0x144)](ai(0x16b)),J[ai(0x13c)](function(L){const ak=ai;L['name']===u?Log['notice'](ak(0x123)+L['id']+ak(0x17d)+L[ak(0x135)]+ak(0x182)+L[ak(0x162)]):Log[ak(0x125)]('ID:\x20'+L['id']+ak(0x17d)+L['name']+'\x20SGID:\x20'+L[ak(0x162)]);});const K=await Actions[ai(0x14e)](ai(0x17a)+H+']\x20')||H[ai(0x173)]();J[ai(0x13c)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x162)],Log[al(0x167)](al(0x13a)+m+'\x0a'));});}else m=I,Log[ai(0x167)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x181)](ai(0x189));}catch(L){Log[ai(0x181)](L);}try{const M=0x7e6;Log[ai(0x144)](ai(0x12d));const N=execSync(ai(0x185)+M+ai(0x147))[ai(0x173)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x13c)](function(S){const am=ai;if(S[am(0x145)]===am(0x138)){const T=S[am(0x169)]['split']('build\x20on\x20')[0x1];P[am(0x15a)]({'amiId':S['ID'],'desc':S[am(0x169)],'date':T});}}),P[ai(0x14b)](function(S,T){const an=ai;return new Date(T[an(0x156)])['getTime']()-new Date(S['date'])[an(0x160)]();}),P[ai(0x13c)](function(S,T){const ao=ai;Q[ao(0x15a)]({'id':T,'amiId':S[ao(0x148)],'desc':S[ao(0x176)]});}),Q[ai(0x13c)](function(S){const ap=ai;console['log'](ap(0x123)+S['id']+ap(0x187)+S[ap(0x148)]+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions[ai(0x14e)](ai(0x129))||'0';Q[ai(0x13c)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x148)],Log[aq(0x167)](aq(0x163)+n+'\x20:\x20'+S[aq(0x176)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x181)](S);}try{Log['notice'](ai(0x171));const T=execSync(ai(0x17e))[ai(0x173)](),U=JSON['parse'](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x15a)]({'id':Y,'cidr':X[ar(0x14d)],'az':X['az'],'subnetId':X[ar(0x154)]});}),V[ai(0x13c)](function(X){const as=ai;console[as(0x133)](as(0x123)+X['id']+as(0x18b)+X[as(0x16e)]+as(0x12c)+X['az']+'\x20SUBNETID:\x20'+X['subnetId']);});const W=await Actions[ai(0x14e)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x154)],Log[at(0x167)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x181)](ai(0x189));}catch(X){Log[ai(0x181)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x14e)](ai(0x18c))||ai(0x170),Z=Y[ai(0x142)](':')[0x0],a0=Y[ai(0x142)](':')[0x1];typeof parseInt(Z)===ai(0x159)&&typeof parseInt(a0)===ai(0x159)&&Log[ai(0x167)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0x181)](a1);}try{const a2=await Actions['ask'](ai(0x168))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0x181)](a3);}let x='';try{const a4=await Actions[ai(0x179)](ai(0x14f),![]);a4&&(x=a6f[ai(0x18a)](i,ai(0x158)),Log[ai(0x144)](ai(0x14c)+x),await this[ai(0x12e)]['createFile']({'filePath':x,'data':''}),await Actions['confirm'](ai(0x180)));}catch(a5){Log[ai(0x181)](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x16a))[ai(0x173)]())[0x0][ai(0x172)];Log[ai(0x144)](ai(0x126)+n),Log[ai(0x144)](ai(0x151)+v+':'+w),Log[ai(0x144)](ai(0x157)+o),Log[ai(0x144)](ai(0x174)+r),Log['notice']('Security\x20Group:\x20'+m),Log[ai(0x144)]('Subnet:\x20'+a6);if(x){Log['notice']('User\x20Data:'+x);const a8=a6g['readFileSync'](x)[ai(0x173)]();Log['notice'](a8);}const a7=await Actions[ai(0x179)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0x177)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x188)},{'Key':'environment','Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x167)](ai(0x132)),Log['bright'](ai(0x12b)));}else{Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0x143)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x178)](s)&&a6g['unlinkSync'](s));const ab=await Actions[ai(0x179)](ai(0x175)+m+'\x20?',!![]);ab&&d[ai(0x124)](m);}}catch(ac){console[ai(0x133)](ac),Log[ai(0x181)](ac);}}catch(ad){console[ai(0x181)](ad),process[ai(0x152)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x16a))/0x1+-parseInt(g(0x167))/0x2+-parseInt(g(0x173))/0x3*(parseInt(g(0x179))/0x4)+-parseInt(g(0x176))/0x5*(parseInt(g(0x166))/0x6)+-parseInt(g(0x16c))/0x7*(-parseInt(g(0x17b))/0x8)+-parseInt(g(0x165))/0x9*(parseInt(g(0x16f))/0xa)+parseInt(g(0x169))/0xb*(parseInt(g(0x17e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x71e33));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x17f)]()[i(0x17a)]('(((.+)+)+)+$')['toString']()[i(0x164)](a7a)[i(0x17a)](i(0x174));});a7a();import a7e from'./aws.command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x163;let f=c[d];return f;},a7d(a,b);}import{Command}from'../../command.js';function a7c(){const l=['103672KrEBAX','createKeyPair','11XFgDeO','169991ZfsJkt','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','21gbzLXV','ckp','env','50NrBZWY','\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','fsi','93wbOkRP','(((.+)+)+)+$','maka\x20aws:create-key-pair\x20--env\x20prod','321330TzZhFC','getConfigFromShorthand','apply','18580laqiCy','search','2315048dDijvt','error','create-key-pair','5591892MWgJbu','toString','maka\x20aws:ckp\x20--env\x20prod','constructor','1399581jjMTth','6uGHofL'];a7c=function(){return l;};return a7c();}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7j(0x17d),'aliases':[a7j(0x16d)],'usage':a7j(0x171),'examples':[a7j(0x175),a7j(0x163)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x16e)],'validOpts':[],'shortDesc':a7j(0x16b),'description':a7j(0x170)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x172)][k(0x177)](b[k(0x16e)]);c[k(0x168)]({'env':d});}catch(f){console[k(0x17c)](f),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8o=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d
|
|
1
|
+
const a8o=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0xd9))/0x1+-parseInt(m(0xd2))/0x2*(parseInt(m(0xd5))/0x3)+parseInt(m(0xcf))/0x4*(-parseInt(m(0xc6))/0x5)+-parseInt(m(0xdb))/0x6*(-parseInt(m(0xd6))/0x7)+parseInt(m(0xda))/0x8*(parseInt(m(0xc7))/0x9)+parseInt(m(0xdc))/0xa+-parseInt(m(0xdd))/0xb*(-parseInt(m(0xca))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xbc00c));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const n=a8d;return a8a[n(0xc4)]()[n(0xc2)](n(0xcd))[n(0xc4)]()[n(0xcb)](a8a)[n(0xc2)]('(((.+)+)+)+$');});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xc2;let f=c[d];return f;},a8d(a,b);}a8a();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[a8o(0xd4)]({'name':a8o(0xcc),'aliases':['csg'],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a8o(0xc9),'description':a8o(0xd7),'examples':[a8o(0xce),a8o(0xd3)]},async function(a,b){const p=a8o;try{const c=new AWS(),d=this[p(0xdf)][p(0xc8)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[p(0xc5)]?b[p(0xc5)]:''+f,i=await Actions['ask'](p(0xd1)+h+']')||h,j=await Actions['ask'](p(0xc3))||p(0xd0),k=j[p(0xe0)](',');k['forEach'](l=>{if(!l['match'](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[p(0xd8)](l),process[p(0xde)](0x1);}},a8e);function a8c(){const q=['create','831uiMgTa','4747491VuEavC','\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','error','663353rfSmlA','62648IXnwUN','12eMdoXP','2717830mcqzJW','6281vgqIVX','exit','fsi','split','search','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','toString','name','31905VUSCEa','1269qNuVfO','getProjectConfig','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','30444GYgoTj','constructor','create-security-group','(((.+)+)+)+$','maka\x20aws:create-secuirty-group','788hyMIqk','22,80,443','Security\x20Group\x20Name:\x20[','10762moLPiC','maka\x20aws:csg'];a8c=function(){return q;};return a8c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xe0;let f=c[d];return f;},a9d(a,b);}function a9c(){const k=['maka\x20aws:describe-instances','describe-instances','468564wTtkkt','576139sxmaNw','49JgHcJC','1637892pDQpoH','apply','150480ByOCFd','1239350VoqXHE','constructor','create','(((.+)+)+)+$','toString','308728BrfPsA','exit','3516477njAOzB','176QmmGDC','225dXaldp','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','search'];a9c=function(){return k;};return a9c();}const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0xe7))/0x1+-parseInt(f(0xe9))/0x2+-parseInt(f(0xf3))/0x3+parseInt(f(0xe0))/0x4*(-parseInt(f(0xeb))/0x5)+-parseInt(f(0xe6))/0x6*(-parseInt(f(0xe8))/0x7)+-parseInt(f(0xf1))/0x8+parseInt(f(0xe1))/0x9*(parseInt(f(0xec))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xd3bb4));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0xf0)]()[h(0xe3)](h(0xef))['toString']()[h(0xed)](a9a)[h(0xe3)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a9i(0xee)]({'name':a9i(0xe5),'aliases':['di'],'usage':a9i(0xe4),'validOpts':[],'shortDesc':a9i(0xe2),'examples':[a9i(0xe4),'maka\x20aws:di'],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const j=a9i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){console['error'](b),process[j(0xf2)](0x0);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a10c(){const k=['toString','create','467071lXuGCg','7666BvXSJG','6792izyZVQ','error','155776RmDcGG','657924JHSuPx','dkp','49EbWjwQ','maka\x20aws:dkp','ec2describeKeys','apply','constructor','4XreHQV','search','exit','29ZNpPPp','70GSADFD','describe-key-pairs','maka\x20aws:describe-key-pairs','1091619zIChnR','6214gwswbq','10EDjpXB','798489xshNQc'];a10c=function(){return k;};return a10c();}const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x74;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x76))/0x1*(parseInt(f(0x81))/0x2)+parseInt(f(0x7a))/0x3*(parseInt(f(0x8c))/0x4)+-parseInt(f(0x7c))/0x5*(-parseInt(f(0x85))/0x6)+parseInt(f(0x87))/0x7*(-parseInt(f(0x84))/0x8)+-parseInt(f(0x7d))/0x9+parseInt(f(0x77))/0xa*(-parseInt(f(0x80))/0xb)+-parseInt(f(0x82))/0xc*(-parseInt(f(0x7b))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x35ca0));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x8a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x7e)]()[h(0x74)]('(((.+)+)+)+$')[h(0x7e)]()[h(0x8b)](a10a)['search']('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10i(0x7f)]({'name':a10i(0x78),'aliases':[a10i(0x86)],'usage':a10i(0x79),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a10i(0x79),a10i(0x88)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x89)]();}catch(b){console[j(0x83)](b),process[j(0x75)](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(0x16d))/0x1+-parseInt(l(0x15f))/0x2+-parseInt(l(0x14d))/0x3*(parseInt(l(0x170))/0x4)+-parseInt(l(0x164))/0x5+parseInt(l(0x172))/0x6+-parseInt(l(0x166))/0x7*(parseInt(l(0x16f))/0x8)+parseInt(l(0x16e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x92e1a));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a['toString']()[n(0x169)](n(0x16c))[n(0x14c)]()['constructor'](a11a)[n(0x169)](n(0x16c));});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x14c;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const s=['1171480vFqvsA','51421167MiXoTI','9338704fdMoPJ','3640mQGVfh','Deleting\x20a\x20','1302876EEAjPL','toString','2553wPNxWS','\x20SG\x20NAME:\x20','getProjectConfig','includes','success','confirm','exit','ID:\x20','ask','deleteSecurityGroup','error','dsg','maka\x20aws:dsg','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','delete-security-group','Not\x20deleting\x20secuirty\x20group','getSecurityGroups','2222470wmsezH','Deleted\x20','bright','create','maka\x20aws:delete-sg','5522600DsZUcl','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','7gqdsmd','forEach','sgId','search','name','apply','(((.+)+)+)+$'];a11c=function(){return s;};return a11c();}import{Log}from'../../tools/log/log.class.js';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(0x162)]({'name':a11o(0x15c),'aliases':[a11o(0x158)],'usage':'maka\x20aws:delete-sg','validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a11o(0x163),a11o(0x159)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x14f)]();d=j['appName'];}const {sgList:f}=await a[p(0x15e)]();f['forEach'](function(k){const q=p;c&&k['name'][q(0x150)](d)?Log['notice'](q(0x154)+k['id']+q(0x14e)+k[q(0x16a)]+'\x20SGID:\x20'+k[q(0x168)]):Log[q(0x161)](q(0x154)+k['id']+q(0x14e)+k['name']+'\x20SGID:\x20'+k[q(0x168)]);});let g='';const h=await Actions[p(0x155)](p(0x165));f[p(0x167)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x168)]);});if(!g)throw Log[p(0x157)](p(0x15b));const i=await Actions[p(0x152)](p(0x171)+g+p(0x15a),![]);i?(await a[p(0x156)](g),Log[p(0x151)](p(0x160)+g)):Log[p(0x157)](p(0x15d)),process['exit'](0x0);}catch(k){process[p(0x153)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-
|
|
1
|
+
const a12i=a12d;function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xe7;let f=c[d];return f;},a12d(a,b);}(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0xfe))/0x1*(-parseInt(f(0xed))/0x2)+-parseInt(f(0xee))/0x3*(-parseInt(f(0xe8))/0x4)+-parseInt(f(0xfc))/0x5*(parseInt(f(0xea))/0x6)+parseInt(f(0xf2))/0x7+parseInt(f(0xf3))/0x8+-parseInt(f(0xf4))/0x9*(parseInt(f(0x103))/0xa)+-parseInt(f(0xf0))/0xb*(parseInt(f(0x105))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xd3ac4));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()[h(0xf8)](h(0x100))[h(0x104)]()[h(0xef)](a12a)[h(0xf8)](h(0x100));});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(0xfd)]({'name':a12i(0xf1),'aliases':[a12i(0x102)],'usage':a12i(0xff),'validOpts':[],'shortDesc':a12i(0x101),'examples':[a12i(0xff),a12i(0xfb)]},async function(){const j=a12i;try{const a=new AWS(),b=await a[j(0xf5)]();if(b?.[j(0xf9)]==='running'){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0x106)]+j(0xe7));c&&b[j(0xeb)]?a[j(0xf7)]({'instanceId':b[j(0xeb)]}):Log[j(0xf6)](j(0xec)+b[j(0x106)]+'\x20is\x20still\x20running.');}else Log[j(0xf6)](j(0xe9));}catch(d){console[j(0xf6)](d),process['exit'](0x0);}},a12e);function a12c(){const k=['3234zIPohY','reboot-instance','4254397kdsaaE','3321784aUNEDd','2478051UDcPms','chooseInstance','error','ec2rebootInstance','search','status','apply','maka\x20aws:rbi','25oGwTxf','create','859QAfJvR','maka\x20aws:reboot-instance','(((.+)+)+)+$','Reboot\x20an\x20EC2\x20instance','rbi','20SQAzpS','toString','15780tLcEEi','name','\x20Ready?','1048XUfFpC','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','392346rhtnia','instanceId','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','122VZdPGK','13290KSVTcG','constructor'];a12c=function(){return k;};return a12c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13H=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x18d;let f=c[d];return f;},a13d(a,b);}(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0x1b3))/0x1*(-parseInt(E(0x194))/0x2)+parseInt(E(0x1bb))/0x3+-parseInt(E(0x1ba))/0x4+parseInt(E(0x199))/0x5*(-parseInt(E(0x1be))/0x6)+-parseInt(E(0x1ae))/0x7+parseInt(E(0x1b9))/0x8+parseInt(E(0x1af))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x7a291));function a13c(){const J=['Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','create','Contact\x20First\x20Name\x20[Contact]:\x20','Country\x20Code\x20[US]:\x20','mail@example.com','domain','+1.5555555556','exit','maka\x20aws:register-domain-name\x20--domain=example.com','PERSON','maka\x20aws:register-domain-name','ask','error','6962403hiwDkx','16322382cCUGhR','options','My\x20Comanpy,\x20LLC.','values','1cnpfcH','confirm','toString','rdn','RESELLER','Contact\x20Email\x20[mail@example.com]:\x20','5084656lnaoUt','987356gifhhw','1878342IFzwPL','+1.5555555555','contactType','1311348hRglqi','Contact\x20Last\x20Name\x20[Person]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Choose\x20contact\x20type','search','notice','(((.+)+)+)+$','\x20/\x20Year\x20\x0a','OrganizationName','State\x20[HI]:\x20','96816','ASSOCIATION','checkDomainAvailability','constructor','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','1792682QrFrzi','Are\x20you\x20sure?','list','The\x20domain\x20name:\x20','register-domain-name','10Nwwgtv','maka\x20aws:rdn\x20--domain=example.com','Do\x20you\x20wish\x20to\x20register\x20','warn','\x20/\x20Year)','includes','PUBLIC_BODY'];a13c=function(){return J;};return a13c();}const a13b=(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;};}()),a13a=a13b(this,function(){const F=a13d;return a13a[F(0x1b5)]()[F(0x1c2)]('(((.+)+)+)+$')[F(0x1b5)]()[F(0x192)](a13a)[F(0x1c2)](F(0x1c4));});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 G=a13d;return Object[G(0x1b2)](CountryCode)[G(0x19e)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13H(0x1a2)]({'name':a13H(0x198),'aliases':[a13H(0x1b6)],'usage':a13H(0x1ab),'requiredOpts':[a13H(0x1a6)],'validOpts':[],'shortDesc':a13H(0x1a0),'examples':[a13H(0x1a9),a13H(0x19a)]},async function(a,b){const I=a13H;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[I(0x191)](c);if(f&&g){Log[I(0x1c3)](I(0x197)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[I(0x19c)]('\x20\x20'+h+'\x20'+i+I(0x1c5));const j=await Actions[I(0x1b4)](I(0x19b)+c+'\x20?',![]);if(j){const k={'type':I(0x196),'name':I(0x1bd),'message':I(0x1c1),'choices':[I(0x190),'COMPANY',I(0x1aa),I(0x19f),I(0x1b7)]},l=await Actions[I(0x1ac)]('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[I(0x1ac)](I(0x1a3))||'Contact',n=await Actions[I(0x1ac)](I(0x1bf))||'Person',{contactType:o}=await Actions[I(0x1b0)](k),p=await Actions[I(0x1ac)](I(0x193))||'123\x20Glorious\x20Way',q=await Actions[I(0x1ac)]('Address\x20Line\x202:\x20'),r=await Actions[I(0x1ac)]('Zip\x20Code\x20[96816]:\x20')||I(0x18f),s=await Actions[I(0x1ac)](I(0x18e))||'HI',t=await Actions[I(0x1ac)](I(0x1a4))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x1ad)]('Invalid\x202\x20character\x20country\x20code');const v=await Actions[I(0x1ac)](I(0x1a1))||I(0x1bc),w=await Actions[I(0x1ac)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||I(0x1a7),x=await Actions[I(0x1ac)](I(0x1b8))||I(0x1a5),y=await Actions[I(0x1b4)]('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!==I(0x1aa)){const C=await Actions['ask']('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||I(0x1b1);z[I(0x18d)]=C;}const A=h||0x0*parseInt(l);Log[I(0x1c3)](I(0x1c0)),Log['warn'](A+'\x20'+i+'\x20for\x20'+l+'\x20years\x20('+h+'\x20'+i+I(0x19d));const B=await Actions[I(0x1b4)](I(0x195));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw Log[I(0x1ad)]('Domain\x20name\x20is\x20unavailable');}catch(D){console[I(0x1ad)](D),process[I(0x1a8)](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(0x16f))/0x1*(parseInt(h(0x16c))/0x2)+parseInt(h(0x172))/0x3+-parseInt(h(0x176))/0x4*(-parseInt(h(0x166))/0x5)+parseInt(h(0x168))/0x6*(-parseInt(h(0x15e))/0x7)+parseInt(h(0x169))/0x8*(-parseInt(h(0x165))/0x9)+parseInt(h(0x161))/0xa*(-parseInt(h(0x164))/0xb)+parseInt(h(0x15d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x72a32));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x157;let f=c[d];return f;},a14d(a,b);}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x15c)]()[j(0x160)]('(((.+)+)+)+$')['toString']()['constructor'](a14a)['search'](j(0x163));});function a14c(){const m=['ec2describeKeys','search','7472020PpKlJQ','maka\x20aws:rkp','(((.+)+)+)+$','11uGBcJP','83601IhifQf','5KydjkL','\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','80124gwNdBy','664NuAVJf','Not\x20deleting\x20keypair','success','61514eGsGOH','exit','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','29kmFmmu','create','maka\x20aws:remove-key-pair','2436816BMfoyw','ask','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','error','1058276dpezNP','Deleting\x20a\x20','Please\x20choose\x20a\x20key\x20to\x20delete:','Deleted\x20','deleteKeyPair','apply','toString','28524924IQcMyo','301iTiBsb'];a14c=function(){return m;};return a14c();}a14a();import a14e 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[a14k(0x170)]({'name':'remove-key-pair','aliases':['rkp'],'usage':a14k(0x171),'validOpts':[],'shortDesc':a14k(0x174),'description':a14k(0x167),'examples':['maka\x20aws:remove-key-pair',a14k(0x162)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0x15f)]();let c=undefined;const d=await Actions[l(0x173)](l(0x158));b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x175)](l(0x16e));const f=await Actions['confirm'](l(0x157)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[l(0x15a)](c),Log[l(0x16b)](l(0x159)+c)):Log['error'](l(0x16a)),process[l(0x16d)](0x0);}catch(g){process[l(0x16d)](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(0x12f))/0x1+-parseInt(l(0x114))/0x2*(-parseInt(l(0x13c))/0x3)+parseInt(l(0x135))/0x4+parseInt(l(0x10e))/0x5*(parseInt(l(0x139))/0x6)+-parseInt(l(0x132))/0x7+parseInt(l(0x110))/0x8+-parseInt(l(0x124))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x2a911));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a15d;if(c){const e=c[m(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const n=a15d;return a15a[n(0x138)]()[n(0x117)](n(0x13f))[n(0x138)]()[n(0x111)](a15a)[n(0x117)](n(0x13f));});function a15c(){const q=['config/ssh.json','toString','6DIevtY','getConfigPath','\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','428757bmAUmr','parse','publicIp','(((.+)+)+)+$','425645FiaGmp','writeFileSync','1692176oUPoml','constructor','env','public','2QKYBtr','fsi','exit','search','stringify','error','host','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','appName','join','maka\x20aws:set-host\x20--env\x20dev','template','\x20IP\x20to\x20','private','maka\x20aws:sth\x20--env\x20prod','set-host','339426uPSKvB','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','ask','privateIp','readFileSync','inherit','\x0aSaved\x20host\x20','sth','chooseInstance','utf8','cat\x20','10887vDpnZF','isFile','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','1650033MRCtJe','ssh.json','apply','76412myoFKZ','getProjectConfig'];a15c=function(){return q;};return a15c();}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';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x10e;let f=c[d];return f;},a15d(a,b);}Command['create']({'name':a15o(0x123),'aliases':[a15o(0x12b)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a15o(0x112)],'validOpts':[],'shortDesc':a15o(0x131),'description':a15o(0x13b),'examples':[a15o(0x11e),a15o(0x122)]},async function(a,b){const p=a15o;try{const c=new AWS(),d=this[p(0x115)][p(0x13a)](b['env']),f=this['fsi'][p(0x136)](),g=await c[p(0x12c)](),h=a15e['join'](d,p(0x133));!this[p(0x115)][p(0x130)](h)&&await this[p(0x115)][p(0x11f)]({'srcPath':p(0x137),'destPath':h,'context':{'app':f[p(0x11c)]},'config':f});const i=JSON[p(0x13d)](a15f[p(0x128)](h,p(0x12d))),j=await Actions[p(0x126)](p(0x11b))||'public';if(j){if(j===p(0x113)||j===p(0x121)){if(j===p(0x113))i[p(0x11a)]=g?.[p(0x13e)];else j===p(0x121)&&(i[p(0x11a)]=g?.[p(0x127)]);}else throw p(0x125);}else i[p(0x11a)]=g?.[p(0x127)];a15f[p(0x10f)](a15e[p(0x11d)](d,p(0x133)),JSON[p(0x118)](i,null,0x2)),execSync(p(0x12e)+a15e[p(0x11d)](d,p(0x133)),{'stdio':p(0x129)}),Log['success'](p(0x12a)+j+p(0x120)+d+a15e['sep']+'ssh.json');}catch(k){console[p(0x119)](k),process[p(0x116)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0xe3))/0x1+parseInt(f(0xec))/0x2+-parseInt(f(0xd9))/0x3*(parseInt(f(0xed))/0x4)+parseInt(f(0xf2))/0x5+parseInt(f(0xe6))/0x6+-parseInt(f(0xde))/0x7+-parseInt(f(0xd7))/0x8*(-parseInt(f(0xd8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xb8011));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0xf1)]()[h(0xd6)](h(0xe1))[h(0xf1)]()[h(0xf0)](a16a)[h(0xd6)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xd5;let f=c[d];return f;},a16d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';function a16c(){const k=['\x20Ready?','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','(((.+)+)+)+$','running','694167thDedA','confirm','maka\x20aws:ti','347700AZNzNn','instanceId','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','ec2terminateInstance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','apply','1863694SFNnPX','428876LVNbmV','terminate-instance','error','constructor','toString','4579145jowdlJ','\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','search','56SnRays','3124881kzpNEV','39jBjvdZ','exit','status','name','Terminate\x20an\x20EC2\x20instance','10460758TsuJWL'];a16c=function(){return k;};return a16c();}import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a16i(0xee),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'shortDesc':a16i(0xdd),'description':a16i(0xd5),'examples':['maka\x20aws:terminate-instance',a16i(0xe5)]},async function(){const j=a16i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0xe7)]&&b?.[j(0xdb)]===j(0xe2)){const c=await Actions[j(0xe4)](j(0xe8)+b[j(0xdc)]+j(0xdf));c?a[j(0xe9)]({'instanceId':b[j(0xe7)]}):Log[j(0xef)](j(0xea)+b['name']+j(0xe0));}else Log[j(0xef)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console['error'](d),process[j(0xda)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=parseInt(f(0x73))/0x1+-parseInt(f(0x76))/0x2*(-parseInt(f(0x72))/0x3)+-parseInt(f(0x6c))/0x4*(parseInt(f(0x75))/0x5)+-parseInt(f(0x6b))/0x6+parseInt(f(0x6f))/0x7+parseInt(f(0x6d))/0x8+-parseInt(f(0x6e))/0x9*(parseInt(f(0x77))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xf2c7a));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x74)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a[h(0x78)]()[h(0x71)]('(((.+)+)+)+$')[h(0x78)]()[h(0x70)](a17a)[h(0x71)]('(((.+)+)+)+$');});a17a();function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x6b;var f=c[d];return f;},a17d(a,b);}import'./build.js';import'./docker.sub.cmd.js';function a17c(){var i=['toString','1358658sIJTPe','1029164ByMhuv','3379464DUfAQU','263565Oprjna','10765398zBsqgv','constructor','search','3180927XfPsBM','494906MKGVhS','apply','15haFdvF','2ZkOrHn','520hvNuux'];a17c=function(){return i;};return a17c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18r=a18d;(function(a,b){const o=a18d,c=a();while(!![]){try{const d=-parseInt(o(0x198))/0x1+parseInt(o(0x195))/0x2+parseInt(o(0x18d))/0x3+-parseInt(o(0x180))/0x4*(parseInt(o(0x17e))/0x5)+-parseInt(o(0x175))/0x6+parseInt(o(0x19a))/0x7*(parseInt(o(0x19d))/0x8)+parseInt(o(0x193))/0x9*(parseInt(o(0x194))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x7072a));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a18d;if(c){const e=c[p(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const q=a18d;return a18a['toString']()[q(0x18a)]('(((.+)+)+)+$')['toString']()[q(0x185)](a18a)['search'](q(0x189));});a18a();import a18e from'path';function a18c(){const u=['This\x20project\x27s\x20meteor\x20version\x20(','argv','Verifying\x20meteor\x20package\x20requirements\x20...','build','join','invokeMeteorCommand','926135IsJWsp','findProjectDirectory','4iHDNex','maka\x20build','installMeteorPackage','forEach','getGlobalMeteorVersion','constructor','error','notice','\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','(((.+)+)+)+$','search',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','slice','2137086VkBFFZ','apply','pathFromProject','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','force','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','9ZAgHrh','1558040AqgvLn','822696tbcjuE','getProjectMeteorVersion','exit','525687KhrATE','autoupdate','8491cWqBed','update','splice','4424eQtFdN','concat','confirm',').\x20Update?','checkMeteorPackage','--release','4672818daSRBM','fsi','app.tar.gz'];a18c=function(){return u;};return a18c();}import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x174;let f=c[d];return f;},a18d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a18r(0x17b),'usage':a18r(0x181),'validOpts':[a18r(0x191)],'shortDesc':a18r(0x190),'mustBeInMakaProject':!![],'description':a18r(0x188),'examples':[a18r(0x181)]},async function(a,b){const s=a18r;try{const c=this['fsi'][s(0x17f)]();!this[s(0x176)][s(0x1a1)]('autoupdate')&&(Log[s(0x187)](s(0x17a)),await this[s(0x176)][s(0x182)](s(0x199),{'cwd':c}));const d=b[s(0x191)];if(!d){const h=this[s(0x176)][s(0x184)](),i=this['fsi'][s(0x196)](),j=a18g['gt'](h,i);if(j){const k=await Actions[s(0x19f)](s(0x178)+i+s(0x18b)+h+s(0x1a0));k&&this[s(0x176)][s(0x17d)](s(0x19b),[s(0x174),h]);}}const f=[this[s(0x176)]['pathFromProject']({'pathParts':[s(0x17b)]})][s(0x19e)](process[s(0x179)][s(0x18c)](0x3)),g=a18e[s(0x17c)](this['fsi'][s(0x18f)]({}),s(0x17b),s(0x177));if(a18f['existsSync'](g)){const l=d??await Actions[s(0x19f)](s(0x192));if(!l)throw Log[s(0x186)]('Aborted.');}f[s(0x183)]((m,n)=>{const t=s;m==='--force'&&f[t(0x19c)](n,0x2);}),this['fsi'][s(0x17d)](s(0x17b),f);}catch(m){console['error'](m),process[s(0x197)](0x0);}});export default BuildCommand;
|