@maka/maka-cli 5.0.10 → 5.0.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 -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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.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/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": "5.0.
|
|
3
|
+
"version": "5.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0q=a0d;function a0c(){const A=['DARK','maxArgLength','validateParams','1623495yHlrms','create','run','mustHaveMeteorInstalled','help','length','split','Command\x20not\x20found','keys','validateUserIsLoggedIn','assign','apply','5527260jAABEd','294EIfYNf','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','bind','push','1270XdbPeS','Please\x20run\x20\x22maka\x20install\x20meteor\x22','search','pallet','forEach','_commands','Name','setColorMode','function','unshift','44sRMprU','bright','minArgLength','Command\x20requires\x20a\x20name','1899600LXEgTn','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','name','1447ccKgWH','tableList','exit','usage','1036520fPbtpR','3KDgzBp','generate','join','invoke','localeCompare','_handler','validateMakaProject','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','options','Alias','minOptsLength','Command.create\x20requires\x20some\x20options!','match','slice','find','shortDesc','error','validateMeteorInstall','getGlobalConfig','(((.+)+)+)+$','number','459076WuYexK','Please\x20run\x20\x22maka\x20login\x22','notice','call','Command\x20requires\x20a\x20handler\x20function','Too\x20few\x20arguments','(expermiental)\x20','sort','Command.create\x20requires\x20a\x20handler\x20function!','mustBeInMakaProject','Too\x20few\x20options','light','maxOptsLength','140622FIOPdO','maybeProxyCommandToMeteor','Description','addCommand','toString','mustBeLoggedIn'];a0c=function(){return A;};return a0c();}(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x120))/0x1*(-parseInt(n(0x161))/0x2)+-parseInt(n(0x125))/0x3*(parseInt(n(0x13a))/0x4)+parseInt(n(0x150))/0x5+-parseInt(n(0x147))/0x6*(parseInt(n(0x15d))/0x7)+parseInt(n(0x11d))/0x8+parseInt(n(0x15c))/0x9+-parseInt(n(0x124))/0xa*(parseInt(n(0x119))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x8df1b));function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x115;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a['toString']()[p(0x163)](p(0x138))['toString']()['constructor'](a0a)[p(0x163)](p(0x138));});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{['options'];[a0q(0x166)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x11e));if(!a[r(0x11f)])throw new Error(r(0x11c));if(typeof b!==r(0x117))throw new Error(r(0x13e));this['options']=Object[r(0x15a)]({},a),this['name']=this[r(0x12d)]['name'],this[r(0x166)]=[],this[r(0x12a)]=b[r(0x15f)](this);}static[a0q(0x151)](a,b,c){const s=a0q;if(!a)throw new Error(s(0x130));if(typeof b!==s(0x117))throw new Error(s(0x142));const d=new Command(a,b);return c=c||a0f,Object[s(0x15a)](d,{'parent':c?.[s(0x12d)]?.['name']}),c['addCommand'](d),d;}[a0q(0x14a)](a){const t=a0q;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[t(0x166)]['push'](a);}async[a0q(0x152)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this['fsi'][u(0x137)](),d=c[u(0x164)]===u(0x145)?ColorMode['LIGHT']:ColorMode[u(0x14d)];Log[u(0x116)](d);}catch(f){Log[u(0x135)](f),process['exit'](0x0);}return await this[u(0x128)](a,b);}catch(g){process[u(0x122)](0x1);}}async[a0q(0x128)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this[v(0x12d)];try{if(this[v(0x12d)][v(0x11f)]!==v(0x126)){if(!isRoot){const g=(a[0x0]===_prevCmd||a['length']===0x0)&&this['_commands'][v(0x155)]>=0x0,h=b[v(0x154)]||b['h'];if(g&&h){if(this[v(0x166)][v(0x155)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[v(0x12d)][v(0x143)]){const i=this[v(0x12b)]();if(!i)throw new MustBeInProjectError();}if(this[v(0x12d)][v(0x14c)]){const j=await this[v(0x159)]();if(!j)throw new MustBeLoggedIn();}if(this['options'][v(0x153)]){const k=this[v(0x136)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[v(0x12d)]['minArgLength']===v(0x139)){if(a[v(0x155)]<this[v(0x12d)][v(0x11b)]){Log[v(0x135)](v(0x13f));throw new UsageError();}}if(typeof this[v(0x12d)][v(0x14e)]===v(0x139)){if(a[v(0x155)]>=this[v(0x12d)][v(0x14e)]){Log[v(0x135)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[v(0x12d)][v(0x12f)]===v(0x139)){if(Object[v(0x158)](b)[v(0x155)]<this[v(0x12d)][v(0x12f)]){Log[v(0x135)](v(0x144));throw new UsageError();}}if(typeof this[v(0x12d)][v(0x146)]===v(0x139)){if(Object['keys'](b)[v(0x155)]>=this[v(0x12d)]['maxOptsLength']){Log[v(0x135)]('Too\x20many\x20options');throw new UsageError();}}}}b=await this[v(0x14f)](a,b,this[v(0x12d)]),_prevCmd=a[0x0];}return await this[v(0x12a)][v(0x13d)](this,a,b);}catch(l){Log[v(0x123)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log[v(0x13c)]('Sub-Commands:'),this['tableList'](this[v(0x166)]),Log['header'](v(0x15e));else{if(l instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(l instanceof NoMeteorFoundError)Log['error'](v(0x12c)),Log[v(0x13c)](v(0x162));else{if(l instanceof NoMeteorAppFoundError)Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');else l instanceof MustBeLoggedIn&&(Log[v(0x135)]('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log['notice'](v(0x13b)));}}}process[v(0x122)](0x1);}}[a0q(0x121)](a){const w=a0q,b=new a0e({});b['push']([w(0x115),w(0x12e),w(0x149)]),a[w(0x141)]((c,d)=>{const x=w;return c[x(0x11f)][x(0x129)](d[x(0x11f)]);})[w(0x165)](c=>{const y=w;if(c['name']!=='murder'&&c[y(0x11f)]!=='play'){const d=c['experimental'](),e=d?y(0x140)+c['shortDesc']():c[y(0x134)]();b[y(0x160)]([c['name'],c['aliases'](),e]);}}),Log[w(0x11a)](b[w(0x14b)]());}async['processAndRunCommand'](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x156)](':');if(!d||d['length']===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===z(0x126)||d[0x0]==='g'&&d[z(0x155)]>0x1){const h=this[z(0x166)][z(0x133)](j=>j[z(0x131)](z(0x126)));if(!h)throw'Command\x20not\x20found';const i=d[z(0x132)](0x1)[z(0x127)](':');return b[z(0x118)](i),await h[z(0x152)](b,c);}let f=this[z(0x166)],g;for(const j of d){g=f[z(0x133)](k=>k[z(0x131)](j));if(!g)try{await this['fsi'][z(0x148)]();}catch(k){throw'Command\x20'+j+'\x20not\x20found';}g&&(f=g['_commands']);}if(g){const l=await g[z(0x152)](b,c);return l;}else throw z(0x157);}catch(m){Log['error'](m),process[z(0x122)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x19e))/0x1*(parseInt(f(0x196))/0x2)+-parseInt(f(0x19c))/0x3*(-parseInt(f(0x19b))/0x4)+parseInt(f(0x1a0))/0x5+-parseInt(f(0x1a1))/0x6*(parseInt(f(0x195))/0x7)+-parseInt(f(0x199))/0x8*(parseInt(f(0x197))/0x9)+parseInt(f(0x194))/0xa*(parseInt(f(0x19d))/0xb)+parseInt(f(0x19a))/0xc*(-parseInt(f(0x1a2))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x43913));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a['toString']()[h(0x19f)](h(0x192))[h(0x193)]()[h(0x191)](a1a)['search'](h(0x192));});a1a();function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x191;var f=c[d];return f;},a1d(a,b);}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';function a1c(){var i=['764871aWcxGv','175571mQIQpb','29993ReAYHl','search','966935iRthig','15258uyqbhM','29809VlGvSO','constructor','(((.+)+)+)+$','toString','300VKwUPZ','1358egoxEH','10IPCGBi','59931kydNhf','apply','8ZtDENR','1572oVadPx','4uZBAvp'];a1c=function(){return i;};return a1c();}import'./help.js';import'./install.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'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x126))/0x1+-parseInt(h(0x139))/0x2+-parseInt(h(0x130))/0x3+parseInt(h(0x12e))/0x4+-parseInt(h(0x12b))/0x5+-parseInt(h(0x11a))/0x6*(-parseInt(h(0x138))/0x7)+parseInt(h(0x116))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x5ec79));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(0x113)](i(0x117))[i(0x121)]()['constructor'](a2a)[i(0x113)]('(((.+)+)+)+$');});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x111;let f=c[d];return f;},a2d(a,b);}function a2c(){const n=['cacert','fsi','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','choices','7JLvgQB','1011160TufQXa','isFile','data','search','openapikey','toLowerCase','2890752Mkmtbo','(((.+)+)+)+$','create','trim','1051374LaDCBD','GPT:\x20','ChatGPT\x20style\x20AI\x20interface','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','Using\x20OpenAI\x20Key\x20','stdout','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','toString','openai','error','stdin','text','508652EtqMAm','getGlobalConfig','bright','close','createInterface','1916225BQxZha','exit','askGPT','1478568eviAQs','notice','413475GLhViy','parse','message','cert'];a2c=function(){return n;};return a2c();}const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x12a)]({'input':process[j(0x124)],'output':process[j(0x11f)]});c['question']('You:\x20',async d=>{const k=j;if(d[k(0x115)]()===k(0x12c)){c[k(0x129)]();return;}try{const e=await HTTPS[k(0x12d)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x131)](e[k(0x112)]);if(f[k(0x123)])throw new Error(f[k(0x123)][k(0x132)]);Log[k(0x128)](k(0x11b)+f?.[k(0x137)][0x0]?.[k(0x125)][k(0x119)]());}catch(g){Log[k(0x123)](g),process[k(0x12c)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x118)]({'name':'ai','description':a2l(0x11c),'validOpts':[a2l(0x134),'openapikey'],'shortDesc':a2l(0x11c),'isPro':!![]},async function(a,b){const m=a2l;try{let c='';b[m(0x134)]&&(this[m(0x135)]['isFile'](b[m(0x134)])?(c=b[m(0x134)],Log[m(0x12f)]('Using\x20CA\x20Cert\x20'+c)):Log[m(0x123)](m(0x136)+c));const d=await this[m(0x135)][m(0x127)]();if(d[m(0x133)]){if(this[m(0x135)][m(0x111)](d[m(0x133)]))c=d[m(0x133)];else throw Log[m(0x123)](m(0x120)+c);}let f='';if(b[m(0x114)])f=b[m(0x114)],Log[m(0x12f)](m(0x11e)+f);else{if(d[m(0x122)])f=d[m(0x122)];else throw Log['error']('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}Log[m(0x128)](m(0x11d)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x123)](g),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x169))/0x1*(-parseInt(f(0x166))/0x2)+parseInt(f(0x164))/0x3+-parseInt(f(0x162))/0x4*(parseInt(f(0x163))/0x5)+parseInt(f(0x165))/0x6+-parseInt(f(0x16d))/0x7+parseInt(f(0x16f))/0x8+parseInt(f(0x161))/0x9*(-parseInt(f(0x16c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xb5f76));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x167)]()[h(0x16a)](h(0x16b))[h(0x167)]()[h(0x168)](a3a)[h(0x16a)](h(0x16b));});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';import'./chz.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x161;var f=c[d];return f;},a3d(a,b);}function a3c(){var i=['2203311QpaWPJ','4601196UQeaRy','118990rLCwIZ','toString','constructor','23iLlGda','search','(((.+)+)+)+$','13543510BhTDfc','6882645knlTAY','apply','6224088zfAifi','9jlwVFe','4JThqnR','2823895DxkCrB'];a3c=function(){return i;};return a3c();}import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4h=a4d;
|
|
1
|
+
const a4h=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xd4))/0x1*(parseInt(f(0xc9))/0x2)+-parseInt(f(0xd2))/0x3*(parseInt(f(0xcb))/0x4)+-parseInt(f(0xcc))/0x5+parseInt(f(0xce))/0x6*(-parseInt(f(0xc8))/0x7)+-parseInt(f(0xcd))/0x8*(parseInt(f(0xd3))/0x9)+parseInt(f(0xc6))/0xa*(-parseInt(f(0xca))/0xb)+parseInt(f(0xc7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x4a712));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xc4;let f=c[d];return f;},a4d(a,b);}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0xd1)]()['search'](g(0xd0))[g(0xd1)]()[g(0xc5)](a4a)[g(0xd7)](g(0xd0));});function a4c(){const i=['1631OkrCIw','4720IIJmoY','11chVPpR','15644qkqRHu','1681165LvYpLP','565368CLxuZk','9906gbANWE','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','(((.+)+)+)+$','toString','87iJWuGR','9Cystpg','99NkPTmZ','maka\x20aws:<sub-command>','create','search','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','constructor','4680590MeUzFU','17332068JzqfsO'];a4c=function(){return i;};return a4c();}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0xd6)]({'name':'aws','usage':a4h(0xd5),'validOpts':[],'shortDesc':a4h(0xc4),'description':a4h(0xcf)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xa7))/0x1+-parseInt(g(0x96))/0x2*(parseInt(g(0xa4))/0x3)+-parseInt(g(0xab))/0x4*(-parseInt(g(0x8e))/0x5)+parseInt(g(0x97))/0x6*(parseInt(g(0x94))/0x7)+parseInt(g(0xa8))/0x8*(-parseInt(g(0x90))/0x9)+parseInt(g(0x9a))/0xa+parseInt(g(0x9e))/0xb*(parseInt(g(0xa9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x50304));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x93)]()[i(0xac)](i(0x91))[i(0x93)]()['constructor'](a5a)['search'](i(0x91));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x8c;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a5c(){const l=['2557177ZBjdbU','$metadata','18630cnpfGU','6lDvgpt','maka\x20aws:cecr\x20--name=my-new-repo','maka\x20aws:create-ecr\x20--name=my-new-repo','5813870rrVnCv','Repository\x20created\x20successfully.','maka\x20aws:create-ecr','error','11EhFCMG','success','create','apply','Create\x20an\x20Elastic\x20Container\x20Repository','create-ecr','51PrkDsd','region','httpStatusCode','442044gdfUrM','8cNKTrz','2411508FCVAhl','notice','100QipnIR','search','repository','exit','72945sBzdtz','repositoryUri','5251779AUBItv','(((.+)+)+)+$','name','toString'];a5c=function(){return l;};return a5c();}Command[a5j(0xa0)]({'name':a5j(0xa3),'aliases':['cecr'],'usage':a5j(0x9c),'requiredOpts':[a5j(0x92)],'validOpts':[a5j(0xa5)],'shortDesc':a5j(0xa2),'examples':[a5j(0x99),a5j(0x98),'maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1']},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0x95)][k(0xa6)]===0xc8&&d[k(0x8c)]?(Log[k(0x9f)](k(0x9b)),Log[k(0xaa)]('Repository\x20URI:\x20'+d[k(0x8c)][k(0x8f)])):Log[k(0x9d)]('Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.'),process[k(0x8d)](0x0);}catch(f){Log[k(0x9d)](f),process[k(0x8d)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x198))/0x1*(parseInt(i(0x1ac))/0x2)+-parseInt(i(0x19a))/0x3+-parseInt(i(0x1b4))/0x4*(-parseInt(i(0x1a2))/0x5)+parseInt(i(0x1a6))/0x6*(parseInt(i(0x19f))/0x7)+-parseInt(i(0x1ae))/0x8*(parseInt(i(0x1a4))/0x9)+-parseInt(i(0x1a3))/0xa+-parseInt(i(0x1b2))/0xb*(-parseInt(i(0x1b3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x223cb));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a['toString']()['search'](k(0x197))[k(0x1b1)]()[k(0x1a0)](a6a)[k(0x19b)](k(0x197));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a6c(){const n=['121495TdCuEK','12AALkMI','895940JogYls','(((.+)+)+)+$','13001siJLwD','error','674079UvgffR','search','confirm','create-hosted-zone','chz','63SsCDSl','constructor','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','5FgGAHY','871190OCshYb','90CXWLcl','maka\x20aws:create-hosted-zone\x20--domain=example.com','184956EiYlvM','domain','apply','route53CreateHostedZone','maka\x20aws:chz\x20--domain=example.com','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','6qMztwJ','Instance\x20not\x20found','79536lJcrvH','linkEC2ToRoute53','Set\x20hosted\x20zone\x20to\x20an\x20instance?','toString'];a6c=function(){return n;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x197;let f=c[d];return f;},a6d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a6l(0x19d),'aliases':[a6l(0x19e)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':['domain'],'validOpts':[],'shortDesc':a6l(0x1a1),'examples':[a6l(0x1a5),a6l(0x1aa)]},async function(a,b){const m=a6l;try{const c=b[m(0x1a7)],d=new AWS();d[m(0x1a9)](c);const f=await Actions[m(0x19c)](m(0x1b0));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g['publicIp'])throw Log[m(0x199)](m(0x1ab));d[m(0x1af)](g['id'],g['publicIp'],c);}else throw m(0x1ad);}}catch(h){h&&Log[m(0x199)](h),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7a1=a7d;(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=-parseInt(Y(
|
|
1
|
+
function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a7d(a,b);}const a7a1=a7d;(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=-parseInt(Y(0x202))/0x1+-parseInt(Y(0x22c))/0x2+parseInt(Y(0x234))/0x3+parseInt(Y(0x1f8))/0x4*(parseInt(Y(0x1ed))/0x5)+-parseInt(Y(0x1ea))/0x6*(-parseInt(Y(0x1f9))/0x7)+-parseInt(Y(0x1f2))/0x8+-parseInt(Y(0x1f3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xad648));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const Z=a7d;if(c){const e=c[Z(0x232)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const a0=a7d;return a7a[a0(0x226)]()[a0(0x1ef)](a0(0x223))['toString']()[a0(0x216)](a7a)[a0(0x1ef)](a0(0x223));});a7a();import a7e from'./aws.command.js';function a7c(){const a3=['getAppConfigPath','createFile','Security\x20Group\x20Name:\x20[','ec2describeKeys','error','321913ynHwvv','deleteSecurityGroup','readFileSync','Creating\x20user\x20data\x20file\x20in\x20','fsi','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Setting\x20the\x20key-pair\x20to:\x20','maka-cli','chooseVPC','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','maka\x20aws:create-instance\x20--env\x20dev','**\x20Available\x20key-pairs\x20**','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ImageID:','listAvailableAMIs','listAvailableSubnets','bright','maka\x20aws:ci\x20--env\x20prod','create-instance','ec2create','constructor','t3.micro','ask','EC2\x20Name:\x20[','env','exit','Instance\x20Count:\x20','Key-Pair:\x20','Web\x20App','success','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','join','ec2createSG','(((.+)+)+)+$','getEnvFromShorthand','isFile','toString','User\x20Data:','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','user-data','notice','Remove\x20the\x20security\x20group\x20','553790dQAVdt','getSubnetCidr','createKeyPair','environment','Create\x20new\x20AWS\x20instance','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','apply','Subnet:\x20','2712198puJzQG','create','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','22,80,443','599286vdJsWT','confirm','Name','165IMnxUp','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','search','1:1','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','9243064ghaIUt','1754505MnoOaK','No\x20instance\x20has\x20been\x20created.','deleteKeyPair','string','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','152228CfZhMV','35gMpCaZ','chooseSecurityGroup','split','maka\x20aws:create-instance'];a7c=function(){return a3;};return a7c();}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';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7a1(0x1e7)]({'name':a7a1(0x214),'aliases':['ci'],'usage':a7a1(0x1fc),'examples':[a7a1(0x20c),a7a1(0x213)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7a1(0x21a)}],'validOpts':[],'shortDesc':a7a1(0x230),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const a2=a7a1;try{const c=this[a2(0x206)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[a2(0x206)][a2(0x224)](b[a2(0x21a)]),i=this['fsi'][a2(0x1fd)](h),j=g+'-'+h,k=await Actions['ask'](a2(0x219)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[a2(0x1eb)](a2(0x20b),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[a2(0x22e)]({'env':h});r=y,s=z,Log[a2(0x21f)](a2(0x208)+r);}else try{Log[a2(0x22a)](a2(0x20d));const A=r?r:k,B=await d[a2(0x200)]({'suggestion':A}),C=await Actions['ask'](a2(0x207))||'-1';if(parseInt(C)<0x0){Log['error'](a2(0x1f1)),Log[a2(0x22a)](a2(0x1f4));return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D['name'],Log[a2(0x21f)]('Setting\x20the\x20key-pair\x20to:\x20'+r);break;}}}catch(E){Log[a2(0x201)](E);}l=await d[a2(0x20a)]();const t=await Actions['confirm'](a2(0x231),!![]);let u;if(t){const F=l===''?await d[a2(0x20a)]():l;u=await Actions['ask'](a2(0x1ff)+k+']')||k;const G=await Actions['ask'](a2(0x1f7))||a2(0x1e9),H=G[a2(0x1fb)](',');await d[a2(0x222)]({'description':a2(0x21e),'name':u,'vpcId':F,'sgPorts':H});}u=k,m=await d[a2(0x1fa)](u),n=await d[a2(0x210)](),p=await d[a2(0x211)]();const v=0x1,w=0x1;try{const I=await Actions[a2(0x218)](a2(0x220))||a2(0x1f0),J=I[a2(0x1fb)](':')[0x0],K=I[a2(0x1fb)](':')[0x1];typeof parseInt(J)==='number'&&typeof parseInt(K)==='number'&&Log[a2(0x21f)](a2(0x1e8)+J+':'+K);}catch(L){Log[a2(0x201)](L);}try{const M=await Actions[a2(0x218)](a2(0x20e))||a2(0x217);typeof M===a2(0x1f6)&&(o=M);}catch(N){Log[a2(0x201)](N);}let x='';try{const O=await Actions[a2(0x1eb)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);O&&(x=a7f[a2(0x221)](i,a2(0x229)),Log[a2(0x22a)](a2(0x205)+x),await this[a2(0x206)][a2(0x1fe)]({'filePath':x,'data':''}),await Actions[a2(0x1eb)](a2(0x1ee)));}catch(P){Log[a2(0x201)](P);}try{const Q=await d[a2(0x22d)](p);Log['notice'](a2(0x20f)+n),Log[a2(0x22a)](a2(0x21c)+v+':'+w),Log[a2(0x22a)]('Instace\x20Type:\x20'+o),Log[a2(0x22a)](a2(0x21d)+r),Log[a2(0x22a)]('Security\x20Group:\x20'+m),Log[a2(0x22a)](a2(0x233)+Q);if(x){Log[a2(0x22a)](a2(0x227)+x);const S=a7g[a2(0x204)](x)[a2(0x226)]();Log['notice'](S);}const R=await Actions[a2(0x1eb)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(R){const T=await d[a2(0x215)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':a2(0x209)},{'Key':a2(0x22f),'Value':h},{'Key':a2(0x1ec),'Value':k}],...x&&{'userData':x}});T&&(Log['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[a2(0x212)](a2(0x228)));}else{Log[a2(0x22a)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const U=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);U&&(d[a2(0x1f5)](r),f[a2(0x225)](s)&&a7g['unlinkSync'](s));const V=await Actions['confirm'](a2(0x22b)+m+'\x20?',!![]);V&&d[a2(0x203)](m);}}catch(W){Log['error'](W);}}catch(X){X&&Log['error'](X),process[a2(0x21b)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d
|
|
1
|
+
const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x131))/0x1*(parseInt(g(0x136))/0x2)+parseInt(g(0x133))/0x3+parseInt(g(0x137))/0x4+parseInt(g(0x12e))/0x5*(parseInt(g(0x13e))/0x6)+parseInt(g(0x12f))/0x7+parseInt(g(0x140))/0x8+-parseInt(g(0x12b))/0x9*(parseInt(g(0x130))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x77196));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x13f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x13b)]()[i(0x135)](i(0x132))[i(0x13b)]()[i(0x141)](a8a)[i(0x135)](i(0x132));});a8a();import a8e 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 a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x12b;let f=c[d];return f;},a8d(a,b);}function a8c(){const l=['Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','search','426882eOYmBW','1448332zZBcvX','env','fsi','create','toString','maka\x20aws:create-key-pair','getEnvFromShorthand','585102OPqkue','apply','2299216cAwNVW','constructor','7799679YQyZpu','create-key-pair','ckp','40pZBmiD','832888mDCbJw','10gKDlDb','1GdeIpI','(((.+)+)+)+$','57891TipXKa'];a8c=function(){return l;};return a8c();}Command[a8j(0x13a)]({'name':a8j(0x12c),'aliases':[a8j(0x12d)],'usage':a8j(0x13c),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod','maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x138)],'validOpts':[],'shortDesc':a8j(0x134),'description':'\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'},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x139)][k(0x13d)](b['env']);c['createKeyPair']({'env':d});}catch(f){f&&Log['error'](f),process['exit'](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x13d))/0x1*(-parseInt(m(0x12a))/0x2)+-parseInt(m(0x131))/0x3+parseInt(m(0x13f))/0x4*(-parseInt(m(0x125))/0x5)+parseInt(m(0x132))/0x6+parseInt(m(0x123))/0x7+-parseInt(m(0x124))/0x8+-parseInt(m(0x126))/0x9*(-parseInt(m(0x140))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x60fa6));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x12e)]()['search'](o(0x13c))[o(0x12e)]()[o(0x122)](a9a)[o(0x12f)]('(((.+)+)+)+$');});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x11e;let f=c[d];return f;},a9d(a,b);}function a9c(){const s=['maka\x20aws\x20create-security-group','\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','name','toString','search','create','1900170iqXGPf','4356504MunlVx','match','fsi','forEach','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','csg','maka\x20aws:csg','error','22,80,443','(((.+)+)+)+$','333959UmWahP','ask','32ocafYT','10DhmSaP','Security\x20Group\x20Name:\x20[','create-security-group','ec2createSG','apply','split','exit','constructor','1328292qQFivb','3243672vqLyiW','12995QVpQBp','10880469CVMAky','List\x20is\x20not\x20all\x20numbers','Web\x20App','chooseVPC','4TCitbs'];a9c=function(){return s;};return a9c();}a9a();import a9e 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[a9p(0x130)]({'name':a9p(0x142),'aliases':[a9p(0x138)],'usage':a9p(0x12b),'validOpts':[],'shortDesc':a9p(0x136),'description':a9p(0x12c),'examples':['maka\x20aws:create-secuirty-group',a9p(0x139)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x134)]['getMakaProjectConfig'](),{appName:f}=d,g=await c[q(0x129)](),h=b[q(0x12d)]?b[q(0x12d)]:''+f,i=await Actions[q(0x13e)](q(0x141)+h+']')||h,j=await Actions[q(0x13e)](q(0x137))||q(0x13b),k=j[q(0x120)](',');k[q(0x135)](l=>{const r=q;if(!l[r(0x133)](/^\d+$/))throw r(0x127);}),await c[q(0x11e)]({'description':q(0x128),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x13a)](l),process[q(0x121)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1c6))/0x1*(parseInt(f(0x1d8))/0x2)+parseInt(f(0x1ca))/0x3+-parseInt(f(0x1d3))/0x4+-parseInt(f(0x1d2))/0x5+-parseInt(f(0x1cd))/0x6+-parseInt(f(0x1d9))/0x7*(-parseInt(f(0x1d5))/0x8)+parseInt(f(0x1c2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xdd93c));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1ce)]()[h(0x1d0)](h(0x1cf))[h(0x1ce)]()['constructor'](a10a)[h(0x1d0)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a10i(0x1c8),'aliases':[a10i(0x1cc)],'usage':a10i(0x1d4),'requiredOpts':['name',a10i(0x1d6)],'validOpts':[],'shortDesc':a10i(0x1d1),'examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10i(0x1d7)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x1da)]({'repoName':b[j(0x1cb)],'region':b[j(0x1d6)]}),Log[j(0x1c7)](j(0x1c1)+b['name']+'\x20deleted\x20successfully\x20in\x20region\x20'+b[j(0x1d6)]+'.'),process[j(0x1c9)](0x0);}catch(d){Log['error'](j(0x1c0)+b[j(0x1cb)]+j(0x1c4)+b[j(0x1d6)]+j(0x1c3)+d),process['exit'](0x1);}},a10e);function a10c(){const k=['apply','5ZONXwI','success','delete-ecr','exit','1680888FnzCJB','name','decr','1720158JVArpo','toString','(((.+)+)+)+$','search','Delete\x20an\x20Elastic\x20Container\x20Repository','9007895FDvbvd','4073388laxTXb','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','1720552kNDEuK','region','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','383674RXLcwI','42bHMssh','ecrDeleteRepository','Failed\x20to\x20delete\x20the\x20repository:\x20','Repository\x20','10838736NniFUq','.\x20Error:\x20','\x20in\x20region\x20'];a10c=function(){return k;};return a10c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d
|
|
1
|
+
const a11i=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x142;let f=c[d];return f;},a11d(a,b);}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x149))/0x1+parseInt(f(0x154))/0x2+-parseInt(f(0x155))/0x3+parseInt(f(0x14f))/0x4+-parseInt(f(0x150))/0x5+-parseInt(f(0x14b))/0x6*(-parseInt(f(0x14a))/0x7)+-parseInt(f(0x152))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x79a20));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x14c)]()[h(0x148)](h(0x14e))[h(0x14c)]()[h(0x151)](a11a)[h(0x148)](h(0x14e));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11c(){const k=['ec2describeInstances','exit','create','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','error','maka\x20aws:di','search','100288jKEHXF','7581CuCNBn','3930VthJye','toString','apply','(((.+)+)+)+$','3472336ywdTEz','3473190fsbskX','constructor','1492256EOXHuc','maka\x20aws:describe-instances','30196fFRPXn','338643mgoKrQ','\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'];a11c=function(){return k;};return a11c();}import{Log}from'../../tools/log/log.class.js';Command[a11i(0x144)]({'name':'describe-instances','aliases':['di'],'usage':a11i(0x153),'validOpts':[],'shortDesc':a11i(0x145),'examples':['maka\x20aws:describe-instances',a11i(0x147)],'description':a11i(0x156)},async function(){const j=a11i;try{const a=new AWS();a[j(0x142)]();}catch(b){b&&Log[j(0x146)](b),process[j(0x143)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xcd))/0x1*(-parseInt(f(0xd7))/0x2)+-parseInt(f(0xdb))/0x3+-parseInt(f(0xd2))/0x4*(-parseInt(f(0xcb))/0x5)+-parseInt(f(0xd9))/0x6+parseInt(f(0xda))/0x7*(-parseInt(f(0xd4))/0x8)+-parseInt(f(0xd1))/0x9*(parseInt(f(0xca))/0xa)+parseInt(f(0xd6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x9ccc7));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0xce)]()[h(0xcf)](h(0xd3))['toString']()['constructor'](a12a)[h(0xcf)]('(((.+)+)+)+$');});a12a();import a12e from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xca;let f=c[d];return f;},a12d(a,b);}function a12c(){const k=['dkp','288891yTMpTh','33716rNuvMT','(((.+)+)+)+$','306512cniBLi','describe-key-pairs','27340566uiUEdf','70844JSIsRD','maka\x20aws:dkp','4730178VMXDHJ','49GOsYtd','3127446SPiHBB','apply','exit','error','90pvVUSa','155zMEJHu','maka\x20aws:describe-key-pairs','8vpnwEP','toString','search'];a12c=function(){return k;};return a12c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12i(0xd5),'aliases':[a12i(0xd0)],'usage':a12i(0xcc),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a12i(0xcc),a12i(0xd8)]},async function(){const j=a12i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){b&&Log[j(0xde)](b),process[j(0xdd)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x8f))/0x1*(parseInt(l(0x83))/0x2)+parseInt(l(0x8d))/0x3+parseInt(l(0x93))/0x4*(-parseInt(l(0x72))/0x5)+-parseInt(l(0x71))/0x6+-parseInt(l(0x84))/0x7*(-parseInt(l(0x7a))/0x8)+-parseInt(l(0x88))/0x9*(-parseInt(l(0x7d))/0xa)+-parseInt(l(0x95))/0xb*(-parseInt(l(0x92))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x2fdcc));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x79)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x8c)]()[n(0x82)]('(((.+)+)+)+$')[n(0x8c)]()[n(0x77)](a13a)['search'](n(0x73));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x70;let f=c[d];return f;},a13d(a,b);}function a13c(){const s=['sgId','36AEptKc','161308gdTLxm','error','2018654wtZOto','\x20SG\x20NAME:\x20','name','585792kgtlHK','35RtgsVX','(((.+)+)+)+$','appName','create','maka\x20aws:dsg','constructor','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','apply','40TwEvxs','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','Deleted\x20','10PBdcZa','\x20SGID:\x20','includes','bright','forEach','search','210644lnwTHM','239239gZCTyp','getSecurityGroups','Deleting\x20a\x20','confirm','200835PAlCWh','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','ID:\x20','maka\x20aws:delete-sg','toString','444567oqrRmv','exit','3HwltTo','delete-security-group'];a13c=function(){return s;};return a13c();}import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x75)]({'name':a13o(0x90),'aliases':['dsg'],'usage':'maka\x20aws:delete-sg','validOpts':[],'shortDesc':a13o(0x89),'examples':[a13o(0x8b),a13o(0x76)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b['getMakaProjectConfig']();d=j[p(0x74)];}const {sgList:f}=await a[p(0x85)]();f[p(0x81)](function(k){const q=p;c&&k['name'][q(0x7f)](d)?Log['notice'](q(0x8a)+k['id']+q(0x96)+k[q(0x70)]+q(0x7e)+k[q(0x91)]):Log[q(0x80)](q(0x8a)+k['id']+q(0x96)+k[q(0x70)]+'\x20SGID:\x20'+k[q(0x91)]);});let g='';const h=await Actions['ask'](p(0x7b));f[p(0x81)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x91)]);});if(!g)throw Log[p(0x94)](p(0x78));const i=await Actions[p(0x87)](p(0x86)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a['deleteSecurityGroup'](g),Log['success'](p(0x7c)+g)):Log[p(0x94)]('Not\x20deleting\x20secuirty\x20group'),process[p(0x8e)](0x0);}catch(k){k&&Log[p(0x94)](k),process[p(0x8e)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x161))/0x1+-parseInt(f(0x174))/0x2+parseInt(f(0x165))/0x3+parseInt(f(0x172))/0x4+parseInt(f(0x15a))/0x5*(-parseInt(f(0x164))/0x6)+parseInt(f(0x16f))/0x7*(-parseInt(f(0x166))/0x8)+parseInt(f(0x170))/0x9*(parseInt(f(0x15e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x9d64c));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x15a;let f=c[d];return f;},a14d(a,b);}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a['toString']()['search'](h(0x162))[h(0x15d)]()[h(0x16e)](a14a)[h(0x160)]('(((.+)+)+)+$');});a14a();function a14c(){const k=['maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','constructor','7EVXXJY','1782fvOEnb','apply','1121348hvOWTI','listAllEcrRepositories','1486754XMMnBC','3040165TyJEPJ','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','success','toString','106030ruxNQm','regions','search','765524QxqFOe','(((.+)+)+)+$','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','6frCEoZ','397629bJWDaD','10253632mFYqbP','Completed\x20listing\x20ECR\x20repositories.','list-ecr','maka\x20aws:lecr\x20--regions=all','maka\x20aws:list-ecr','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','exit'];a14c=function(){return k;};return a14c();}import a14e 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':a14i(0x168),'aliases':['lecr'],'usage':a14i(0x15b),'requiredOpts':[],'validOpts':[a14i(0x15f)],'shortDesc':a14i(0x16b),'examples':[a14i(0x16a),a14i(0x16d),a14i(0x169)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x173)](b['regions']),Log[j(0x15c)](j(0x167)),process[j(0x16c)](0x0);}catch(d){Log['error'](j(0x163)+d),process[j(0x16c)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d
|
|
1
|
+
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x111))/0x1+-parseInt(f(0x115))/0x2*(-parseInt(f(0x112))/0x3)+parseInt(f(0x10f))/0x4*(-parseInt(f(0x11b))/0x5)+parseInt(f(0x10c))/0x6*(-parseInt(f(0x118))/0x7)+parseInt(f(0x109))/0x8*(parseInt(f(0x103))/0x9)+-parseInt(f(0x11e))/0xa*(parseInt(f(0x116))/0xb)+parseInt(f(0x10d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x90290));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x117)]()['search'](h(0x10e))[h(0x117)]()[h(0x104)](a15a)[h(0x106)](h(0x10e));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x102;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0x107)]({'name':a15i(0x11a),'aliases':[a15i(0x120)],'usage':a15i(0x102),'validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a15i(0x102),a15i(0x105)]},async function(){const j=a15i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x122)]===j(0x113)){const c=await Actions[j(0x10b)](j(0x10a)+b[j(0x121)]+j(0x11c));c&&b['instanceId']?a[j(0x11f)]({'instanceId':b[j(0x110)]}):Log['error']('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b['name']+'\x20is\x20still\x20running.');}else Log[j(0x108)](j(0x114));}catch(d){d&&Log['error'](d),process[j(0x11d)](0x1);}},a15e);function a15c(){const k=['\x20Ready?','exit','6889040jjihyo','ec2rebootInstance','rbi','name','status','maka\x20aws:reboot-instance','9bpTOpD','constructor','maka\x20aws:rbi','search','create','error','810928ejihZa','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','confirm','84HCipKV','38639364rcKgHm','(((.+)+)+)+$','195788huiKEE','instanceId','691089bDqROu','72606gCEGtl','running','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','2RqUvsg','11jKoWvd','toString','198051qPzUUD','apply','reboot-instance','100UhIzVi'];a15c=function(){return k;};return a15c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16H=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x122))/0x1+-parseInt(F(0x123))/0x2+-parseInt(F(0x119))/0x3*(-parseInt(F(0xf7))/0x4)+-parseInt(F(0x117))/0x5+-parseInt(F(0x115))/0x6+-parseInt(F(0x11a))/0x7*(parseInt(F(0x10b))/0x8)+parseInt(F(0xff))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xcba3e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a['toString']()[G(0xf1)](G(0xfc))[G(0x10f)]()[G(0x116)](a16a)[G(0xf1)](G(0xfc));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a16c(){const J=['Duration\x20in\x20years\x20[1]:\x20','maka\x20aws:register-domain-name\x20--domain=example.com','error','contactType','exit','PUBLIC_BODY','\x20for\x20','options','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','8364264KnBEEf','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','maka\x20aws:rdn\x20--domain=example.com','Choose\x20contact\x20type','toString','\x20years\x20(','registerDomain','confirm','Honolulu','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','6525564KCSbRp','constructor','5223840iqvfHe','RESELLER','1492761bxsQSk','7vdqGqb','PERSON','Zip\x20Code\x20[96816]:\x20','list','Contact','State\x20[HI]:\x20','Invalid\x202\x20character\x20country\x20code','Address\x20Line\x202:\x20','825921OIluPV','636468WxRdxJ','rdn','Contact\x20Email\x20[mail@example.com]:\x20','search','ask','Person','COMPANY','warn','City\x20[Honolulu]:\x20','12xQgSQP','mail@example.com','+1.5555555555','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','domain','(((.+)+)+)+$','My\x20Company,\x20LLC.','Contact\x20Last\x20Name\x20[Person]:\x20','18104013rZAZpC','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','\x20/\x20Year\x20\x0a'];a16c=function(){return J;};return a16c();}import{Actions}from'../../tools/actions/actions.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xf1;let f=c[d];return f;},a16d(a,b);}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['create']({'name':'register-domain-name','aliases':[a16H(0x124)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a16H(0xfb)],'validOpts':[],'shortDesc':a16H(0x100),'examples':[a16H(0x103),a16H(0x10d)]},async function(a,b){const I=a16H;try{const c=b[I(0xfb)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[I(0xf5)]('\x20\x20'+h+'\x20'+i+I(0x101));const j=await Actions[I(0x112)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':I(0x11d),'name':I(0x105),'message':I(0x10e),'choices':['ASSOCIATION',I(0xf4),I(0x11b),I(0x107),I(0x118)]},l=await Actions[I(0xf2)](I(0x102))||'1',m=await Actions[I(0xf2)]('Contact\x20First\x20Name\x20[Contact]:\x20')||I(0x11e),n=await Actions[I(0xf2)](I(0xfe))||I(0xf3),{contactType:o}=await Actions[I(0x109)](k),p=await Actions[I(0xf2)](I(0xfa))||'123\x20Glorious\x20Way',q=await Actions[I(0xf2)](I(0x121)),r=await Actions[I(0xf2)](I(0xf6))||I(0x113),s=await Actions['ask'](I(0x11c))||'96816',t=await Actions[I(0xf2)](I(0x11f))||'HI',u=await Actions[I(0xf2)]('Country\x20Code\x20[US]:\x20')||'US',v=getCountryCodeEnum(u);if(!v)throw Log[I(0x104)](I(0x120));const w=await Actions[I(0xf2)](I(0x10c))||I(0xf9),x=await Actions['ask'](I(0x114))||'+1.5555555556',y=await Actions[I(0xf2)](I(0x125))||I(0xf8),z=await Actions[I(0x112)]('Auto\x20Renew:\x20'),A={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':v,'AddressLine1':p,'AddressLine2':q,'City':r,'ZipCode':s,'PhoneNumber':w,'Fax':x,'State':t,'Email':y};if(o!==I(0x11b)){const D=await Actions[I(0xf2)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||I(0xfd);A['OrganizationName']=D;}const B=h||0x0*parseInt(l);Log['notice'](I(0x10a)),Log[I(0xf5)](B+'\x20'+i+I(0x108)+l+I(0x110)+h+'\x20'+i+'\x20/\x20Year)');const C=await Actions[I(0x112)]('Are\x20you\x20sure?');C&&await d[I(0x111)](A,c,parseInt(l),z);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(E){E&&Log[I(0x104)](E),process[I(0x106)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17k=a17d;
|
|
1
|
+
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x1da))/0x1*(parseInt(h(0x1cc))/0x2)+-parseInt(h(0x1d3))/0x3*(-parseInt(h(0x1c5))/0x4)+-parseInt(h(0x1c9))/0x5+parseInt(h(0x1d8))/0x6+-parseInt(h(0x1c1))/0x7+-parseInt(h(0x1d7))/0x8*(parseInt(h(0x1d4))/0x9)+-parseInt(h(0x1c6))/0xa*(parseInt(h(0x1cb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xa3114));function a17c(){const n=['ask','Please\x20choose\x20a\x20key\x20to\x20delete:','forEach','(((.+)+)+)+$','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','maka\x20aws:remove-key-pair','apply','8150660NBTtiq','create','exit','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','60qxvJqV','27490ANnRxd','success','ec2describeKeys','2000550kTibgs','Deleted\x20','341ZYYKQd','122CojmPh','search','constructor','name','confirm','toString','Deleting\x20a\x20','255513iZTmZX','256842XfqntP','deleteKeyPair','error','296iGAnMx','7529070OFgKZb','Not\x20deleting\x20keypair','13789PpPFMB'];a17c=function(){return n;};return a17c();}const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x1d1)]()['search']('(((.+)+)+)+$')['toString']()[j(0x1ce)](a17a)[j(0x1cd)](j(0x1bd));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x1c2)]({'name':'remove-key-pair','aliases':['rkp'],'usage':a17k(0x1bf),'validOpts':[],'shortDesc':a17k(0x1be),'description':'\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','examples':['maka\x20aws:remove-key-pair','maka\x20aws:rkp']},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x1c8)]();let c=undefined;const d=await Actions[l(0x1ba)](l(0x1bb));b?.[l(0x1bc)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x1cf)]);});if(!c)throw Log[l(0x1d6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x1d0)](l(0x1d2)+c+l(0x1c4),![]);f?(await a[l(0x1d5)](c),Log[l(0x1c7)](l(0x1ca)+c)):Log[l(0x1d6)](l(0x1d9)),process[l(0x1c3)](0x0);}catch(g){g&&Log[l(0x1d6)](g),process[l(0x1c3)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18o=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=parseInt(m(0x9f))/0x1*(-parseInt(m(0xc0))/0x2)+parseInt(m(0xc3))/0x3*(parseInt(m(0xba))/0x4)+-parseInt(m(0xbf))/0x5+-parseInt(m(0xaf))/0x6*(parseInt(m(0xc9))/0x7)+-parseInt(m(0xa8))/0x8*(parseInt(m(0xb9))/0x9)+-parseInt(m(0xad))/0xa+parseInt(m(0xa6))/0xb*(parseInt(m(0xb2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x8ea83));function a18c(){const q=['template','30vzGtrU','host','search','9313116QzdTDI','exit','readFileSync','constructor','maka\x20aws\x20set-host','getAppConfigPath','success','113823gTaNLe','4pQAmbQ','maka\x20aws:set-host\x20--env\x20dev','toString','\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','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','886805VFtruQ','1980462aijBlw','cat\x20','private','962853RMHxZW','create','env','utf8','chooseInstance','appName','682836MyUWwi','public','1EKMGjQ','privateIp','fsi','ssh.json','\x20IP\x20to\x20','error','set-host','33rxIfrr','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','96XSwwvw','getEnvFromShorthand','inherit','isFile','getMakaProjectConfig','2578110HUfjFT'];a18c=function(){return q;};return a18c();}const a18b=(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;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0xbc)]()[n(0xb1)]('(((.+)+)+)+$')['toString']()[n(0xb5)](a18a)[n(0xb1)]('(((.+)+)+)+$');});a18a();function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x9e;let f=c[d];return f;},a18d(a,b);}import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g 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[a18o(0xc4)]({'name':a18o(0xa5),'aliases':['sth'],'usage':a18o(0xb6),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a18o(0xbd),'examples':[a18o(0xbb),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0xa1)][p(0xa9)](b[p(0xc5)]),f=this[p(0xa1)][p(0xb7)](d),g=this[p(0xa1)][p(0xac)](),h=await c[p(0xc7)](),i=a18e['join'](f,p(0xa2));!this[p(0xa1)][p(0xab)](i)&&await this[p(0xa1)][p(0xae)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':g[p(0xc8)]},'config':g});const j=JSON['parse'](a18f[p(0xb4)](i,p(0xc6))),k=await Actions['ask'](p(0xa7))||p(0x9e);if(k){if(k===p(0x9e)||k===p(0xc2)){if(k===p(0x9e))j[p(0xb0)]=h?.['publicIp'];else k==='private'&&(j[p(0xb0)]=h?.[p(0xa0)]);}else throw p(0xbe);}else j[p(0xb0)]=h?.['privateIp'];a18f['writeFileSync'](a18e['join'](f,p(0xa2)),JSON['stringify'](j,null,0x2)),execSync(p(0xc1)+a18e['join'](f,p(0xa2)),{'stdio':p(0xaa)}),Log[p(0xb8)]('\x0aSaved\x20host\x20'+k+p(0xa3)+f+a18e['sep']+'ssh.json');}catch(l){l&&Log[p(0xa4)](l),process[p(0xb3)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d
|
|
1
|
+
const a19i=a19d;function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x142;let f=c[d];return f;},a19d(a,b);}(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x14b))/0x1*(-parseInt(f(0x14f))/0x2)+-parseInt(f(0x14d))/0x3*(parseInt(f(0x160))/0x4)+parseInt(f(0x144))/0x5*(parseInt(f(0x162))/0x6)+parseInt(f(0x158))/0x7*(parseInt(f(0x161))/0x8)+-parseInt(f(0x155))/0x9+parseInt(f(0x157))/0xa*(-parseInt(f(0x146))/0xb)+-parseInt(f(0x15a))/0xc*(-parseInt(f(0x150))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xe59ce));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x151)]()[h(0x14c)](h(0x143))[h(0x151)]()[h(0x147)](a19a)[h(0x14c)](h(0x143));});a19a();function a19c(){const k=['instanceId','name','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','4Gyexcd','24EgdMwW','3462JCVpYC','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','maka\x20aws:terminate-instance','status','(((.+)+)+)+$','730MNwHHE','error','11AILrLK','constructor','maka\x20aws:ti','chooseInstance','ec2terminateInstance','14ajAwHj','search','5226573QfaJSE','create','125032kHQnmn','260uKKBYN','toString','apply','\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','running','12789693UAoeIp','terminate-instance','4058140wtNiIB','1529122XngOuc','\x20Ready?','2787132VmMoFB','Terminate\x20an\x20EC2\x20instance'];a19c=function(){return k;};return a19c();}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(0x14e)]({'name':a19i(0x156),'aliases':['ti'],'usage':a19i(0x164),'validOpts':[],'shortDesc':a19i(0x15b),'description':a19i(0x153),'examples':['maka\x20aws:terminate-instance',a19i(0x148)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x149)]();if(b?.[j(0x15c)]&&b?.[j(0x142)]===j(0x154)){const c=await Actions['confirm'](j(0x15f)+b['name']+j(0x159));c?a[j(0x14a)]({'instanceId':b[j(0x15c)]}):Log['error'](j(0x163)+b[j(0x15d)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x145)](j(0x15e));}catch(d){d&&Log[j(0x145)](d),process['exit'](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x120))/0x1+-parseInt(f(0x114))/0x2+parseInt(f(0x11a))/0x3*(-parseInt(f(0x115))/0x4)+parseInt(f(0x11e))/0x5*(-parseInt(f(0x11b))/0x6)+parseInt(f(0x11f))/0x7*(parseInt(f(0x112))/0x8)+parseInt(f(0x116))/0x9*(parseInt(f(0x113))/0xa)+-parseInt(f(0x11c))/0xb*(-parseInt(f(0x11d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xe5d7c));function a20c(){var h=['3673080hYhSMl','4120888rWveYu','5743557NXebYy','toString','search','(((.+)+)+)+$','3zKZhFS','174ZnncDu','132ccZRGT','1982676DOUtlV','149605XulOXh','525uuJfBf','863533PWEaZt','constructor','127096zUSwBn','10rTyMVh'];a20c=function(){return h;};return a20c();}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['toString']()[g(0x118)]('(((.+)+)+)+$')[g(0x117)]()[g(0x121)](a20a)[g(0x118)](g(0x119));});a20a();import'./build.js';function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x112;var f=c[d];return f;},a20d(a,b);}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21q=a21d;(function(a,b){const o=a21d,c=a();while(!![]){try{const d=parseInt(o(0x1e4))/0x1+-parseInt(o(0x201))/0x2+-parseInt(o(0x200))/0x3*(-parseInt(o(0x1e3))/0x4)+-parseInt(o(0x1f2))/0x5*(-parseInt(o(0x1e8))/0x6)+-parseInt(o(0x1f9))/0x7*(-parseInt(o(0x1d8))/0x8)+-parseInt(o(0x1f6))/0x9+-parseInt(o(0x1f5))/0xa*(parseInt(o(0x1fb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x90dd3));const a21b=(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;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x1db)]()[p(0x1d7)](p(0x1f0))[p(0x1db)]()[p(0x1dd)](a21a)[p(0x1d7)](p(0x1f0));});a21a();import a21e from'path';import a21f from'fs';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a21d(a,b);}function a21c(){const t=['confirm','2778974eiRnMU',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','update','splice','maka\x20install\x20--force','555444BWuCmC','1863428DkVuXy','isMeteorInstalled','force','search','1003984bfrUYD','Failed\x20to\x20check\x20or\x20update\x20Meteor\x20version:\x20','checkMeteorPackage','toString','maka\x20build','constructor','existsSync','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','This\x20project\x27s\x20meteor\x20version\x20(','--release','4sGjgim','785059GlpMuW',').\x20Update?','slice','build','102mMXiHz','\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','getProjectMeteorVersion','pathFromProject','app.tar.gz','fsi','Aborted.','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','(((.+)+)+)+$','autoupdate','196135SQEeCz','--force','Meteor\x20is\x20installed.','10OZCILS','6640569KdSSpd','error','invokeMeteorCommand','49EmUudB'];a21c=function(){return t;};return a21c();}import a21g from'semver';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a21q(0x1e7),'usage':a21q(0x1dc),'validOpts':[a21q(0x1d6)],'aliases':['b'],'shortDesc':a21q(0x1ef),'mustBeInMakaProject':!![],'description':a21q(0x1e9),'examples':['maka\x20build']},async function(a,b){const r=a21q;try{this['fsi'][r(0x1d5)]()?Log['notice'](r(0x1f4)):(Log['warn'](r(0x1e0)),execSync(r(0x1ff),{'stdio':'inherit'}));await this['fsi'][r(0x1da)](r(0x1f1),{'shouldInstall':!![]});const c=b[r(0x1d6)];if(!c)try{const g=this['fsi']['getGlobalMeteorVersion'](),h=this[r(0x1ed)][r(0x1ea)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x1fa)](r(0x1e1)+h+r(0x1fc)+g+r(0x1e5));j&&this['fsi']['invokeMeteorCommand'](r(0x1fd),[r(0x1e2),g]);}}catch(k){Log[r(0x1f7)](r(0x1d9)+k);}const d=[this[r(0x1ed)][r(0x1eb)]({'pathParts':['build']})]['concat'](process['argv'][r(0x1e6)](0x3)),f=a21e['join'](this['fsi']['pathFromProject']({}),'build',r(0x1ec));if(a21f[r(0x1de)](f)){const l=c??await Actions[r(0x1fa)](r(0x1df));if(!l)throw Log['error'](r(0x1ee));}d['forEach']((m,n)=>{const s=r;m===s(0x1f3)&&d[s(0x1fe)](n,0x2);}),this[r(0x1ed)][r(0x1f8)](r(0x1e7),d);}catch(m){console[r(0x1f7)](m),process['exit'](0x0);}});export default BuildCommand;
|