@maka/maka-cli 4.13.1 → 4.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/gitignore +0 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0xa6))/0x1*(-parseInt(n(0xaf))/0x2)+-parseInt(n(0xc2))/0x3*(parseInt(n(0xa9))/0x4)+-parseInt(n(0x98))/0x5+parseInt(n(0xb3))/0x6*(parseInt(n(0xc6))/0x7)+-parseInt(n(0x88))/0x8*(parseInt(n(0x7b))/0x9)+-parseInt(n(0x76))/0xa+parseInt(n(0x97))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xebaa8));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a['toString']()[p(0x8e)](p(0x87))[p(0x78)]()[p(0xb9)](a0a)[p(0x8e)](p(0x87));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0c(){const A=['processAndRunCommand','find','10338vEJXyO','Command\x20requires\x20a\x20name','notice','Too\x20few\x20arguments','3113446NzhaFZ','Too\x20many\x20options','Command.create\x20requires\x20a\x20handler\x20function!','17382030KKUqHF','generate','toString','name','bright','3753819VNsoNM','sort','light','Name','keys','call','join','validateMakaSubscription','Please\x20run\x20\x22maka\x20login\x22','Too\x20few\x20options','Command.create\x20requires\x20some\x20options!','exit','(((.+)+)+)+$','8sYQEOC','forEach','Description','_commands','push','maxArgLength','search','number','tableList','minOptsLength','validateMeteorInstall','DARK','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','localeCompare','_handler','23954854hMGrAu','9091850kaYDPG','bind','error','play','fsi','run','LIGHT','header','split','apply','match','There\x20is\x20no\x20Meteor\x20application\x20here','Sub-Commands:','slice','1ondMcl','assign','addCommand\x20requires\x20a\x20Command\x20instance','168qHSGAi','Command\x20','addCommand','Command\x20not\x20found','Please\x20run\x20\x22maka\x20install\x20meteor\x22','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','2253716kbasUg','help','validateParams','Command\x20format\x20is\x20incorrect','24VUdllk','unshift','length','maybeProxyCommandToMeteor','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Too\x20many\x20arguments','constructor','maxOptsLength','validateUserIsLoggedIn','options','shortDesc','invoke','minArgLength'];a0c=function(){return A;};return a0c();}import{Log,ColorMode}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x74;let f=c[d];return f;},a0d(a,b);}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0xbc)];[a0q(0x8b)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0xb7));if(!a[r(0x79)])throw new Error(r(0xc3));if(typeof b!=='function')throw new Error('Command\x20requires\x20a\x20handler\x20function');this[r(0xbc)]=Object[r(0xa7)]({},a),this[r(0x79)]=this[r(0xbc)][r(0x79)],this[r(0x8b)]=[],this['_handler']=b[r(0x99)](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0x85));if(typeof b!=='function')throw new Error(s(0x75));const d=new Command(a,b);return c=c||a0f,Object[s(0xa7)](d,{'parent':c?.[s(0xbc)]?.[s(0x79)]}),c[s(0xab)](d),d;}[a0q(0xab)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0xa8));this[t(0x8b)][t(0x8c)](a);}async['run'](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x9c)]['getGlobalConfig'](),d=c['pallet']===u(0x7d)?ColorMode[u(0x9e)]:ColorMode[u(0x93)];Log['setColorMode'](d),await this[u(0x82)](this);}catch(f){Log[u(0x9a)](f),process[u(0x86)](0x0);}return await this[u(0xbe)](a,b);}catch(g){process[u(0x86)](0x1);}}async[a0q(0xbe)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0xbc)];try{if(this[v(0xbc)][v(0x79)]!==v(0x77)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0xb5)]===0x0)&&this[v(0x8b)][v(0xb5)]>=0x0,g=b[v(0xb0)]||b['h'];if(f&&g){if(this[v(0x8b)][v(0xb5)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0xbc)]['mustBeInMakaProject']){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[v(0xbc)]['mustBeLoggedIn']){const i=await this[v(0xbb)]();if(!i)throw new MustBeLoggedIn();}if(this['options']['mustHaveMeteorInstalled']){const j=this[v(0x92)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0xbc)][v(0xbf)]===v(0x8f)){if(a[v(0xb5)]<this[v(0xbc)]['minArgLength']){Log['error'](v(0xc5));throw new UsageError();}}if(typeof this['options'][v(0x8d)]===v(0x8f)){if(a[v(0xb5)]>=this[v(0xbc)][v(0x8d)]){Log[v(0x9a)](v(0xb8));throw new UsageError();}}if(typeof this[v(0xbc)]['minOptsLength']===v(0x8f)){if(Object[v(0x7f)](b)[v(0xb5)]<this[v(0xbc)][v(0x91)]){Log[v(0x9a)](v(0x84));throw new UsageError();}}if(typeof this[v(0xbc)]['maxOptsLength']===v(0x8f)){if(Object[v(0x7f)](b)['length']>=this[v(0xbc)][v(0xba)]){Log[v(0x9a)](v(0x74));throw new UsageError();}}}}b=await this[v(0xb1)](a,b,this['options']),_prevCmd=a[0x0];}return await this[v(0x96)][v(0x80)](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log['notice'](v(0xa4)),this['tableList'](this[v(0x8b)]),Log[v(0x9f)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(k instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(k instanceof NoMeteorFoundError)Log[v(0x9a)](v(0x94)),Log['notice'](v(0xad));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x9a)](v(0xa3));else k instanceof MustBeLoggedIn&&(Log[v(0x9a)](v(0xae)),Log[v(0xc4)](v(0x83)));}}}process[v(0x86)](0x1);}}[a0q(0x90)](a){const w=a0q,b=new a0e({});b[w(0x8c)]([w(0x7e),'Alias',w(0x8a)]),a[w(0x7c)]((c,d)=>{const x=w;return c['name'][x(0x95)](d[x(0x79)]);})[w(0x89)](c=>{const y=w;c['name']!=='murder'&&c[y(0x79)]!==y(0x9b)&&b[y(0x8c)]([c[y(0x79)],c['aliases'](),c[y(0xbd)]()]);}),Log[w(0x7a)](b['toString']());}async[a0q(0xc0)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0xa0)](':');if(!d||d[z(0xb5)]===0x0)throw z(0xb2);if(d[0x0]==='generate'||d[0x0]==='g'&&d[z(0xb5)]>0x1){const h=this[z(0x8b)][z(0xc1)](j=>j[z(0xa2)](z(0x77)));if(!h)throw z(0xac);await this[z(0x82)](h);const i=d[z(0xa5)](0x1)[z(0x81)](':');return b[z(0xb4)](i),await h[z(0x9d)](b,c);}let f=this[z(0x8b)],g;for(const j of d){g=f[z(0xc1)](k=>k[z(0xa2)](j));if(!g)try{await this[z(0x9c)][z(0xb6)]();}catch(k){throw z(0xaa)+j+'\x20not\x20found';}g&&(await this['validateMakaSubscription'](g),f=g[z(0x8b)]);}if(g){const l=await g[z(0x9d)](b,c);return l;}else throw z(0xac);}catch(m){Log[z(0x9a)](m),process[z(0x86)](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(0x151))/0x1*(parseInt(f(0x154))/0x2)+parseInt(f(0x14c))/0x3+parseInt(f(0x14f))/0x4*(parseInt(f(0x150))/0x5)+-parseInt(f(0x152))/0x6+-parseInt(f(0x158))/0x7*(-parseInt(f(0x14b))/0x8)+parseInt(f(0x153))/0x9*(-parseInt(f(0x157))/0xa)+-parseInt(f(0x14e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xa1c0e));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x156)]()[h(0x149)](h(0x155))[h(0x156)]()[h(0x14d)](a1a)['search'](h(0x155));});a1a();function a1c(){var i=['4622144EEHXTB','5IFQLku','121178YZxvsC','2735652TcEJZF','963SZJIGq','6dzsvzj','(((.+)+)+)+$','toString','49310gfpFYr','7zBpAvl','search','apply','7209584znNJlq','3822498vCKIRl','constructor','14533915wjSgCU'];a1c=function(){return i;};return a1c();}import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';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';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x149;var f=c[d];return f;},a1d(a,b);}import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0xa7))/0x1+parseInt(h(0xc7))/0x2*(-parseInt(h(0xad))/0x3)+parseInt(h(0xc3))/0x4*(parseInt(h(0xa9))/0x5)+-parseInt(h(0xa8))/0x6*(parseInt(h(0xa3))/0x7)+parseInt(h(0xbf))/0x8+-parseInt(h(0xc1))/0x9*(parseInt(h(0xaf))/0xa)+parseInt(h(0xae))/0xb*(-parseInt(h(0xba))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xceecd));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[i(0xa4)]()['search'](i(0xb6))['toString']()[i(0xa6)](a2a)[i(0xab)](i(0xb6));});function a2c(){const n=['error','notice','parse','exit','77LuDPrX','toString','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','constructor','1245545MkZxTo','75870kGqzQd','1249610NlQgCo','ChatGPT\x20style\x20AI\x20interface','search','GPT:\x20','410985gZxwmD','22floGwH','50ECrjuh','Using\x20OpenAI\x20Key\x20','isFile','openai','You:\x20','Using\x20CA\x20Cert\x20','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','(((.+)+)+)+$','question','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','askGPT','820980ZHAVjl','data','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','toLowerCase','openapikey','9226264vLSwPZ','cacert','2498877QIfXcu','choices','4LfqXVi','cert','fsi','bright','2NssbVo'];a2c=function(){return n;};return a2c();}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x9f;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e['createInterface']({'input':process['stdin'],'output':process['stdout']});c[j(0xb7)](j(0xb3),async d=>{const k=j;if(d[k(0xbd)]()===k(0xa2)){c['close']();return;}try{const e=await HTTPS[k(0xb9)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0xa1)](e[k(0xbb)]);if(f['error'])throw new Error(f[k(0x9f)]['message']);Log[k(0xc6)](k(0xac)+f?.[k(0xc2)][0x0]?.['text']['trim']());}catch(g){Log['error'](g),process[k(0xa2)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':a2l(0xaa),'validOpts':['cacert','openapikey'],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0xc0)]&&(this[m(0xc5)][m(0xb1)](b['cacert'])?(c=b[m(0xc0)],Log[m(0xa0)](m(0xb4)+c)):Log[m(0x9f)](m(0xb5)+c));const d=await this[m(0xc5)]['getGlobalConfig']();if(d[m(0xc4)]){if(this[m(0xc5)][m(0xb1)](d['cert']))c=d['cert'];else throw Log[m(0x9f)](m(0xb8)+c);}let f='';if(b[m(0xbe)])f=b[m(0xbe)],Log[m(0xa0)](m(0xb0)+f);else{if(d[m(0xb2)])f=d[m(0xb2)];else throw Log[m(0x9f)](m(0xa5));}Log[m(0xc6)](m(0xbc)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x9f)](g),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x147))/0x1*(-parseInt(f(0x150))/0x2)+-parseInt(f(0x14c))/0x3*(-parseInt(f(0x151))/0x4)+-parseInt(f(0x14a))/0x5*(-parseInt(f(0x153))/0x6)+-parseInt(f(0x14f))/0x7+-parseInt(f(0x152))/0x8*(-parseInt(f(0x154))/0x9)+-parseInt(f(0x155))/0xa+-parseInt(f(0x149))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xdc286));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[g(0x14e)]()[g(0x14d)](g(0x14b))[g(0x14e)]()[g(0x148)](a3a)['search'](g(0x14b));});function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x147;var f=c[d];return f;},a3d(a,b);}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';function a3c(){var h=['543IFuBZE','search','toString','7566328IkkAUS','2565196CYYiHF','19436MsRSLu','192912RwANIf','1097916smVXwU','126mJyyQD','17937490jeflyU','1MmwAQd','constructor','4071408TlQrWv','45KUWHog','(((.+)+)+)+$'];a3c=function(){return h;};return a3c();}import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x1c7))/0x1+-parseInt(f(0x1bf))/0x2*(parseInt(f(0x1be))/0x3)+parseInt(f(0x1c9))/0x4+-parseInt(f(0x1bb))/0x5*(parseInt(f(0x1bd))/0x6)+-parseInt(f(0x1b9))/0x7*(-parseInt(f(0x1c1))/0x8)+parseInt(f(0x1c2))/0x9*(-parseInt(f(0x1c8))/0xa)+-parseInt(f(0x1c5))/0xb*(-parseInt(f(0x1bc))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x714f6));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1c4)]()[h(0x1b8)]('(((.+)+)+)+$')[h(0x1c4)]()['constructor'](a4a)[h(0x1b8)](h(0x1c0));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':a4i(0x1ca),'usage':a4i(0x1c3),'validOpts':[],'shortDesc':a4i(0x1ba),'description':a4i(0x1b7)},async function(){throw UsageError;});export default AWSCommand;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a4d(a,b);}function a4c(){const j=['167394ihzMoM','3acQlxs','920122JOVpGf','(((.+)+)+)+$','2937336QZpTyd','5571IAxZhL','maka\x20aws:<sub-command>','toString','198iGBDGn','apply','596526jEBHcw','13410YKWdix','2912040AXvayR','aws','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','search','14WtFToO','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','100qcxVDd','168912WFIAsw'];a4c=function(){return j;};return a4c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x8b))/0x1+-parseInt(g(0x89))/0x2*(parseInt(g(0x86))/0x3)+-parseInt(g(0x8d))/0x4*(parseInt(g(0x7c))/0x5)+-parseInt(g(0x7a))/0x6+-parseInt(g(0x76))/0x7+parseInt(g(0x73))/0x8*(-parseInt(g(0x85))/0x9)+-parseInt(g(0x90))/0xa*(-parseInt(g(0x71))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x2bb91));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x75)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x77)]()['search'](i(0x80))[i(0x77)]()[i(0x8f)](a5a)[i(0x70)](i(0x80));});a5a();import a5e 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 a5c(){const l=['Repository\x20URI:\x20','region','success','(((.+)+)+)+$','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','repositoryUri','maka\x20aws:cecr\x20--name=my-new-repo','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','18FGADjI','116799VTomPB','name','create','16SZbCGx','ecrCreateRepository','357241jYOadK','Create\x20an\x20Elastic\x20Container\x20Repository','4GYtgxZ','error','constructor','8703940XyuMcZ','search','22xeQXmr','create-ecr','1272352IyXQEX','notice','apply','1153894PMGlCE','toString','maka\x20aws:create-ecr','cecr','1002108ORVyWy','exit','1215230CMZdut'];a5c=function(){return l;};return a5c();}function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x70;let f=c[d];return f;},a5d(a,b);}Command[a5j(0x88)]({'name':a5j(0x72),'aliases':[a5j(0x79)],'usage':a5j(0x78),'requiredOpts':[a5j(0x87)],'validOpts':[a5j(0x7e)],'shortDesc':a5j(0x8c),'examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5j(0x83),a5j(0x81)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x8a)](b);d&&d['$metadata']['httpStatusCode']===0xc8&&d['repository']?(Log[k(0x7f)]('Repository\x20created\x20successfully.'),Log[k(0x74)](k(0x7d)+d['repository'][k(0x82)])):Log[k(0x8e)](k(0x84)),process[k(0x7b)](0x0);}catch(f){Log['error'](f),process['exit'](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x93;let f=c[d];return f;},a6d(a,b);}const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0xa8))/0x1*(-parseInt(i(0xaa))/0x2)+-parseInt(i(0x95))/0x3+parseInt(i(0x9d))/0x4*(parseInt(i(0xaf))/0x5)+-parseInt(i(0x9e))/0x6*(-parseInt(i(0x9b))/0x7)+-parseInt(i(0xa1))/0x8+-parseInt(i(0x98))/0x9+parseInt(i(0x9f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x1d4fc));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a['toString']()[k(0x99)]('(((.+)+)+)+$')[k(0x96)]()[k(0xae)](a6a)[k(0x99)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';function a6c(){const n=['publicIp','1386552HxUgol','create-hosted-zone','confirm','error','chooseInstance','maka\x20aws:create-hosted-zone\x20--domain=example.com','chz','161848RjGccV','exit','2hPxfwD','domain','route53CreateHostedZone','linkEC2ToRoute53','constructor','102530zyabBN','Instance\x20not\x20found','Set\x20hosted\x20zone\x20to\x20an\x20instance?','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','252735hxwkAG','toString','apply','463752hlqOPq','search','maka\x20aws:chz\x20--domain=example.com','52192LrXAHo','maka\x20aws:create-hosted-zone','20crHItY','132RQVTOO','3244380BCzGGW'];a6c=function(){return n;};return a6c();}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['create']({'name':a6l(0xa2),'aliases':[a6l(0xa7)],'usage':a6l(0x9c),'requiredOpts':[a6l(0xab)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a6l(0xa6),a6l(0x9a)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0xac)](c);const f=await Actions[m(0xa3)](m(0x93));if(f){const g=await d[m(0xa5)]();if(g?.['id']){if(!g[m(0xa0)])throw Log[m(0xa4)](m(0x94));d[m(0xad)](g['id'],g['publicIp'],c);}else throw m(0xb0);}}catch(h){h&&Log[m(0xa4)](h),process[m(0xa9)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0xec))/0x1+-parseInt(ae(0xd3))/0x2*(-parseInt(ae(0xe1))/0x3)+-parseInt(ae(0xf3))/0x4*(-parseInt(ae(0xd5))/0x5)+parseInt(ae(0xae))/0x6+-parseInt(ae(0xd7))/0x7*(-parseInt(ae(0xb6))/0x8)+parseInt(ae(0xc8))/0x9+parseInt(ae(0xab))/0xa*(-parseInt(ae(0xd9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xa0067));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a['toString']()[ag(0xe2)]('(((.+)+)+)+$')[ag(0xb1)]()[ag(0xd4)](a7a)[ag(0xe2)]('(((.+)+)+)+$');});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x98;let f=c[d];return f;},a7d(a,b);}import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a7c(){const at=['Please\x20choose\x20a\x20key\x20to\x20use:\x20','name','build\x20on\x20','desc','EC2\x20Name:\x20[','env','alias','Setting\x20the\x20key-pair\x20to:\x20','Setting\x20SG\x20ID\x20to:\x20','amiId','chooseVPC','\x20CIDR:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','fsi','190WQRzVk','ImageID:','**\x20Available\x20Security\x20Groups\x20**','1013958bCWVtV','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20SG\x20NAME:\x20','toString','sgId','join','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','Desc','40zfgsJh','success','\x20AMIID:\x20','\x20SUBNETID:\x20','subnetId','ID:\x20','Security\x20Group:\x20','error','maka\x20aws:create-instance\x20--env\x20dev','getTime','subnet','apply','split','create-instance','Web\x20App','Setting\x20Subnet\x20ID\x20to\x20','confirm','getMakaProjectConfig','654480pPLyvo','user-data','\x20SGID:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','parse','isFile','ec2describeKeys','\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','unlinkSync','exit','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','468722rOfoVj','constructor','392705HHoZkO','Would\x20you\x20like\x20to\x20include\x20user\x20data?','748153cSEdrQ','**\x20Available\x20Subnets\x20**','748319xJpNdc','**\x20Available\x20AMIs\x20**','push','ec2create','createFile','User\x20Data:','Remove\x20the\x20security\x20group\x20','getSecurityGroups','15qnTNSz','search','maka-cli','Name','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','cidr','**\x20Available\x20key-pairs\x20**','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Instance\x20Count:\x20','date','ask','235522IKtnuk','bright','22,80,443','number','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','created-by','12SsMsyo','ec2createSG','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','forEach','notice','\x20AZONE:\x20','Key-Pair:\x20'];a7c=function(){return at;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a7ah(0xc3),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0xbe),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0xa2)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0xcf)},async function(a,b){const ai=a7ah;try{const c=this[ai(0xaa)][ai(0xc7)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xaa)]['getEnvFromShorthand'](b[ai(0xa2)]),i=this['fsi']['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0xeb)](ai(0xa1)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('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(0xb7)](ai(0xa4)+r);}else try{Log[ai(0x9a)](ai(0xe7));const A=r?r:k,B=await d[ai(0xce)]({'suggestion':A}),C=await Actions[ai(0xeb)](ai(0x9d))||'-1';if(parseInt(C)<0x0){Log[ai(0xbd)]('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(0x9a)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x99)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log['success'](aj(0xa4)+r));});}catch(D){Log[ai(0xbd)](D);}l=await d[ai(0xa7)]();const t=await Actions['confirm'](ai(0xe5),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0xeb)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0xeb)](ai(0xd2))||ai(0xee),G=F[ai(0xc2)](',');await d[ai(0xf4)]({'description':ai(0xc4),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xe0)](u);if(I===''){Log[ai(0x9a)](ai(0xad)),J[ai(0x99)](function(L){const ak=ai;L[ak(0x9e)]===u?Log[ak(0x9a)](ak(0xbb)+L['id']+ak(0xb0)+L[ak(0x9e)]+'\x20SGID:\x20'+L[ak(0xb2)]):Log[ak(0xed)]('ID:\x20'+L['id']+ak(0xb0)+L[ak(0x9e)]+ak(0xca)+L[ak(0xb2)]);});const K=await Actions[ai(0xeb)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0xb1)]();J[ai(0x99)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xb2)],Log[al(0xb7)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log['success'](ai(0xa5)+m+'\x0a');if(m==='')throw Log['error'](ai(0xaf));}catch(L){Log[ai(0xbd)](L);}try{const M=0x7e6;Log['notice'](ai(0xda));const N=execSync(ai(0xf1)+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(0xb1)](),O=JSON[ai(0xcc)](N),P=[],Q=[];O[ai(0x99)](function(S){const am=ai;if(S[am(0xa3)]==='amazon'){const T=S[am(0xb5)][am(0xc2)](am(0x9f))[0x1];P[am(0xdb)]({'amiId':S['ID'],'desc':S[am(0xb5)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T[an(0xea)])[an(0xbf)]()-new Date(S['date'])[an(0xbf)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0xdb)]({'id':T,'amiId':S[ao(0xa6)],'desc':S[ao(0xa0)]});}),Q[ai(0x99)](function(S){const ap=ai;Log[ap(0xed)](ap(0xbb)+S['id']+ap(0xb8)+S[ap(0xa6)]+'\x20DESCRIPTION:\x20'+S[ap(0xa0)]);});const R=await Actions[ai(0xeb)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xa6)],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+S[aq(0xa0)]));});if(n==='')throw Log[ai(0xbd)](ai(0xaf));}catch(S){Log['error'](S);}try{Log[ai(0x9a)](ai(0xd8));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0xb1)](),U=JSON[ai(0xcc)](T),V=[];U['forEach'](function(X,Y){V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X['subnetId']});}),V['forEach'](function(X){const ar=ai;Log[ar(0xed)](ar(0xbb)+X['id']+ar(0xa8)+X[ar(0xe6)]+ar(0x9b)+X['az']+ar(0xb9)+X['subnetId']);});const W=await Actions[ai(0xeb)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V['forEach'](function(X){const as=ai;X['id']===parseInt(W)&&(p=X[as(0xba)],Log[as(0xb7)](as(0xc5)+p));});if(p==='')throw Log['error'](ai(0xaf));}catch(X){Log[ai(0xbd)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xeb)](ai(0xf0))||'1:1',Z=Y[ai(0xc2)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0xef)&&typeof parseInt(a0)===ai(0xef)&&Log[ai(0xb7)](ai(0xe8)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ai(0xeb)](ai(0xcb))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0xc6)](ai(0xd6),![]);a4&&(x=a7f[ai(0xb3)](i,ai(0xc9)),Log[ai(0x9a)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0xaa)][ai(0xdd)]({'filePath':x,'data':''}),await Actions[ai(0xc6)](ai(0xb4)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xcc)](execSync(ai(0xf5)+p+ai(0xa9))[ai(0xb1)]())[0x0][ai(0xc0)];Log[ai(0x9a)](ai(0xac)+n),Log[ai(0x9a)](ai(0xe9)+v+':'+w),Log[ai(0x9a)]('Instace\x20Type:\x20'+o),Log[ai(0x9a)](ai(0x9c)+r),Log[ai(0x9a)](ai(0xbc)+m),Log[ai(0x9a)]('Subnet:\x20'+a6);if(x){Log['notice'](ai(0xde)+x);const a8=a7g['readFileSync'](x)[ai(0xb1)]();Log[ai(0x9a)](a8);}const a7=await Actions['confirm']('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0xdc)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xf2),'Value':ai(0xe3)},{'Key':'environment','Value':h},{'Key':ai(0xe4),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xb7)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ai(0x98)));}else{Log[ai(0x9a)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0xcd)](s)&&a7g[ai(0xd0)](s));const ab=await Actions['confirm'](ai(0xdf)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log[ai(0xbd)](ac);}}catch(ad){ad&&Log[ai(0xbd)](ad),process[ai(0xd1)](0x0);}},a7e);
|
|
1
|
+
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x190))/0x1+-parseInt(ae(0x1a5))/0x2+parseInt(ae(0x17a))/0x3*(-parseInt(ae(0x1a7))/0x4)+parseInt(ae(0x1d0))/0x5+-parseInt(ae(0x178))/0x6+-parseInt(ae(0x197))/0x7+parseInt(ae(0x179))/0x8*(parseInt(ae(0x18d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xa132b));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x175;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x1c9)]()[ag(0x188)](ag(0x1d6))[ag(0x1c9)]()['constructor'](a7a)['search'](ag(0x1d6));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a7c(){const au=['unlinkSync','desc','User\x20Data:','77686pnvyJa','notice','24yeFbsF','Setting\x20SG\x20ID\x20to:\x20','create','alias','confirm','Subnet:\x20','parse','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','readFileSync','maka-cli','\x20SGID:\x20','cidr','string','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','amazon','user-data','Key-Pair:\x20','env','deleteKeyPair','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','split','maka\x20aws:create-instance','*\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','No\x20instance\x20has\x20been\x20created.','t3.micro','ID:\x20','sort','subnet','date','Security\x20Group:\x20','deleteSecurityGroup','Instace\x20Type:\x20','name','Would\x20you\x20like\x20to\x20include\x20user\x20data?','toString','environment','22,80,443','Remove\x20the\x20keypair\x20','ImageID:','amiId','isFile','5671910rsAFMN','sgId','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','number','build\x20on\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','(((.+)+)+)+$','getEnvFromShorthand','\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','**\x20Available\x20Subnets\x20**','ec2createSG','\x20AZONE:\x20','bright','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','getAppConfigPath','join','created-by','error','chooseVPC','Create\x20new\x20AWS\x20instance','5552076dgyFHV','193576oWQzPS','263793oxYwSL','**\x20Available\x20key-pairs\x20**','cider','Desc','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','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=*','\x20:\x20','EC2\x20Name:\x20[','Web\x20App','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','**\x20Available\x20Security\x20Groups\x20**','ask','createFile','Remove\x20the\x20security\x20group\x20','search','success','**\x20Available\x20AMIs\x20**','Creating\x20user\x20data\x20file\x20in\x20','apply','648qnbviP','Setting\x20the\x20key-pair\x20to:\x20','\x20CIDR:\x20','595331iipgfn','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','ec2describeKeys','fsi','createKeyPair','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','maka\x20aws:create-instance\x20--env\x20dev','9238985CqkLvc','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','forEach','push','Please\x20choose\x20a\x20key\x20to\x20use:\x20','getMakaProjectConfig','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','getTime','subnetId','\x20SUBNETID:\x20','\x20AMIID:\x20'];a7c=function(){return au;};return a7c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x1a9)]({'name':'create-instance','aliases':['ci'],'usage':a7ah(0x1bc),'examples':[a7ah(0x196),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0x177),'description':a7ah(0x1d8)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x193)][ai(0x19c)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x193)][ai(0x1d7)](b[ai(0x1b8)]),i=this[ai(0x193)][ai(0x1de)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x181)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x194)]({'env':h});r=y,s=z,Log['success'](ai(0x18e)+r);}else try{Log[ai(0x1a6)](ai(0x17b));const A=r?r:k,B=await d[ai(0x192)]({'suggestion':A}),C=await Actions[ai(0x185)](ai(0x19b))||'-1';if(parseInt(C)<0x0){Log[ai(0x175)]('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(0x1a6)](ai(0x1be));return;}B?.[ai(0x199)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log['success'](aj(0x18e)+r));});}catch(D){Log[ai(0x175)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0x1ab)](ai(0x1dd),!![]);let u;if(t){const E=l===''?await d[ai(0x176)]():l;u=await Actions[ai(0x185)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ai(0x1ba))||ai(0x1cb),G=F[ai(0x1bb)](',');await d[ai(0x1da)]({'description':ai(0x182),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ai(0x1a6)](ai(0x184)),J[ai(0x199)](function(L){const ak=ai;L['name']===u?Log[ak(0x1a6)](ak(0x1c0)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1c7)]+ak(0x1b1)+L[ak(0x1d1)]):Log[ak(0x1dc)](ak(0x1c0)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1c7)]+ak(0x1b1)+L[ak(0x1d1)]);});const K=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x1c9)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1d1)],Log[al(0x189)](al(0x1a8)+m+'\x0a'));});}else m=I,Log[ai(0x189)](ai(0x1a8)+m+'\x0a');if(m==='')throw Log[ai(0x175)](ai(0x183));}catch(L){Log[ai(0x175)](L);}try{const M=0x7e6;Log['notice'](ai(0x18a));const N=execSync(ai(0x17f)+M+ai(0x1bd))[ai(0x1c9)](),O=JSON[ai(0x1ad)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x1aa)]===am(0x1b5)){const T=S[am(0x17d)][am(0x1bb)](am(0x1d4))[0x1];P[am(0x19a)]({'amiId':S['ID'],'desc':S[am(0x17d)],'date':T});}}),P[ai(0x1c1)](function(S,T){const an=ai;return new Date(T['date'])[an(0x19e)]()-new Date(S[an(0x1c3)])['getTime']();}),P[ai(0x199)](function(S,T){const ao=ai;Q[ao(0x19a)]({'id':T,'amiId':S[ao(0x1ce)],'desc':S[ao(0x1a3)]});}),Q['forEach'](function(S){const ap=ai;Log['bright'](ap(0x1c0)+S['id']+ap(0x1a1)+S[ap(0x1ce)]+'\x20DESCRIPTION:\x20'+S[ap(0x1a3)]);});const R=await Actions[ai(0x185)](ai(0x1ae))||'0';Q[ai(0x199)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1ce)],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x180)+S[aq(0x1a3)]));});if(n==='')throw Log[ai(0x175)](ai(0x183));}catch(S){Log[ai(0x175)](S);}try{Log[ai(0x1a6)](ai(0x1d9));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x1c9)](),U=JSON[ai(0x1ad)](T),V=[];U[ai(0x199)](function(X,Y){const ar=ai;V[ar(0x19a)]({'id':Y,'cidr':X[ar(0x17c)],'az':X['az'],'subnetId':X[ar(0x19f)]});}),V[ai(0x199)](function(X){const as=ai;Log[as(0x1dc)](as(0x1c0)+X['id']+as(0x18f)+X[as(0x1b2)]+as(0x1db)+X['az']+as(0x1a0)+X[as(0x19f)]);});const W=await Actions[ai(0x185)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x199)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x19f)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x175)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x185)](ai(0x1b4))||'1:1',Z=Y[ai(0x1bb)](':')[0x0],a0=Y[ai(0x1bb)](':')[0x1];typeof parseInt(Z)===ai(0x1d3)&&typeof parseInt(a0)==='number'&&Log[ai(0x189)](ai(0x198)+Z+':'+a0);}catch(a1){Log[ai(0x175)](a1);}try{const a2=await Actions[ai(0x185)](ai(0x19d))||ai(0x1bf);typeof a2===ai(0x1b3)&&(o=a2);}catch(a3){Log[ai(0x175)](a3);}let x='';try{const a4=await Actions[ai(0x1ab)](ai(0x1c8),![]);a4&&(x=a7f[ai(0x1df)](i,ai(0x1b6)),Log['notice'](ai(0x18b)+x),await this[ai(0x193)][ai(0x186)]({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0x175)](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x191))[ai(0x1c9)]())[0x0][ai(0x1c2)];Log['notice'](ai(0x1cd)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log['notice'](ai(0x1c6)+o),Log[ai(0x1a6)](ai(0x1b7)+r),Log[ai(0x1a6)](ai(0x1c4)+m),Log[ai(0x1a6)](ai(0x1ac)+a6);if(x){Log[ai(0x1a6)](ai(0x1a4)+x);const a8=a7g[ai(0x1af)](x)[ai(0x1c9)]();Log[ai(0x1a6)](a8);}const a7=await Actions['confirm'](ai(0x1d5));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1e0),'Value':ai(0x1b0)},{'Key':ai(0x1ca),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x189)](ai(0x195)),Log['bright'](ai(0x17e)));}else{Log[ai(0x1a6)](ai(0x1d2));const aa=await Actions[ai(0x1ab)](ai(0x1cc)+r+'\x20?',!![]);aa&&(d[ai(0x1b9)](r),f[ai(0x1cf)](s)&&a7g[ai(0x1a2)](s));const ab=await Actions[ai(0x1ab)](ai(0x187)+m+'\x20?',!![]);ab&&d[ai(0x1c5)](m);}}catch(ac){Log[ai(0x175)](ac);}}catch(ad){ad&&Log[ai(0x175)](ad),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a8j=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x8e;let f=c[d];return f;},a8d(a,b);}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x9d))/0x1*(-parseInt(g(0x8f))/0x2)+-parseInt(g(0x9e))/0x3+-parseInt(g(0xa1))/0x4*(parseInt(g(0xa6))/0x5)+-parseInt(g(0xa5))/0x6*(parseInt(g(0x91))/0x7)+parseInt(g(0x9b))/0x8+parseInt(g(0x97))/0x9+parseInt(g(0xa3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x4cf9a));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0xa0)]()['search'](i(0x9f))[i(0xa0)]()['constructor'](a8a)[i(0x96)](i(0x9f));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a8c(){const l=['Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','835260kSpwlK','maka\x20aws:create-key-pair\x20--env\x20prod','6414stgaVj','62435ZrLBEU','create-key-pair','30wRfMuy','maka\x20aws:create-key-pair','672jTNnQw','env','getEnvFromShorthand','apply','exit','search','2280231IOJrir','createKeyPair','\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','create','1560440saHsul','fsi','27852eKYImI','1145886iQpeaS','(((.+)+)+)+$','toString','48lEwaif'];a8c=function(){return l;};return a8c();}import{Log}from'../../tools/log/log.class.js';Command[a8j(0x9a)]({'name':a8j(0x8e),'aliases':['ckp'],'usage':a8j(0x90),'examples':[a8j(0xa4),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x92)],'validOpts':[],'shortDesc':a8j(0xa2),'description':a8j(0x99)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x9c)][k(0x93)](b[k(0x92)]);c[k(0x98)]({'env':d});}catch(f){f&&Log['error'](f),process[k(0x95)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;
|
|
1
|
+
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x12a))/0x1*(parseInt(m(0x122))/0x2)+-parseInt(m(0x129))/0x3+parseInt(m(0x12f))/0x4+-parseInt(m(0x131))/0x5*(-parseInt(m(0x11e))/0x6)+parseInt(m(0x136))/0x7+-parseInt(m(0x12e))/0x8*(-parseInt(m(0x123))/0x9)+-parseInt(m(0x127))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x86b13));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x12c)]()[o(0x128)]('(((.+)+)+)+$')[o(0x12c)]()['constructor'](a9a)[o(0x128)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';function a9c(){const s=['16CYErUb','9UYNtDr','apply','forEach','maka\x20aws:csg','2400660eHkSea','search','1613844nTrvgy','28119AGHVRx','fsi','toString','22,80,443','4516792HJHbcJ','729452osScgK','List\x20is\x20not\x20all\x20numbers','3853415dqEklz','split','name','ask','error','259140zMZBrS','create','maka\x20aws\x20create-security-group','maka\x20aws:create-secuirty-group','getMakaProjectConfig','6mdmdhf','create-security-group','csg','match'];a9c=function(){return s;};return a9c();}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';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x11c;let f=c[d];return f;},a9d(a,b);}Command[a9p(0x137)]({'name':a9p(0x11f),'aliases':[a9p(0x120)],'usage':a9p(0x138),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':'\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','examples':[a9p(0x11c),a9p(0x126)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x12b)][q(0x11d)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0x133)]?b[q(0x133)]:''+f,i=await Actions['ask']('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x134)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||q(0x12d),k=j[q(0x132)](',');k[q(0x125)](l=>{const r=q;if(!l[r(0x121)](/^\d+$/))throw r(0x130);}),await c['ec2createSG']({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x135)](l),process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xe4))/0x1+parseInt(f(0xf2))/0x2+parseInt(f(0xed))/0x3*(parseInt(f(0xf8))/0x4)+-parseInt(f(0xe8))/0x5+parseInt(f(0xef))/0x6+-parseInt(f(0xf1))/0x7*(-parseInt(f(0xfe))/0x8)+-parseInt(f(0xf0))/0x9*(parseInt(f(0xfd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x83e8f));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0xe5)]()[g(0xff)](g(0xe7))['toString']()[g(0xf6)](a10a)[g(0xff)](g(0xe7));});function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xe4;let f=c[d];return f;},a10d(a,b);}function a10c(){const j=['constructor','create','3032IzMoLE','error','.\x20Error:\x20','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','3240sjAUQu','126240pYTbcK','search','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','decr','427RylwNZ','toString','name','(((.+)+)+)+$','4161885aKMkuy','region','exit','ecrDeleteRepository','Delete\x20an\x20Elastic\x20Container\x20Repository','2985QwfvVt','Repository\x20','6226602KqjHhM','57897HdOfeK','413ccgkHO','1467096KvoKix','\x20in\x20region\x20','success','Failed\x20to\x20delete\x20the\x20repository:\x20'];a10c=function(){return j;};return a10c();}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10h(0xf7)]({'name':'delete-ecr','aliases':[a10h(0x101)],'usage':a10h(0xfc),'requiredOpts':[a10h(0xe6),a10h(0xe9)],'validOpts':[],'shortDesc':a10h(0xec),'examples':[a10h(0x100),a10h(0xfb)]},async function(a,b){const i=a10h;try{const c=new AWS();await c[i(0xeb)]({'repoName':b[i(0xe6)],'region':b[i(0xe9)]}),Log[i(0xf4)](i(0xee)+b[i(0xe6)]+'\x20deleted\x20successfully\x20in\x20region\x20'+b[i(0xe9)]+'.'),process[i(0xea)](0x0);}catch(d){Log[i(0xf9)](i(0xf5)+b['name']+i(0xf3)+b[i(0xe9)]+i(0xfa)+d),process[i(0xea)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a11c(){const k=['ec2describeInstances','28JcDqDr','maka\x20aws:describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','(((.+)+)+)+$','3LSLpeN','1214452GPoSYH','587975JLTRiI','exit','18211wonFhL','create','20SqIipQ','908172YbuSiw','1295OESljg','apply','describe-instances','error','1175988RYPRKF','\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','search','3875091tHfENC','8320TzGVBK','maka\x20aws:di'];a11c=function(){return k;};return a11c();}const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x184))/0x1*(parseInt(f(0x193))/0x2)+parseInt(f(0x197))/0x3*(-parseInt(f(0x198))/0x4)+parseInt(f(0x182))/0x5+-parseInt(f(0x18c))/0x6+-parseInt(f(0x188))/0x7*(-parseInt(f(0x190))/0x8)+-parseInt(f(0x187))/0x9+parseInt(f(0x186))/0xa*(parseInt(f(0x18f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x26d6c));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a['toString']()['search'](h(0x196))['toString']()['constructor'](a11a)[h(0x18e)]('(((.+)+)+)+$');});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x182;let f=c[d];return f;},a11d(a,b);}Command[a11i(0x185)]({'name':a11i(0x18a),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'shortDesc':a11i(0x195),'examples':[a11i(0x194),a11i(0x191)],'description':a11i(0x18d)},async function(){const j=a11i;try{const a=new AWS();a[j(0x192)]();}catch(b){b&&Log[j(0x18b)](b),process[j(0x183)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12i=a12d;function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x104;let f=c[d];return f;},a12d(a,b);}(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0x10e))/0x1*(-parseInt(f(0x117))/0x2)+parseInt(f(0x105))/0x3*(-parseInt(f(0x104))/0x4)+-parseInt(f(0x110))/0x5+-parseInt(f(0x116))/0x6+parseInt(f(0x10b))/0x7*(parseInt(f(0x112))/0x8)+parseInt(f(0x109))/0x9*(parseInt(f(0x118))/0xa)+parseInt(f(0x111))/0xb*(-parseInt(f(0x114))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xa0b54));function a12c(){const k=['121680dJpntM','error','2681754uYgSUB','1316438UkBcGu','30lhpOGz','exit','145988hVwDOM','96OKbTTH','toString','maka\x20aws:dkp','apply','2552463ShpbQt','search','491204ioaAdQ','maka\x20aws:describe-key-pairs','(((.+)+)+)+$','1fBkvFV','ec2describeKeys','77625PyVkyc','220LDUKYv','112lZgCGj','dkp'];a12c=function(){return k;};return a12c();}const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x106)]()[h(0x10a)](h(0x10d))[h(0x106)]()['constructor'](a12a)[h(0x10a)]('(((.+)+)+)+$');});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'describe-key-pairs','aliases':[a12i(0x113)],'usage':a12i(0x10c),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a12i(0x10c),a12i(0x107)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x10f)]();}catch(b){b&&Log[j(0x115)](b),process[j(0x119)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xfc;let f=c[d];return f;},a13d(a,b);}const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0xfe))/0x1+-parseInt(l(0x11c))/0x2*(parseInt(l(0x114))/0x3)+parseInt(l(0x107))/0x4*(-parseInt(l(0x106))/0x5)+parseInt(l(0xfc))/0x6*(-parseInt(l(0x102))/0x7)+-parseInt(l(0x10b))/0x8*(parseInt(l(0x103))/0x9)+-parseInt(l(0x115))/0xa*(parseInt(l(0x11d))/0xb)+parseInt(l(0x124))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x94827));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x123)]()[n(0x10f)](n(0x10e))['toString']()[n(0x111)](a13a)[n(0x10f)](n(0x10e));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a13c(){const s=['That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','apply','appName','8584NHfHiA','getMakaProjectConfig','bright','(((.+)+)+)+$','search','maka\x20aws:delete-sg','constructor','exit','notice','18BdOgBO','10XBuada','sgId','error','\x20SGID:\x20','confirm','create','Not\x20deleting\x20secuirty\x20group','258762YqrIXj','6898595IiuCrU','deleteSecurityGroup','ID:\x20','includes','ask','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','toString','54039432njFQxN','name','1255224JRpDXp','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','600486lSlCKI','forEach','delete-security-group','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','35kvTMcp','7083QuBLij','getSecurityGroups','\x20SG\x20NAME:\x20','13875FrSwtd','1732aIelsj'];a13c=function(){return s;};return a13c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x11a)]({'name':a13o(0x100),'aliases':['dsg'],'usage':a13o(0x110),'validOpts':[],'shortDesc':a13o(0x101),'examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x10c)]();d=j[p(0x10a)];}const {sgList:f}=await a[p(0x104)]();f['forEach'](function(k){const q=p;c&&k[q(0x125)][q(0x120)](d)?Log[q(0x113)](q(0x11f)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x125)]+q(0x118)+k[q(0x116)]):Log[q(0x10d)](q(0x11f)+k['id']+q(0x105)+k[q(0x125)]+q(0x118)+k[q(0x116)]);});let g='';const h=await Actions[p(0x121)](p(0xfd));f[p(0xff)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x116)]);});if(!g)throw Log[p(0x117)](p(0x108));const i=await Actions[p(0x119)]('Deleting\x20a\x20'+g+p(0x122),![]);i?(await a[p(0x11e)](g),Log['success']('Deleted\x20'+g)):Log['error'](p(0x11b)),process['exit'](0x0);}catch(k){k&&Log[p(0x117)](k),process[p(0x112)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14h=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x1a1))/0x1+-parseInt(f(0x1a7))/0x2+-parseInt(f(0x1ac))/0x3+parseInt(f(0x1a8))/0x4+-parseInt(f(0x19e))/0x5*(-parseInt(f(0x196))/0x6)+-parseInt(f(0x1a9))/0x7*(-parseInt(f(0x19a))/0x8)+parseInt(f(0x198))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x244fa));function a14c(){const j=['244896fIGttR','18vodwif','list-ecr','1168407DkYVqN','toString','8wlETjg','maka\x20aws:list-ecr','Completed\x20listing\x20ECR\x20repositories.','regions','24065WDvsDx','error','maka\x20aws:lecr\x20--regions=all','118413URrXIY','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','(((.+)+)+)+$','search','exit','constructor','397046AePysX','604484XlIDVN','105623tkWNvA','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','create'];a14c=function(){return j;};return a14c();}const a14b=(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;};}()),a14a=a14b(this,function(){const g=a14d;return a14a[g(0x199)]()[g(0x1a4)](g(0x1a3))[g(0x199)]()[g(0x1a6)](a14a)[g(0x1a4)]('(((.+)+)+)+$');});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x196;let f=c[d];return f;},a14d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a14h(0x1ab)]({'name':a14h(0x197),'aliases':['lecr'],'usage':a14h(0x1a2),'requiredOpts':[],'validOpts':[a14h(0x19d)],'shortDesc':'List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','examples':[a14h(0x19b),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14h(0x1a0)]},async function(a,b){const i=a14h;try{const c=new AWS();await c['listAllEcrRepositories'](b[i(0x19d)]),Log['success'](i(0x19c)),process['exit'](0x0);}catch(d){Log[i(0x19f)](i(0x1aa)+d),process[i(0x1a5)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x159))/0x1+parseInt(f(0x15f))/0x2*(parseInt(f(0x14a))/0x3)+parseInt(f(0x161))/0x4*(parseInt(f(0x154))/0x5)+-parseInt(f(0x15c))/0x6*(parseInt(f(0x149))/0x7)+-parseInt(f(0x15b))/0x8*(-parseInt(f(0x15a))/0x9)+-parseInt(f(0x162))/0xa+-parseInt(f(0x156))/0xb*(-parseInt(f(0x153))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd3a2a));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x150)]()[h(0x157)](h(0x168))[h(0x150)]()[h(0x155)](a15a)[h(0x157)](h(0x168));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0x14c)]({'name':'reboot-instance','aliases':[a15i(0x158)],'usage':a15i(0x14e),'validOpts':[],'shortDesc':a15i(0x15d),'examples':[a15i(0x14e),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x151)]===j(0x164)){const c=await Actions[j(0x167)](j(0x163)+b[j(0x14d)]+'\x20Ready?');c&&b['instanceId']?a['ec2rebootInstance']({'instanceId':b[j(0x160)]}):Log[j(0x15e)](j(0x152)+b[j(0x14d)]+j(0x14f));}else Log[j(0x15e)](j(0x165));}catch(d){d&&Log['error'](d),process[j(0x14b)](0x1);}},a15e);function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x149;let f=c[d];return f;},a15d(a,b);}function a15c(){const k=['876174yoEgkd','Reboot\x20an\x20EC2\x20instance','error','10mLYasy','instanceId','172pcsLMz','2904800pVwCFD','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','running','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','apply','confirm','(((.+)+)+)+$','42lSTLZg','714297GVqbTO','exit','create','name','maka\x20aws:reboot-instance','\x20is\x20still\x20running.','toString','status','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','979620EruPlP','162530cXitEi','constructor','11AzAozU','search','rbi','1692662YhMeHm','250173OjVuqg','304OVVZql'];a15c=function(){return k;};return a15c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16H=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x159))/0x1*(parseInt(E(0x177))/0x2)+-parseInt(E(0x145))/0x3+-parseInt(E(0x179))/0x4+-parseInt(E(0x169))/0x5+-parseInt(E(0x157))/0x6*(-parseInt(E(0x14d))/0x7)+-parseInt(E(0x15e))/0x8+parseInt(E(0x147))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x5fa56));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x140)]()['search'](G(0x16d))[G(0x140)]()[G(0x16b)](a16a)['search'](G(0x16d));});function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x13f;let f=c[d];return f;},a16d(a,b);}function a16c(){const J=['8CsBDdm','OrganizationName','1458816jhvRYW','notice','maka\x20aws:register-domain-name\x20--domain=example.com','Auto\x20Renew:\x20','toString','maka\x20aws:register-domain-name','domain','PUBLIC_BODY','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','2326650rNIvcd','123\x20Glorious\x20Way','19685763AYtild','Domain\x20name\x20is\x20unavailable','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','warn','options','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','217133lTKbOG','Person','mail@example.com','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','Invalid\x202\x20character\x20country\x20code','Country\x20Code\x20[US]:\x20','\x20/\x20Year\x20\x0a','\x20for\x20','registerDomain','RESELLER','6pRXViG','Duration\x20in\x20years\x20[1]:\x20','113384lZfHec','Choose\x20contact\x20type','96816','PERSON','Are\x20you\x20sure?','3876696fSDBba','Do\x20you\x20wish\x20to\x20register\x20','checkDomainAvailability','Zip\x20Code\x20[96816]:\x20','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','register-domain-name','State\x20[HI]:\x20','create','Contact\x20Email\x20[mail@example.com]:\x20','COMPANY','Contact','3276275NUXGuh','Contact\x20First\x20Name\x20[Contact]:\x20','constructor','+1.5555555555','(((.+)+)+)+$','ask','\x20is\x20available\x20for:','confirm','error','apply','My\x20Comanpy,\x20LLC.','ASSOCIATION','contactType','rdn'];a16c=function(){return J;};return a16c();}a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){return Object['values'](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16H(0x165)]({'name':a16H(0x163),'aliases':[a16H(0x176)],'usage':a16H(0x141),'requiredOpts':[a16H(0x142)],'validOpts':[],'shortDesc':a16H(0x144),'examples':[a16H(0x17b),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const I=a16H;try{const c=b[I(0x142)],d=new AWS(),{available:f,cost:g}=await d[I(0x160)](c);if(f&&g){Log[I(0x17a)]('The\x20domain\x20name:\x20'+c+I(0x16f));const {Price:h,Currency:i}=g;Log[I(0x14a)]('\x20\x20'+h+'\x20'+i+I(0x153));const j=await Actions[I(0x170)](I(0x15f)+c+'\x20?',![]);if(j){const k={'type':'list','name':I(0x175),'message':I(0x15a),'choices':[I(0x174),I(0x167),I(0x15c),I(0x143),I(0x156)]},l=await Actions[I(0x16e)](I(0x158))||'1',m=await Actions['ask'](I(0x16a))||I(0x168),n=await Actions[I(0x16e)]('Contact\x20Last\x20Name\x20[Person]:\x20')||I(0x14e),{contactType:o}=await Actions[I(0x14b)](k),p=await Actions[I(0x16e)](I(0x149))||I(0x146),q=await Actions[I(0x16e)]('Address\x20Line\x202:\x20'),r=await Actions['ask'](I(0x161))||I(0x15b),s=await Actions[I(0x16e)](I(0x164))||'HI',t=await Actions[I(0x16e)](I(0x152))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x171)](I(0x151));const v=await Actions[I(0x16e)](I(0x162))||I(0x16c),w=await Actions[I(0x16e)](I(0x150))||'+1.5555555556',x=await Actions[I(0x16e)](I(0x166))||I(0x14f),y=await Actions[I(0x170)](I(0x13f)),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(0x15c)){const C=await Actions[I(0x16e)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||I(0x173);z[I(0x178)]=C;}const A=h||0x0*parseInt(l);Log[I(0x17a)](I(0x14c)),Log[I(0x14a)](A+'\x20'+i+I(0x154)+l+'\x20years\x20('+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[I(0x170)](I(0x15d));B&&await d[I(0x155)](z,c,parseInt(l),y);}}else throw I(0x148);}catch(D){D&&Log['error'](D),process['exit'](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17j=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x1a3))/0x1+-parseInt(h(0x19f))/0x2*(-parseInt(h(0x199))/0x3)+-parseInt(h(0x18a))/0x4+-parseInt(h(0x18b))/0x5*(-parseInt(h(0x1a5))/0x6)+parseInt(h(0x18f))/0x7+-parseInt(h(0x192))/0x8+parseInt(h(0x19a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xc0866));const a17b=(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;};}()),a17a=a17b(this,function(){const i=a17d;return a17a[i(0x19b)]()[i(0x18c)](i(0x1a4))['toString']()['constructor'](a17a)[i(0x18c)](i(0x1a4));});function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x18a;let f=c[d];return f;},a17d(a,b);}a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a17c(){const m=['confirm','exit','43103OqhPmD','(((.+)+)+)+$','6qxlOJa','maka\x20aws:remove-key-pair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','5490180zaJPnj','960790JXkmqF','search','error','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','10786916uGCTuE','Not\x20deleting\x20keypair','deleteKeyPair','7703120BbuoxJ','ec2describeKeys','create','success','Deleting\x20a\x20','name','forEach','3iBrzvf','10467855ZsrtCx','toString','\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','Please\x20choose\x20a\x20key\x20to\x20delete:','rkp','369346UVnAwq','ask'];a17c=function(){return m;};return a17c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17j(0x194)]({'name':'remove-key-pair','aliases':[a17j(0x19e)],'usage':a17j(0x1a6),'validOpts':[],'shortDesc':a17j(0x18e),'description':a17j(0x19c),'examples':[a17j(0x1a6),'maka\x20aws:rkp']},async function(){const k=a17j;try{const a=new AWS(),b=await a[k(0x193)]();let c=undefined;const d=await Actions[k(0x1a0)](k(0x19d));b?.[k(0x198)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x197)]);});if(!c)throw Log[k(0x18d)](k(0x1a7));const f=await Actions[k(0x1a1)](k(0x196)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a[k(0x191)](c),Log[k(0x195)]('Deleted\x20'+c)):Log[k(0x18d)](k(0x190)),process['exit'](0x0);}catch(g){g&&Log[k(0x18d)](g),process[k(0x1a2)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d
|
|
1
|
+
const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=parseInt(m(0xcc))/0x1+-parseInt(m(0xc8))/0x2+parseInt(m(0xdc))/0x3+-parseInt(m(0xe5))/0x4+parseInt(m(0xcf))/0x5*(parseInt(m(0xe6))/0x6)+-parseInt(m(0xc6))/0x7*(parseInt(m(0xe0))/0x8)+-parseInt(m(0xd2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x2247f));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a['toString']()[o(0xe2)](o(0xd3))['toString']()[o(0xe8)](a18a)[o(0xe2)](o(0xd3));});a18a();import a18e from'path';import a18f from'fs';function a18c(){const r=['join','maka\x20aws:set-host\x20--env\x20dev','utf8','chooseInstance','590640sEHLds','env','sth','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','48TkFqpE','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','search','ask','exit','86832qicoGN','1770FWfgxK','fsi','constructor','host','sep','template','appName','29918UPxTzN','stringify','438586rCJZrT','error','public','maka\x20aws\x20set-host','159541PTBRVn','cat\x20','apply','885usvWTj','writeFileSync','inherit','14184uXSwRU','(((.+)+)+)+$','privateIp','ssh.json','\x0aSaved\x20host\x20','getAppConfigPath'];a18c=function(){return r;};return a18c();}import{execSync}from'child_process';import a18g from'./aws.command.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xc4;let f=c[d];return f;},a18d(a,b);}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['create']({'name':'set-host','aliases':[a18p(0xde)],'usage':a18p(0xcb),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':'\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','examples':[a18p(0xd9),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const q=a18p;try{const c=new AWS(),d=this[q(0xe7)]['getEnvFromShorthand'](b[q(0xdd)]),f=this[q(0xe7)][q(0xd7)](d),g=this[q(0xe7)]['getMakaProjectConfig'](),h=await c[q(0xdb)](),i=a18e[q(0xd8)](f,q(0xd5));!this[q(0xe7)]['isFile'](i)&&await this[q(0xe7)][q(0xc4)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':g[q(0xc5)]},'config':g});const j=JSON['parse'](a18f['readFileSync'](i,q(0xda))),k=await Actions[q(0xe3)](q(0xdf))||q(0xca);if(k){if(k===q(0xca)||k==='private'){if(k===q(0xca))j['host']=h?.['publicIp'];else k==='private'&&(j[q(0xe9)]=h?.[q(0xd4)]);}else throw q(0xe1);}else j[q(0xe9)]=h?.['privateIp'];a18f[q(0xd0)](a18e[q(0xd8)](f,'ssh.json'),JSON[q(0xc7)](j,null,0x2)),execSync(q(0xcd)+a18e['join'](f,q(0xd5)),{'stdio':q(0xd1)}),Log['success'](q(0xd6)+k+'\x20IP\x20to\x20'+f+a18e[q(0xea)]+'ssh.json');}catch(l){l&&Log[q(0xc9)](l),process[q(0xe4)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a19c(){const k=['search','5162688BcplWd','18460LsnLuc','maka\x20aws:ti','name','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','confirm','2229hJsoKS','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','6nIKjmN','1196028kvtlgD','running','385wBwRwG','526FOCZGQ','12ISPnCX','error','create','terminate-instance','maka\x20aws:terminate-instance','(((.+)+)+)+$','41812536uhDvsu','exit','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','chooseInstance','2602015CczDry','apply','instanceId','Terminate\x20an\x20EC2\x20instance','ec2terminateInstance','176040Rxfpkv','toString','6193DuDJFb'];a19c=function(){return k;};return a19c();}const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x15f))/0x1*(-parseInt(f(0x145))/0x2)+-parseInt(f(0x146))/0x3*(parseInt(f(0x142))/0x4)+parseInt(f(0x150))/0x5*(-parseInt(f(0x141))/0x6)+parseInt(f(0x144))/0x7*(-parseInt(f(0x155))/0x8)+parseInt(f(0x159))/0x9+parseInt(f(0x15a))/0xa*(-parseInt(f(0x157))/0xb)+parseInt(f(0x14c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xa5959));function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x140;let f=c[d];return f;},a19d(a,b);}const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x151)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x156)]()[h(0x158)]('(((.+)+)+)+$')['toString']()['constructor'](a19a)['search'](h(0x14b));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x148)]({'name':a19i(0x149),'aliases':['ti'],'usage':a19i(0x14a),'validOpts':[],'shortDesc':a19i(0x153),'description':a19i(0x160),'examples':[a19i(0x14a),a19i(0x15b)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x14f)]();if(b?.[j(0x152)]&&b?.['status']===j(0x143)){const c=await Actions[j(0x15e)](j(0x14e)+b[j(0x15c)]+'\x20Ready?');c?a[j(0x154)]({'instanceId':b[j(0x152)]}):Log[j(0x147)](j(0x15d)+b['name']+j(0x140));}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log['error'](d),process[j(0x14d)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a20d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x17b))/0x1*(-parseInt(f(0x17d))/0x2)+parseInt(f(0x173))/0x3+parseInt(f(0x177))/0x4+parseInt(f(0x178))/0x5*(parseInt(f(0x170))/0x6)+parseInt(f(0x17c))/0x7+parseInt(f(0x171))/0x8+parseInt(f(0x172))/0x9*(-parseInt(f(0x176))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x811bd));var a20b=(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;};}()),a20a=a20b(this,function(){var g=a20d;return a20a[g(0x174)]()['search'](g(0x17a))[g(0x174)]()[g(0x175)](a20a)[g(0x179)](g(0x17a));});function a20c(){var h=['5bYVzZe','search','(((.+)+)+)+$','34SyyGAB','3100223PFkDjM','52694lczoay','4629594GzOBlM','2884720SZXYaU','9873kTwgMD','2700630dXHbqI','toString','constructor','34200zwXadb','3637932EiWcIZ'];a20c=function(){return h;};return a20c();}a20a();function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x170;var f=c[d];return f;},a20d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21q=a21d;
|
|
1
|
+
const a21q=a21d;function a21c(){const t=['constructor','checkMeteorPackage','1330585wAdnJX','search','pathFromProject','10KtjCHS',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','apply','create','forEach','4914264fJOsvF','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','autoupdate','528846wrGeuH','Aborted.','54257CgqgqV','51384411wwuoef','force','confirm','915350IvRGWC','splice','1216GqFHpW','fsi','2qUXzrU','app.tar.gz','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','maka\x20build','error','getGlobalMeteorVersion','invokeMeteorCommand','\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','4177932RXHnCc','existsSync','build','toString','concat','update','(((.+)+)+)+$','This\x20project\x27s\x20meteor\x20version\x20(','exit','join'];a21c=function(){return t;};return a21c();}(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x89))/0x1+parseInt(n(0x9e))/0x2*(-parseInt(n(0x94))/0x3)+-parseInt(n(0x91))/0x4+-parseInt(n(0x9a))/0x5+-parseInt(n(0x7d))/0x6+-parseInt(n(0x96))/0x7*(parseInt(n(0x9c))/0x8)+-parseInt(n(0x97))/0x9*(-parseInt(n(0x8c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xdfbb2));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x80)]()[p(0x8a)]('(((.+)+)+)+$')['toString']()[p(0x87)](a21a)['search'](p(0x83));});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x76;let f=c[d];return f;},a21d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x8f)]({'name':'build','usage':a21q(0x78),'validOpts':[a21q(0x98)],'aliases':['b'],'shortDesc':a21q(0x77),'mustBeInMakaProject':!![],'description':a21q(0x7c),'examples':[a21q(0x78)]},async function(a,b){const r=a21q;try{await this[r(0x9d)][r(0x88)](r(0x93),{'shouldInstall':!![]});const c=b[r(0x98)];if(!c){const g=this[r(0x9d)][r(0x7a)](),h=this['fsi']['getProjectMeteorVersion'](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x99)](r(0x84)+h+r(0x8d)+g+').\x20Update?');j&&this[r(0x9d)]['invokeMeteorCommand'](r(0x82),['--release',g]);}}const d=[this[r(0x9d)][r(0x8b)]({'pathParts':[r(0x7f)]})][r(0x81)](process['argv']['slice'](0x3)),f=a21e[r(0x86)](this[r(0x9d)][r(0x8b)]({}),'build',r(0x76));if(a21f[r(0x7e)](f)){const k=c??await Actions[r(0x99)](r(0x92));if(!k)throw Log[r(0x79)](r(0x95));}d[r(0x90)]((l,m)=>{const s=r;l==='--force'&&d[s(0x9b)](m,0x2);}),this['fsi'][r(0x7b)](r(0x7f),d);}catch(l){console[r(0x79)](l),process[r(0x85)](0x0);}});export default BuildCommand;
|