@maka/maka-cli 5.0.0-beta.7 → 5.0.1
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.1",
|
|
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
|
-
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0xff))/0x1*(-parseInt(n(0xf0))/0x2)+-parseInt(n(0xed))/0x3+parseInt(n(0x13a))/0x4*(-parseInt(n(0x11e))/0x5)+-parseInt(n(0x12a))/0x6+-parseInt(n(0xf8))/0x7*(parseInt(n(0x12b))/0x8)+-parseInt(n(0x12f))/0x9+parseInt(n(0x10f))/0xa*(parseInt(n(0x132))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb35b0));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x10e)]()['search']('(((.+)+)+)+$')[p(0x10e)]()[p(0x124)](a0a)[p(0x10c)](p(0x101));});function a0c(){const A=['error','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_handler','Command\x20requires\x20a\x20handler\x20function','number','search','exit','toString','10wpRLEm','Command\x20','generate','Command\x20not\x20found','light','There\x20is\x20no\x20Meteor\x20application\x20here','Too\x20many\x20options','shortDesc','length','tableList','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','match','Too\x20many\x20arguments','unshift','mustHaveMeteorInstalled','595MiCPTV','addCommand','apply','notice','validateMeteorInstall','Command\x20format\x20is\x20incorrect','constructor','minOptsLength','getGlobalConfig','Too\x20few\x20options','\x20not\x20found','usage','2741412XgpqdX','8gmgZdc','validateUserIsLoggedIn','bright','Description','9130482HKzMfB','create','name','29633714ZaSZMM','pallet','Command.create\x20requires\x20a\x20handler\x20function!','maybeProxyCommandToMeteor','find','push','keys','processAndRunCommand','10180CeRbUr','(expermiental)\x20','function','setColorMode','split','Sub-Commands:','maxOptsLength','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','_commands','3093309QblNyG','mustBeInMakaProject','options','2maBWLJ','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','LIGHT','Please\x20run\x20\x22maka\x20login\x22','fsi','Command\x20requires\x20a\x20name','Alias','slice','2101673yBUdOq','run','validateMakaProject','call','forEach','experimental','assign','1146263ZkouWf','DARK','(((.+)+)+)+$','play','sort','aliases','invoke','maxArgLength'];a0c=function(){return A;};return a0c();}a0a();import a0e from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xe8;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='';export class Command extends Tool{[a0q(0xef)];['_commands'];constructor(a,b){const r=a0q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[r(0x131)])throw new Error(r(0xf5));if(typeof b!==r(0x13c))throw new Error(r(0x10a));this[r(0xef)]=Object[r(0xfe)]({},a),this[r(0x131)]=this[r(0xef)]['name'],this['_commands']=[],this['_handler']=b['bind'](this);}static[a0q(0x130)](a,b,c){const s=a0q;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==s(0x13c))throw new Error(s(0x134));const d=new Command(a,b);return c=c||a0f,Object[s(0xfe)](d,{'parent':c?.['options']?.[s(0x131)]}),c[s(0x11f)](d),d;}[a0q(0x11f)](a){const t=a0q;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[t(0xec)][t(0x137)](a);}async['run'](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this['fsi'][u(0x126)](),d=c[u(0x133)]===u(0x113)?ColorMode[u(0xf2)]:ColorMode[u(0x100)];Log[u(0x13d)](d);}catch(f){Log['error'](f),process[u(0x10d)](0x0);}return await this[u(0x105)](a,b);}catch(g){process[u(0x10d)](0x1);}}async[a0q(0x105)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this[v(0xef)];try{if(this['options']['name']!==v(0x111)){if(!isRoot){const g=(a[0x0]===_prevCmd||a[v(0x117)]===0x0)&&this[v(0xec)][v(0x117)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this[v(0xec)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[v(0xef)][v(0xee)]){const i=this[v(0xfa)]();if(!i)throw new MustBeInProjectError();}if(this['options']['mustBeLoggedIn']){const j=await this[v(0x12c)]();if(!j)throw new MustBeLoggedIn();}if(this[v(0xef)][v(0x11d)]){const k=this[v(0x122)]();if(!k)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===v(0x10b)){if(a['length']<this[v(0xef)]['minArgLength']){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[v(0xef)][v(0x106)]==='number'){if(a['length']>=this[v(0xef)][v(0x106)]){Log[v(0x107)](v(0x11b));throw new UsageError();}}if(typeof this[v(0xef)][v(0x125)]===v(0x10b)){if(Object[v(0x138)](b)[v(0x117)]<this[v(0xef)]['minOptsLength']){Log[v(0x107)](v(0x127));throw new UsageError();}}if(typeof this['options'][v(0xea)]==='number'){if(Object[v(0x138)](b)[v(0x117)]>=this[v(0xef)]['maxOptsLength']){Log['error'](v(0x115));throw new UsageError();}}}}b=await this['validateParams'](a,b,this['options']),_prevCmd=a[0x0];}return await this[v(0x109)][v(0xfb)](this,a,b);}catch(l){Log[v(0x129)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log['notice'](v(0xe9)),this[v(0x118)](this[v(0xec)]),Log['header'](v(0xf1));else{if(l instanceof MustBeInProjectError)Log[v(0x107)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(l instanceof NoMeteorFoundError)Log[v(0x107)](v(0x119)),Log[v(0x121)](v(0x108));else{if(l instanceof NoMeteorAppFoundError)Log['error'](v(0x114));else l instanceof MustBeLoggedIn&&(Log[v(0x107)](v(0xeb)),Log['notice'](v(0xf3)));}}}process['exit'](0x1);}}[a0q(0x118)](a){const w=a0q,b=new a0e({});b[w(0x137)](['Name',w(0xf6),w(0x12e)]),a[w(0x103)]((c,d)=>{const x=w;return c['name']['localeCompare'](d[x(0x131)]);})[w(0xfc)](c=>{const y=w;if(c[y(0x131)]!=='murder'&&c[y(0x131)]!==y(0x102)){const d=c[y(0xfd)](),e=d?y(0x13b)+c[y(0x116)]():c[y(0x116)]();b[y(0x137)]([c['name'],c[y(0x104)](),e]);}}),Log[w(0x12d)](b[w(0x10e)]());}async[a0q(0x139)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0xe8)](':');if(!d||d[z(0x117)]===0x0)throw z(0x123);if(d[0x0]===z(0x111)||d[0x0]==='g'&&d[z(0x117)]>0x1){const h=this[z(0xec)][z(0x136)](j=>j['match'](z(0x111)));if(!h)throw z(0x112);const i=d[z(0xf7)](0x1)['join'](':');return b[z(0x11c)](i),await h[z(0xf9)](b,c);}let f=this['_commands'],g;for(const j of d){g=f[z(0x136)](k=>k[z(0x11a)](j));if(!g)try{await this[z(0xf4)][z(0x135)]();}catch(k){throw z(0x110)+j+z(0x128);}g&&(f=g[z(0xec)]);}if(g){const l=await g[z(0xf9)](b,c);return l;}else throw z(0x112);}catch(m){Log['error'](m),process[z(0x10d)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1d3))/0x1+parseInt(f(0x1db))/0x2*(parseInt(f(0x1ce))/0x3)+-parseInt(f(0x1d1))/0x4+-parseInt(f(0x1d8))/0x5*(-parseInt(f(0x1d6))/0x6)+parseInt(f(0x1dc))/0x7+-parseInt(f(0x1d7))/0x8*(-parseInt(f(0x1dd))/0x9)+parseInt(f(0x1d4))/0xa*(-parseInt(f(0x1da))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xe8001));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1d5)]()[h(0x1d0)](h(0x1d2))[h(0x1d5)]()[h(0x1d9)](a1a)[h(0x1d0)](h(0x1d2));});function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1ce;var f=c[d];return f;},a1d(a,b);}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'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';function a1c(){var i=['10rXeEEP','toString','2336466DoAYBK','521096wVIVOX','5zqDMTq','constructor','9784423VRhoEB','32jhcJsD','2111802FSAfQy','117AQWAFo','101064yWTvgt','apply','search','2547284PEmJaO','(((.+)+)+)+$','399701gWrCSw'];a1c=function(){return i;};return a1c();}import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2l=a2d;
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x169))/0x1+parseInt(h(0x145))/0x2+-parseInt(h(0x15b))/0x3*(-parseInt(h(0x148))/0x4)+-parseInt(h(0x155))/0x5+parseInt(h(0x15d))/0x6*(parseInt(h(0x168))/0x7)+parseInt(h(0x165))/0x8+-parseInt(h(0x15a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x19fe4));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x166)]()[i(0x158)]('(((.+)+)+)+$')[i(0x166)]()[i(0x150)](a2a)[i(0x158)](i(0x16a));});a2a();function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x144;let f=c[d];return f;},a2d(a,b);}import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x151)]({'input':process[j(0x153)],'output':process[j(0x160)]});c[j(0x164)]('You:\x20',async d=>{const k=j;if(d[k(0x16b)]()===k(0x159)){c['close']();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[k(0x144)](e[k(0x156)]);if(f[k(0x14c)])throw new Error(f[k(0x14c)][k(0x152)]);Log[k(0x161)](k(0x157)+f?.['choices'][0x0]?.[k(0x167)][k(0x146)]());}catch(g){Log[k(0x14c)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2c(){const n=['stdout','bright','getGlobalConfig','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','question','74088oZRkPL','toString','text','1967bofMEC','20797agXIkp','(((.+)+)+)+$','toLowerCase','isFile','parse','358000vGYYBA','trim','openai','12856YyoiYL','Using\x20CA\x20Cert\x20','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','notice','error','cert','ChatGPT\x20style\x20AI\x20interface','Using\x20OpenAI\x20Key\x20','constructor','createInterface','message','stdin','fsi','329800PRAUzh','data','GPT:\x20','search','exit','2457945sVdrYQ','93CFDcNz','openapikey','3810YhWFeT','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','cacert'];a2c=function(){return n;};return a2c();}Command['create']({'name':'ai','description':a2l(0x14e),'validOpts':['cacert','openapikey'],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this['fsi'][m(0x16c)](b[m(0x15f)])?(c=b[m(0x15f)],Log[m(0x14b)](m(0x149)+c)):Log[m(0x14c)](m(0x15e)+c));const d=await this[m(0x154)][m(0x162)]();if(d[m(0x14d)]){if(this[m(0x154)]['isFile'](d['cert']))c=d[m(0x14d)];else throw Log[m(0x14c)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[m(0x15c)])f=b[m(0x15c)],Log['notice'](m(0x14f)+f);else{if(d[m(0x147)])f=d[m(0x147)];else throw Log[m(0x14c)](m(0x163));}Log[m(0x161)](m(0x14a)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x14c)](g),process[m(0x159)](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(0xbe))/0x1*(parseInt(f(0xc1))/0x2)+-parseInt(f(0xc9))/0x3+-parseInt(f(0xc2))/0x4+parseInt(f(0xc5))/0x5+parseInt(f(0xc4))/0x6+-parseInt(f(0xc6))/0x7+-parseInt(f(0xca))/0x8*(-parseInt(f(0xc7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x5c4df));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xbf)]()[h(0xc3)](h(0xbd))['toString']()[h(0xc0)](a3a)[h(0xc3)](h(0xbd));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xbd;var f=c[d];return f;},a3d(a,b);}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';function a3c(){var i=['1085070LfDAHk','2660504dOeFMi','804348QQphEt','apply','73527vrQlrY','64lTKPaC','(((.+)+)+)+$','972fjHShH','toString','constructor','438hDQdnd','321400QPDsbY','search','863328FEovdn'];a3c=function(){return i;};return a3c();}import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4h=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1a6))/0x1+parseInt(f(0x1b6))/0x2+parseInt(f(0x1ac))/0x3+parseInt(f(0x1a7))/0x4+-parseInt(f(0x1b4))/0x5+parseInt(f(0x1b2))/0x6+parseInt(f(0x1ab))/0x7*(-parseInt(f(0x1a8))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xec911));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['toString']()['search'](g(0x1b1))[g(0x1b5)]()[g(0x1a9)](a4a)[g(0x1aa)](g(0x1b1));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a4d(a,b);}function a4c(){const i=['search','854KcMOid','829026WDzrUR','create','aws','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','(((.+)+)+)+$','10199322ZKEBOM','maka\x20aws:<sub-command>','5935580RgcyXf','toString','2610252ANBRah','990642GVmNnH','1016776OqXuGP','25496UInehF','constructor'];a4c=function(){return i;};return a4c();}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0x1ad)]({'name':a4h(0x1ae),'usage':a4h(0x1b3),'validOpts':[],'shortDesc':a4h(0x1af),'description':a4h(0x1b0)},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(0x118))/0x1*(parseInt(g(0x115))/0x2)+parseInt(g(0x101))/0x3+parseInt(g(0x10d))/0x4*(-parseInt(g(0x10e))/0x5)+parseInt(g(0x11c))/0x6*(-parseInt(g(0x103))/0x7)+-parseInt(g(0x113))/0x8*(parseInt(g(0x111))/0x9)+parseInt(g(0x10b))/0xa*(-parseInt(g(0x104))/0xb)+parseInt(g(0x110))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x2b87f));function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x100;let f=c[d];return f;},a5d(a,b);}const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x109)]()['search'](i(0x112))['toString']()['constructor'](a5a)['search'](i(0x112));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a5c(){const l=['toString','Create\x20an\x20Elastic\x20Container\x20Repository','2251610gIHBkC','$metadata','1215820kOynzc','5ezUner','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','11330424pMgJfq','96183yojujM','(((.+)+)+)+$','64bVvrrk','exit','446854doggkK','notice','repository','1yvypJP','create-ecr','Repository\x20URI:\x20','region','10656vhlfsN','httpStatusCode','386916fPQZUV','name','224LeLMGM','11vcBOxS','success','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','apply','maka\x20aws:cecr\x20--name=my-new-repo'];a5c=function(){return l;};return a5c();}Command['create']({'name':a5j(0x119),'aliases':['cecr'],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5j(0x102)],'validOpts':[a5j(0x11b)],'shortDesc':a5j(0x10a),'examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5j(0x108),a5j(0x10f)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0x10c)][k(0x100)]===0xc8&&d[k(0x117)]?(Log[k(0x105)]('Repository\x20created\x20successfully.'),Log[k(0x116)](k(0x11a)+d['repository']['repositoryUri'])):Log['error'](k(0x106)),process[k(0x114)](0x0);}catch(f){Log['error'](f),process[k(0x114)](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(0xba))/0x1+-parseInt(i(0xbd))/0x2+parseInt(i(0xcd))/0x3+parseInt(i(0xbc))/0x4+-parseInt(i(0xb8))/0x5*(-parseInt(i(0xc4))/0x6)+parseInt(i(0xc9))/0x7*(-parseInt(i(0xcb))/0x8)+parseInt(i(0xb2))/0x9*(parseInt(i(0xc6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe283e));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xb2;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0xc7)]()['search'](k(0xb5))[k(0xc7)]()[k(0xcc)](a6a)['search'](k(0xb5));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a6c(){const n=['chooseInstance','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','route53CreateHostedZone','6UzMqvg','confirm','5478710zZqBMX','toString','maka\x20aws:create-hosted-zone','7BdloGT','chz','6254600CEqFGI','constructor','336459eHeHOc','exit','54WwpETu','apply','Set\x20hosted\x20zone\x20to\x20an\x20instance?','(((.+)+)+)+$','Instance\x20not\x20found','error','404585jbuMRJ','maka\x20aws:create-hosted-zone\x20--domain=example.com','1395020hxXxsX','publicIp','3215304hyRBZn','2358942hmMSiy','domain','create','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053'];a6c=function(){return n;};return a6c();}import{Log}from'../../tools/log/log.class.js';Command[a6l(0xbf)]({'name':'create-hosted-zone','aliases':[a6l(0xca)],'usage':a6l(0xc8),'requiredOpts':[a6l(0xbe)],'validOpts':[],'shortDesc':a6l(0xc0),'examples':[a6l(0xb9),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0xc3)](c);const f=await Actions[m(0xc5)](m(0xb4));if(f){const g=await d[m(0xc1)]();if(g?.['id']){if(!g['publicIp'])throw Log['error'](m(0xc2));d['linkEC2ToRoute53'](g['id'],g[m(0xbb)],c);}else throw m(0xb6);}}catch(h){h&&Log[m(0xb7)](h),process[m(0xce)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a7a1=a7d;(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=-parseInt(Y(0x1a3))/0x1+-parseInt(Y(0x1b4))/0x2+-parseInt(Y(0x1ac))/0x3+-parseInt(Y(0x1cb))/0x4*(-parseInt(Y(0x1e8))/0x5)+parseInt(Y(0x1d0))/0x6+parseInt(Y(0x1b8))/0x7*(-parseInt(Y(0x1b2))/0x8)+-parseInt(Y(0x1b3))/0x9*(-parseInt(Y(0x1e2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x375a8));function a7c(){const a3=['join','fsi','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','notice','error','248296BsChRW','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','chooseVPC','success','ask','755190NtZnCK','created-by','readFileSync','Security\x20Group:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Instance\x20Count:\x20','toString','Remove\x20the\x20security\x20group\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Name','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','getSubnetCidr','Setting\x20the\x20key-pair\x20to:\x20','22,80,443','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Key-Pair:\x20','user-data','160wEyzbU','Remove\x20the\x20keypair\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','confirm','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','isFile','5EWayOC','\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','(((.+)+)+)+$','deleteKeyPair','Instace\x20Type:\x20','deleteSecurityGroup','213141XaEetb','split','env','unlinkSync','**\x20Available\x20key-pairs\x20**','Web\x20App','createKeyPair','number','apply','184785iIrDQU','User\x20Data:','create-instance','chooseSecurityGroup','No\x20instance\x20has\x20been\x20created.','maka\x20aws:create-instance','994392cyYZxe','397206HSZuyd','536640PjKbkL','ec2createSG','t3.micro','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','7ftpJEY','maka-cli','maka\x20aws:ci\x20--env\x20prod','getEnvFromShorthand','createFile','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','name','listAvailableAMIs','maka\x20aws:create-instance\x20--env\x20dev','1:1','ec2describeKeys','getAppConfigPath','bright','exit'];a7c=function(){return a3;};return a7c();}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const Z=a7d;if(c){const e=c[Z(0x1ab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const a0=a7d;return a7a['toString']()['search'](a0(0x1ea))['toString']()['constructor'](a7a)['search']('(((.+)+)+)+$');});function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a7d(a,b);}a7a();import a7e from'./aws.command.js';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['create']({'name':a7a1(0x1ae),'aliases':['ci'],'usage':a7a1(0x1b1),'examples':[a7a1(0x1c0),a7a1(0x1ba)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7a1(0x1a5)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7a1(0x1e9)},async function(a,b){const a2=a7a1;try{const c=this['fsi']['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[a2(0x1c7)][a2(0x1bb)](b['env']),i=this['fsi'][a2(0x1c3)](h),j=g+'-'+h,k=await Actions['ask']('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[a2(0x1e5)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[a2(0x1a9)]({'env':h});r=y,s=z,Log['success'](a2(0x1dd)+r);}else try{Log[a2(0x1c9)](a2(0x1a7));const A=r?r:k,B=await d[a2(0x1c2)]({'suggestion':A}),C=await Actions[a2(0x1cf)](a2(0x1d4))||'-1';if(parseInt(C)<0x0){Log['error'](a2(0x1db)),Log[a2(0x1c9)](a2(0x1b0));return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D[a2(0x1be)],Log['success'](a2(0x1dd)+r);break;}}}catch(E){Log['error'](E);}l=await d[a2(0x1cd)]();const t=await Actions[a2(0x1e5)](a2(0x1b7),!![]);let u;if(t){const F=l===''?await d[a2(0x1cd)]():l;u=await Actions['ask']('Security\x20Group\x20Name:\x20['+k+']')||k;const G=await Actions[a2(0x1cf)](a2(0x1c8))||a2(0x1de),H=G[a2(0x1a4)](',');await d[a2(0x1b5)]({'description':a2(0x1a8),'name':u,'vpcId':F,'sgPorts':H});}u=k,m=await d[a2(0x1af)](u),n=await d[a2(0x1bf)](),p=await d['listAvailableSubnets']();const v=0x1,w=0x1;try{const I=await Actions['ask'](a2(0x1bd))||a2(0x1c1),J=I[a2(0x1a4)](':')[0x0],K=I[a2(0x1a4)](':')[0x1];typeof parseInt(J)===a2(0x1aa)&&typeof parseInt(K)===a2(0x1aa)&&Log[a2(0x1ce)](a2(0x1cc)+J+':'+K);}catch(L){Log[a2(0x1ca)](L);}try{const M=await Actions[a2(0x1cf)](a2(0x1d8))||a2(0x1b6);typeof M==='string'&&(o=M);}catch(N){Log[a2(0x1ca)](N);}let x='';try{const O=await Actions['confirm'](a2(0x1df),![]);O&&(x=a7f[a2(0x1c6)](i,a2(0x1e1)),Log[a2(0x1c9)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[a2(0x1c7)][a2(0x1bc)]({'filePath':x,'data':''}),await Actions['confirm'](a2(0x1e6)));}catch(P){Log[a2(0x1ca)](P);}try{const Q=await d[a2(0x1dc)](p);Log[a2(0x1c9)]('ImageID:'+n),Log['notice'](a2(0x1d5)+v+':'+w),Log[a2(0x1c9)](a2(0x1a1)+o),Log[a2(0x1c9)](a2(0x1e0)+r),Log[a2(0x1c9)](a2(0x1d3)+m),Log[a2(0x1c9)]('Subnet:\x20'+Q);if(x){Log[a2(0x1c9)](a2(0x1ad)+x);const S=a7g[a2(0x1d2)](x)[a2(0x1d6)]();Log[a2(0x1c9)](S);}const R=await Actions[a2(0x1e5)](a2(0x1d9));if(R){const T=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':a2(0x1d1),'Value':a2(0x1b9)},{'Key':'environment','Value':h},{'Key':a2(0x1da),'Value':k}],...x&&{'userData':x}});T&&(Log[a2(0x1ce)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[a2(0x1c4)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[a2(0x1c9)](a2(0x1e4));const U=await Actions[a2(0x1e5)](a2(0x1e3)+r+'\x20?',!![]);U&&(d[a2(0x1a0)](r),f[a2(0x1e7)](s)&&a7g[a2(0x1a6)](s));const V=await Actions[a2(0x1e5)](a2(0x1d7)+m+'\x20?',!![]);V&&d[a2(0x1a2)](m);}}catch(W){Log[a2(0x1ca)](W);}}catch(X){X&&Log[a2(0x1ca)](X),process[a2(0x1c5)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8j=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-
|
|
1
|
+
function a8c(){const l=['create','env','1029352XqpBcj','createKeyPair','456577QgSVkP','(((.+)+)+)+$','create-key-pair','maka\x20aws:create-key-pair','10gASHfA','11830896HNqqCU','search','ckp','toString','1235298qqQREp','18aHpdOB','exit','1192smtSkp','maka\x20aws:create-key-pair\x20--env\x20prod','877511vBLKDb','apply','21vlliIU','constructor','10AvTnSD','6681264xmQGcd','\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','fsi','error','3831gyOOsb'];a8c=function(){return l;};return a8c();}const a8j=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xee;let f=c[d];return f;},a8d(a,b);}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0xfe))/0x1+parseInt(g(0xfc))/0x2*(-parseInt(g(0x107))/0x3)+-parseInt(g(0xee))/0x4*(parseInt(g(0x102))/0x5)+parseInt(g(0xf9))/0x6*(parseInt(g(0x100))/0x7)+parseInt(g(0x103))/0x8*(parseInt(g(0xfa))/0x9)+parseInt(g(0xf4))/0xa*(parseInt(g(0xf0))/0xb)+-parseInt(g(0xf5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xe6c9b));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0xf8)]()[i(0xf6)](i(0xf1))[i(0xf8)]()[i(0x101)](a8a)[i(0xf6)]('(((.+)+)+)+$');});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';Command[a8j(0x108)]({'name':a8j(0xf2),'aliases':[a8j(0xf7)],'usage':a8j(0xf3),'examples':[a8j(0xfd),'maka\x20aws:ckp\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x109)],'validOpts':[],'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a8j(0x104)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x105)]['getEnvFromShorthand'](b[k(0x109)]);c[k(0xef)]({'env':d});}catch(f){f&&Log[k(0x106)](f),process[k(0xfb)](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 a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x186;let f=c[d];return f;},a9d(a,b);}(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x1a5))/0x1+-parseInt(m(0x194))/0x2*(parseInt(m(0x19c))/0x3)+-parseInt(m(0x188))/0x4*(-parseInt(m(0x18a))/0x5)+parseInt(m(0x198))/0x6*(parseInt(m(0x19a))/0x7)+-parseInt(m(0x1a7))/0x8+-parseInt(m(0x196))/0x9*(-parseInt(m(0x19f))/0xa)+-parseInt(m(0x190))/0xb*(-parseInt(m(0x19b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xa58b1));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x192)]('(((.+)+)+)+$')['toString']()[o(0x199)](a9a)[o(0x192)](o(0x19e));});a9a();function a9c(){const s=['846265TQhWBG','36hRvTdt','21SpoLHF','ec2createSG','(((.+)+)+)+$','117290SoImYs','maka\x20aws:csg','maka\x20aws:create-secuirty-group','Web\x20App','match','chooseVPC','176603tBiLdF','ask','2236568LEVSFq','csg','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\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','22,80,443','4vErJyk','fsi','27485KjCTGV','Security\x20Group\x20Name:\x20[','create','name','getMakaProjectConfig','create-security-group','3018950NOlQKA','forEach','search','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','271438VMHkCy','exit','414LgReVZ','apply','18oEJBvp','constructor'];a9c=function(){return s;};return a9c();}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(0x18c)]({'name':a9p(0x18f),'aliases':[a9p(0x1a8)],'usage':'maka\x20aws\x20create-security-group','validOpts':[],'shortDesc':a9p(0x193),'description':a9p(0x186),'examples':[a9p(0x1a1),a9p(0x1a0)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x189)][q(0x18e)](),{appName:f}=d,g=await c[q(0x1a4)](),h=b['name']?b[q(0x18d)]:''+f,i=await Actions[q(0x1a6)](q(0x18b)+h+']')||h,j=await Actions['ask'](q(0x1a9))||q(0x187),k=j['split'](',');k[q(0x191)](l=>{const r=q;if(!l[r(0x1a3)](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[q(0x19d)]({'description':q(0x1a2),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process[q(0x195)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10i=a10d;function a10c(){const k=['decr','232ISfipo','270417YTSLIo','595ezHtUP','\x20deleted\x20successfully\x20in\x20region\x20','.\x20Error:\x20','apply','1227952YnZqzB','ecrDeleteRepository','success','toString','error','7612674qxzwDx','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','1911480CBxEKe','constructor','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','delete-ecr','1287848fsynyw','(((.+)+)+)+$','search','Delete\x20an\x20Elastic\x20Container\x20Repository','3400704HMTcxL','exit','17896kFJtWf','Failed\x20to\x20delete\x20the\x20repository:\x20','\x20in\x20region\x20','name','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','region'];a10c=function(){return k;};return a10c();}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x161))/0x1+-parseInt(f(0x156))/0x2+-parseInt(f(0x15d))/0x3+-parseInt(f(0x167))/0x4*(-parseInt(f(0x170))/0x5)+-parseInt(f(0x15b))/0x6+parseInt(f(0x16f))/0x7*(parseInt(f(0x16e))/0x8)+parseInt(f(0x165))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xc2f1e));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x159)]()[h(0x163)](h(0x162))['toString']()[h(0x15e)](a10a)['search'](h(0x162));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x156;let f=c[d];return f;},a10d(a,b);}Command['create']({'name':a10i(0x160),'aliases':[a10i(0x16d)],'usage':a10i(0x16b),'requiredOpts':['name','region'],'validOpts':[],'shortDesc':a10i(0x164),'examples':[a10i(0x15c),a10i(0x15f)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x157)]({'repoName':b[j(0x16a)],'region':b[j(0x16c)]}),Log[j(0x158)]('Repository\x20'+b[j(0x16a)]+j(0x171)+b[j(0x16c)]+'.'),process[j(0x166)](0x0);}catch(d){Log[j(0x15a)](j(0x168)+b[j(0x16a)]+j(0x169)+b['region']+j(0x172)+d),process[j(0x166)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x10e))/0x1+parseInt(f(0x11b))/0x2*(parseInt(f(0x10c))/0x3)+-parseInt(f(0x112))/0x4*(parseInt(f(0x116))/0x5)+-parseInt(f(0x115))/0x6*(-parseInt(f(0x11f))/0x7)+parseInt(f(0x11e))/0x8*(parseInt(f(0x11a))/0x9)+parseInt(f(0x113))/0xa+parseInt(f(0x114))/0xb*(-parseInt(f(0x110))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x318ab));function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x10b;let f=c[d];return f;},a11d(a,b);}const a11b=(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;};}()),a11a=a11b(this,function(){const g=a11d;return a11a[g(0x10f)]()[g(0x119)]('(((.+)+)+)+$')[g(0x10f)]()[g(0x111)](a11a)[g(0x119)]('(((.+)+)+)+$');});function a11c(){const j=['search','1332GZPzfg','2PkQTFa','describe-instances','exit','1528MhwjFN','434JyBSQS','ec2describeInstances','450663UKmrGG','create','26562TODXah','toString','60dDdKrp','constructor','4qpucok','1081630pqFRmq','771760qzoFmN','36744GQEtoM','695895kwUUJC','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','maka\x20aws:describe-instances'];a11c=function(){return j;};return a11c();}a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11h(0x10d)]({'name':a11h(0x11c),'aliases':['di'],'usage':a11h(0x118),'validOpts':[],'shortDesc':a11h(0x117),'examples':['maka\x20aws:describe-instances','maka\x20aws:di'],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const i=a11h;try{const a=new AWS();a[i(0x10b)]();}catch(b){b&&Log['error'](b),process[i(0x11d)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a12c(){const j=['188041tSmQIJ','4rZaPeX','ec2describeKeys','(((.+)+)+)+$','1912152XuNSoX','error','2576163yJdxeV','108GbYhlY','describe-key-pairs','toString','create','670737oShPXr','maka\x20aws:dkp','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','search','dkp','8190UaRvFm','constructor','maka\x20aws:describe-key-pairs','9893550ewcfXD','9xWWfiZ','4216256hcrwHq'];a12c=function(){return j;};return a12c();}const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0xae))/0x1+parseInt(f(0xbd))/0x2+parseInt(f(0xbf))/0x3*(-parseInt(f(0xba))/0x4)+parseInt(f(0xb3))/0x5+-parseInt(f(0xaa))/0x6*(parseInt(f(0xb9))/0x7)+-parseInt(f(0xb8))/0x8+-parseInt(f(0xb7))/0x9*(-parseInt(f(0xb6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xb6be7));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0xac)]()[g(0xb1)](g(0xbc))['toString']()[g(0xb4)](a12a)[g(0xb1)](g(0xbc));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xaa;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a12h(0xad)]({'name':a12h(0xab),'aliases':[a12h(0xb2)],'usage':a12h(0xb5),'validOpts':[],'shortDesc':a12h(0xb0),'examples':['maka\x20aws:describe-key-pairs',a12h(0xaf)]},async function(){const i=a12h;try{const a=new AWS();a[i(0xbb)]();}catch(b){b&&Log[i(0xbe)](b),process['exit'](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13o=a13d;
|
|
1
|
+
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x156))/0x1*(-parseInt(l(0x155))/0x2)+-parseInt(l(0x15e))/0x3+parseInt(l(0x153))/0x4*(-parseInt(l(0x159))/0x5)+-parseInt(l(0x14a))/0x6*(-parseInt(l(0x13d))/0x7)+-parseInt(l(0x13f))/0x8+-parseInt(l(0x151))/0x9+parseInt(l(0x144))/0xa*(parseInt(l(0x148))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x1f425));function a13c(){const s=['1004tIOoOJ','search','322njQoJe','241QkJnqf','sgId','error','1225cEHYDE','\x20SG\x20NAME:\x20','Deleted\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','constructor','175818qzJkJe','exit','501179aQlaoh','(((.+)+)+)+$','139184QWUZab','getSecurityGroups','maka\x20aws:delete-sg','notice','Not\x20deleting\x20secuirty\x20group','1725540EXbjts','appName','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','success','11herTEE','dsg','12iBxVIm','toString','\x20SGID:\x20','apply','maka\x20aws:dsg','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','ID:\x20','801117VoSbBY','forEach'];a13c=function(){return s;};return a13c();}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x14b)]()[n(0x154)]('(((.+)+)+)+$')[n(0x14b)]()[n(0x15d)](a13a)[n(0x154)](n(0x13e));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x13d;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':'delete-security-group','aliases':[a13o(0x149)],'usage':a13o(0x141),'validOpts':[],'shortDesc':a13o(0x14f),'examples':['maka\x20aws:delete-sg',a13o(0x14e)]},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(0x145)];}const {sgList:f}=await a[p(0x140)]();f['forEach'](function(k){const q=p;c&&k['name']['includes'](d)?Log[q(0x142)](q(0x150)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+q(0x14c)+k[q(0x157)]):Log['bright']('ID:\x20'+k['id']+q(0x15a)+k['name']+q(0x14c)+k['sgId']);});let g='';const h=await Actions['ask']('Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:');f[p(0x152)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x157)]);});if(!g)throw Log[p(0x158)](p(0x15c));const i=await Actions['confirm']('Deleting\x20a\x20'+g+p(0x146),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x147)](p(0x15b)+g)):Log[p(0x158)](p(0x143)),process[p(0x15f)](0x0);}catch(k){k&&Log[p(0x158)](k),process[p(0x15f)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x172))/0x1*(-parseInt(f(0x160))/0x2)+parseInt(f(0x16f))/0x3*(-parseInt(f(0x167))/0x4)+parseInt(f(0x166))/0x5+-parseInt(f(0x163))/0x6*(parseInt(f(0x174))/0x7)+parseInt(f(0x162))/0x8+-parseInt(f(0x161))/0x9+parseInt(f(0x169))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xac28b));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a['toString']()[h(0x164)](h(0x16d))[h(0x16e)]()[h(0x16c)](a14a)['search'](h(0x16d));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x15e;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14c(){const k=['success','exit','create','931282QhAVgO','8404758MeUteE','2002000gtphcI','18pJBWgx','search','maka\x20aws:list-ecr','2297190hccnsi','844xYRzhO','apply','17171750VkPhPD','error','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','constructor','(((.+)+)+)+$','toString','11490owMXyY','lecr','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','3cuyDEu','regions','3212139oYeptD'];a14c=function(){return k;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14i(0x15f)]({'name':'list-ecr','aliases':[a14i(0x170)],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x173)],'shortDesc':'List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','examples':[a14i(0x165),a14i(0x171),'maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x173)]),Log[j(0x175)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x15e)](0x0);}catch(d){Log[j(0x16a)](j(0x16b)+d),process[j(0x15e)](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(0x1f9))/0x1*(parseInt(f(0x1f7))/0x2)+parseInt(f(0x1e5))/0x3+parseInt(f(0x1ee))/0x4+parseInt(f(0x1f3))/0x5+parseInt(f(0x1e3))/0x6+-parseInt(f(0x1e8))/0x7+parseInt(f(0x1e6))/0x8*(-parseInt(f(0x1e1))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xebef4));function a15c(){const k=['confirm','search','error','status','Reboot\x20an\x20EC2\x20instance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','9RBnXap','maka\x20aws:rbi','8278044raRZBd','toString','477027imZfxm','10028296lvIztO','exit','12828774UFrIwW','reboot-instance','chooseInstance','(((.+)+)+)+$','instanceId','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','2311364spYQhi','apply','running','rbi','name','6656580FluUHW','\x20is\x20still\x20running.','maka\x20aws:reboot-instance','create','403178IWWnHi','\x20Ready?','3ODzTnX','constructor'];a15c=function(){return k;};return a15c();}const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x1e4)]()['search'](h(0x1eb))[h(0x1e4)]()[h(0x1da)](a15a)[h(0x1dc)](h(0x1eb));});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-0x1da;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(0x1f6)]({'name':a15i(0x1e9),'aliases':[a15i(0x1f1)],'usage':a15i(0x1f5),'validOpts':[],'shortDesc':a15i(0x1df),'examples':['maka\x20aws:reboot-instance',a15i(0x1e2)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x1ea)]();if(b?.[j(0x1de)]===j(0x1f0)){const c=await Actions[j(0x1db)](j(0x1e0)+b[j(0x1f2)]+j(0x1f8));c&&b[j(0x1ec)]?a['ec2rebootInstance']({'instanceId':b[j(0x1ec)]}):Log[j(0x1dd)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0x1f2)]+j(0x1f4));}else Log[j(0x1dd)](j(0x1ed));}catch(d){d&&Log[j(0x1dd)](d),process[j(0x1e7)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(
|
|
1
|
+
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x1e0))/0x1*(parseInt(E(0x1f0))/0x2)+parseInt(E(0x1ff))/0x3+-parseInt(E(0x1f2))/0x4*(parseInt(E(0x1e2))/0x5)+-parseInt(E(0x1ea))/0x6*(parseInt(E(0x1f8))/0x7)+-parseInt(E(0x1d8))/0x8*(-parseInt(E(0x1db))/0x9)+-parseInt(E(0x1e8))/0xa+parseInt(E(0x1f6))/0xb*(-parseInt(E(0x1fe))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x20a5b));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x1e5)]()[G(0x1dc)](G(0x1e7))['toString']()[G(0x1f9)](a16a)[G(0x1dc)](G(0x1e7));});a16a();import a16e from'./aws.command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a16d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a16c(){const K=['Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','notice','PUBLIC_BODY','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','\x20years\x20(','Zip\x20Code\x20[96816]:\x20','Contact\x20Last\x20Name\x20[Person]:\x20','maka\x20aws:rdn\x20--domain=example.com','+1.5555555556','domain','Choose\x20contact\x20type','warn','Contact\x20First\x20Name\x20[Contact]:\x20','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Invalid\x202\x20character\x20country\x20code','\x20/\x20Year\x20\x0a','list','ask','maka\x20aws:register-domain-name','8jyZnqK','create','maka\x20aws:register-domain-name\x20--domain=example.com','415971tVKWVJ','search','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','PERSON','Address\x20Line\x202:\x20','62942XblMor','Person','15DLUWnK','exit','96816','toString','options','(((.+)+)+)+$','134940CQCoHr','apply','1902JxLUmQ','register-domain-name','includes','Do\x20you\x20wish\x20to\x20register\x20','Auto\x20Renew:\x20','Country\x20Code\x20[US]:\x20','8xkxdlB','ASSOCIATION','34564piERip','contactType','Are\x20you\x20sure?','registerDomain','109516dpFuRf','confirm','259oLNxkh','constructor','COMPANY','Contact','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Duration\x20in\x20years\x20[1]:\x20','444bULsyj','765762fSczCA','checkDomainAvailability','OrganizationName','+1.5555555555','error','Domain\x20name\x20is\x20unavailable'];a16c=function(){return K;};return a16c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object['values'](CountryCode)[H(0x1ec)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x1d9)]({'name':a16I(0x1eb),'aliases':['rdn'],'usage':a16I(0x1d7),'requiredOpts':[a16I(0x20e)],'validOpts':[],'shortDesc':a16I(0x205),'examples':[a16I(0x1da),a16I(0x20c)]},async function(a,b){const J=a16I;try{const c=b[J(0x20e)],d=new AWS(),{available:f,cost:g}=await d[J(0x200)](c);if(f&&g){Log[J(0x206)]('The\x20domain\x20name:\x20'+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0x210)]('\x20\x20'+h+'\x20'+i+J(0x1d4));const j=await Actions[J(0x1f7)](J(0x1ed)+c+'\x20?',![]);if(j){const k={'type':J(0x1d5),'name':J(0x1f3),'message':J(0x20f),'choices':[J(0x1f1),J(0x1fa),J(0x1de),J(0x207),'RESELLER']},l=await Actions['ask'](J(0x1fd))||'1',m=await Actions['ask'](J(0x211))||J(0x1fb),n=await Actions['ask'](J(0x20b))||J(0x1e1),{contactType:o}=await Actions[J(0x1e6)](k),p=await Actions[J(0x1d6)]('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||'123\x20Glorious\x20Way',q=await Actions[J(0x1d6)](J(0x1df)),r=await Actions['ask'](J(0x20a))||J(0x1e4),s=await Actions[J(0x1d6)]('State\x20[HI]:\x20')||'HI',t=await Actions['ask'](J(0x1ef))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x203)](J(0x213));const v=await Actions[J(0x1d6)](J(0x1fc))||J(0x202),w=await Actions[J(0x1d6)](J(0x208))||J(0x20d),x=await Actions[J(0x1d6)]('Contact\x20Email\x20[mail@example.com]:\x20')||'mail@example.com',y=await Actions[J(0x1f7)](J(0x1ee)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!=='PERSON'){const C=await Actions[J(0x1d6)](J(0x1dd))||'My\x20Comanpy,\x20LLC.';z[J(0x201)]=C;}const A=h||0x0*parseInt(l);Log['notice'](J(0x212)),Log['warn'](A+'\x20'+i+'\x20for\x20'+l+J(0x209)+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[J(0x1f7)](J(0x1f4));B&&await d[J(0x1f5)](z,c,parseInt(l),y);}}else throw J(0x204);}catch(D){D&&Log[J(0x203)](D),process[J(0x1e3)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a17k=a17d;function a17c(){const n=['apply','error','exit','371BBkpWu','ask','rkp','852870dvGZyA','search','name','ec2describeKeys','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','1284pHRuhW','success','6488aZhJJn','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','forEach','constructor','Please\x20choose\x20a\x20key\x20to\x20delete:','confirm','5663245ohTzWU','(((.+)+)+)+$','209241MQQKQn','maka\x20aws:remove-key-pair','Not\x20deleting\x20keypair','2423XDTDnv','3896811VtuiiJ','40OPtkSb','\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','create','maka\x20aws:rkp','7405596tsHZEB','Deleting\x20a\x20','10gZlSrs','Deleted\x20'];a17c=function(){return n;};return a17c();}(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x18c))/0x1*(-parseInt(h(0x1a1))/0x2)+-parseInt(h(0x189))/0x3*(-parseInt(h(0x18e))/0x4)+-parseInt(h(0x187))/0x5+-parseInt(h(0x19c))/0x6+parseInt(h(0x199))/0x7*(parseInt(h(0x1a3))/0x8)+parseInt(h(0x18d))/0x9*(parseInt(h(0x194))/0xa)+-parseInt(h(0x192))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xbeaa8));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a['toString']()[j(0x19d)](j(0x188))['toString']()[j(0x1a6)](a17a)[j(0x19d)](j(0x188));});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-0x185;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(0x190)]({'name':'remove-key-pair','aliases':[a17k(0x19b)],'usage':a17k(0x18a),'validOpts':[],'shortDesc':a17k(0x1a4),'description':a17k(0x18f),'examples':[a17k(0x18a),a17k(0x191)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x19f)]();let c=undefined;const d=await Actions[l(0x19a)](l(0x185));b?.[l(0x1a5)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x19e)]);});if(!c)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions[l(0x186)](l(0x193)+c+l(0x1a0),![]);f?(await a['deleteKeyPair'](c),Log[l(0x1a2)](l(0x195)+c)):Log[l(0x197)](l(0x18b)),process[l(0x198)](0x0);}catch(g){g&&Log['error'](g),process[l(0x198)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(0x11b))/0x1*(parseInt(m(0x12b))/0x2)+parseInt(m(0x115))/0x3*(-parseInt(m(0x11c))/0x4)+parseInt(m(0x140))/0x5*(-parseInt(m(0x134))/0x6)+parseInt(m(0x117))/0x7+parseInt(m(0x124))/0x8*(parseInt(m(0x112))/0x9)+parseInt(m(0x13a))/0xa*(-parseInt(m(0x143))/0xb)+-parseInt(m(0x12e))/0xc*(-parseInt(m(0x127))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x8c8cd));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a['toString']()[o(0x123)]('(((.+)+)+)+$')['toString']()[o(0x137)](a18a)[o(0x123)](o(0x139));});a18a();import a18e from'path';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x110;let f=c[d];return f;},a18d(a,b);}import a18f from'fs';function a18c(){const r=['private','host','maka\x20aws:set-host\x20--env\x20dev','\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','parse','search','6072RjUwtn','success','getMakaProjectConfig','3952AjEaOO','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','public','stringify','74UCmVuz','fsi','set-host','48912JUtngT','ssh.json','getEnvFromShorthand','isFile','maka\x20aws\x20set-host','\x0aSaved\x20host\x20','158934tslvfu','utf8','publicIp','constructor','join','(((.+)+)+)+$','3632020cPPehV','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','chooseInstance','\x20IP\x20to\x20','sep','env','15JzgQXN','readFileSync','privateIp','22FHkohq','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','getAppConfigPath','6057KIHIOD','maka\x20aws:sth\x20--env\x20prod','apply','8538TYysXp','config/ssh.json','388451sbRVzz','cat\x20','writeFileSync','ask','3994tKFSWu','388LqmmKF','template'];a18c=function(){return r;};return a18c();}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['create']({'name':a18p(0x12d),'aliases':['sth'],'usage':a18p(0x132),'mustBeInMakaProject':!![],'requiredOpts':[a18p(0x13f)],'validOpts':[],'shortDesc':a18p(0x128),'description':a18p(0x121),'examples':[a18p(0x120),a18p(0x113)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this['fsi'][q(0x130)](b[q(0x13f)]),f=this[q(0x12c)][q(0x111)](d),g=this[q(0x12c)][q(0x126)](),h=await c[q(0x13c)](),i=a18e[q(0x138)](f,q(0x12f));!this[q(0x12c)][q(0x131)](i)&&await this[q(0x12c)][q(0x11d)]({'srcPath':q(0x116),'destPath':i,'context':{'app':g['appName']},'config':g});const j=JSON[q(0x122)](a18f[q(0x141)](i,q(0x135))),k=await Actions[q(0x11a)](q(0x13b))||q(0x129);if(k){if(k===q(0x129)||k===q(0x11e)){if(k==='public')j[q(0x11f)]=h?.[q(0x136)];else k===q(0x11e)&&(j[q(0x11f)]=h?.[q(0x142)]);}else throw q(0x110);}else j['host']=h?.[q(0x142)];a18f[q(0x119)](a18e[q(0x138)](f,q(0x12f)),JSON[q(0x12a)](j,null,0x2)),execSync(q(0x118)+a18e[q(0x138)](f,q(0x12f)),{'stdio':'inherit'}),Log[q(0x125)](q(0x133)+k+q(0x13d)+f+a18e[q(0x13e)]+q(0x12f));}catch(l){l&&Log['error'](l),process['exit'](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(0x1c8))/0x1+-parseInt(f(0x1c7))/0x2+parseInt(f(0x1d0))/0x3+-parseInt(f(0x1be))/0x4+-parseInt(f(0x1c5))/0x5+parseInt(f(0x1c2))/0x6*(-parseInt(f(0x1bd))/0x7)+parseInt(f(0x1d2))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x3f1b5));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x1b8)]()['search'](h(0x1d3))[h(0x1b8)]()[h(0x1ca)](a19a)['search'](h(0x1d3));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a19d(a,b);}Command[a19i(0x1ba)]({'name':a19i(0x1c3),'aliases':['ti'],'usage':a19i(0x1c6),'validOpts':[],'shortDesc':a19i(0x1bf),'description':a19i(0x1cf),'examples':[a19i(0x1c6),a19i(0x1c4)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x1ce)]();if(b?.['instanceId']&&b?.[j(0x1c9)]==='running'){const c=await Actions['confirm'](j(0x1d1)+b[j(0x1cd)]+j(0x1b9));c?a[j(0x1bb)]({'instanceId':b[j(0x1b6)]}):Log['error'](j(0x1cc)+b[j(0x1cd)]+j(0x1b7));}else Log['error'](j(0x1c1));}catch(d){d&&Log[j(0x1c0)](d),process[j(0x1bc)](0x1);}},a19e);function a19c(){const k=['7684960keNeaA','(((.+)+)+)+$','instanceId','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','toString','\x20Ready?','create','ec2terminateInstance','exit','32179JXDfuH','477428VEWAlC','Terminate\x20an\x20EC2\x20instance','error','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','498fqoFmy','terminate-instance','maka\x20aws:ti','17590HMjUiy','maka\x20aws:terminate-instance','405600ENTYyV','203381wciuZT','status','constructor','apply','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','name','chooseInstance','\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','625416jepUyb','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'];a19c=function(){return k;};return a19c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a20c(){var i=['search','1437485NldrKK','280xzgZlf','apply','74877ZpOZzh','(((.+)+)+)+$','1296216Kxfibw','303352RpPKxS','6pnAmbS','8CukjPA','1868671lIUfdi','1515ZPlrdy','3713520GPujOm','constructor'];a20c=function(){return i;};return a20c();}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x17e))/0x1+parseInt(f(0x181))/0x2+-parseInt(f(0x177))/0x3*(parseInt(f(0x17c))/0x4)+-parseInt(f(0x17b))/0x5+-parseInt(f(0x174))/0x6*(parseInt(f(0x176))/0x7)+parseInt(f(0x175))/0x8*(parseInt(f(0x180))/0x9)+parseInt(f(0x178))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x25241));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()[h(0x17a)](h(0x17f))['toString']()[h(0x179)](a20a)[h(0x17a)](h(0x17f));});a20a();function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x174;var f=c[d];return f;},a20d(a,b);}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21r=a21d;(function(a,b){const o=a21d,c=a();while(!![]){try{const d=parseInt(o(0x19d))/0x1*(parseInt(o(0x1ac))/0x2)+-parseInt(o(0x1bf))/0x3+parseInt(o(0x1a5))/0x4*(parseInt(o(0x1a6))/0x5)+-parseInt(o(0x1a3))/0x6+-parseInt(o(0x19b))/0x7+parseInt(o(0x193))/0x8+parseInt(o(0x197))/0x9*(parseInt(o(0x1a0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xb2205));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a21d;if(c){const e=c[p(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const q=a21d;return a21a[q(0x192)]()[q(0x19c)](q(0x1b8))[q(0x192)]()[q(0x1b7)](a21a)[q(0x19c)](q(0x1b8));});a21a();function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x191;let f=c[d];return f;},a21d(a,b);}import a21e from'path';import a21f from'fs';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[a21r(0x195)]({'name':a21r(0x199),'usage':a21r(0x19a),'validOpts':[a21r(0x196)],'aliases':['b'],'shortDesc':a21r(0x1ab),'mustBeInMakaProject':!![],'description':a21r(0x1a7),'examples':['maka\x20build']},async function(a,b){const s=a21r;try{this['fsi'][s(0x1aa)]()?Log[s(0x194)](s(0x1b4)):(Log['warn'](s(0x1ad)),execSync(s(0x1a1),{'stdio':'inherit'}));await this[s(0x1ba)][s(0x1c0)](s(0x1b2),{'shouldInstall':!![]});const c=b['force'];if(!c)try{const g=this[s(0x1ba)][s(0x1bb)](),h=this[s(0x1ba)]['getProjectMeteorVersion'](),i=a21g['gt'](g,h);if(i){const j=await Actions[s(0x1bd)](s(0x1b3)+h+s(0x1ae)+g+s(0x1b6));j&&this['fsi'][s(0x1a2)](s(0x1b9),[s(0x1c1),g]);}}catch(k){Log[s(0x1b5)](s(0x198)+k);}const d=[this['fsi'][s(0x1b0)]({'pathParts':['build']})]['concat'](process[s(0x191)][s(0x1a4)](0x3)),f=a21e[s(0x1b1)](this[s(0x1ba)][s(0x1b0)]({}),s(0x199),s(0x1a8));if(a21f[s(0x19f)](f)){const l=c??await Actions[s(0x1bd)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!l)throw Log[s(0x1b5)]('Aborted.');}d[s(0x1bc)]((m,n)=>{const t=s;m===t(0x1be)&&d[t(0x19e)](n,0x2);}),this[s(0x1ba)][s(0x1a2)](s(0x199),d);}catch(m){console[s(0x1b5)](m),process[s(0x1a9)](0x0);}});function a21c(){const u=['5479947iIvBwh','Failed\x20to\x20check\x20or\x20update\x20Meteor\x20version:\x20','build','maka\x20build','7682199aoxsTa','search','2kxuJLj','splice','existsSync','30sJUfFk','maka\x20install\x20--force','invokeMeteorCommand','5789964Wrzoep','slice','20sOptZt','196935KOJnxG','\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','app.tar.gz','exit','isMeteorInstalled','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','554276wxuWVO','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','apply','pathFromProject','join','autoupdate','This\x20project\x27s\x20meteor\x20version\x20(','Meteor\x20is\x20installed.','error',').\x20Update?','constructor','(((.+)+)+)+$','update','fsi','getGlobalMeteorVersion','forEach','confirm','--force','1012191GZHnfe','checkMeteorPackage','--release','argv','toString','4412744EYOdxS','notice','create','force'];a21c=function(){return u;};return a21c();}export default BuildCommand;
|