@maka/maka-cli 4.9.10 → 4.9.12
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 -2
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +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 -2
- package/bundle/obf/src/templates/react/component/component.js +0 -0
- package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
- package/bundle/obf/src/templates/react/hook/hook.js +0 -1
- package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
package/bundle/obf/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"
|
|
4
|
-
"version": "4.9.10",
|
|
3
|
+
"version": "4.9.12",
|
|
5
4
|
"type": "module",
|
|
6
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0q=a0d;function
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x204))/0x1+-parseInt(n(0x1e9))/0x2+-parseInt(n(0x1eb))/0x3*(-parseInt(n(0x1e0))/0x4)+parseInt(n(0x1e1))/0x5*(parseInt(n(0x214))/0x6)+-parseInt(n(0x209))/0x7+parseInt(n(0x1fa))/0x8*(-parseInt(n(0x1e6))/0x9)+-parseInt(n(0x1d1))/0xa*(-parseInt(n(0x20f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb4c3d));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x21c)]()['search'](p(0x212))['toString']()[p(0x1ea)](a0a)[p(0x1d2)]('(((.+)+)+)+$');});function a0c(){const A=['push','Alias','Command\x20not\x20found','Command.create\x20requires\x20a\x20handler\x20function!','5303424FNwKLH','validateParams','LIGHT','call','\x20not\x20found','sort','12001EcXbvK','name','run','(((.+)+)+)+$','Please\x20run\x20\x22maka\x20login\x22','1195626vaWbCY','setColorMode','help','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','notice','getGlobalConfig','fsi','Sub-Commands:','toString','validateMakaSubscription','function','exit','unshift','validateMakaProject','light','Command\x20requires\x20a\x20handler\x20function','match','apply','join','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Too\x20few\x20arguments','error','13390JgIxAw','search','usage','validateMeteorInstall','localeCompare','create','shortDesc','options','aliases','slice','number','DARK','Name','mustBeLoggedIn','split','912004uatfJR','15SWZyAQ','addCommand','Command\x20','header','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','963nbUUdV','_commands','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','1804596PJZRlo','constructor','3oCXDYR','maxArgLength','Too\x20many\x20arguments','pallet','invoke','bind','maxOptsLength','generate','play','mustBeInMakaProject','assign','tableList','murder','forEach','There\x20is\x20no\x20Meteor\x20application\x20here','40304MTPbNH','keys','minOptsLength','Command\x20format\x20is\x20incorrect','processAndRunCommand','minArgLength','Description','_handler','mustHaveMeteorInstalled','length','652746DMptCk'];a0c=function(){return A;};return a0c();}function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a0d(a,b);}a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x1d8)];[a0q(0x1e7)];constructor(a,b){const r=a0q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[r(0x210)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(r(0x1ca));this['options']=Object[r(0x1f5)]({},a),this[r(0x210)]=this[r(0x1d8)][r(0x210)],this[r(0x1e7)]=[],this['_handler']=b[r(0x1f0)](this);}static[a0q(0x1d6)](a,b,c){const s=a0q;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==s(0x21e))throw new Error(s(0x208));const d=new Command(a,b);return c=c||a0f,Object[s(0x1f5)](d,{'parent':c?.[s(0x1d8)]?.[s(0x210)]}),c[s(0x1e2)](d),d;}[a0q(0x1e2)](a){const t=a0q;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[t(0x1e7)][t(0x205)](a);}async[a0q(0x211)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x21a)][u(0x219)](),d=c[u(0x1ee)]===u(0x1c9)?ColorMode[u(0x20b)]:ColorMode[u(0x1dc)];Log[u(0x215)](d),await this[u(0x21d)](this);}catch(f){Log[u(0x1d0)](f),process['exit'](0x0);}return await this[u(0x1ef)](a,b);}catch(g){process[u(0x21f)](0x1);}}async[a0q(0x1ef)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[v(0x1d8)][v(0x210)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x203)]===0x0)&&this[v(0x1e7)][v(0x203)]>=0x0,g=b[v(0x216)]||b['h'];if(f&&g){if(this[v(0x1e7)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][v(0x1f4)]){const h=this[v(0x1c8)]();if(!h)throw new MustBeInProjectError();}if(this['options'][v(0x1de)]){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this['options'][v(0x202)]){const j=this[v(0x1d4)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x1d8)][v(0x1ff)]==='number'){if(a[v(0x203)]<this['options']['minArgLength']){Log['error'](v(0x1cf));throw new UsageError();}}if(typeof this['options'][v(0x1ec)]===v(0x1db)){if(a[v(0x203)]>=this[v(0x1d8)][v(0x1ec)]){Log[v(0x1d0)](v(0x1ed));throw new UsageError();}}if(typeof this[v(0x1d8)][v(0x1fc)]===v(0x1db)){if(Object[v(0x1fb)](b)[v(0x203)]<this[v(0x1d8)]['minOptsLength']){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[v(0x1d8)][v(0x1f1)]===v(0x1db)){if(Object['keys'](b)[v(0x203)]>=this['options'][v(0x1f1)]){Log['error']('Too\x20many\x20options');throw new UsageError();}}}}b=await this[v(0x20a)](a,b,this[v(0x1d8)]),_prevCmd=a[0x0];}return await this[v(0x201)][v(0x20c)](this,a,b);}catch(k){Log[v(0x1d3)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0x218)](v(0x21b)),this[v(0x1f6)](this[v(0x1e7)]),Log[v(0x1e4)](v(0x217));else{if(k instanceof MustBeInProjectError)Log[v(0x1d0)](v(0x1e5));else{if(k instanceof NoMeteorFoundError)Log[v(0x1d0)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[v(0x218)](v(0x1ce));else{if(k instanceof NoMeteorAppFoundError)Log['error'](v(0x1f9));else k instanceof MustBeLoggedIn&&(Log[v(0x1d0)](v(0x1e8)),Log[v(0x218)](v(0x213)));}}}process[v(0x21f)](0x1);}}[a0q(0x1f6)](a){const w=a0q,b=new a0e({});b[w(0x205)]([w(0x1dd),w(0x206),w(0x200)]),a[w(0x20e)]((c,d)=>{const x=w;return c[x(0x210)][x(0x1d5)](d[x(0x210)]);})[w(0x1f8)](c=>{const y=w;c['name']!==y(0x1f7)&&c[y(0x210)]!==y(0x1f3)&&b['push']([c[y(0x210)],c[y(0x1d9)](),c[y(0x1d7)]()]);}),Log['bright'](b['toString']());}async[a0q(0x1fe)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x1df)](':');if(!d||d[z(0x203)]===0x0)throw z(0x1fd);if(d[0x0]===z(0x1f2)||d[0x0]==='g'&&d[z(0x203)]>0x1){const h=this[z(0x1e7)]['find'](j=>j[z(0x1cb)](z(0x1f2)));if(!h)throw z(0x207);await this[z(0x21d)](h);const i=d[z(0x1da)](0x1)[z(0x1cd)](':');return b[z(0x220)](i),await h[z(0x211)](b,c);}let f=this[z(0x1e7)],g;for(const j of d){g=f['find'](k=>k[z(0x1cb)](j));if(!g)try{await this[z(0x21a)]['maybeProxyCommandToMeteor']();}catch(k){throw z(0x1e3)+j+z(0x20d);}g&&(await this[z(0x21d)](g),f=g[z(0x1e7)]);}if(g){const l=await g[z(0x211)](b,c);return l;}else throw z(0x207);}catch(m){Log[z(0x1d0)](m),process['exit'](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(0x72))/0x1*(-parseInt(f(0x78))/0x2)+-parseInt(f(0x7d))/0x3+parseInt(f(0x76))/0x4+parseInt(f(0x7c))/0x5+-parseInt(f(0x77))/0x6+parseInt(f(0x71))/0x7+-parseInt(f(0x79))/0x8*(parseInt(f(0x73))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe3be8));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['toString']()[g(0x74)](g(0x7b))[g(0x7a)]()[g(0x75)](a1a)[g(0x74)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x71;var f=c[d];return f;},a1d(a,b);}import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';function a1c(){var h=['955864lJEqLB','327815DWMVCY','63XmvyNX','search','constructor','3513764agwhuL','1623252glMOBK','10LnzOFF','1667672bBUtEA','toString','(((.+)+)+)+$','4496830yZZTZf','2672517ymyPNo'];a1c=function(){return h;};return a1c();}import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x121))/0x1+parseInt(h(0xfc))/0x2+-parseInt(h(0x108))/0x3+-parseInt(h(0x119))/0x4*(parseInt(h(0x111))/0x5)+parseInt(h(0x11a))/0x6+-parseInt(h(0x102))/0x7*(parseInt(h(0x112))/0x8)+-parseInt(h(0x104))/0x9*(-parseInt(h(0x116))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x22c39));const a2b=(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;};}()),a2a=a2b(this,function(){const i=a2d;return a2a['toString']()[i(0xfa)](i(0xf5))[i(0xfb)]()[i(0x101)](a2a)[i(0xfa)](i(0xf5));});function a2c(){const n=['getGlobalConfig','You:\x20','300tmthJm','8IBnufD','trim','close','openai','2067610XjaCjl','createInterface','stdout','13672zOSwJr','907950EPkgSE','fsi','stdin','question','openapikey','notice','exit','240351AYGIMW','(((.+)+)+)+$','cacert','isFile','Using\x20OpenAI\x20Key\x20','ChatGPT\x20style\x20AI\x20interface','search','toString','45392ItHlPA','message','cert','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','bright','constructor','585494nxHJhH','toLowerCase','9oyGcWF','text','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','error','570054koqKbM','Using\x20CA\x20Cert\x20','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','GPT:\x20','choices','parse','data'];a2c=function(){return n;};return a2c();}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xf5;let f=c[d];return f;},a2d(a,b);}import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x117)]({'input':process[j(0x11c)],'output':process[j(0x118)]});c[j(0x11d)](j(0x110),async d=>{const k=j;if(d[k(0x103)]()===k(0x120)){c[k(0x114)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x10d)](e[k(0x10e)]);if(f[k(0x107)])throw new Error(f['error'][k(0xfd)]);Log[k(0x100)](k(0x10b)+f?.[k(0x10c)][0x0]?.[k(0x105)][k(0x113)]());}catch(g){Log[k(0x107)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':a2l(0xf9),'validOpts':[a2l(0xf6),a2l(0x11e)],'shortDesc':a2l(0xf9),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0xf6)]&&(this[m(0x11b)]['isFile'](b['cacert'])?(c=b[m(0xf6)],Log[m(0x11f)](m(0x109)+c)):Log[m(0x107)](m(0xff)+c));const d=await this[m(0x11b)][m(0x10f)]();if(d[m(0xfe)]){if(this[m(0x11b)][m(0xf7)](d['cert']))c=d['cert'];else throw Log[m(0x107)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[m(0x11e)])f=b[m(0x11e)],Log[m(0x11f)](m(0xf8)+f);else{if(d[m(0x115)])f=d[m(0x115)];else throw Log[m(0x107)](m(0x106));}console['log'](m(0x10a)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x107)](g),process[m(0x120)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a3c(){var i=['9azCHms','716GxgYNr','166642PcsvTr','100959iXgbPp','881187Rcuuah','813036QnPKgn','884090kMRXhy','213970EoggAF','apply','64UfKLXM','1585TGMgHE','(((.+)+)+)+$','toString','search'];a3c=function(){return i;};return a3c();}(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x1e7))/0x1+-parseInt(f(0x1ea))/0x2+parseInt(f(0x1e8))/0x3+parseInt(f(0x1e5))/0x4*(-parseInt(f(0x1e0))/0x5)+parseInt(f(0x1e9))/0x6+-parseInt(f(0x1e6))/0x7*(-parseInt(f(0x1df))/0x8)+parseInt(f(0x1e4))/0x9*(parseInt(f(0x1eb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x3b633));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x1e2)]()[h(0x1e3)]('(((.+)+)+)+$')[h(0x1e2)]()['constructor'](a3a)['search'](h(0x1e1));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1de;var f=c[d];return f;},a3d(a,b);}import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;function
|
|
1
|
+
const a4i=a4d;function a4c(){const j=['maka\x20aws:<sub-command>','\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','(((.+)+)+)+$','apply','5642160PdXWeo','aws','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','366umRavx','4104250RPgsSD','28240qtFFPi','24WpobwL','18tYSIoG','18037371wKxfrj','search','189584ZxFFoJ','295766vDziKm','1548764iesOae','constructor','4dlzBVj'];a4c=function(){return j;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1b4))/0x1*(-parseInt(f(0x1c4))/0x2)+-parseInt(f(0x1bc))/0x3*(-parseInt(f(0x1be))/0x4)+-parseInt(f(0x1b9))/0x5+parseInt(f(0x1bf))/0x6*(-parseInt(f(0x1b2))/0x7)+parseInt(f(0x1c3))/0x8*(-parseInt(f(0x1c0))/0x9)+-parseInt(f(0x1bd))/0xa+parseInt(f(0x1c1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x97b28));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a4d(a,b);}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()[h(0x1c2)](h(0x1b7))['toString']()[h(0x1b3)](a4a)[h(0x1c2)](h(0x1b7));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':a4i(0x1ba),'usage':a4i(0x1b5),'validOpts':[],'shortDesc':a4i(0x1bb),'description':a4i(0x1b6)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5l=a5d;
|
|
1
|
+
const a5l=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=parseInt(i(0x110))/0x1+parseInt(i(0x109))/0x2+-parseInt(i(0x111))/0x3*(-parseInt(i(0x115))/0x4)+-parseInt(i(0x114))/0x5+-parseInt(i(0x10a))/0x6*(-parseInt(i(0xfc))/0x7)+-parseInt(i(0x11a))/0x8*(-parseInt(i(0x105))/0x9)+-parseInt(i(0x103))/0xa*(parseInt(i(0x113))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x96f9c));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a5d;if(c){const e=c[j(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const k=a5d;return a5a[k(0x104)]()[k(0x116)]('(((.+)+)+)+$')['toString']()['constructor'](a5a)[k(0x116)](k(0x119));});a5a();import a5e 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 a5c(){const n=['create-hosted-zone','linkEC2ToRoute53','maka\x20aws:create-hosted-zone','chooseInstance','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','178080zzUQJC','3zddQtS','error','11SVSgfG','3164595wDGiQl','1950628NVRErY','search','Set\x20hosted\x20zone\x20to\x20an\x20instance?','create','(((.+)+)+)+$','1710784gxbMkO','exit','105LIViAg','chz','maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:chz\x20--domain=example.com','publicIp','apply','domain','10172240PlVlkS','toString','36VXOshg','confirm','route53CreateHostedZone','Instance\x20not\x20found','457450cBmWrn','207474NsyClL'];a5c=function(){return n;};return a5c();}function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xfb;let f=c[d];return f;},a5d(a,b);}Command[a5l(0x118)]({'name':a5l(0x10b),'aliases':[a5l(0xfd)],'usage':a5l(0x10d),'requiredOpts':[a5l(0x102)],'validOpts':[],'shortDesc':a5l(0x10f),'examples':[a5l(0xfe),a5l(0xff)]},async function(a,b){const m=a5l;try{const c=b[m(0x102)],d=new AWS();d[m(0x107)](c);const f=await Actions[m(0x106)](m(0x117));if(f){const g=await d[m(0x10e)]();if(g?.['id']){if(!g[m(0x100)])throw Log[m(0x112)]('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0x10c)](g['id'],g[m(0x100)],c);}else throw m(0x108);}}catch(h){h&&Log[m(0x112)](h),process[m(0xfb)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0xb8))/0x1+parseInt(ae(0x7d))/0x2*(parseInt(ae(0x86))/0x3)+parseInt(ae(0x81))/0x4*(-parseInt(ae(0x96))/0x5)+parseInt(ae(0xbc))/0x6+-parseInt(ae(0xa7))/0x7*(parseInt(ae(0x9e))/0x8)+-parseInt(ae(0xcb))/0x9+parseInt(ae(0x79))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x959e9));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0x8a)]()[ag(0x84)]('(((.+)+)+)+$')[ag(0x8a)]()['constructor'](a6a)[ag(0x84)](ag(0xa6));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x78;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';function a6c(){const au=['11105200sHZgxg','env','exit','ID:\x20','2QJkjRv','ec2create','maka\x20aws:ci\x20--env\x20prod','maka-cli','4WzEOwP','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','push','search','cider','1435323nDFFup','ImageID:','**\x20Available\x20key-pairs\x20**','number','toString','Security\x20Group\x20Name:\x20[','Desc','\x20CIDR:\x20','Key-Pair:\x20','1:1','isFile','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','name','Setting\x20the\x20key-pair\x20to:\x20','log','\x20SGID:\x20','1911220pTwbXw','success','\x20AMIID:\x20','**\x20Available\x20Subnets\x20**','build\x20on\x20','notice','Subnet:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','5578984ZCHZWE','alias','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','apply','bright','getSecurityGroups','sgId','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','(((.+)+)+)+$','7rXxxCP','string','getTime','\x20SG\x20NAME:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','forEach','Setting\x20AMI\x20ID\x20to\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','No\x20instance\x20has\x20been\x20created.','split','date','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','created-by','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','**\x20Available\x20Security\x20Groups\x20**','deleteSecurityGroup','377262FvulSH','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','\x20AZONE:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','4206696sKpNDT','\x20SUBNETID:\x20','getConfigFromShorthand','Web\x20App','desc','\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','t3.micro','createFile','parse','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','unlinkSync','*\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','deleteKeyPair','Setting\x20SG\x20ID\x20to:\x20','8773929GfDSqY','create','amazon','Remove\x20the\x20keypair\x20','join','user-data','cidr','chooseVPC','User\x20Data:','error','subnetId','fsi','confirm','Setting\x20Subnet\x20ID\x20to\x20','environment','Remove\x20the\x20security\x20group\x20','subnet','ask','Name'];a6c=function(){return au;};return a6c();}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[a6ah(0xcc)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ah(0x7f)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x7a)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0xc1)},async function(a,b){const ai=a6ah;try{const c=this[ai(0xd6)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xd6)][ai(0xbe)](b[ai(0x7a)]),i=this[ai(0xd6)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0xdc)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xd7)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x97)](ai(0x93)+r);}else try{Log[ai(0x9b)](ai(0x88));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions['ask'](ai(0xaf))||'-1';if(parseInt(C)<0x0){Log[ai(0xd4)]('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['notice'](ai(0xb0));return;}B?.[ai(0xad)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x92)],Log[aj(0x97)](aj(0x93)+r));});}catch(D){Log[ai(0xd4)](D);}l=await d[ai(0xd2)]();const t=await Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ai(0xd2)]():l;u=await Actions[ai(0xdc)](ai(0x8b)+k+']')||k;const F=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F[ai(0xb1)](',');await d['ec2createSG']({'description':ai(0xbf),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xa3)](u);if(I===''){Log[ai(0x9b)](ai(0xb6)),J[ai(0xad)](function(L){const ak=ai;L[ak(0x92)]===u?Log['notice'](ak(0x7c)+L['id']+ak(0xaa)+L[ak(0x92)]+ak(0x95)+L[ak(0xa4)]):Log[ak(0xa2)](ak(0x7c)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x92)]+ak(0x95)+L['sgId']);});const K=await Actions[ai(0xdc)](ai(0xb9)+H+']\x20')||H[ai(0x8a)]();J[ai(0xad)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xa4)],Log[al(0x97)](al(0xca)+m+'\x0a'));});}else m=I,Log[ai(0x97)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ai(0x91));}catch(L){Log[ai(0xd4)](L);}try{const M=0x7e6;Log[ai(0x9b)]('**\x20Available\x20AMIs\x20**');const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0xc8))['toString'](),O=JSON[ai(0xc4)](N),P=[],Q=[];O[ai(0xad)](function(S){const am=ai;if(S[am(0x9f)]===am(0xcd)){const T=S['Desc'][am(0xb1)](am(0x9a))[0x1];P[am(0x83)]({'amiId':S['ID'],'desc':S[am(0x8c)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T['date'])[an(0xa9)]()-new Date(S[an(0xb2)])['getTime']();}),P[ai(0xad)](function(S,T){const ao=ai;Q[ao(0x83)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0xc0)]});}),Q[ai(0xad)](function(S){const ap=ai;console[ap(0x94)](ap(0x7c)+S['id']+ap(0x98)+S['amiId']+'\x20DESCRIPTION:\x20'+S[ap(0xc0)]);});const R=await Actions[ai(0xdc)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q[ai(0xad)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x97)](aq(0xae)+n+'\x20:\x20'+S[aq(0xc0)]));});if(n==='')throw Log[ai(0xd4)](ai(0x91));}catch(S){Log['error'](S);}try{Log[ai(0x9b)](ai(0x99));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x8a)](),U=JSON[ai(0xc4)](T),V=[];U[ai(0xad)](function(X,Y){const ar=ai;V[ar(0x83)]({'id':Y,'cidr':X[ar(0x85)],'az':X['az'],'subnetId':X[ar(0xd5)]});}),V[ai(0xad)](function(X){const as=ai;console[as(0x94)]('ID:\x20'+X['id']+as(0x8d)+X[as(0xd1)]+as(0xba)+X['az']+as(0xbd)+X[as(0xd5)]);});const W=await Actions[ai(0xdc)](ai(0xa0))||'0';V[ai(0xad)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xd5)],Log[at(0x97)](at(0xd8)+p));});if(p==='')throw Log[ai(0xd4)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xdc)](ai(0x9d))||ai(0x8f),Z=Y['split'](':')[0x0],a0=Y[ai(0xb1)](':')[0x1];typeof parseInt(Z)===ai(0x89)&&typeof parseInt(a0)===ai(0x89)&&Log['success'](ai(0xc5)+Z+':'+a0);}catch(a1){Log[ai(0xd4)](a1);}try{const a2=await Actions[ai(0xdc)](ai(0xb5))||ai(0xc2);typeof a2===ai(0xa8)&&(o=a2);}catch(a3){Log[ai(0xd4)](a3);}let x='';try{const a4=await Actions[ai(0xd7)](ai(0xbb),![]);a4&&(x=a6f[ai(0xcf)](i,ai(0xd0)),Log[ai(0x9b)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0xd6)][ai(0xc3)]({'filePath':x,'data':''}),await Actions[ai(0xd7)](ai(0xa5)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xc4)](execSync(ai(0xab)+p+ai(0xac))[ai(0x8a)]())[0x0][ai(0xdb)];Log[ai(0x9b)](ai(0x87)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x9b)]('Instace\x20Type:\x20'+o),Log[ai(0x9b)](ai(0x8e)+r),Log['notice']('Security\x20Group:\x20'+m),Log[ai(0x9b)](ai(0x9c)+a6);if(x){Log[ai(0x9b)](ai(0xd3)+x);const a8=a6g['readFileSync'](x)['toString']();Log[ai(0x9b)](a8);}const a7=await Actions[ai(0xd7)](ai(0x82));if(a7){const a9=await d[ai(0x7e)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xb4),'Value':ai(0x80)},{'Key':ai(0xd9),'Value':h},{'Key':ai(0x78),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x97)](ai(0xc6)),Log[ai(0xa2)](ai(0xb3)));}else{Log[ai(0x9b)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ai(0xce)+r+'\x20?',!![]);aa&&(d[ai(0xc9)](r),f[ai(0x90)](s)&&a6g[ai(0xc7)](s));const ab=await Actions[ai(0xd7)](ai(0xda)+m+'\x20?',!![]);ab&&d[ai(0xb7)](m);}}catch(ac){Log[ai(0xd4)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x7b)](0x0);}},a6e);
|
|
1
|
+
const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=parseInt(ae(0x13d))/0x1+-parseInt(ae(0x100))/0x2+-parseInt(ae(0xf3))/0x3*(parseInt(ae(0xed))/0x4)+-parseInt(ae(0xf9))/0x5+-parseInt(ae(0xe6))/0x6*(parseInt(ae(0x11a))/0x7)+-parseInt(ae(0x12c))/0x8*(parseInt(ae(0x10a))/0x9)+parseInt(ae(0x121))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xd88dc));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a['toString']()[ag(0x129)](ag(0xf6))[ag(0x103)]()[ag(0xfe)](a6a)[ag(0x129)](ag(0xf6));});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=['Creating\x20user\x20data\x20file\x20in\x20','parse','**\x20Available\x20AMIs\x20**','date','ID:\x20','create','number','search','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','join','32CtTqtq','**\x20Available\x20key-pairs\x20**','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','t3.micro','createFile','22,80,443','1:1','env','exit','Instance\x20Count:\x20','maka\x20aws:create-instance\x20--env\x20dev','confirm','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','getMakaProjectConfig','create-instance','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','fsi','72796TWjVhx','\x20SG\x20NAME:\x20','Name','Instace\x20Type:\x20','sgId','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','readFileSync','deleteSecurityGroup','notice','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','EC2\x20Name:\x20[','\x20SGID:\x20','\x20DESCRIPTION:\x20','Setting\x20the\x20key-pair\x20to:\x20','Key-Pair:\x20','Remove\x20the\x20security\x20group\x20','created-by','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','unlinkSync','amiId','Desc','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Security\x20Group\x20Name:\x20[','7093380lkTOtc','maka-cli','ImageID:','Subnet:\x20','No\x20instance\x20has\x20been\x20created.','Would\x20you\x20like\x20to\x20include\x20user\x20data?','User\x20Data:','4JWnERe','forEach','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Create\x20new\x20AWS\x20instance','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','2400942VWmcgG','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','ask','(((.+)+)+)+$','getTime','\x20SUBNETID:\x20','957045SVHLrh','error','log','alias','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','constructor','Remove\x20the\x20keypair\x20','855358dvPBqb','maka\x20aws:create-instance','amazon','toString','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x20:\x20','cidr','\x20AZONE:\x20','isFile','ec2describeKeys','2879910gJWshC','createKeyPair','apply','user-data','success','\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','bright','desc','**\x20Available\x20Security\x20Groups\x20**','name','cider','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','split','Setting\x20SG\x20ID\x20to:\x20','getConfigFromShorthand','*\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','7MyZlxu','subnetId','environment','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','Web\x20App','push','subnet','46958000OTsYbD'];a6c=function(){return au;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xde;let f=c[d];return f;},a6d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a6ah(0x127)]({'name':a6ah(0x13a),'aliases':['ci'],'usage':a6ah(0x101),'examples':[a6ah(0x136),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0x133)}],'validOpts':[],'shortDesc':a6ah(0xf0),'description':a6ah(0x10f)},async function(a,b){const ai=a6ah;try{const c=this[ai(0x13c)][ai(0x139)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x13c)][ai(0x118)](b[ai(0x133)]),i=this[ai(0x13c)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0xf5)](ai(0x147)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x137)](ai(0x115),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x10b)]({'env':h});r=y,s=z,Log['success'](ai(0x14a)+r);}else try{Log[ai(0x145)](ai(0x12d));const A=r?r:k,B=await d[ai(0x109)]({'suggestion':A}),C=await Actions[ai(0xf5)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0xfa)](ai(0x11d)),Log[ai(0x145)](ai(0xea));return;}B?.[ai(0xee)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x10e)](aj(0x14a)+r));});}catch(D){Log[ai(0xfa)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0x137)](ai(0x104),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions['ask'](ai(0xe5)+k+']')||k;const F=await Actions[ai(0xf5)](ai(0xf2))||ai(0x131),G=F['split'](',');await d['ec2createSG']({'description':ai(0x11e),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ai(0x145)](ai(0x112)),J[ai(0xee)](function(L){const ak=ai;L['name']===u?Log[ak(0x145)](ak(0x126)+L['id']+ak(0x13e)+L[ak(0x113)]+ak(0x148)+L[ak(0x141)]):Log['bright'](ak(0x126)+L['id']+ak(0x13e)+L[ak(0x113)]+ak(0x148)+L[ak(0x141)]);});const K=await Actions['ask'](ai(0xf1)+H+']\x20')||H[ai(0x103)]();J[ai(0xee)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x141)],Log['success'](al(0x117)+m+'\x0a'));});}else m=I,Log[ai(0x10e)](ai(0x117)+m+'\x0a');if(m==='')throw Log[ai(0xfa)](ai(0xe0));}catch(L){Log[ai(0xfa)](L);}try{const M=0x7e6;Log['notice'](ai(0x124));const N=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+M+ai(0x119))[ai(0x103)](),O=JSON[ai(0x123)](N),P=[],Q=[];O[ai(0xee)](function(S){const am=ai;if(S[am(0xfc)]===am(0x102)){const T=S[am(0xe3)]['split']('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0xe3)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T[an(0x125)])['getTime']()-new Date(S['date'])[an(0xf7)]();}),P[ai(0xee)](function(S,T){const ao=ai;Q[ao(0x11f)]({'id':T,'amiId':S['amiId'],'desc':S['desc']});}),Q[ai(0xee)](function(S){const ap=ai;console['log'](ap(0x126)+S['id']+'\x20AMIID:\x20'+S['amiId']+ap(0x149)+S[ap(0x111)]);});const R=await Actions['ask'](ai(0x146))||'0';Q[ai(0xee)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xe2)],Log[aq(0x10e)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x105)+S[aq(0x111)]));});if(n==='')throw Log[ai(0xfa)](ai(0xe0));}catch(S){Log[ai(0xfa)](S);}try{Log[ai(0x145)]('**\x20Available\x20Subnets\x20**');const T=execSync(ai(0x12e))[ai(0x103)](),U=JSON[ai(0x123)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0x114)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0xee)](function(X){const as=ai;console[as(0xfb)](as(0x126)+X['id']+'\x20CIDR:\x20'+X[as(0x106)]+as(0x107)+X['az']+as(0xf8)+X[as(0x11b)]);});const W=await Actions['ask'](ai(0x12a))||'0';V[ai(0xee)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x11b)],Log[at(0x10e)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0xfa)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0xfa)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xf5)](ai(0x138))||ai(0x132),Z=Y[ai(0x116)](':')[0x0],a0=Y[ai(0x116)](':')[0x1];typeof parseInt(Z)===ai(0x128)&&typeof parseInt(a0)==='number'&&Log[ai(0x10e)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ai(0xfa)](a1);}try{const a2=await Actions['ask']('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0x12f);typeof a2==='string'&&(o=a2);}catch(a3){Log[ai(0xfa)](a3);}let x='';try{const a4=await Actions[ai(0x137)](ai(0xeb),![]);a4&&(x=a6f[ai(0x12b)](i,ai(0x10d)),Log[ai(0x145)](ai(0x122)+x),await this[ai(0x13c)][ai(0x130)]({'filePath':x,'data':''}),await Actions[ai(0x137)](ai(0x13b)));}catch(a5){Log[ai(0xfa)](a5);}try{const a6=JSON[ai(0x123)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0xf4))[ai(0x103)]())[0x0][ai(0x120)];Log[ai(0x145)](ai(0xe8)+n),Log[ai(0x145)](ai(0x135)+v+':'+w),Log[ai(0x145)](ai(0x140)+o),Log[ai(0x145)](ai(0x14b)+r),Log[ai(0x145)]('Security\x20Group:\x20'+m),Log['notice'](ai(0xe9)+a6);if(x){Log['notice'](ai(0xec)+x);const a8=a6g[ai(0x143)](x)['toString']();Log['notice'](a8);}const a7=await Actions[ai(0x137)](ai(0xfd));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xdf),'Value':ai(0xe7)},{'Key':ai(0x11c),'Value':h},{'Key':ai(0x13f),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x10e)](ai(0xe4)),Log[ai(0x110)](ai(0x142)));}else{Log[ai(0x145)](ai(0xef));const aa=await Actions[ai(0x137)](ai(0xff)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x108)](s)&&a6g[ai(0xe1)](s));const ab=await Actions[ai(0x137)](ai(0xde)+m+'\x20?',!![]);ab&&d[ai(0x144)](m);}}catch(ac){Log[ai(0xfa)](ac);}}catch(ad){ad&&Log[ai(0xfa)](ad),process[ai(0x134)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(
|
|
1
|
+
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x1fe))/0x1+parseInt(g(0x1f9))/0x2*(parseInt(g(0x1f7))/0x3)+parseInt(g(0x1f8))/0x4+parseInt(g(0x203))/0x5+-parseInt(g(0x1fa))/0x6+parseInt(g(0x1fb))/0x7*(-parseInt(g(0x1ff))/0x8)+parseInt(g(0x204))/0x9*(-parseInt(g(0x1f5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x2aae8));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x1fd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a['toString']()['search']('(((.+)+)+)+$')['toString']()[i(0x1f6)](a7a)[i(0x1f4)]('(((.+)+)+)+$');});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a7d(a,b);}import a7e from'./aws.command.js';function a7c(){const l=['78665lWfcIP','3376VNqPjF','createKeyPair','fsi','getConfigFromShorthand','1503295PlLJKd','761427ftqIbr','ckp','\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','env','maka\x20aws:create-key-pair\x20--env\x20prod','error','search','20isZili','constructor','993189oNjuJa','2716LhUsAd','2nSghkN','817212WjXmCA','3829oASHTb','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','apply'];a7c=function(){return l;};return a7c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'create-key-pair','aliases':[a7j(0x205)],'usage':'maka\x20aws:create-key-pair','examples':[a7j(0x208),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x207)],'validOpts':[],'shortDesc':a7j(0x1fc),'description':a7j(0x206)},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x201)][k(0x202)](b[k(0x207)]);c[k(0x200)]({'env':d});}catch(f){f&&Log[k(0x209)](f),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8p=a8d;
|
|
1
|
+
const a8p=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0xe4))/0x1+parseInt(m(0xcd))/0x2+parseInt(m(0xc7))/0x3+-parseInt(m(0xc8))/0x4+parseInt(m(0xc4))/0x5*(parseInt(m(0xd5))/0x6)+-parseInt(m(0xc9))/0x7*(parseInt(m(0xde))/0x8)+parseInt(m(0xe3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x7df17));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a8d;if(c){const e=c[n(0xda)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const o=a8d;return a8a[o(0xd1)]()[o(0xd0)](o(0xdc))['toString']()[o(0xd2)](a8a)['search'](o(0xdc));});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xc3;let f=c[d];return f;},a8d(a,b);}function a8c(){const s=['toString','constructor','maka\x20aws:csg','Web\x20App','125838iytGbG','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','exit','getMakaProjectConfig','List\x20is\x20not\x20all\x20numbers','apply','fsi','(((.+)+)+)+$','csg','23448NfhVqz','maka\x20aws:create-secuirty-group','create','Security\x20Group\x20Name:\x20[','split','4928436auqsQZ','341073zXMdnf','name','match','150zDyPxZ','error','chooseVPC','431496ESQNeG','2284940OVWKfb','826MMGuVU','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','ec2createSG','forEach','906806fRiGXy','22,80,443','ask','search'];a8c=function(){return s;};return a8c();}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[a8p(0xe0)]({'name':'create-security-group','aliases':[a8p(0xdd)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a8p(0xca),'description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a8p(0xdf),a8p(0xd3)]},async function(a,b){const q=a8p;try{const c=new AWS(),d=this[q(0xdb)][q(0xd8)](),{appName:f}=d,g=await c[q(0xc6)](),h=b[q(0xe5)]?b[q(0xe5)]:''+f,i=await Actions[q(0xcf)](q(0xe1)+h+']')||h,j=await Actions['ask'](q(0xd6))||q(0xce),k=j[q(0xe2)](',');k[q(0xcc)](l=>{const r=q;if(!l[r(0xc3)](/^\d+$/))throw r(0xd9);}),await c[q(0xcb)]({'description':q(0xd4),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xc5)](l),process[q(0xd7)](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0xce))/0x1*(parseInt(f(0xd5))/0x2)+-parseInt(f(0xd3))/0x3*(-parseInt(f(0xc6))/0x4)+parseInt(f(0xc2))/0x5+-parseInt(f(0xd7))/0x6*(-parseInt(f(0xc7))/0x7)+-parseInt(f(0xc4))/0x8*(parseInt(f(0xd6))/0x9)+parseInt(f(0xd4))/0xa+-parseInt(f(0xcc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x926a6));function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xc1;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0xc1)]()[h(0xcf)]('(((.+)+)+)+$')['toString']()[h(0xc8)](a9a)[h(0xcf)](h(0xc5));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9i(0xd0)]({'name':a9i(0xcd),'aliases':['di'],'usage':a9i(0xc3),'validOpts':[],'shortDesc':a9i(0xd1),'examples':[a9i(0xc3),'maka\x20aws:di'],'description':a9i(0xcb)},async function(){const j=a9i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){b&&Log[j(0xc9)](b),process[j(0xd2)](0x1);}},a9e);function a9c(){const k=['describe-instances','37630MvhmOE','search','create','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','exit','9fpWKCx','7489610EbXQdC','54jDZEaP','8522415zIqnpJ','12DDtRAR','toString','1080320RcVsSD','maka\x20aws:describe-instances','8CRYbqX','(((.+)+)+)+$','603644xUlPhi','1019753eREaKW','constructor','error','apply','\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','12963203dsFSbu'];a9c=function(){return k;};return a9c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1a5))/0x1+parseInt(f(0x19e))/0x2+parseInt(f(0x1a1))/0x3+-parseInt(f(0x1a7))/0x4+-parseInt(f(0x1ab))/0x5+-parseInt(f(0x19f))/0x6+-parseInt(f(0x1a9))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x6b2e5));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1aa)]()[h(0x1a0)]('(((.+)+)+)+$')['toString']()['constructor'](a10a)['search'](h(0x19a));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a10c(){const k=['(((.+)+)+)+$','apply','dkp','maka\x20aws:dkp','1527288peWWDH','3012768WgaFvA','search','1194087DkLPNd','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','maka\x20aws:describe-key-pairs','describe-key-pairs','763263cdkjPB','error','625312mWjBPF','exit','2174284Fmjsia','toString','2584275kXFJMR','ec2describeKeys','create'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x199;let f=c[d];return f;},a10d(a,b);}Command[a10i(0x199)]({'name':a10i(0x1a4),'aliases':[a10i(0x19c)],'usage':a10i(0x1a3),'validOpts':[],'shortDesc':a10i(0x1a2),'examples':[a10i(0x1a3),a10i(0x19d)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x1ac)]();}catch(b){b&&Log[j(0x1a6)](b),process[j(0x1a8)](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(0xdc))/0x1*(-parseInt(l(0xde))/0x2)+-parseInt(l(0xda))/0x3*(-parseInt(l(0xd4))/0x4)+-parseInt(l(0xc5))/0x5*(parseInt(l(0xdf))/0x6)+parseInt(l(0xd3))/0x7*(-parseInt(l(0xe2))/0x8)+parseInt(l(0xe0))/0x9+-parseInt(l(0xc7))/0xa*(parseInt(l(0xc0))/0xb)+parseInt(l(0xd5))/0xc*(parseInt(l(0xcc))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x6055c));function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xba;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a11d;if(c){const e=c[m(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const n=a11d;return a11a[n(0xc8)]()[n(0xbc)](n(0xc1))[n(0xc8)]()['constructor'](a11a)[n(0xbc)](n(0xc1));});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';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const s=['toString','sgId','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','exit','26xVUcFo','name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','getMakaProjectConfig','confirm','error','isMakaProject','21161yqEeFO','56BRDXxc','2424312cyBKVa','apply','notice','Deleted\x20','Deleting\x20a\x20','117795TmsYjT','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','9927pdMrce','deleteSecurityGroup','4FzWrKL','166548GwHJMp','4996917KYVEDv','ID:\x20','1592kFNwvi','delete-security-group','getSecurityGroups','Not\x20deleting\x20secuirty\x20group','bright','search','appName','success','\x20SG\x20NAME:\x20','11Euslxe','(((.+)+)+)+$','dsg','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','maka\x20aws:dsg','10yrTZQO','includes','4374400ysprKb'];a11c=function(){return s;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a11o(0xe3),'aliases':[a11o(0xc2)],'usage':'maka\x20aws:delete-sg','validOpts':[],'shortDesc':a11o(0xc3),'examples':['maka\x20aws:delete-sg',a11o(0xc4)]},async function(){const p=a11o;try{const a=new AWS(),b=new FSI(),c=b[p(0xd2)]();let d='';if(c){const j=b[p(0xcf)]();d=j[p(0xbd)];}const {sgList:f}=await a[p(0xe4)]();f['forEach'](function(k){const q=p;c&&k['name'][q(0xc6)](d)?Log[q(0xd7)](q(0xe1)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0xcd)]+'\x20SGID:\x20'+k[q(0xc9)]):Log[q(0xbb)](q(0xe1)+k['id']+q(0xbf)+k['name']+'\x20SGID:\x20'+k['sgId']);});let g='';const h=await Actions['ask'](p(0xca));f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0xc9)]);});if(!g)throw Log[p(0xd1)](p(0xce));const i=await Actions[p(0xd0)](p(0xd9)+g+p(0xdb),![]);i?(await a[p(0xdd)](g),Log[p(0xbe)](p(0xd8)+g)):Log[p(0xd1)](p(0xba)),process[p(0xcb)](0x0);}catch(k){k&&Log[p(0xd1)](k),process[p(0xcb)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1b3))/0x1+parseInt(f(0x1b9))/0x2+parseInt(f(0x1b5))/0x3+parseInt(f(0x1ba))/0x4+parseInt(f(0x1c9))/0x5+parseInt(f(0x1c7))/0x6*(-parseInt(f(0x1b4))/0x7)+-parseInt(f(0x1bb))/0x8*(parseInt(f(0x1c8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xec648));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a['toString']()[g(0x1bf)]('(((.+)+)+)+$')[g(0x1be)]()[g(0x1bd)](a12a)[g(0x1bf)](g(0x1cd));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a12d(a,b);}Command[a12h(0x1b7)]({'name':a12h(0x1ce),'aliases':[a12h(0x1c4)],'usage':a12h(0x1cc),'validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a12h(0x1cc),a12h(0x1ca)]},async function(){const i=a12h;try{const a=new AWS(),b=await a[i(0x1b6)]();if(b?.[i(0x1b2)]===i(0x1c0)){const c=await Actions[i(0x1c2)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[i(0x1b8)]+i(0x1c6));c&&b['instanceId']?a[i(0x1c3)]({'instanceId':b['instanceId']}):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[i(0x1b8)]+i(0x1c5));}else Log[i(0x1bc)](i(0x1cb));}catch(d){d&&Log['error'](d),process[i(0x1c1)](0x1);}},a12e);function a12c(){const j=['8469330YpZjfu','maka\x20aws:rbi','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','maka\x20aws:reboot-instance','(((.+)+)+)+$','reboot-instance','status','1268022KkcCyw','2219gsOFif','2021238lrZTrh','chooseInstance','create','name','2893378PENFRv','6586248LRCYnA','3289016fFoWCf','error','constructor','toString','search','running','exit','confirm','ec2rebootInstance','rbi','\x20is\x20still\x20running.','\x20Ready?','31218GqrfyZ','90DixIhs'];a12c=function(){return j;};return a12c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(
|
|
1
|
+
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x71;let f=c[d];return f;},a13d(a,b);}function a13c(){const K=['registerDomain','Zip\x20Code\x20[96816]:\x20','options','OrganizationName','toString','\x20for\x20','checkDomainAvailability','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','1688FrbrTW','52622383PKxrbD','75066lwwHjx','ASSOCIATION','mail@example.com','Contact\x20Last\x20Name\x20[Person]:\x20','(((.+)+)+)+$','7355ASFbKK','warn','Domain\x20name\x20is\x20unavailable','apply','Contact\x20First\x20Name\x20[Contact]:\x20','96816','maka\x20aws:rdn\x20--domain=example.com','confirm','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','constructor','2704314tztWhe','76RHefAP','Auto\x20Renew:\x20','Choose\x20contact\x20type','10632NzfwCH','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','452270ETyYrO','\x20/\x20Year\x20\x0a','COMPANY','Contact','Duration\x20in\x20years\x20[1]:\x20','4041uqRLig','register-domain-name','maka\x20aws:register-domain-name\x20--domain=example.com','10WQsomr','6503560kIYDSP','notice','includes','\x20/\x20Year)','ask','RESELLER','Invalid\x202\x20character\x20country\x20code','search','PUBLIC_BODY','Are\x20you\x20sure?','maka\x20aws:register-domain-name','123\x20Glorious\x20Way','rdn','domain','Country\x20Code\x20[US]:\x20','My\x20Comanpy,\x20LLC.','Person','PERSON','State\x20[HI]:\x20','create','+1.5555555555','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','error'];a13c=function(){return K;};return a13c();}const a13I=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=-parseInt(E(0x91))/0x1+parseInt(E(0x8c))/0x2*(-parseInt(E(0x7c))/0x3)+-parseInt(E(0x7a))/0x4*(parseInt(E(0x81))/0x5)+-parseInt(E(0x8b))/0x6+-parseInt(E(0x9a))/0x7+-parseInt(E(0x8f))/0x8*(parseInt(E(0x96))/0x9)+-parseInt(E(0x99))/0xa*(-parseInt(E(0x7b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xbf469));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a13d;if(c){const e=c[F(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const G=a13d;return a13a[G(0x76)]()[G(0xa1)](G(0x80))['toString']()[G(0x8a)](a13a)[G(0xa1)](G(0x80));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a13d;return Object['values'](CountryCode)[H(0x9c)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13I(0xad)]({'name':a13I(0x97),'aliases':[a13I(0xa6)],'usage':a13I(0xa4),'requiredOpts':[a13I(0xa7)],'validOpts':[],'shortDesc':a13I(0x90),'examples':[a13I(0x98),a13I(0x87)]},async function(a,b){const J=a13I;try{const c=b[J(0xa7)],d=new AWS(),{available:f,cost:g}=await d[J(0x78)](c);if(f&&g){Log[J(0x9b)]('The\x20domain\x20name:\x20'+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0x82)]('\x20\x20'+h+'\x20'+i+J(0x92));const j=await Actions[J(0x88)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':'list','name':'contactType','message':J(0x8e),'choices':[J(0x7d),J(0x93),J(0xab),J(0xa2),J(0x9f)]},l=await Actions[J(0x9e)](J(0x95))||'1',m=await Actions[J(0x9e)](J(0x85))||J(0x94),n=await Actions[J(0x9e)](J(0x7f))||J(0xaa),{contactType:o}=await Actions[J(0x74)](k),p=await Actions[J(0x9e)](J(0x79))||J(0xa5),q=await Actions['ask']('Address\x20Line\x202:\x20'),r=await Actions[J(0x9e)](J(0x73))||J(0x86),s=await Actions[J(0x9e)](J(0xac))||'HI',t=await Actions[J(0x9e)](J(0xa8))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x71)](J(0xa0));const v=await Actions['ask']('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||J(0xae),w=await Actions['ask']('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||'+1.5555555556',x=await Actions['ask']('Contact\x20Email\x20[mail@example.com]:\x20')||J(0x7e),y=await Actions[J(0x88)](J(0x8d)),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(0xab)){const C=await Actions[J(0x9e)](J(0xaf))||J(0xa9);z[J(0x75)]=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0x89)),Log['warn'](A+'\x20'+i+J(0x77)+l+'\x20years\x20('+h+'\x20'+i+J(0x9d));const B=await Actions[J(0x88)](J(0xa3));B&&await d[J(0x72)](z,c,parseInt(l),y);}}else throw J(0x83);}catch(D){D&&Log[J(0x71)](D),process['exit'](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=parseInt(h(0xc6))/0x1*(parseInt(h(0xdb))/0x2)+parseInt(h(0xc0))/0x3+parseInt(h(0xcb))/0x4*(parseInt(h(0xcd))/0x5)+parseInt(h(0xd0))/0x6*(-parseInt(h(0xdc))/0x7)+-parseInt(h(0xbe))/0x8*(-parseInt(h(0xbb))/0x9)+parseInt(h(0xd4))/0xa+parseInt(h(0xcf))/0xb*(-parseInt(h(0xd7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x41f63));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xbb;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(0xcc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a['toString']()[j(0xc4)](j(0xd8))[j(0xd3)]()[j(0xc7)](a14a)[j(0xc4)](j(0xd8));});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';function a14c(){const n=['success','516uYRRWi','(((.+)+)+)+$','create','\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','355636hXEZsZ','112854iLlaiW','8208QUqKBP','Not\x20deleting\x20keypair','error','4728uWwJli','Deleted\x20','727056HWZcfZ','forEach','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ask','search','maka\x20aws:remove-key-pair','3YMfXQW','constructor','name','Please\x20choose\x20a\x20key\x20to\x20delete:','ec2describeKeys','1920788ISJNYV','apply','5kFscPo','exit','413809qSIjFE','12zbUqrY','deleteKeyPair','maka\x20aws:rkp','toString','1250450gLDSxD','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'];a14c=function(){return n;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14k(0xd9)]({'name':'remove-key-pair','aliases':['rkp'],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':'Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','description':a14k(0xda),'examples':[a14k(0xc5),a14k(0xd2)]},async function(){const l=a14k;try{const a=new AWS(),b=await a[l(0xca)]();let c=undefined;const d=await Actions[l(0xc3)](l(0xc9));b?.[l(0xc1)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xc8)]);});if(!c)throw Log[l(0xbd)](l(0xd5));const f=await Actions['confirm']('Deleting\x20a\x20'+c+l(0xc2),![]);f?(await a[l(0xd1)](c),Log[l(0xd6)](l(0xbf)+c)):Log[l(0xbd)](l(0xbc)),process['exit'](0x0);}catch(g){g&&Log['error'](g),process[l(0xce)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=parseInt(l(0x1e3))/0x1*(parseInt(l(0x1c6))/0x2)+-parseInt(l(0x1c3))/0x3+parseInt(l(0x1da))/0x4+parseInt(l(0x1d8))/0x5+-parseInt(l(0x1c5))/0x6*(-parseInt(l(0x1ce))/0x7)+-parseInt(l(0x1e9))/0x8+parseInt(l(0x1cb))/0x9*(-parseInt(l(0x1cf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xe079d));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const m=a15d;return a15a[m(0x1e0)]()[m(0x1ea)](m(0x1dd))[m(0x1e0)]()[m(0x1d4)](a15a)['search'](m(0x1dd));});a15a();import a15e from'path';import a15f from'fs';import{execSync}from'child_process';function a15c(){const p=['167394LBdvSW','writeFileSync','822OHpGEu','44UYqAGg','private','appName','public','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','191655zUuXaM','sth','chooseInstance','33103LWcske','1230YzvKCU','set-host','env','\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','readFileSync','constructor','publicIp','\x20IP\x20to\x20','error','6232010vObEQV','stringify','5003388lxfCfn','ssh.json','cat\x20','(((.+)+)+)+$','success','join','toString','maka\x20aws:sth\x20--env\x20prod','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','54507Vtkfog','maka\x20aws:set-host\x20--env\x20dev','fsi','template','create','privateIp','5997920oVFwCs','search','exit','parse','sep','utf8','host','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]'];a15c=function(){return p;};return a15c();}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-0x1c2;let f=c[d];return f;},a15d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15n(0x1e7)]({'name':a15n(0x1d0),'aliases':[a15n(0x1cc)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a15n(0x1d1)],'validOpts':[],'shortDesc':a15n(0x1ca),'description':a15n(0x1d2),'examples':[a15n(0x1e4),a15n(0x1e1)]},async function(a,b){const o=a15n;try{const c=new AWS(),d=this[o(0x1e5)]['getAppConfigPath'](b[o(0x1d1)]),f=this[o(0x1e5)]['getMakaProjectConfig'](),g=await c[o(0x1cd)](),h=a15e[o(0x1df)](d,o(0x1db));!this[o(0x1e5)]['isFile'](h)&&await this[o(0x1e5)][o(0x1e6)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f[o(0x1c8)]},'config':f});const i=JSON[o(0x1ec)](a15f[o(0x1d3)](h,o(0x1ee))),j=await Actions['ask'](o(0x1c2))||'public';if(j){if(j===o(0x1c9)||j===o(0x1c7)){if(j===o(0x1c9))i['host']=g?.[o(0x1d5)];else j==='private'&&(i[o(0x1ef)]=g?.[o(0x1e8)]);}else throw o(0x1e2);}else i['host']=g?.[o(0x1e8)];a15f[o(0x1c4)](a15e[o(0x1df)](d,o(0x1db)),JSON[o(0x1d9)](i,null,0x2)),execSync(o(0x1dc)+a15e[o(0x1df)](d,o(0x1db)),{'stdio':'inherit'}),Log[o(0x1de)]('\x0aSaved\x20host\x20'+j+o(0x1d6)+d+a15e[o(0x1ed)]+o(0x1db));}catch(k){k&&Log[o(0x1d7)](k),process[o(0x1eb)](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x209))/0x1+parseInt(f(0x1f6))/0x2+-parseInt(f(0x1f4))/0x3*(-parseInt(f(0x202))/0x4)+parseInt(f(0x20c))/0x5*(parseInt(f(0x1f7))/0x6)+-parseInt(f(0x20b))/0x7+parseInt(f(0x1fd))/0x8+-parseInt(f(0x1fc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xc5e54));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x20e)]()[h(0x206)](h(0x20a))[h(0x20e)]()[h(0x1fb)](a16a)[h(0x206)](h(0x20a));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a16c(){const k=['(((.+)+)+)+$','8114302DrBWJm','115255vsBPeN','name','toString','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','maka\x20aws:ti','status','18ozUmyx','terminate-instance','208438QPytow','354fymWDr','Terminate\x20an\x20EC2\x20instance','confirm','apply','constructor','6946200zABPCv','4293152giAPPq','maka\x20aws:terminate-instance','instanceId','create','exit','687964ZNfaRh','\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','\x20Ready?','error','search','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','291252TecfwM'];a16c=function(){return k;};return a16c();}import{Actions}from'../../tools/actions/actions.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a16d(a,b);}Command[a16i(0x200)]({'name':a16i(0x1f5),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'shortDesc':a16i(0x1f8),'description':a16i(0x203),'examples':[a16i(0x1fe),a16i(0x210)]},async function(){const j=a16i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x1ff)]&&b?.[j(0x1f3)]==='running'){const c=await Actions[j(0x1f9)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x20d)]+j(0x204));c?a['ec2terminateInstance']({'instanceId':b[j(0x1ff)]}):Log[j(0x205)](j(0x208)+b['name']+j(0x20f));}else Log[j(0x205)](j(0x207));}catch(d){d&&Log[j(0x205)](d),process[j(0x201)](0x1);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a17d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=parseInt(f(0xcf))/0x1+parseInt(f(0xce))/0x2+parseInt(f(0xc9))/0x3+-parseInt(f(0xd0))/0x4*(-parseInt(f(0xd1))/0x5)+parseInt(f(0xc7))/0x6+-parseInt(f(0xcb))/0x7+-parseInt(f(0xcc))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xe5605));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a['toString']()['search'](h(0xca))[h(0xc6)]()['constructor'](a17a)[h(0xc8)](h(0xca));});function a17c(){var i=['515938MLapuN','6542696tHuVsa','5NeILDz','toString','7974798umXCQA','search','3018984SsEMZC','(((.+)+)+)+$','8443099DTXvNZ','19848080yRJzPt','apply','279238UFXzVU'];a17c=function(){return i;};return a17c();}a17a();function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0xc6;var f=c[d];return f;},a17d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x184;let f=c[d];return f;},a18d(a,b);}const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=-parseInt(n(0x190))/0x1*(parseInt(n(0x1a7))/0x2)+parseInt(n(0x186))/0x3*(-parseInt(n(0x184))/0x4)+parseInt(n(0x1a8))/0x5+parseInt(n(0x188))/0x6*(-parseInt(n(0x194))/0x7)+-parseInt(n(0x19e))/0x8*(-parseInt(n(0x18a))/0x9)+-parseInt(n(0x1a3))/0xa*(parseInt(n(0x19a))/0xb)+parseInt(n(0x1a0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x8bd25));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0x195)]()[p(0x1a2)](p(0x19f))[p(0x195)]()['constructor'](a18a)[p(0x1a2)](p(0x19f));});a18a();import a18e from'path';import a18f from'fs';import a18g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a18c(){const t=['Aborted.','519297vKEgNC','maka\x20build','6bEreUc','getProjectMeteorVersion','81693VcQXRx','forEach','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','app.tar.gz','argv','join','1GeoHVi','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','error','invokeMeteorCommand','3122105vWyVvV','toString','concat','confirm','build','pathFromProject','352770lcvsGq','update','\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','--force','480UYPWeZ','(((.+)+)+)+$','21391188PuaFvz',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','search','350rZJrxz','This\x20project\x27s\x20meteor\x20version\x20(','autoupdate','fsi','1215004BVuCFA','4703770OulmBE','apply','force','12wLRynx'];a18c=function(){return t;};return a18c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a18q(0x198),'usage':a18q(0x187),'validOpts':['force'],'aliases':['b'],'shortDesc':a18q(0x191),'mustBeInMakaProject':!![],'description':a18q(0x19c),'examples':[a18q(0x187)]},async function(a,b){const r=a18q;try{await this['fsi']['checkMeteorPackage'](r(0x1a5),{'shouldInstall':!![]});const c=b[r(0x1aa)];if(!c){const g=this[r(0x1a6)]['getGlobalMeteorVersion'](),h=this[r(0x1a6)][r(0x189)](),i=a18g['gt'](g,h);if(i){const j=await Actions[r(0x197)](r(0x1a4)+h+r(0x1a1)+g+').\x20Update?');j&&this[r(0x1a6)][r(0x193)](r(0x19b),['--release',g]);}}const d=[this[r(0x1a6)][r(0x199)]({'pathParts':['build']})][r(0x196)](process[r(0x18e)]['slice'](0x3)),f=a18e[r(0x18f)](this[r(0x1a6)][r(0x199)]({}),'build',r(0x18d));if(a18f['existsSync'](f)){const k=c??await Actions[r(0x197)](r(0x18c));if(!k)throw Log['error'](r(0x185));}d[r(0x18b)]((l,m)=>{const s=r;l===s(0x19d)&&d['splice'](m,0x2);}),this[r(0x1a6)]['invokeMeteorCommand'](r(0x198),d);}catch(l){console[r(0x192)](l),process['exit'](0x0);}});export default BuildCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19G=a19d;(function(a,b){const D=a19d,c=a();while(!![]){try{const d
|
|
1
|
+
const a19G=a19d;(function(a,b){const D=a19d,c=a();while(!![]){try{const d=parseInt(D(0x21b))/0x1+parseInt(D(0x22b))/0x2*(parseInt(D(0x238))/0x3)+parseInt(D(0x231))/0x4*(-parseInt(D(0x22d))/0x5)+-parseInt(D(0x22a))/0x6*(parseInt(D(0x212))/0x7)+-parseInt(D(0x228))/0x8+-parseInt(D(0x1ee))/0x9+-parseInt(D(0x235))/0xa*(-parseInt(D(0x23d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xe0388));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const E=a19d;if(c){const e=c[E(0x204)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const F=a19d;return a19a[F(0x22e)]()['search'](F(0x209))[F(0x22e)]()['constructor'](a19a)[F(0x1fe)]('(((.+)+)+)+$');});function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a19d(a,b);}a19a();import a19e from'./build.js';import a19f from'path';import a19g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a19c(){const I=['--progress=plain\x20--no-cache','5WvWkzd','toString','fsi','config','6568044jtTpxW','pathFromProject','tag','14.21.3','17378270lyjBmp','exit','cert','3EtxAPX','findAppDirectory','serverName','existsSync','isFile','33JnSEyX','Stored\x20server\x20config\x20to\x20','pm2.config.js','443','isDirectory','build','[*]\x20maka\x20','setProjectConfig','length','win32','os.linux.x86_64','10055871tucbbv','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','meteor','mkdirSync','error','app.tar.gz','meteor.bat','debug','serverPort','push',':latest','ignore','docker','appName','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','getGlobalConfig','search','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','.maka','checkConfigExists','processAndRunGenerator','join','apply','getMakaProjectConfig','--server=','-t\x20','template','(((.+)+)+)+$','http','Docker\x20Context\x20Path:\x20','inherit','dockerfile','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','Try\x20\x27maka\x20run:docker\x27','Dockerfile','app','1974FwnFWG','\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','Tagging\x20Docker\x20Image:\x20','force','_keys','create','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','findProjectDirectory','confirm','16155lgDPaC','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','ask','config/docker-compose.yaml','\x20npm\x20install\x20--save','N/A','platform','copyFileSync','https','://','notice','.meteor','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','14411456TPVotO','--architecture','22986BsQUGP','2659752prQZmB'];a19c=function(){return I;};return a19c();}import a19h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a19G(0x217)]({'name':a19G(0x1fa),'aliases':['d'],'usage':'maka\x20build:docker','validOpts':[a19G(0x215),a19G(0x233),'debug'],'shortDesc':a19G(0x227),'description':a19G(0x213),'mustBeInMakaProject':!![],'examples':['maka\x20build:docker\x20--tag','maka\x20build:docker\x20--debug']},async function(a,b){const H=a19G;try{const c=await this[H(0x22f)][H(0x1fd)](),d=await this['fsi'][H(0x205)](),f=H(0x234);f===H(0x220)&&(Log[H(0x1f2)](H(0x1ff)),process['exit'](0x1));const g=process[H(0x221)]===H(0x1ec)?H(0x1f4):H(0x1f0),h=this[H(0x22f)][H(0x232)]({}),i=a19f[H(0x203)](h,H(0x210));!this[H(0x22f)][H(0x23c)](i)&&await a19h[H(0x202)](H(0x20d),[H(0x20d)],{'cwd':h,'config':d});const j=this[H(0x22f)][H(0x201)](H(0x1fa));if(!j){await a19h[H(0x202)](H(0x230),[H(0x1fa)],{'cwd':h,'config':d,'isDocker':!![]});const s=this[H(0x22f)]['getAppConfigPath']('docker'),t=a19f['join'](s,H(0x23f));await this[H(0x22f)][H(0x208)]({'srcPath':'config/pm2.config.js','destPath':t,'context':{'app':d[H(0x1fb)],'isDocker':!![]},'config':d});const u=a19f[H(0x203)](s,'docker-compose.yaml');await this[H(0x22f)][H(0x208)]({'srcPath':H(0x21e),'destPath':u,'context':{'app':d[H(0x1fb)],'appFileCase':paramCase(d[H(0x1fb)])},'config':d});}if(this['fsi'][H(0x23c)](c[H(0x237)])){const v=this[H(0x22f)][H(0x241)](a19f[H(0x203)](H(0x230),H(0x1fa),H(0x216)));!v&&a19g[H(0x1f1)](a19f['join']('config',H(0x1fa),H(0x216))),a19g[H(0x222)](c[H(0x237)],a19f[H(0x203)](h,'config',H(0x1fa),'_keys','cert.pem'));}const k=['build',a19f['join'](this[H(0x22f)][H(0x219)](),H(0x242)),H(0x229),H(0x1ed)],l=this[H(0x22f)]['readFileLines'](a19f[H(0x203)](this[H(0x22f)][H(0x232)]({}),H(0x211),H(0x226),'platforms')),m=l[H(0x1eb)]>0x2?!![]:![];if(m){const w=d[H(0x23a)]?d[H(0x23a)]:await Actions[H(0x21d)](H(0x1fc)),x=d['serverPort']?d[H(0x1f6)]:await Actions[H(0x21d)]('Mobile\x20server\x20port:\x20');if(w[H(0x1eb)]==0x0||x['length']==0x0)throw H(0x20e);const y=x==H(0x240)?H(0x223):H(0x20a);k[H(0x1f7)](H(0x206)+y+H(0x224)+w+':'+x);if(!d[H(0x23a)]&&!d[H(0x1f6)]){const z=await Actions[H(0x21a)](H(0x1ef));z&&(this[H(0x22f)][H(0x244)]('serverName',w),this[H(0x22f)]['setProjectConfig'](H(0x1f6),x),Log[H(0x225)](H(0x23e)+a19f[H(0x203)](H(0x200),'config.json')));}}const n=a19f['join'](this['fsi'][H(0x232)]({}),H(0x242),H(0x1f3));if(a19g[H(0x23b)](n)){const A=await Actions[H(0x21a)](H(0x218)),B=A;B&&(execSync(g+H(0x21f),{'cwd':this[H(0x22f)][H(0x239)](),'stdio':'ignore'}),execSync(g+'\x20\x20'+k['join']('\x20'),{'cwd':this[H(0x22f)][H(0x239)](),'stdio':H(0x20c)}));}else execSync(g+'\x20npm\x20install\x20--save',{'cwd':this['fsi'][H(0x239)](),'stdio':H(0x1f9)}),Log[H(0x225)](H(0x243)+k[H(0x203)]('\x20')),execSync(g+'\x20'+k[H(0x203)]('\x20'),{'cwd':this['fsi'][H(0x239)](),'stdio':H(0x20c)});const o=this['fsi']['pathFromProject']({});let p='-t\x20'+paramCase(d[H(0x1fb)])+H(0x1f8);b['tag']&&(p=H(0x207)+b[H(0x233)]);Log[H(0x225)](H(0x21c)+f),Log[H(0x225)](H(0x214)+p),Log[H(0x225)](H(0x20b)+o);const q=b[H(0x1f5)]?H(0x22c):'',r='docker\x20build\x20--build-arg\x20NODE_VERSION='+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':'inherit'}),Log[H(0x225)](H(0x20f));}catch(C){console[H(0x1f2)](C),process[H(0x236)](0x0);}},a19e);
|