@maka/maka-cli 5.1.18 → 5.1.19
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/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/testCmd/_index.js +1 -1
- package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/uninstall.js +1 -1
- package/bundle/obf/src/commands/version/_index.js +1 -1
- package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/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/cfg/cfg.class.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/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.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.1.
|
|
3
|
+
"version": "5.1.19",
|
|
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(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x21f))/0x1+parseInt(n(0x218))/0x2+-parseInt(n(0x1fc))/0x3+-parseInt(n(0x21e))/0x4+parseInt(n(0x1ea))/0x5+-parseInt(n(0x222))/0x6+parseInt(n(0x219))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xf0998));const a0b=(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;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0x1db)]()[o(0x1ec)](o(0x1e8))[o(0x1db)]()[o(0x210)](a0a)[o(0x1ec)]('(((.+)+)+)+$');});a0a();import a0e from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a0d(a,b);}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='';function a0c(){const B=['maxOptsLength','validateMakaProject','_commands','usage','3904125mRaGuf','Please\x20run\x20\x22maka\x20login\x22','bright','Name','Command\x20requires\x20a\x20handler\x20function','join','Command\x20requires\x20a\x20name','Please\x20run\x20\x22maka\x20install\x20meteor\x22','projectConfig','assign','function','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','validateUserIsLoggedIn','find','options','light','number','addCommand','Too\x20few\x20options','Too\x20few\x20arguments','constructor','keys','getMakaProjectConfig','cfg','experimental','tableList','aliases','chdir','1168836rgcTtR','10035620OSOdqQ','(experimental)\x20','sort','invoke','murder','61604luAehf','291907QMDQvO','Command.create\x20requires\x20some\x20options!','error','9690336kLuJZx','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','forEach','Description','help','_handler','match','maxArgLength','minArgLength','split','mustBeLoggedIn','Too\x20many\x20options','bind','push','toString','DARK','Command\x20','Command.create\x20requires\x20a\x20handler\x20function!','\x20not\x20found','generate','run','pallet','There\x20is\x20no\x20Meteor\x20application\x20here','cwd','minOptsLength','length','addCommand\x20requires\x20a\x20Command\x20instance','(((.+)+)+)+$','header','8036715zFaYIX','slice','search','create','exit','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','setColorMode','shortDesc','Command\x20format\x20is\x20incorrect','call','processAndRunCommand','Command\x20not\x20found','notice','name'];a0c=function(){return B;};return a0c();}async function inside(a='.',b){const p=a0d,c=process[p(0x1e4)]();try{return process[p(0x217)](a),await b();}finally{process[p(0x217)](c);}}export class Command extends Tool{[a0q(0x20a)];[a0q(0x204)];[a0q(0x1fa)];[a0q(0x227)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x223));if(!a[r(0x1f7)])throw new Error(r(0x202));if(typeof b!=='function')throw new Error(r(0x200));this[r(0x20a)]=Object[r(0x205)]({},a),this[r(0x1f7)]=this[r(0x20a)][r(0x1f7)],this[r(0x1fa)]=[],this[r(0x227)]=b[r(0x1d9)](this);}static[a0q(0x1ed)](a,b,c){const s=a0q;if(!a)throw new Error(s(0x220));if(typeof b!==s(0x206))throw new Error(s(0x1de));const d=new Command(a,b);return c=c||a0f,Object[s(0x205)](d,{'parent':c?.[s(0x20a)]?.['name']}),c['addCommand'](d),d;}[a0q(0x20d)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1e7));this[t(0x1fa)][t(0x1da)](a);}async[a0q(0x1e1)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x213)]['getGlobalConfig'](),d=c[u(0x1e2)]===u(0x20b)?ColorMode['LIGHT']:ColorMode[u(0x1dc)];Log[u(0x1f0)](d);}catch(f){Log[u(0x221)](f),process[u(0x1ee)](0x0);}return await inside(b[u(0x1e4)],async()=>{const v=u;return await this[v(0x21c)](a,b);});}catch(g){process[u(0x1ee)](0x1);}}async[a0q(0x21c)](a,b){const w=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this['options'];try{if(this['options'][w(0x1f7)]!==w(0x1e0)){if(!isRoot){const g=(a[0x0]===_prevCmd||a[w(0x1e6)]===0x0)&&this['_commands'][w(0x1e6)]>=0x0,h=b[w(0x226)]||b['h'];if(g&&h){if(this[w(0x1fa)][w(0x1e6)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options']['mustBeInMakaProject']){const i=this[w(0x1f9)]();if(!i)throw new MustBeInProjectError();this[w(0x204)]=this[w(0x213)][w(0x212)]();}if(this[w(0x20a)][w(0x1d7)]){const j=await this[w(0x208)]();if(!j)throw new MustBeLoggedIn();}if(this[w(0x20a)]['mustHaveMeteorInstalled']){const k=this['validateMeteorInstall']();if(!k)throw new NoMeteorFoundError();}if(typeof this[w(0x20a)][w(0x1d5)]==='number'){if(a[w(0x1e6)]<this[w(0x20a)]['minArgLength']){Log[w(0x221)](w(0x20f));throw new UsageError();}}if(typeof this[w(0x20a)]['maxArgLength']===w(0x20c)){if(a[w(0x1e6)]>=this[w(0x20a)][w(0x229)]){Log[w(0x221)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[w(0x20a)][w(0x1e5)]==='number'){if(Object['keys'](b)[w(0x1e6)]<this['options'][w(0x1e5)]){Log[w(0x221)](w(0x20e));throw new UsageError();}}if(typeof this['options'][w(0x1f8)]===w(0x20c)){if(Object[w(0x211)](b)[w(0x1e6)]>=this[w(0x20a)][w(0x1f8)]){Log[w(0x221)](w(0x1d8));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[w(0x20a)]),_prevCmd=a[0x0];}return await this[w(0x227)][w(0x1f3)](this,a,b);}catch(l){Log[w(0x1fb)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log[w(0x1f6)]('Sub-Commands:'),this[w(0x215)](this['_commands']),Log[w(0x1e9)](w(0x1ef));else{if(l instanceof MustBeInProjectError)Log[w(0x221)]('You\x20must\x20be\x20in\x20a\x20Maka\x20project\x20to\x20run\x20this\x20command');else{if(l instanceof NoMeteorFoundError)Log[w(0x221)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[w(0x1f6)](w(0x203));else{if(l instanceof NoMeteorAppFoundError)Log[w(0x221)](w(0x1e3));else l instanceof MustBeLoggedIn&&(Log['error'](w(0x207)),Log[w(0x1f6)](w(0x1fd)));}}}process[w(0x1ee)](0x1);}}[a0q(0x215)](a){const x=a0q,b=new a0e({});b[x(0x1da)]([x(0x1ff),'Alias',x(0x225)]),a[x(0x21b)]((c,d)=>{const y=x;return c[y(0x1f7)]['localeCompare'](d['name']);})[x(0x224)](c=>{const z=x;if(c[z(0x1f7)]!==z(0x21d)&&c[z(0x1f7)]!=='play'){const d=c[z(0x214)](),e=d?z(0x21a)+c[z(0x1f1)]():c['shortDesc']();b['push']([c['name'],c[z(0x216)](),e]);}}),Log[x(0x1fe)](b[x(0x1db)]());}async[a0q(0x1f4)](a,b=[],c={}){const A=a0q;try{const d=a?.[A(0x1d6)](':');if(!d||d['length']===0x0)throw A(0x1f2);if(d[0x0]===A(0x1e0)||d[0x0]==='g'&&d['length']>0x1){const h=this[A(0x1fa)][A(0x209)](j=>j[A(0x228)](A(0x1e0)));if(!h)throw A(0x1f5);const i=d[A(0x1eb)](0x1)[A(0x201)](':');return b['unshift'](i),await h[A(0x1e1)](b,c);}let f=this[A(0x1fa)],g;for(const j of d){g=f[A(0x209)](k=>k[A(0x228)](j));if(!g)try{await this['mpi']['maybeProxyCommandToMeteor']();}catch(k){throw A(0x1dd)+j+A(0x1df);}g&&(f=g['_commands']);}if(g){const l=await g['run'](b,c);return l;}else throw A(0x1f5);}catch(m){Log[A(0x221)](m),process[A(0x1ee)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x111;var f=c[d];return f;},a1d(a,b);}(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x11a))/0x1*(-parseInt(f(0x11e))/0x2)+-parseInt(f(0x11b))/0x3+parseInt(f(0x116))/0x4*(-parseInt(f(0x11f))/0x5)+-parseInt(f(0x11d))/0x6+-parseInt(f(0x11c))/0x7*(-parseInt(f(0x113))/0x8)+-parseInt(f(0x112))/0x9*(parseInt(f(0x117))/0xa)+parseInt(f(0x114))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x57e02));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0x118)]()[g(0x111)](g(0x119))[g(0x118)]()[g(0x115)](a1a)[g(0x111)](g(0x119));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./version/_index.js';import'./testCmd/_index.js';import'./create.js';import'./debug.js';import'./generate.js';function a1c(){var h=['5049408NYrnfG','17598504hNibwD','constructor','332rjkSnd','87590qyCwtA','toString','(((.+)+)+)+$','32215NBoMtz','1708698fclryS','7YrRgtQ','3632790WgRRqB','2eHRKqq','43345CMwYCe','search','9qCiNKl'];a1c=function(){return h;};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'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./profile.js';import'./uninstall.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x123))/0x1*(-parseInt(h(0x125))/0x2)+parseInt(h(0x126))/0x3*(parseInt(h(0x12f))/0x4)+parseInt(h(0x131))/0x5+parseInt(h(0x136))/0x6*(parseInt(h(0x149))/0x7)+-parseInt(h(0x124))/0x8+-parseInt(h(0x14b))/0x9*(parseInt(h(0x130))/0xa)+-parseInt(h(0x144))/0xb*(parseInt(h(0x12a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x44909));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x138)]()[j(0x13d)]('(((.+)+)+)+$')[j(0x138)]()[j(0x127)](a2a)[j(0x13d)](j(0x13c));});a2a();function a2c(){const o=['stdin','parse','Using\x20OpenAI\x20Key\x20','24BjNyRG','10hoGltV','897655RQhBbA','notice','cacert','You:\x20','isFile','18822SputxY','data','toString','cert','error','getGlobalConfig','(((.+)+)+)+$','search','create','createInterface','openapikey','Using\x20CA\x20Cert\x20','apply','stdout','22dWzJFO','message','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','ChatGPT\x20style\x20AI\x20interface','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','427koyqXP','exit','1490634crGltQ','GPT:\x20','choices','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','question','openai','25XvzasR','1901328QbIQCg','31054NjZaLe','24126XcDHem','constructor','trim','fsi','739092HXJyuP','bright'];a2c=function(){return o;};return a2c();}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-0x122;let f=c[d];return f;},a2d(a,b);}import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x13f)]({'input':process[k(0x12c)],'output':process[k(0x143)]});c[k(0x14f)](k(0x134),async d=>{const l=k;if(d['toLowerCase']()===l(0x14a)){c['close']();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x12d)](e[l(0x137)]);if(f[l(0x13a)])throw new Error(f[l(0x13a)][l(0x145)]);Log[l(0x12b)](l(0x14c)+f?.[l(0x14d)][0x0]?.['text'][l(0x128)]());}catch(g){Log[l(0x13a)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x13e)]({'name':'ai','description':a2m(0x147),'validOpts':['cacert',a2m(0x140)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x129)][n(0x135)](b['cacert'])?(c=b[n(0x133)],Log['notice'](n(0x141)+c)):Log[n(0x13a)](n(0x146)+c));const d=await this['cfg'][n(0x13b)]();if(d['cert']){if(this[n(0x129)][n(0x135)](d[n(0x139)]))c=d['cert'];else throw Log[n(0x13a)](n(0x148)+c);}let f='';if(b[n(0x140)])f=b[n(0x140)],Log[n(0x132)](n(0x12e)+f);else{if(d['openai'])f=d[n(0x122)];else throw Log['error'](n(0x14e));}Log[n(0x12b)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x13a)](g),process[n(0x14a)](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(0x138))/0x1+parseInt(f(0x133))/0x2+-parseInt(f(0x139))/0x3+parseInt(f(0x137))/0x4+parseInt(f(0x13b))/0x5+-parseInt(f(0x134))/0x6*(parseInt(f(0x13a))/0x7)+parseInt(f(0x135))/0x8*(parseInt(f(0x13c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xb0fd5));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x13f)]()[h(0x13d)](h(0x136))['toString']()['constructor'](a3a)['search'](h(0x136));});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 a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x133;var f=c[d];return f;},a3d(a,b);}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';function a3c(){var i=['1190082ePTzEu','34914uxGMkd','5890448mtxFzl','(((.+)+)+)+$','5073036UHfSpw','1104876SBjTeJ','3545349TTAzuJ','210pVzSTn','2932860iMkcTp','9zkUSlj','search','apply','toString'];a3c=function(){return i;};return a3c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1fa))/0x1+parseInt(f(0x1fb))/0x2+parseInt(f(0x1ef))/0x3+-parseInt(f(0x1f8))/0x4+-parseInt(f(0x1f7))/0x5+-parseInt(f(0x1f6))/0x6+-parseInt(f(0x1fc))/0x7*(-parseInt(f(0x1f9))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x2aaf8));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1f0)]()[h(0x1f3)](h(0x1fd))[h(0x1f0)]()['constructor'](a4a)[h(0x1f3)](h(0x1fd));});a4a();import{Command}from'../../command.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a4d(a,b);}import{UsageError}from'../../error.js';function a4c(){const j=['\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','search','aws','apply','1679880BZdXSJ','617625AQPCeU','139692mHmNgk','38312gBaWWn','33099tMJOfn','168908NEOEXt','581KklndX','(((.+)+)+)+$','create','493278pPKnBK','toString'];a4c=function(){return j;};return a4c();}const AWSCommand=Command[a4i(0x1fe)]({'name':a4i(0x1f4),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0x1f2),'description':a4i(0x1f1)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5i=a5d;
|
|
1
|
+
const a5i=a5d;(function(a,b){const f=a5d,c=a();while(!![]){try{const d=-parseInt(f(0xf1))/0x1*(parseInt(f(0x10c))/0x2)+parseInt(f(0xf0))/0x3+parseInt(f(0x109))/0x4+-parseInt(f(0x10b))/0x5*(-parseInt(f(0x105))/0x6)+parseInt(f(0xf8))/0x7*(parseInt(f(0xf2))/0x8)+-parseInt(f(0x104))/0x9*(-parseInt(f(0x103))/0xa)+-parseInt(f(0xf7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xd4035));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a5d;if(c){const e=c[g(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a['toString']()[h(0x101)](h(0xfd))[h(0xff)]()[h(0x10f)](a5a)[h(0x101)](h(0xfd));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xef;let f=c[d];return f;},a5d(a,b);}function a5c(){const k=['Create\x20an\x20Elastic\x20Container\x20Repository','16910201UurblN','3899dnjSNU','repository','maka\x20aws:create-ecr\x20--name=my-new-repo','region','$metadata','(((.+)+)+)+$','error','toString','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','search','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','4984700fQsTfI','9YwKGgG','902322SmSbYp','exit','maka\x20aws:cecr\x20--name=my-new-repo','Repository\x20created\x20successfully.','6134880zQSVKU','aws','15YuIRxS','1147004mpmPgO','success','notice','constructor','name','cecr','862587laOvll','1rYTQJT','2992uEulPV','Repository\x20URI:\x20','apply','create-ecr'];a5c=function(){return k;};return a5c();}Command['create']({'name':a5i(0xf5),'aliases':[a5i(0xef)],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5i(0x110)],'validOpts':[a5i(0xfb)],'shortDesc':a5i(0xf6),'examples':[a5i(0xfa),a5i(0x107),a5i(0x102)]},async function(a,b){const j=a5i;try{const c=await this[j(0x10a)]['ecrCreateRepository'](b);c&&c[j(0xfc)]['httpStatusCode']===0xc8&&c[j(0xf9)]?(Log[j(0x10d)](j(0x108)),Log[j(0x10e)](j(0xf3)+c['repository']['repositoryUri'])):Log[j(0xfe)](j(0x100)),process['exit'](0x0);}catch(d){Log[j(0xfe)](d),process[j(0x106)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6k=a6d;(function(a,b){const h=a6d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a6k=a6d;(function(a,b){const h=a6d,c=a();while(!![]){try{const d=-parseInt(h(0x1ee))/0x1+-parseInt(h(0x1f3))/0x2*(parseInt(h(0x204))/0x3)+parseInt(h(0x1fd))/0x4*(-parseInt(h(0x1eb))/0x5)+-parseInt(h(0x202))/0x6*(parseInt(h(0x1ec))/0x7)+parseInt(h(0x1f7))/0x8*(parseInt(h(0x1ed))/0x9)+parseInt(h(0x1fc))/0xa*(parseInt(h(0x208))/0xb)+parseInt(h(0x1f0))/0xc*(parseInt(h(0x1ef))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xcfae6));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a6d;if(c){const e=c[i(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0x200)]()[j(0x1f2)](j(0x201))[j(0x200)]()['constructor'](a6a)[j(0x1f2)]('(((.+)+)+)+$');});function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1e9;let f=c[d];return f;},a6d(a,b);}a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';function a6c(){const m=['create-hosted-zone','publicIp','apply','248uOMwWi','error','domain','Instance\x20not\x20found','maka\x20aws:create-hosted-zone\x20--domain=example.com','3143450sprsFe','15116iqFAUf','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','chooseInstance','toString','(((.+)+)+)+$','7558590BFprpP','maka\x20aws:create-hosted-zone','3978141aFzSTB','maka\x20aws:chz\x20--domain=example.com','route53CreateHostedZone','linkEC2ToRoute53','55muZddo','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','Set\x20hosted\x20zone\x20to\x20an\x20instance?','aws','1065yegtAc','7VUNGEh','49968krYmBt','98235OsUvkV','247zCQgQx','1639452KfFLvp','chz','search','2DpNdDO'];a6c=function(){return m;};return a6c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a6k(0x1f4),'aliases':[a6k(0x1f1)],'usage':a6k(0x203),'requiredOpts':[a6k(0x1f9)],'validOpts':[],'shortDesc':a6k(0x209),'examples':[a6k(0x1fb),a6k(0x205)]},async function(a,b){const l=a6k;try{const c=b[l(0x1f9)];this['aws'][l(0x206)](c);const d=await Actions['confirm'](l(0x1e9));if(d){const f=await this[l(0x1ea)][l(0x1ff)]();if(f?.['id']){if(!f['publicIp'])throw Log[l(0x1f8)](l(0x1fe));this[l(0x1ea)][l(0x207)](f['id'],f[l(0x1f5)],c);}else throw l(0x1fa);}}catch(g){g&&Log[l(0x1f8)](g),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7a1=a7d;(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=-parseInt(Y(0x1d1))/0x1+-parseInt(Y(0x1d6))/0x2*(parseInt(Y(0x1da))/0x3)+parseInt(Y(0x1e1))/0x4+parseInt(Y(0x1d5))/0x5+-parseInt(Y(0x1b9))/0x6*(-parseInt(Y(0x1de))/0x7)+-parseInt(Y(0x1d2))/0x8*(-parseInt(Y(0x1a6))/0x9)+-parseInt(Y(0x1a5))/0xa*(parseInt(Y(0x1c7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x8c464));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x19c;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const Z=a7d;if(c){const e=c[Z(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const a0=a7d;return a7a[a0(0x1c1)]()[a0(0x1c5)]('(((.+)+)+)+$')['toString']()[a0(0x1ad)](a7a)[a0(0x1c5)](a0(0x1e0));});a7a();function a7c(){const a3=['create','readFileSync','name','\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','Please\x20choose\x20a\x20key\x20to\x20use:\x20','190CWevNR','9modReO','confirm','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','createFile','user-data','Name','chooseVPC','constructor','Setting\x20the\x20key-pair\x20to:\x20','User\x20Data:','aws','join','chooseSecurityGroup','getSubnetCidr','string','getEnvFromShorthand','Security\x20Group:\x20','number','env','156yBuFgx','error','ec2create','maka\x20aws:create-instance\x20--env\x20dev','Remove\x20the\x20security\x20group\x20','Web\x20App','ec2describeKeys','Creating\x20user\x20data\x20file\x20in\x20','toString','apply','maka\x20aws:create-instance','1:1','search','success','221419ObWPme','deleteSecurityGroup','Subnet:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','fsi','Key-Pair:\x20','ask','split','listAvailableAMIs','create-instance','815751gfVCMz','2659928Cmfunj','22,80,443','notice','4652080UkafdC','2EAgVPB','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','unlinkSync','2342643XaExVD','maka-cli','Instace\x20Type:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','238623EAkHgQ','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','(((.+)+)+)+$','1617704bJDwAr','created-by','listAvailableSubnets','isFile','Instance\x20Count:\x20','ImageID:'];a7c=function(){return a3;};return a7c();}import a7e from'./aws.command.js';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a7a1(0x1a0)]({'name':a7a1(0x1d0),'aliases':['ci'],'usage':a7a1(0x1c3),'examples':[a7a1(0x1bc),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7a1(0x1b8)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7a1(0x1a3)},async function(a,b){const a2=a7a1;try{const {projectConfig:c,fsi:d,cfg:f}=this,{appName:g}=c,h=f[a2(0x1b5)](b[a2(0x1b8)]),i=f['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[a2(0x1cd)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[a2(0x1a7)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await this[a2(0x1b0)]['createKeyPair']({'env':h});r=y,s=z,Log['success'](a2(0x1ae)+r);}else try{Log[a2(0x1d4)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await this[a2(0x1b0)][a2(0x1bf)]({'suggestion':A}),C=await Actions[a2(0x1cd)](a2(0x1a4))||'-1';if(parseInt(C)<0x0){Log[a2(0x1ba)]('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[a2(0x1d4)]('No\x20instance\x20has\x20been\x20created.');return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D[a2(0x1a2)],Log[a2(0x1c6)]('Setting\x20the\x20key-pair\x20to:\x20'+r);break;}}}catch(E){Log[a2(0x1ba)](E);}l=await this['aws'][a2(0x1ac)]();const t=await Actions['confirm'](a2(0x1d7),!![]);let u;if(t){const F=l===''?await this['aws'][a2(0x1ac)]():l;u=await Actions['ask']('Security\x20Group\x20Name:\x20['+k+']')||k;const G=await Actions[a2(0x1cd)](a2(0x1d8))||a2(0x1d3),H=G[a2(0x1ce)](',');await this[a2(0x1b0)]['ec2createSG']({'description':a2(0x1be),'name':u,'vpcId':F,'sgPorts':H});}u=k,m=await this[a2(0x1b0)][a2(0x1b2)](u),n=await this[a2(0x1b0)][a2(0x1cf)](),p=await this[a2(0x1b0)][a2(0x19c)]();const v=0x1,w=0x1;try{const I=await Actions[a2(0x1cd)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||a2(0x1c4),J=I[a2(0x1ce)](':')[0x0],K=I[a2(0x1ce)](':')[0x1];typeof parseInt(J)===a2(0x1b7)&&typeof parseInt(K)===a2(0x1b7)&&Log[a2(0x1c6)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+J+':'+K);}catch(L){Log[a2(0x1ba)](L);}try{const M=await Actions[a2(0x1cd)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||'t3.micro';typeof M===a2(0x1b4)&&(o=M);}catch(N){Log[a2(0x1ba)](N);}let x='';try{const O=await Actions[a2(0x1a7)](a2(0x1ca),![]);O&&(x=a7f[a2(0x1b1)](i,a2(0x1aa)),Log[a2(0x1d4)](a2(0x1c0)+x),await this[a2(0x1cb)][a2(0x1a9)]({'filePath':x,'data':''}),await Actions[a2(0x1a7)](a2(0x1a8)));}catch(P){Log[a2(0x1ba)](P);}try{const Q=await this[a2(0x1b0)][a2(0x1b3)](p);Log[a2(0x1d4)](a2(0x19f)+n),Log[a2(0x1d4)](a2(0x19e)+v+':'+w),Log[a2(0x1d4)](a2(0x1dc)+o),Log[a2(0x1d4)](a2(0x1cc)+r),Log[a2(0x1d4)](a2(0x1b6)+m),Log[a2(0x1d4)](a2(0x1c9)+Q);if(x){Log[a2(0x1d4)](a2(0x1af)+x);const S=a7g[a2(0x1a1)](x)['toString']();Log[a2(0x1d4)](S);}const R=await Actions[a2(0x1a7)](a2(0x1dd));if(R){const T=await this[a2(0x1b0)][a2(0x1bb)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':a2(0x1e2),'Value':a2(0x1db)},{'Key':'environment','Value':h},{'Key':a2(0x1ab),'Value':k}],...x&&{'userData':x}});T&&(Log[a2(0x1c6)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](a2(0x1df)));}else{Log[a2(0x1d4)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const U=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);U&&(this[a2(0x1b0)]['deleteKeyPair'](r),d[a2(0x19d)](s)&&a7g[a2(0x1d9)](s));const V=await Actions[a2(0x1a7)](a2(0x1bd)+m+'\x20?',!![]);V&&this[a2(0x1b0)][a2(0x1c8)](m);}}catch(W){Log[a2(0x1ba)](W);}}catch(X){X&&Log['error'](X),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(
|
|
1
|
+
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a8d(a,b);}const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x1e4))/0x1+-parseInt(g(0x1dc))/0x2+-parseInt(g(0x1e1))/0x3*(-parseInt(g(0x1e9))/0x4)+-parseInt(g(0x1d7))/0x5*(parseInt(g(0x1d8))/0x6)+-parseInt(g(0x1df))/0x7+parseInt(g(0x1da))/0x8+parseInt(g(0x1e5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x2957f));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x1d9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x1e0)]()[i(0x1ea)]('(((.+)+)+)+$')[i(0x1e0)]()['constructor'](a8a)[i(0x1ea)]('(((.+)+)+)+$');});a8a();import a8e from'./aws.command.js';function a8c(){const l=['872367vOFaMW','maka\x20aws:create-key-pair\x20--env\x20prod','exit','247065zDKMJy','6722001gxdTuo','getEnvFromShorthand','maka\x20aws:create-key-pair','cfg','4cpxvpF','search','ckp','5765jAJRKf','1470xeOlcR','apply','2189776cvwooy','create-key-pair','595628lULJhl','env','maka\x20aws:ckp\x20--env\x20prod','2202851ILTkaa','toString'];a8c=function(){return l;};return a8c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8j(0x1db),'aliases':[a8j(0x1eb)],'usage':a8j(0x1e7),'examples':[a8j(0x1e2),a8j(0x1de)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x1dd)],'validOpts':[],'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','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 {aws:c}=this,d=this[k(0x1e8)][k(0x1e6)](b['env']);c['createKeyPair']({'env':d});}catch(f){f&&Log['error'](f),process[k(0x1e3)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
const a9p=a9d;function a9c(){const s=['create-security-group','Web\x20App','ask','6276SGLXLB','search','name','\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','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','error','chooseVPC','toString','split','csg','1962558UmEAmb','2297400DAgxPd','apply','maka\x20aws:create-secuirty-group','forEach','ec2createSG','335izpLWX','constructor','22,80,443','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','160040zIcVpi','create','5gqFgjg','maka\x20aws\x20create-security-group','7941808FXZaoW','1044GlUNxq','405226BoNwiq','List\x20is\x20not\x20all\x20numbers','1449916eqtGmN','exit'];a9c=function(){return s;};return a9c();}(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x150))/0x1*(parseInt(m(0x154))/0x2)+-parseInt(m(0x165))/0x3+-parseInt(m(0x156))/0x4+parseInt(m(0x16b))/0x5*(parseInt(m(0x15b))/0x6)+-parseInt(m(0x166))/0x7+parseInt(m(0x152))/0x8+parseInt(m(0x153))/0x9*(parseInt(m(0x14e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x890be));function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x14b;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x167)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x15c)]('(((.+)+)+)+$')[o(0x162)]()[o(0x14b)](a9a)[o(0x15c)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x14f)]({'name':a9p(0x158),'aliases':[a9p(0x164)],'usage':a9p(0x151),'validOpts':[],'shortDesc':a9p(0x15f),'mustBeInMakaProject':!![],'description':a9p(0x15e),'examples':[a9p(0x168),'maka\x20aws:csg']},async function(a,b){const q=a9p,{projectConfig:c,aws:d}=this;try{const {appName:f}=c,g=await d[q(0x161)](),h=b[q(0x15d)]?b[q(0x15d)]:''+f,i=await Actions[q(0x15a)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[q(0x15a)](q(0x14d))||q(0x14c),k=j[q(0x163)](',');k[q(0x169)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x155);}),await d[q(0x16a)]({'description':q(0x159),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x160)](l),process[q(0x157)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x12c;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x138))/0x1*(parseInt(f(0x135))/0x2)+-parseInt(f(0x133))/0x3+parseInt(f(0x13f))/0x4+-parseInt(f(0x13d))/0x5*(-parseInt(f(0x132))/0x6)+parseInt(f(0x137))/0x7*(parseInt(f(0x12e))/0x8)+parseInt(f(0x147))/0x9*(parseInt(f(0x143))/0xa)+parseInt(f(0x144))/0xb*(-parseInt(f(0x13b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xa21d4));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x148)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x139)]()[h(0x131)](h(0x142))[h(0x139)]()[h(0x12d)](a10a)['search'](h(0x142));});a10a();function a10c(){const k=['maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','508308ymbteJ','.\x20Error:\x20','25BSvIsh','exit','1287928QNIrAN','region','create','(((.+)+)+)+$','11719990nAOeAy','176iqZqWD','delete-ecr','error','9EYTPvp','apply','\x20deleted\x20successfully\x20in\x20region\x20','Repository\x20','constructor','8LbbFak','decr','\x20in\x20region\x20','search','510858Gaohnx','1067157rkusIq','Failed\x20to\x20delete\x20the\x20repository:\x20','1812550qCyvuw','name','4788434GyQyFn','1kdIaNe','toString'];a10c=function(){return k;};return a10c();}import a10e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x141)]({'name':a10i(0x145),'aliases':[a10i(0x12f)],'usage':'maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','requiredOpts':['name',a10i(0x140)],'validOpts':[],'shortDesc':'Delete\x20an\x20Elastic\x20Container\x20Repository','examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10i(0x13a)]},async function(a,b){const j=a10i,{aws:c}=this;try{await c['ecrDeleteRepository']({'repoName':b['name'],'region':b[j(0x140)]}),Log['success'](j(0x12c)+b[j(0x136)]+j(0x149)+b['region']+'.'),process[j(0x13e)](0x0);}catch(d){Log[j(0x146)](j(0x134)+b[j(0x136)]+j(0x130)+b['region']+j(0x13c)+d),process[j(0x13e)](0x1);}},a10e);
|
|
@@ -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-0x141;let f=c[d];return f;},a11d(a,b);}function a11c(){const k=['987770CuhBKw','(((.+)+)+)+$','describe-instances','create','toString','exit','3ZUwlcf','6325FIIyxy','96lnFjPG','4826436LsIoHk','1356670gMXdkr','130UTFUvp','199806qtdLZV','ec2describeInstances','maka\x20aws:describe-instances','constructor','56JvTcGM','maka\x20aws:di','395613OspeSp','18msfXCL','apply','882068wfNvQa','search'];a11c=function(){return k;};return a11c();}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x153))/0x1*(-parseInt(f(0x14b))/0x2)+parseInt(f(0x148))/0x3+parseInt(f(0x156))/0x4+parseInt(f(0x141))/0x5*(-parseInt(f(0x142))/0x6)+parseInt(f(0x157))/0x7*(parseInt(f(0x146))/0x8)+-parseInt(f(0x149))/0x9*(-parseInt(f(0x14d))/0xa)+-parseInt(f(0x154))/0xb*(parseInt(f(0x155))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xaab28));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x151)]()[h(0x14c)](h(0x14e))[h(0x151)]()[h(0x145)](a11a)[h(0x14c)](h(0x14e));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a11i(0x150)]({'name':a11i(0x14f),'aliases':['di'],'usage':a11i(0x144),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a11i(0x144),a11i(0x147)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const j=a11i;try{const {aws:a}=this;a[j(0x143)]();}catch(b){b&&Log['error'](b),process[j(0x152)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a12i=a12d;(function(a,b){var f=a12d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a12i=a12d;(function(a,b){var f=a12d,c=a();while(!![]){try{var d=-parseInt(f(0x136))/0x1+parseInt(f(0x13a))/0x2+parseInt(f(0x13c))/0x3+parseInt(f(0x143))/0x4*(-parseInt(f(0x14b))/0x5)+parseInt(f(0x134))/0x6*(parseInt(f(0x13d))/0x7)+-parseInt(f(0x13e))/0x8*(-parseInt(f(0x145))/0x9)+parseInt(f(0x13f))/0xa*(parseInt(f(0x148))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x3e13c));function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x134;var f=c[d];return f;},a12d(a,b);}var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a12d;if(c){var e=c[g(0x149)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var h=a12d;return a12a[h(0x14a)]()[h(0x147)](h(0x144))[h(0x14a)]()['constructor'](a12a)['search'](h(0x144));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a12c(){var k=['454037rZvxgC','exit','maka\x20aws:describe-key-pairs','create','501982cxVxRg','aws','742329KDvvhj','7UKxnNs','8QrTUSR','10wElYIl','ec2describeKeys','error','dkp','561076DWTIkx','(((.+)+)+)+$','1378809mPQwYW','describe-key-pairs','search','3069110RditBk','apply','toString','15oruyzD','1190802Vdpcqk','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS'];a12c=function(){return k;};return a12c();}Command[a12i(0x139)]({'name':a12i(0x146),'aliases':[a12i(0x142)],'usage':a12i(0x138),'validOpts':[],'shortDesc':a12i(0x135),'examples':['maka\x20aws:describe-key-pairs','maka\x20aws:dkp']},async function(){var j=a12i;try{this[j(0x13b)][j(0x140)]();}catch(a){a&&Log[j(0x141)](a),process[j(0x137)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13m=a13d;
|
|
1
|
+
const a13m=a13d;(function(a,b){const j=a13d,c=a();while(!![]){try{const d=-parseInt(j(0xe2))/0x1+parseInt(j(0xd6))/0x2*(-parseInt(j(0xdc))/0x3)+-parseInt(j(0xdd))/0x4*(-parseInt(j(0xd3))/0x5)+-parseInt(j(0xd7))/0x6*(parseInt(j(0xd8))/0x7)+-parseInt(j(0xca))/0x8*(parseInt(j(0xd5))/0x9)+parseInt(j(0xdf))/0xa*(-parseInt(j(0xc5))/0xb)+parseInt(j(0xc3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x9ea39));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a13d;if(c){const e=c[k(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const l=a13d;return a13a[l(0xd9)]()['search']('(((.+)+)+)+$')[l(0xd9)]()[l(0xc1)](a13a)[l(0xc7)](l(0xe3));});a13a();import a13e from'./aws.command.js';function a13c(){const q=['dsg','notice','exit','55gqOGhF','maka\x20aws:delete-sg','9081osBvpE','50gsvHhE','714cSMSdg','47292hEcoDo','toString','delete-security-group','ID:\x20','98277GmoCZD','273484hjVkZp','forEach','1130DWnjZX','error','Deleted\x20','140402tSbUxG','(((.+)+)+)+$','\x20SGID:\x20','apply','\x20SG\x20NAME:\x20','name','constructor','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','26645340GbAxOt','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','52294MkLtVh','success','search','bright','getSecurityGroups','176gaFpCp','sgId','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','create','maka\x20aws:dsg','appName'];a13c=function(){return q;};return a13c();}import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xbf;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13m(0xcd)]({'name':a13m(0xda),'aliases':[a13m(0xd0)],'usage':a13m(0xd4),'mustBeInMakaProject':!![],'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':['maka\x20aws:delete-sg',a13m(0xce)]},async function(){const n=a13m;try{const {projectConfig:a,aws:b}=this;let c='';c=a[n(0xcf)];const {sgList:d}=await b[n(0xc9)]();d[n(0xde)](function(i){const o=n;i[o(0xc0)]['includes'](c)?Log[o(0xd1)](o(0xdb)+i['id']+o(0xbf)+i[o(0xc0)]+'\x20SGID:\x20'+i[o(0xcb)]):Log[o(0xc8)](o(0xdb)+i['id']+'\x20SG\x20NAME:\x20'+i[o(0xc0)]+o(0xe4)+i['sgId']);});let f='';const g=await Actions['ask'](n(0xc2));d[n(0xde)](function(i){const p=n;i['id']===parseInt(g)&&(f=i[p(0xcb)]);});if(!f)throw Log[n(0xe0)](n(0xc4));const h=await Actions['confirm']('Deleting\x20a\x20'+f+n(0xcc),![]);h?(await b['deleteSecurityGroup'](f),Log[n(0xc6)](n(0xe1)+f)):Log[n(0xe0)]('Not\x20deleting\x20secuirty\x20group'),process[n(0xd2)](0x0);}catch(i){i&&Log[n(0xe0)](i),process[n(0xd2)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14i=a14d;function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xfe;let f=c[d];return f;},a14d(a,b);}(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x102))/0x1+parseInt(f(0x106))/0x2*(parseInt(f(0x110))/0x3)+parseInt(f(0x114))/0x4*(parseInt(f(0x111))/0x5)+-parseInt(f(0xff))/0x6*(-parseInt(f(0x116))/0x7)+-parseInt(f(0x107))/0x8*(parseInt(f(0xfe))/0x9)+-parseInt(f(0x10a))/0xa+parseInt(f(0x115))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x51841));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a['toString']()[h(0x10e)](h(0x10c))[h(0x112)]()[h(0x118)](a14a)['search']('(((.+)+)+)+$');});a14a();function a14c(){const k=['error','constructor','11808yVqWmH','9960zoqAjL','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','exit','81585XzQVzt','regions','Completed\x20listing\x20ECR\x20repositories.','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','19966pMYBRU','3872ZtMMwP','lecr','maka\x20aws:list-ecr','2090200dsQgqN','listAllEcrRepositories','(((.+)+)+)+$','success','search','apply','57EvNrlE','759095xqnPuC','toString','list-ecr','4cbqsxZ','4450336kRVPHp','1477TtQuMt'];a14c=function(){return k;};return a14c();}import a14e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14i(0x113),'aliases':[a14i(0x108)],'usage':a14i(0x105),'requiredOpts':[],'validOpts':[a14i(0x103)],'shortDesc':'List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','examples':[a14i(0x109),a14i(0x100),'maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const {aws:c}=this;await c[j(0x10b)](b[j(0x103)]),Log[j(0x10d)](j(0x104)),process[j(0x101)](0x0);}catch(d){Log[j(0x117)]('An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20'+d),process[j(0x101)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x1cc))/0x1+parseInt(f(0x1db))/0x2+-parseInt(f(0x1d3))/0x3+-parseInt(f(0x1d2))/0x4+-parseInt(f(0x1cd))/0x5+parseInt(f(0x1d6))/0x6*(-parseInt(f(0x1e1))/0x7)+parseInt(f(0x1e0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x4a308));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a['toString']()['search'](h(0x1cf))[h(0x1dd)]()['constructor'](a15a)[h(0x1d1)](h(0x1cf));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a15d(a,b);}function a15c(){const k=['search','2398996PIQYQG','1305261MVWmYx','maka\x20aws:reboot-instance','confirm','216igjjId','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','\x20Ready?','running','maka\x20aws:rbi','1119570XOcvdW','rbi','toString','Reboot\x20an\x20EC2\x20instance','error','12404088vkDXbl','68082ThjxJK','instanceId','reboot-instance','exit','create','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','\x20is\x20still\x20running.','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','45753pzeaKq','2335985ZKlIYk','chooseInstance','(((.+)+)+)+$','apply'];a15c=function(){return k;};return a15c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15i(0x1e5)]({'name':a15i(0x1e3),'aliases':[a15i(0x1dc)],'usage':a15i(0x1d4),'validOpts':[],'shortDesc':a15i(0x1de),'examples':[a15i(0x1d4),a15i(0x1da)]},async function(){const j=a15i;try{const {aws:a}=this,b=await a[j(0x1ce)]();if(b?.['status']===j(0x1d9)){const c=await Actions[j(0x1d5)](j(0x1cb)+b['name']+j(0x1d8));c&&b['instanceId']?a['ec2rebootInstance']({'instanceId':b[j(0x1e2)]}):Log[j(0x1df)](j(0x1e6)+b['name']+j(0x1ca));}else Log[j(0x1df)](j(0x1d7));}catch(d){d&&Log[j(0x1df)](d),process[j(0x1e4)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a16c(){const L=['domain','maka\x20aws:register-domain-name\x20--domain=example.com','302368DfrGAR','617866udzsNY','error','\x20is\x20available\x20for:','ask','595670vGXaZP','Country\x20Code\x20[US]:\x20','apply','Address\x20Line\x202:\x20','+1.5555555556','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Contact','\x20/\x20Year)','confirm','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','4qvMGSm','Are\x20you\x20sure?','warn','PERSON','ASSOCIATION','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','Domain\x20name\x20is\x20unavailable','COMPANY','toString','RESELLER','checkDomainAvailability','values','notice','Do\x20you\x20wish\x20to\x20register\x20','State\x20[HI]:\x20','7260920WjMlHh','includes','\x20for\x20','search','12pEfAjY','2970079YheyTa','Duration\x20in\x20years\x20[1]:\x20','maka\x20aws:rdn\x20--domain=example.com','96816','(((.+)+)+)+$','My\x20Company,\x20LLC.','123\x20Glorious\x20Way','exit','5429592USKCib','PUBLIC_BODY','317994qNapKP','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Choose\x20contact\x20type','create','Contact\x20Email\x20[mail@example.com]:\x20','select','Invalid\x202\x20character\x20country\x20code','\x20years\x20(','mail@example.com'];a16c=function(){return L;};return a16c();}const a16J=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0xd0))/0x1+-parseInt(F(0xde))/0x2*(parseInt(F(0xc4))/0x3)+parseInt(F(0xcf))/0x4+-parseInt(F(0xd4))/0x5*(-parseInt(F(0xb9))/0x6)+-parseInt(F(0xba))/0x7+parseInt(F(0xb5))/0x8+-parseInt(F(0xc2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x926d0));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0xe6)]()['search'](H(0xbe))[H(0xe6)]()['constructor'](a16a)[H(0xb8)]('(((.+)+)+)+$');});a16a();function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xb4;let f=c[d];return f;},a16d(a,b);}import a16e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const I=a16d;return Object[I(0xe9)](CountryCode)[I(0xb6)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16J(0xc7)]({'name':'register-domain-name','aliases':['rdn'],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a16J(0xcd)],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':[a16J(0xce),a16J(0xbc)]},async function(a,b){const K=a16J,{aws:c}=this;try{const d=b[K(0xcd)],{available:f,cost:g}=await c[K(0xe8)](d);if(f&&g){Log[K(0xea)]('The\x20domain\x20name:\x20'+d+K(0xd2));const {Price:h,Currency:i}=g;Log[K(0xe0)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[K(0xdc)](K(0xeb)+d+'?',![]);if(j){const k={'message':K(0xc6),'name':'contactType','choices':[{'name':'ASSOCIATION','value':K(0xe2)},{'name':K(0xe5),'value':'COMPANY'},{'name':K(0xe1),'value':K(0xe1)},{'name':K(0xc3),'value':K(0xc3)},{'name':K(0xe7),'value':'RESELLER'}]},l=await Actions['ask'](K(0xbb))||'1',m=await Actions['ask']('Contact\x20First\x20Name\x20[Contact]:\x20')||K(0xda),n=await Actions[K(0xd3)]('Contact\x20Last\x20Name\x20[Person]:\x20')||'Person',o=await Actions[K(0xc9)](k),p=await Actions[K(0xd3)](K(0xd9))||K(0xc0),q=await Actions['ask'](K(0xd7)),r=await Actions[K(0xd3)]('City\x20[Honolulu]:\x20')||'Honolulu',s=await Actions[K(0xd3)]('Zip\x20Code\x20[96816]:\x20')||K(0xbd),t=await Actions['ask'](K(0xb4))||'HI',u=await Actions[K(0xd3)](K(0xd5))||'US',v=getCountryCodeEnum(u);if(!v)throw Log[K(0xd1)](K(0xca));const w=await Actions[K(0xd3)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||'+1.5555555555',x=await Actions[K(0xd3)](K(0xe3))||K(0xd8),y=await Actions[K(0xd3)](K(0xc8))||K(0xcc),z=await Actions['confirm']('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!==K(0xe1)){const D=await Actions['ask'](K(0xc5))||K(0xbf);A['OrganizationName']=D;}const B=h||0x0*parseInt(l);Log['notice'](K(0xdd)),Log[K(0xe0)](B+'\x20'+i+K(0xb7)+l+K(0xcb)+h+'\x20'+i+K(0xdb));const C=await Actions['confirm'](K(0xdf));C&&await c['registerDomain'](A,d,parseInt(l),z);}}else throw K(0xe4);}catch(E){E&&Log[K(0xd1)](E),process[K(0xc1)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17k=a17d;function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a17d(a,b);}(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x1ff))/0x1*(-parseInt(h(0x1f4))/0x2)+-parseInt(h(0x202))/0x3+-parseInt(h(0x1f2))/0x4+parseInt(h(0x207))/0x5+parseInt(h(0x1ea))/0x6+parseInt(h(0x203))/0x7+parseInt(h(0x1ed))/0x8*(-parseInt(h(0x1ef))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x6e3fd));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x1f8)]()[j(0x1fd)](j(0x1fb))[j(0x1f8)]()[j(0x1ee)](a17a)[j(0x1fd)](j(0x1fb));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x1f5)]({'name':a17k(0x1fc),'aliases':[a17k(0x204)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':a17k(0x200),'description':a17k(0x1fe),'examples':[a17k(0x1ec),'maka\x20aws:rkp']},async function(){const l=a17k,{aws:a}=this;try{const b=await a[l(0x1f7)]();let c=undefined;const d=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.['forEach'](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x206)](l(0x1eb)+c+l(0x201),![]);f?(await a[l(0x1f1)](c),Log[l(0x1fa)](l(0x1f9)+c)):Log[l(0x205)](l(0x1f3)),process[l(0x1f0)](0x0);}catch(g){g&&Log['error'](g),process[l(0x1f0)](0x1);}},a17e);function a17c(){const m=['error','confirm','3899620wFuHhC','4175094wsGIVh','Deleting\x20a\x20','maka\x20aws:remove-key-pair','2259400RyRrNQ','constructor','54HAZJnf','exit','deleteKeyPair','1137952NvrVZh','Not\x20deleting\x20keypair','536862cIyfuo','create','apply','ec2describeKeys','toString','Deleted\x20','success','(((.+)+)+)+$','remove-key-pair','search','\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','3uHFxmI','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','1573155YUMFgc','4717566kaMVlj','rkp'];a17c=function(){return m;};return a17c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18q=a18d;(function(a,b){const n=a18d,c=a();while(!![]){try{const d=parseInt(n(
|
|
1
|
+
const a18q=a18d;function a18c(){const s=['14811QjFYNR','2401040OSUsdM','55Xrxrjp','toString','exit','writeFileSync','278329UXYDgi','appName','join','9wjwaIx','244ydjqsW','privateIp','1836265yJsbdO','search','readFileSync','(((.+)+)+)+$','6ytBlyh','private','publicIp','getEnvFromShorthand','public','stringify','sep','success','isFile','1259190UXkxKn','apply','getAppConfigPath','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','ssh.json','set-host','ask','constructor','maka\x20aws:set-host\x20--env\x20dev','224752xQjibb','host','sth','config/ssh.json','\x20IP\x20to\x20','parse','template','2041977DEMdih','maka\x20aws\x20set-host','env','\x0aSaved\x20host\x20'];a18c=function(){return s;};return a18c();}(function(a,b){const n=a18d,c=a();while(!![]){try{const d=parseInt(n(0x1d3))/0x1+-parseInt(n(0x1ef))/0x2+parseInt(n(0x1fa))/0x3*(-parseInt(n(0x1d7))/0x4)+parseInt(n(0x1d9))/0x5+parseInt(n(0x1dd))/0x6*(parseInt(n(0x1f6))/0x7)+parseInt(n(0x1fb))/0x8*(parseInt(n(0x1d6))/0x9)+-parseInt(n(0x1e6))/0xa*(parseInt(n(0x1cf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x2f6f7));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a18d;if(c){const e=c[o(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const p=a18d;return a18a[p(0x1d0)]()[p(0x1da)](p(0x1dc))[p(0x1d0)]()[p(0x1ed)](a18a)[p(0x1da)](p(0x1dc));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a18d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a18q(0x1eb),'aliases':[a18q(0x1f1)],'usage':a18q(0x1f7),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a18q(0x1e9),'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':[a18q(0x1ee),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const r=a18q,{projectConfig:c,aws:d,cfg:f}=this;try{const g=f[r(0x1e0)](b[r(0x1f8)]),h=f[r(0x1e8)](g),i=await d['chooseInstance'](),j=a18e[r(0x1d5)](h,'ssh.json');!this['fsi'][r(0x1e5)](j)&&await this['scaffold'][r(0x1f5)]({'srcPath':r(0x1f2),'destPath':j,'context':{'app':c[r(0x1d4)]},'config':c});const k=JSON[r(0x1f4)](a18f[r(0x1db)](j,'utf8')),l=await Actions[r(0x1ec)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||r(0x1e1);if(l){if(l===r(0x1e1)||l===r(0x1de)){if(l==='public')k[r(0x1f0)]=i?.[r(0x1df)];else l===r(0x1de)&&(k[r(0x1f0)]=i?.[r(0x1d8)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else k[r(0x1f0)]=i?.['privateIp'];a18f[r(0x1d2)](a18e['join'](h,'ssh.json'),JSON[r(0x1e2)](k,null,0x2)),execSync('cat\x20'+a18e[r(0x1d5)](h,'ssh.json'),{'stdio':'inherit'}),Log[r(0x1e4)](r(0x1f9)+l+r(0x1f3)+h+a18e[r(0x1e3)]+r(0x1ea));}catch(m){m&&Log['error'](m),process[r(0x1d1)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x1f4))/0x1+-parseInt(f(0x1ef))/0x2+parseInt(f(0x1d9))/0x3+parseInt(f(0x1f0))/0x4+parseInt(f(0x1e5))/0x5*(parseInt(f(0x1e8))/0x6)+parseInt(f(0x1ec))/0x7*(-parseInt(f(0x1f3))/0x8)+parseInt(f(0x1f1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xa24f5));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x1d8)]()['search']('(((.+)+)+)+$')[h(0x1d8)]()[h(0x1f5)](a19a)['search'](h(0x1de));});function a19c(){const k=['toString','2126670qOuOVy','instanceId','name','error','maka\x20aws:terminate-instance','(((.+)+)+)+$','ec2terminateInstance','maka\x20aws:ti','\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','terminate-instance','exit','confirm','85pjvGtg','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','75126uEPYrP','apply','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','create','268009qwAToK','\x20Ready?','Terminate\x20an\x20EC2\x20instance','2654682eoGoCE','2384596MMtZrz','19547010jypXPV','status','120RoQEaX','1123319HFAIdE','constructor'];a19c=function(){return k;};return a19c();}a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a19d(a,b);}import{Log}from'../../tools/log/log.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x1eb)]({'name':a19i(0x1e2),'aliases':['ti'],'usage':a19i(0x1dd),'validOpts':[],'shortDesc':a19i(0x1ee),'description':a19i(0x1e1),'examples':['maka\x20aws:terminate-instance',a19i(0x1e0)]},async function(){const j=a19i,{aws:a}=this;try{const b=await a['chooseInstance']();if(b?.[j(0x1da)]&&b?.[j(0x1f2)]==='running'){const c=await Actions[j(0x1e4)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x1db)]+j(0x1ed));c?a[j(0x1df)]({'instanceId':b[j(0x1da)]}):Log[j(0x1dc)](j(0x1e7)+b[j(0x1db)]+j(0x1e6));}else Log[j(0x1dc)](j(0x1ea));}catch(d){d&&Log[j(0x1dc)](d),process[j(0x1e3)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a20d,c=a();while(!![]){try{var d
|
|
1
|
+
function a20c(){var i=['3899175Sponqy','4613736aBqBrE','7084UjCxdY','231954UhFmMy','search','7CWsUgc','apply','522HpJNDZ','1511288TWWvHt','(((.+)+)+)+$','1158490XtFRef','72PIRYVM','toString','103442EKtkCs'];a20c=function(){return i;};return a20c();}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x10d))/0x1*(-parseInt(f(0x115))/0x2)+-parseInt(f(0x10b))/0x3+parseInt(f(0x110))/0x4+parseInt(f(0x108))/0x5+parseInt(f(0x10f))/0x6*(parseInt(f(0x10a))/0x7)+parseInt(f(0x109))/0x8+-parseInt(f(0x113))/0x9*(parseInt(f(0x112))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x6f645));function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x108;var f=c[d];return f;},a20d(a,b);}var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x114)]()['search'](h(0x111))[h(0x114)]()['constructor'](a20a)[h(0x10c)](h(0x111));});a20a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21v=a21d;(function(a,b){const s=a21d,c=a();while(!![]){try{const d=parseInt(s(0x1e4))/0x1*(parseInt(s(0x1e2))/0x2)+parseInt(s(0x1da))/0x3+-parseInt(s(0x1c7))/0x4*(-parseInt(s(0x1cd))/0x5)+parseInt(s(0x1df))/0x6*(parseInt(s(0x1d5))/0x7)+-parseInt(s(0x1e0))/0x8*(-parseInt(s(0x1dd))/0x9)+-parseInt(s(0x1f2))/0xa*(parseInt(s(0x1d8))/0xb)+-parseInt(s(0x1d0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x85c31));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a21d;if(c){const e=c[t(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const u=a21d;return a21a['toString']()[u(0x1e1)]('(((.+)+)+)+$')[u(0x1dc)]()['constructor'](a21a)[u(0x1e1)](u(0x1c6));});a21a();import a21e from'path';import a21f from'fs';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a21d(a,b);}import a21g from'semver';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a21c(){const y=['1757088fcmKgS','getProjectMeteorVersion','toString','1276101DMMkFa','inherit','258jckWKi','8XmzuUv','search','2FxYFZM','confirm','902929WxGClg','checkMeteorPackage','This\x20project\x27s\x20meteor\x20version\x20(','getGlobalMeteorVersion',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','invokeMeteorCommand','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','findProjectDirectory','apply','build','force','existsSync','maka\x20build','6470410rEYHZD','slice','(((.+)+)+)+$','538052nwtyxT','splice','argv','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','Meteor\x20is\x20installed.','notice','25mPZmSc','forEach','Aborted.','19277544YOuCaY','app.tar.gz','join','error','--release','81137EvDPBP','--force','maka\x20install\x20--force','11wKAckP','mpi'];a21c=function(){return y;};return a21c();}import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a21v(0x1ee),'usage':a21v(0x1f1),'validOpts':[a21v(0x1ef)],'aliases':['b'],'shortDesc':a21v(0x1ea),'mustBeInMakaProject':!![],'description':'\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','examples':[a21v(0x1f1)]},async function(a,b){const w=a21v,{mpi:c,fsi:d,pkg:f}=this;try{c['isMeteorInstalled']()?Log[w(0x1cc)](w(0x1cb)):(Log['warn'](w(0x1eb)),execSync(w(0x1d7),{'stdio':w(0x1de)}));await f[w(0x1e5)]('autoupdate',{'shouldInstall':!![]});const g=b[w(0x1ef)];if(!g)try{const k=await c[w(0x1e7)](),l=d[w(0x1db)](),m=a21g['gt'](k,l);if(m){const n=await Actions[w(0x1e3)](w(0x1e6)+l+w(0x1e8)+k+').\x20Update?');n&&c[w(0x1e9)]('update',[w(0x1d4),k]);}}catch(o){Log[w(0x1d3)]('Failed\x20to\x20check\x20or\x20update\x20Meteor\x20version:\x20'+o);}const h=[d['pathFromProject']({'pathParts':['build']})]['concat'](process[w(0x1c9)][w(0x1c5)](0x3)),i=d[w(0x1ec)](),j=a21e[w(0x1d2)](i,w(0x1ee),w(0x1d1));if(a21f[w(0x1f0)](j)){const p=g??await Actions[w(0x1e3)](w(0x1ca));if(!p)throw Log[w(0x1d3)](w(0x1cf));}h[w(0x1ce)]((q,r)=>{const x=w;q===x(0x1d6)&&h[x(0x1c8)](r,0x2);}),this[w(0x1d9)][w(0x1e9)](w(0x1ee),h);}catch(q){console[w(0x1d3)](q),process['exit'](0x0);}});export default BuildCommand;
|