@maka/maka-cli 4.12.5 → 4.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.6",
|
|
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
|
+
function a0c(){const A=['Too\x20few\x20options','sort','Command\x20not\x20found','Command.create\x20requires\x20some\x20options!','keys','search','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','maxOptsLength','2219oneHZJ','assign','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','validateParams','3179826kRmwio','validateMakaProject','apply','help','bright','addCommand','mustBeLoggedIn','minArgLength','toString','create','LIGHT','bind','constructor','join','Alias','mustBeInMakaProject','usage','push','Sub-Commands:','25388CSqDGz','murder','565792ZHUpfO','tableList','Command\x20requires\x20a\x20name','maxArgLength','There\x20is\x20no\x20Meteor\x20application\x20here','6160ShbrTL','notice','Command\x20','Too\x20few\x20arguments','Too\x20many\x20options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','number','run','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','function','14328JfoZTq','forEach','(((.+)+)+)+$','901995hrIdVH','_handler','options','unshift','aliases','find','error','setColorMode','name','Please\x20run\x20\x22maka\x20login\x22','length','header','match','pallet','Command\x20format\x20is\x20incorrect','play','localeCompare','Name','1158800FLtqFl','DARK','light','addCommand\x20requires\x20a\x20Command\x20instance','Too\x20many\x20arguments','Description','minOptsLength','split','fsi','430Otqqmn','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','validateMeteorInstall','maybeProxyCommandToMeteor','_commands','exit','shortDesc','generate','Command\x20requires\x20a\x20handler\x20function'];a0c=function(){return A;};return a0c();}const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0xdb))/0x1+parseInt(n(0xdd))/0x2+-parseInt(n(0x98))/0x3+parseInt(n(0xaa))/0x4+-parseInt(n(0xb3))/0x5*(parseInt(n(0x95))/0x6)+-parseInt(n(0xc4))/0x7*(parseInt(n(0xe2))/0x8)+parseInt(n(0xc8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x24b7f));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0xd0)]()[p(0xc1)](p(0x97))['toString']()[p(0xd4)](a0a)['search'](p(0x97));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x92;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{[a0q(0x9a)];[a0q(0xb7)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x93));if(!a[r(0xa0)])throw new Error(r(0xdf));if(typeof b!==r(0x94))throw new Error(r(0xbb));this[r(0x9a)]=Object[r(0xc5)]({},a),this[r(0xa0)]=this[r(0x9a)][r(0xa0)],this[r(0xb7)]=[],this[r(0x99)]=b[r(0xd3)](this);}static[a0q(0xd1)](a,b,c){const s=a0q;if(!a)throw new Error(s(0xbf));if(typeof b!==s(0x94))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.['options']?.[s(0xa0)]}),c[s(0xcd)](d),d;}['addCommand'](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0xad));this['_commands']['push'](a);}async[a0q(0x92)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0xb2)]['getGlobalConfig'](),d=c[u(0xa5)]===u(0xac)?ColorMode[u(0xd2)]:ColorMode[u(0xab)];Log[u(0x9f)](d),await this['validateMakaSubscription'](this);}catch(f){Log['error'](f),process[u(0xb8)](0x0);}return await this['invoke'](a,b);}catch(g){process[u(0xb8)](0x1);}}async['invoke'](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x9a)];try{if(this['options'][v(0xa0)]!==v(0xba)){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[v(0xb7)][v(0xa2)]>=0x0,g=b[v(0xcb)]||b['h'];if(f&&g){if(this[v(0xb7)][v(0xa2)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x9a)][v(0xd7)]){const h=this[v(0xc9)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x9a)][v(0xce)]){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[v(0x9a)]['mustHaveMeteorInstalled']){const j=this[v(0xb5)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x9a)][v(0xcf)]===v(0xe8)){if(a['length']<this[v(0x9a)][v(0xcf)]){Log[v(0x9e)](v(0xe5));throw new UsageError();}}if(typeof this['options'][v(0xe0)]===v(0xe8)){if(a['length']>=this[v(0x9a)][v(0xe0)]){Log[v(0x9e)](v(0xae));throw new UsageError();}}if(typeof this['options'][v(0xb0)]==='number'){if(Object[v(0xc0)](b)['length']<this[v(0x9a)][v(0xb0)]){Log['error'](v(0xbc));throw new UsageError();}}if(typeof this[v(0x9a)]['maxOptsLength']===v(0xe8)){if(Object[v(0xc0)](b)[v(0xa2)]>=this[v(0x9a)][v(0xc3)]){Log['error'](v(0xe6));throw new UsageError();}}}}b=await this[v(0xc7)](a,b,this[v(0x9a)]),_prevCmd=a[0x0];}return await this['_handler']['call'](this,a,b);}catch(k){Log[v(0xd8)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0xe3)](v(0xda)),this[v(0xde)](this[v(0xb7)]),Log[v(0xa3)](v(0xc2));else{if(k instanceof MustBeInProjectError)Log['error'](v(0xb4));else{if(k instanceof NoMeteorFoundError)Log['error'](v(0xe7)),Log[v(0xe3)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(k instanceof NoMeteorAppFoundError)Log[v(0x9e)](v(0xe1));else k instanceof MustBeLoggedIn&&(Log[v(0x9e)](v(0xc6)),Log[v(0xe3)](v(0xa1)));}}}process[v(0xb8)](0x1);}}[a0q(0xde)](a){const w=a0q,b=new a0e({});b[w(0xd9)]([w(0xa9),w(0xd6),w(0xaf)]),a[w(0xbd)]((c,d)=>{const x=w;return c[x(0xa0)][x(0xa8)](d[x(0xa0)]);})[w(0x96)](c=>{const y=w;c[y(0xa0)]!==y(0xdc)&&c[y(0xa0)]!==y(0xa7)&&b[y(0xd9)]([c[y(0xa0)],c[y(0x9c)](),c[y(0xb9)]()]);}),Log[w(0xcc)](b[w(0xd0)]());}async['processAndRunCommand'](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0xb1)](':');if(!d||d[z(0xa2)]===0x0)throw z(0xa6);if(d[0x0]===z(0xba)||d[0x0]==='g'&&d[z(0xa2)]>0x1){const h=this[z(0xb7)][z(0x9d)](j=>j['match'](z(0xba)));if(!h)throw z(0xbe);await this['validateMakaSubscription'](h);const i=d['slice'](0x1)[z(0xd5)](':');return b[z(0x9b)](i),await h[z(0x92)](b,c);}let f=this[z(0xb7)],g;for(const j of d){g=f['find'](k=>k[z(0xa4)](j));if(!g)try{await this[z(0xb2)][z(0xb6)]();}catch(k){throw z(0xe4)+j+'\x20not\x20found';}g&&(await this['validateMakaSubscription'](g),f=g[z(0xb7)]);}if(g){const l=await g[z(0x92)](b,c);return l;}else throw z(0xbe);}catch(m){Log['error'](m),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x184))/0x1+parseInt(f(0x18b))/0x2+parseInt(f(0x18a))/0x3*(-parseInt(f(0x181))/0x4)+-parseInt(f(0x18e))/0x5+-parseInt(f(0x182))/0x6+parseInt(f(0x183))/0x7*(-parseInt(f(0x18d))/0x8)+parseInt(f(0x18c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x7ea51));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x187)]()[h(0x189)]('(((.+)+)+)+$')[h(0x187)]()[h(0x186)](a1a)[h(0x189)](h(0x185));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x181;var f=c[d];return f;},a1d(a,b);}import'./build/_index.js';function a1c(){var i=['3wsjHPr','1342874sTHKyX','12598056aRXIRf','461400noJWJS','4636345SudIlV','1127692CTtPoF','488820wmPwRj','42QWmtYX','84228iGxwMw','(((.+)+)+)+$','constructor','toString','apply','search'];a1c=function(){return i;};return a1c();}import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2m=a2d;
|
|
1
|
+
const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x107))/0x1+-parseInt(h(0x115))/0x2*(parseInt(h(0xf7))/0x3)+-parseInt(h(0xfe))/0x4*(-parseInt(h(0xf8))/0x5)+-parseInt(h(0x108))/0x6*(-parseInt(h(0xfa))/0x7)+parseInt(h(0x100))/0x8+-parseInt(h(0xf9))/0x9+-parseInt(h(0x109))/0xa*(-parseInt(h(0x11d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x1ab01));function a2c(){const o=['(((.+)+)+)+$','toLowerCase','stdin','openapikey','cert','choices','text','2jCdEth','createInterface','search','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','fsi','Using\x20OpenAI\x20Key\x20','toString','cacert','60104lDFgjU','create','ChatGPT\x20style\x20AI\x20interface','data','stdout','openai','getGlobalConfig','219885qKplIM','7085CmAUEs','186282uOjIgb','623yJxqzd','notice','isFile','question','12EFJUAm','apply','626840XXZWCR','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','Using\x20CA\x20Cert\x20','log','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','exit','askGPT','79442tCvaJL','12756iKmzWz','20gBfomH','message','parse','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','error'];a2c=function(){return o;};return a2c();}const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x117)](j(0x10e))[j(0x11b)]()['constructor'](a2a)['search'](j(0x10e));});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xf5;let f=c[d];return f;},a2d(a,b);}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x116)]({'input':process[k(0x110)],'output':process[k(0x121)]});c[k(0xfd)]('You:\x20',async d=>{const l=k;if(d[l(0x10f)]()===l(0x105)){c['close']();return;}try{const e=await HTTPS[l(0x106)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x10b)](e[l(0x120)]);if(f[l(0x10d)])throw new Error(f[l(0x10d)][l(0x10a)]);Log['bright']('GPT:\x20'+f?.[l(0x113)][0x0]?.[l(0x114)]['trim']());}catch(g){Log[l(0x10d)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x11e)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2m(0x11c),a2m(0x111)],'shortDesc':a2m(0x11f),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x11c)]&&(this[n(0x119)]['isFile'](b['cacert'])?(c=b[n(0x11c)],Log[n(0xfb)](n(0x102)+c)):Log[n(0x10d)](n(0x104)+c));const d=await this[n(0x119)][n(0xf6)]();if(d['cert']){if(this[n(0x119)][n(0xfc)](d['cert']))c=d[n(0x112)];else throw Log['error'](n(0x10c)+c);}let f='';if(b['openapikey'])f=b[n(0x111)],Log[n(0xfb)](n(0x11a)+f);else{if(d[n(0xf5)])f=d[n(0xf5)];else throw Log[n(0x10d)](n(0x101));}console[n(0x103)](n(0x118)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x105)](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(0x1ae))/0x1*(parseInt(f(0x1a7))/0x2)+parseInt(f(0x1a9))/0x3*(parseInt(f(0x1a3))/0x4)+parseInt(f(0x1a4))/0x5+parseInt(f(0x1ab))/0x6*(-parseInt(f(0x1a6))/0x7)+-parseInt(f(0x1a8))/0x8*(parseInt(f(0x1b2))/0x9)+parseInt(f(0x1ad))/0xa*(-parseInt(f(0x1af))/0xb)+-parseInt(f(0x1a5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x95d81));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x1b0)]()[h(0x1aa)](h(0x1b1))[h(0x1b0)]()[h(0x1b3)](a3a)[h(0x1aa)]('(((.+)+)+)+$');});function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x1a3;var f=c[d];return f;},a3d(a,b);}a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';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=['4872885QrJLIY','9218700WcELfU','7RcjYmb','1970256tKxlmj','1000536wsDpGp','138kxvCsv','search','4921332ulQhoO','apply','80lCejck','1FfRbqh','235268xconwU','toString','(((.+)+)+)+$','27khOSyv','constructor','68592JyiUIV'];a3c=function(){return i;};return a3c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4c(){const j=['813507Dkqegs','8GQwQZL','search','360507XAvqdm','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','9mRvNyw','apply','(((.+)+)+)+$','7029308YNSiIl','30AyeCyS','73155qBiggS','1881763DLfggQ','maka\x20aws:<sub-command>','64dBsRLy','14767TBCBGj','4SffRQy','aws','84bWboJE','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','1036650lPloWC'];a4c=function(){return j;};return a4c();}const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x19d))/0x1*(-parseInt(f(0x1a4))/0x2)+parseInt(f(0x1a3))/0x3*(parseInt(f(0x19e))/0x4)+-parseInt(f(0x199))/0x5*(-parseInt(f(0x198))/0x6)+-parseInt(f(0x192))/0x7*(parseInt(f(0x19c))/0x8)+parseInt(f(0x194))/0x9*(parseInt(f(0x1a2))/0xa)+-parseInt(f(0x197))/0xb+-parseInt(f(0x1a0))/0xc*(-parseInt(f(0x19a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x55ba6));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x195)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()['search']('(((.+)+)+)+$')['toString']()['constructor'](a4a)[h(0x191)](h(0x196));});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x191;let f=c[d];return f;},a4d(a,b);}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command['create']({'name':a4i(0x19f),'usage':a4i(0x19b),'validOpts':[],'shortDesc':a4i(0x1a1),'description':a4i(0x193)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5i=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xc3))/0x1*(-parseInt(g(0xc1))/0x2)+-parseInt(g(0xb4))/0x3+parseInt(g(0xad))/0x4+-parseInt(g(0xaf))/0x5*(-parseInt(g(0xb2))/0x6)+-parseInt(g(0xc5))/0x7*(parseInt(g(0xac))/0x8)+parseInt(g(0xb3))/0x9*(-parseInt(g(0xc4))/0xa)+parseInt(g(0xc0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xcdb89));const a5b=(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;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0xc7)]()[h(0xbd)](h(0xb9))['toString']()['constructor'](a5a)[h(0xbd)](h(0xb9));});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xa7;let f=c[d];return f;},a5d(a,b);}a5a();function a5c(){const k=['maka\x20aws:cecr\x20--name=my-new-repo','ecrCreateRepository','region','error','name','notice','8oldjXc','6602304zkwAwN','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','5PHJoVK','httpStatusCode','cecr','5906118LCPCgj','1503ifoRqd','2507889Lnmjjo','Repository\x20URI:\x20','create-ecr','repository','repositoryUri','(((.+)+)+)+$','Repository\x20created\x20successfully.','success','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','search','$metadata','Create\x20an\x20Elastic\x20Container\x20Repository','4790247fPzbQg','630118CPVVyC','exit','2LOAeta','35110YyGROc','10049137fmmeUZ','create','toString'];a5c=function(){return k;};return a5c();}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';Command[a5i(0xc6)]({'name':a5i(0xb6),'aliases':[a5i(0xb1)],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5i(0xaa)],'validOpts':[a5i(0xa8)],'shortDesc':a5i(0xbf),'examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5i(0xc8),a5i(0xae)]},async function(a,b){const j=a5i;try{const c=new AWS(),d=await c[j(0xa7)](b);d&&d[j(0xbe)][j(0xb0)]===0xc8&&d['repository']?(Log[j(0xbb)](j(0xba)),Log[j(0xab)](j(0xb5)+d[j(0xb7)][j(0xb8)])):Log[j(0xa9)](j(0xbc)),process['exit'](0x0);}catch(f){Log[j(0xa9)](f),process[j(0xc2)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6k=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d
|
|
1
|
+
const a6k=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0x139))/0x1+-parseInt(i(0x12a))/0x2+parseInt(i(0x126))/0x3*(-parseInt(i(0x134))/0x4)+-parseInt(i(0x13f))/0x5+parseInt(i(0x131))/0x6*(parseInt(i(0x13d))/0x7)+-parseInt(i(0x137))/0x8*(-parseInt(i(0x12b))/0x9)+parseInt(i(0x135))/0xa*(parseInt(i(0x136))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xc1b9b));const a6b=(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;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0x13a)]()['search'](j(0x133))[j(0x13a)]()['constructor'](a6a)['search'](j(0x133));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x126;let f=c[d];return f;},a6d(a,b);}function a6c(){const m=['563160VqxePa','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','1103461UIRCZl','toString','Set\x20hosted\x20zone\x20to\x20an\x20instance?','domain','2709LMjZwE','error','6760010fyqIVQ','141147XINutG','maka\x20aws:chz\x20--domain=example.com','linkEC2ToRoute53','confirm','2526162NGUmXE','189wecUoA','route53CreateHostedZone','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','create-hosted-zone','publicIp','exit','1818DjXYpH','chz','(((.+)+)+)+$','36JOoyPh','33399280XtlsaN','11NBpzgU'];a6c=function(){return m;};return a6c();}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':a6k(0x12e),'aliases':[a6k(0x132)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6k(0x13c)],'validOpts':[],'shortDesc':a6k(0x138),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a6k(0x127)]},async function(a,b){const l=a6k;try{const c=b[l(0x13c)],d=new AWS();d[l(0x12c)](c);const f=await Actions[l(0x129)](l(0x13b));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[l(0x12f)])throw Log['error'](l(0x12d));d[l(0x128)](g['id'],g['publicIp'],c);}else throw'Instance\x20not\x20found';}}catch(h){h&&Log[l(0x13e)](h),process[l(0x130)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x19d))/0x1*(-parseInt(ae(0x164))/0x2)+-parseInt(ae(0x17f))/0x3*(parseInt(ae(0x184))/0x4)+parseInt(ae(0x198))/0x5+-parseInt(ae(0x1b8))/0x6*(-parseInt(ae(0x16d))/0x7)+parseInt(ae(0x1b3))/0x8+parseInt(ae(0x195))/0x9*(parseInt(ae(0x16e))/0xa)+-parseInt(ae(0x172))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xf2f34));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x18d)]()['search'](ag(0x169))['toString']()['constructor'](a7a)[ag(0x179)](ag(0x169));});function a7c(){const au=['Setting\x20AMI\x20ID\x20to\x20','env','desc','7QSODEY','1065380nEXioY','environment','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','18552600FgnQCS','cidr','apply','forEach','deleteSecurityGroup','parse','\x20AMIID:\x20','search','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','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','ID:\x20','ask','3488718mUuvOf','Key-Pair:\x20','createFile','name','create','4odegKz','Web\x20App','sgId','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','\x20:\x20','subnetId','User\x20Data:','getSecurityGroups','getMakaProjectConfig','toString','string','alias','Remove\x20the\x20security\x20group\x20','fsi','user-data','cider','subnet','18ZDcrew','bright','Please\x20choose\x20a\x20key\x20to\x20use:\x20','4674780AYtPll','ec2create','maka-cli','Setting\x20SG\x20ID\x20to:\x20','error','7gWMsYa','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Name','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','ImageID:','\x20DESCRIPTION:\x20','exit','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','**\x20Available\x20Security\x20Groups\x20**','number','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','getConfigFromShorthand','success','22,80,443','Instace\x20Type:\x20','Security\x20Group\x20Name:\x20[','getTime','Instance\x20Count:\x20','readFileSync','No\x20instance\x20has\x20been\x20created.','amiId','Subnet:\x20','10650376bOHYWO','Setting\x20the\x20key-pair\x20to:\x20','join','Would\x20you\x20like\x20to\x20include\x20user\x20data?','\x20AZONE:\x20','10566108FkrfvR','unlinkSync','log','Setting\x20Subnet\x20ID\x20to\x20','**\x20Available\x20key-pairs\x20**','getAppConfigPath','\x20SG\x20NAME:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','split','chooseVPC','ec2describeKeys','1:1','Create\x20new\x20AWS\x20instance','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','notice','confirm','113062JCYloV','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','**\x20Available\x20Subnets\x20**','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','push','(((.+)+)+)+$'];a7c=function(){return au;};return a7c();}a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x154;let f=c[d];return f;},a7d(a,b);}Command[a7ah(0x183)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev','maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x16b)}],'validOpts':[],'shortDesc':a7ah(0x15f),'description':'\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20'},async function(a,b){const ai=a7ah;try{const c=this[ai(0x191)][ai(0x18c)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x191)][ai(0x1a8)](b['env']),i=this[ai(0x191)][ai(0x158)](h),j=g+'-'+h,k=await Actions[ai(0x17e)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x163)](ai(0x187),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x1a9)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log['notice'](ai(0x157));const A=r?r:k,B=await d[ai(0x15d)]({'suggestion':A}),C=await Actions['ask'](ai(0x197))||'-1';if(parseInt(C)<0x0){Log[ai(0x19c)](ai(0x17a)),Log['notice'](ai(0x1b0));return;}B?.[ai(0x175)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x182)],Log[aj(0x1a9)](aj(0x1b4)+r));});}catch(D){Log[ai(0x19c)](D);}l=await d[ai(0x15c)]();const t=await Actions[ai(0x163)](ai(0x19e),!![]);let u;if(t){const E=l===''?await d[ai(0x15c)]():l;u=await Actions['ask'](ai(0x1ac)+k+']')||k;const F=await Actions[ai(0x17e)](ai(0x1a7))||ai(0x1aa),G=F['split'](',');await d['ec2createSG']({'description':ai(0x185),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x18b)](u);if(I===''){Log[ai(0x162)](ai(0x1a5)),J['forEach'](function(L){const ak=ai;L[ak(0x182)]===u?Log[ak(0x162)](ak(0x17d)+L['id']+ak(0x159)+L[ak(0x182)]+'\x20SGID:\x20'+L['sgId']):Log['bright']('ID:\x20'+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x182)]+'\x20SGID:\x20'+L[ak(0x186)]);});const K=await Actions['ask'](ai(0x167)+H+']\x20')||H[ai(0x18d)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x186)],Log[al(0x1a9)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0x1a9)](ai(0x19b)+m+'\x0a');if(m==='')throw Log['error'](ai(0x160));}catch(L){Log[ai(0x19c)](L);}try{const M=0x7e6;Log['notice']('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x171)+M+ai(0x161))[ai(0x18d)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x175)](function(S){const am=ai;if(S[am(0x18f)]==='amazon'){const T=S['Desc'][am(0x15b)]('build\x20on\x20')[0x1];P[am(0x168)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T['date'])[an(0x1ad)]()-new Date(S['date'])[an(0x1ad)]();}),P[ai(0x175)](function(S,T){const ao=ai;Q[ao(0x168)]({'id':T,'amiId':S[ao(0x1b1)],'desc':S['desc']});}),Q[ai(0x175)](function(S){const ap=ai;console[ap(0x155)](ap(0x17d)+S['id']+ap(0x178)+S[ap(0x1b1)]+ap(0x1a2)+S[ap(0x16c)]);});const R=await Actions[ai(0x17e)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q[ai(0x175)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1b1)],Log[aq(0x1a9)](aq(0x16a)+n+aq(0x188)+S[aq(0x16c)]));});if(n==='')throw Log['error'](ai(0x160));}catch(S){Log[ai(0x19c)](S);}try{Log[ai(0x162)](ai(0x166));const T=execSync(ai(0x1a4))[ai(0x18d)](),U=JSON['parse'](T),V=[];U[ai(0x175)](function(X,Y){const ar=ai;V[ar(0x168)]({'id':Y,'cidr':X[ar(0x193)],'az':X['az'],'subnetId':X[ar(0x189)]});}),V[ai(0x175)](function(X){const as=ai;console[as(0x155)]('ID:\x20'+X['id']+'\x20CIDR:\x20'+X[as(0x173)]+as(0x1b7)+X['az']+'\x20SUBNETID:\x20'+X[as(0x189)]);});const W=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x189)],Log[at(0x1a9)](at(0x156)+p));});if(p==='')throw Log[ai(0x19c)](ai(0x160));}catch(X){Log[ai(0x19c)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x15e),Z=Y[ai(0x15b)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x1a6)&&Log[ai(0x1a9)](ai(0x1a0)+Z+':'+a0);}catch(a1){Log[ai(0x19c)](a1);}try{const a2=await Actions[ai(0x17e)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||'t3.micro';typeof a2===ai(0x18e)&&(o=a2);}catch(a3){Log[ai(0x19c)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0x1b6),![]);a4&&(x=a7f[ai(0x1b5)](i,ai(0x192)),Log[ai(0x162)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x191)][ai(0x181)]({'filePath':x,'data':''}),await Actions[ai(0x163)](ai(0x15a)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x177)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x17b))[ai(0x18d)]())[0x0][ai(0x194)];Log[ai(0x162)](ai(0x1a1)+n),Log[ai(0x162)](ai(0x1ae)+v+':'+w),Log[ai(0x162)](ai(0x1ab)+o),Log[ai(0x162)](ai(0x180)+r),Log[ai(0x162)]('Security\x20Group:\x20'+m),Log[ai(0x162)](ai(0x1b2)+a6);if(x){Log[ai(0x162)](ai(0x18a)+x);const a8=a7g[ai(0x1af)](x)[ai(0x18d)]();Log[ai(0x162)](a8);}const a7=await Actions[ai(0x163)](ai(0x17c));if(a7){const a9=await d[ai(0x199)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x19a)},{'Key':ai(0x16f),'Value':h},{'Key':ai(0x19f),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1a9)](ai(0x165)),Log[ai(0x196)](ai(0x170)));}else{Log[ai(0x162)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions[ai(0x163)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f['isFile'](s)&&a7g[ai(0x154)](s));const ab=await Actions['confirm'](ai(0x190)+m+'\x20?',!![]);ab&&d[ai(0x176)](m);}}catch(ac){Log[ai(0x19c)](ac);}}catch(ad){ad&&Log[ai(0x19c)](ad),process[ai(0x1a3)](0x0);}},a7e);
|
|
1
|
+
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x1cb))/0x1+-parseInt(ae(0x1fc))/0x2+-parseInt(ae(0x1d3))/0x3+-parseInt(ae(0x1f1))/0x4+parseInt(ae(0x1d8))/0x5+-parseInt(ae(0x20f))/0x6+-parseInt(ae(0x1f9))/0x7*(-parseInt(ae(0x1de))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x1c8a3));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x213)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a['toString']()['search']('(((.+)+)+)+$')[ag(0x1b3)]()[ag(0x1d0)](a7a)[ag(0x204)](ag(0x1ed));});a7a();import a7e from'./aws.command.js';function a7c(){const au=['**\x20Available\x20Security\x20Groups\x20**','name','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','1267116aQvwag','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Desc','build\x20on\x20','apply','\x20AZONE:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','\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','date','string','Setting\x20Subnet\x20ID\x20to\x20','maka-cli','sort','Security\x20Group\x20Name:\x20[','Instance\x20Count:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','bright','toString','user-data','ec2describeKeys','env','\x20DESCRIPTION:\x20','Setting\x20AMI\x20ID\x20to\x20','success','Setting\x20the\x20key-pair\x20to:\x20','getTime','Instace\x20Type:\x20','subnet','number','amazon','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Web\x20App','Name','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','getSecurityGroups','split','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','join','\x20SGID:\x20','\x20SUBNETID:\x20','Key-Pair:\x20','16976bNyBsz','Creating\x20user\x20data\x20file\x20in\x20','Remove\x20the\x20security\x20group\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','error','constructor','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','create','388014dxHFbU','confirm','ImageID:','chooseVPC','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','115270gGJGTQ','getMakaProjectConfig','22,80,443','**\x20Available\x20Subnets\x20**','subnetId','create-instance','8YWndbI','cider','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','**\x20Available\x20key-pairs\x20**','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Create\x20new\x20AWS\x20instance','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','push','No\x20instance\x20has\x20been\x20created.','fsi','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','\x20SG\x20NAME:\x20','maka\x20aws:create-instance','\x20:\x20','exit','(((.+)+)+)+$','EC2\x20Name:\x20[','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','isFile','618692OwCgSJ','log','ID:\x20','readFileSync','t3.micro','ec2createSG','getConfigFromShorthand','desc','4771389mNNUfn','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','amiId','219122uMOGWo','notice','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','ask','forEach','Security\x20Group:\x20','sgId','maka\x20aws:ci\x20--env\x20prod','search','parse','createFile','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Setting\x20SG\x20ID\x20to:\x20','created-by','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ec2create'];a7c=function(){return au;};return a7c();}import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x1d2)]({'name':a7ah(0x1dd),'aliases':['ci'],'usage':a7ah(0x1ea),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a7ah(0x203)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x1b6)}],'validOpts':[],'shortDesc':a7ah(0x1e3),'description':a7ah(0x216)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x1e7)][ai(0x1d9)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x1e7)][ai(0x1f7)](b[ai(0x1b6)]),i=this[ai(0x1e7)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x1ff)](ai(0x1ee)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0x1c3),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x1b9)](ai(0x1ba)+r);}else try{Log[ai(0x1fd)](ai(0x1e1));const A=r?r:k,B=await d[ai(0x1b5)]({'suggestion':A}),C=await Actions[ai(0x1ff)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x1cf)](ai(0x1c0)),Log['notice'](ai(0x1e6));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x20d)],Log[aj(0x1b9)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x1cf)](D);}l=await d[ai(0x1d6)]();const t=await Actions[ai(0x1d4)](ai(0x1fe),!![]);let u;if(t){const E=l===''?await d[ai(0x1d6)]():l;u=await Actions[ai(0x1ff)](ai(0x21c)+k+']')||k;const F=await Actions[ai(0x1ff)](ai(0x1e8))||ai(0x1da),G=F['split'](',');await d[ai(0x1f6)]({'description':ai(0x1c1),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x1c4)](u);if(I===''){Log[ai(0x1fd)](ai(0x20c)),J['forEach'](function(L){const ak=ai;L[ak(0x20d)]===u?Log[ak(0x1fd)]('ID:\x20'+L['id']+ak(0x1e9)+L[ak(0x20d)]+ak(0x1c8)+L['sgId']):Log[ak(0x1b2)]('ID:\x20'+L['id']+ak(0x1e9)+L['name']+ak(0x1c8)+L['sgId']);});const K=await Actions[ai(0x1ff)](ai(0x1c6)+H+']\x20')||H[ai(0x1b3)]();J[ai(0x200)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x202)],Log[al(0x1b9)](al(0x208)+m+'\x0a'));});}else m=I,Log[ai(0x1b9)](ai(0x208)+m+'\x0a');if(m==='')throw Log[ai(0x1cf)](ai(0x20a));}catch(L){Log[ai(0x1cf)](L);}try{const M=0x7e6;Log[ai(0x1fd)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0x20e)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')[ai(0x1b3)](),O=JSON[ai(0x205)](N),P=[],Q=[];O[ai(0x200)](function(S){const am=ai;if(S['alias']===am(0x1bf)){const T=S[am(0x211)]['split'](am(0x212))[0x1];P[am(0x1e5)]({'amiId':S['ID'],'desc':S[am(0x211)],'date':T});}}),P[ai(0x21b)](function(S,T){const an=ai;return new Date(T[an(0x217)])['getTime']()-new Date(S[an(0x217)])[an(0x1bb)]();}),P[ai(0x200)](function(S,T){const ao=ai;Q[ao(0x1e5)]({'id':T,'amiId':S[ao(0x1fb)],'desc':S[ao(0x1f8)]});}),Q[ai(0x200)](function(S){const ap=ai;console['log'](ap(0x1f3)+S['id']+'\x20AMIID:\x20'+S[ap(0x1fb)]+ap(0x1b7)+S['desc']);});const R=await Actions[ai(0x1ff)](ai(0x1fa))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1fb)],Log['success'](aq(0x1b8)+n+aq(0x1eb)+S[aq(0x1f8)]));});if(n==='')throw Log[ai(0x1cf)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x1cf)](S);}try{Log['notice'](ai(0x1db));const T=execSync(ai(0x1e2))[ai(0x1b3)](),U=JSON[ai(0x205)](T),V=[];U[ai(0x200)](function(X,Y){const ar=ai;V[ar(0x1e5)]({'id':Y,'cidr':X[ar(0x1df)],'az':X['az'],'subnetId':X[ar(0x1dc)]});}),V[ai(0x200)](function(X){const as=ai;console[as(0x1f2)](as(0x1f3)+X['id']+'\x20CIDR:\x20'+X['cidr']+as(0x214)+X['az']+as(0x1c9)+X[as(0x1dc)]);});const W=await Actions[ai(0x1ff)](ai(0x1e4))||'0';V[ai(0x200)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log['success'](at(0x219)+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x1ff)](ai(0x1d7))||'1:1',Z=Y[ai(0x1c5)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0x1be)&&typeof parseInt(a0)===ai(0x1be)&&Log[ai(0x1b9)](ai(0x1e0)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions['ask'](ai(0x1ce))||ai(0x1f5);typeof a2===ai(0x218)&&(o=a2);}catch(a3){Log[ai(0x1cf)](a3);}let x='';try{const a4=await Actions[ai(0x1d4)](ai(0x215),![]);a4&&(x=a7f[ai(0x1c7)](i,ai(0x1b4)),Log[ai(0x1fd)](ai(0x1cc)+x),await this[ai(0x1e7)][ai(0x206)]({'filePath':x,'data':''}),await Actions[ai(0x1d4)]('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x205)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x1d1))[ai(0x1b3)]())[0x0][ai(0x1bd)];Log[ai(0x1fd)](ai(0x1d5)+n),Log[ai(0x1fd)](ai(0x21d)+v+':'+w),Log['notice'](ai(0x1bc)+o),Log[ai(0x1fd)](ai(0x1ca)+r),Log[ai(0x1fd)](ai(0x201)+m),Log[ai(0x1fd)]('Subnet:\x20'+a6);if(x){Log[ai(0x1fd)]('User\x20Data:'+x);const a8=a7g[ai(0x1f4)](x)[ai(0x1b3)]();Log['notice'](a8);}const a7=await Actions[ai(0x1d4)](ai(0x207));if(a7){const a9=await d[ai(0x20b)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x209),'Value':ai(0x21a)},{'Key':'environment','Value':h},{'Key':ai(0x1c2),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x1b9)](ai(0x21e)),Log[ai(0x1b2)](ai(0x210)));}else{Log[ai(0x1fd)](ai(0x1ef));const aa=await Actions[ai(0x1d4)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0x1f0)](s)&&a7g['unlinkSync'](s));const ab=await Actions['confirm'](ai(0x1cd)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log[ai(0x1cf)](ac);}}catch(ad){ad&&Log[ai(0x1cf)](ad),process[ai(0x1ec)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d
|
|
1
|
+
const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x1f1))/0x1+parseInt(g(0x1e8))/0x2*(parseInt(g(0x1eb))/0x3)+parseInt(g(0x1ec))/0x4+parseInt(g(0x1e0))/0x5+-parseInt(g(0x1e2))/0x6*(-parseInt(g(0x1f4))/0x7)+-parseInt(g(0x1e6))/0x8+-parseInt(g(0x1f0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x7fe16));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()['search'](i(0x1ef))[i(0x1f5)]()[i(0x1e4)](a8a)[i(0x1e1)](i(0x1ef));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1de;let f=c[d];return f;},a8d(a,b);}Command[a8j(0x1e7)]({'name':'create-key-pair','aliases':[a8j(0x1e5)],'usage':'maka\x20aws:create-key-pair','examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8j(0x1de)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8j(0x1df),'description':a8j(0x1f2)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x1ee)][k(0x1f3)](b[k(0x1e3)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[k(0x1ea)](f),process[k(0x1ed)](0x0);}},a8e);function a8c(){const l=['create','2NLQyWW','apply','error','3036363vtvayk','1910872wLCFJs','exit','fsi','(((.+)+)+)+$','416682yXjObk','563952EDEgqR','\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','getConfigFromShorthand','91vLxkTi','toString','maka\x20aws:ckp\x20--env\x20prod','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','1066250pakxXV','search','126942OGYDvL','env','constructor','ckp','6752656RrfvvO'];a8c=function(){return l;};return a8c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a9o=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0xce))/0x1+parseInt(m(0xaf))/0x2*(-parseInt(m(0xc9))/0x3)+-parseInt(m(0xca))/0x4*(-parseInt(m(0xbc))/0x5)+parseInt(m(0xbf))/0x6+-parseInt(m(0xb5))/0x7+parseInt(m(0xc2))/0x8*(-parseInt(m(0xb9))/0x9)+-parseInt(m(0xc3))/0xa*(-parseInt(m(0xbb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xf3238));const a9b=(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;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0xc8)]()[n(0xc0)]('(((.+)+)+)+$')[n(0xc8)]()[n(0xad)](a9a)[n(0xc0)](n(0xcd));});function a9c(){const r=['Web\x20App','maka\x20aws:create-secuirty-group','exit','maka\x20aws\x20create-security-group','7121135PewxcI','22,80,443','split','fsi','18lQviCO','csg','649LIjZQZ','5jXuaCw','forEach','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','3495756LHNCfH','search','ask','4314000FXSkPR','329230xTHYip','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','error','name','create','toString','1951617IJQrHp','1307756HPmIZq','List\x20is\x20not\x20all\x20numbers','\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','(((.+)+)+)+$','890218RWGMfE','ec2createSG','constructor','create-security-group','2TDMILg','maka\x20aws:csg'];a9c=function(){return r;};return a9c();}a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xac;let f=c[d];return f;},a9d(a,b);}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[a9o(0xc7)]({'name':a9o(0xae),'aliases':[a9o(0xba)],'usage':a9o(0xb4),'validOpts':[],'shortDesc':a9o(0xbe),'description':a9o(0xcc),'examples':[a9o(0xb2),a9o(0xb0)]},async function(a,b){const p=a9o;try{const c=new AWS(),d=this[p(0xb8)]['getMakaProjectConfig'](),{appName:f}=d,g=await c['chooseVPC'](),h=b[p(0xc6)]?b['name']:''+f,i=await Actions[p(0xc1)]('Security\x20Group\x20Name:\x20['+h+']')||h,j=await Actions[p(0xc1)](p(0xc4))||p(0xb6),k=j[p(0xb7)](',');k[p(0xbd)](l=>{const q=p;if(!l['match'](/^\d+$/))throw q(0xcb);}),await c[p(0xac)]({'description':p(0xb1),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[p(0xc5)](l),process[p(0xb3)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x143))/0x1+parseInt(f(0x147))/0x2*(-parseInt(f(0x139))/0x3)+parseInt(f(0x133))/0x4+parseInt(f(0x13a))/0x5+parseInt(f(0x134))/0x6*(-parseInt(f(0x13e))/0x7)+-parseInt(f(0x14a))/0x8+-parseInt(f(0x140))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x50b2c));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x135)]()[h(0x132)](h(0x141))[h(0x135)]()['constructor'](a10a)['search']('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x132;let f=c[d];return f;},a10d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a10i(0x13c)]({'name':'delete-ecr','aliases':[a10i(0x13d)],'usage':'maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','requiredOpts':['name',a10i(0x142)],'validOpts':[],'shortDesc':a10i(0x137),'examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10i(0x144)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x136)]({'repoName':b[j(0x146)],'region':b[j(0x142)]}),Log[j(0x145)](j(0x149)+b['name']+j(0x148)+b[j(0x142)]+'.'),process['exit'](0x0);}catch(d){Log['error']('Failed\x20to\x20delete\x20the\x20repository:\x20'+b['name']+j(0x13b)+b[j(0x142)]+j(0x14b)+d),process[j(0x13f)](0x1);}},a10e);function a10c(){const k=['create','decr','21ccvhVh','exit','146763qpOBbQ','(((.+)+)+)+$','region','641261jqKijz','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','success','name','526EmNVvB','\x20deleted\x20successfully\x20in\x20region\x20','Repository\x20','2033864gJFHUg','.\x20Error:\x20','search','850552IDCrrW','1050078mRPlhU','toString','ecrDeleteRepository','Delete\x20an\x20Elastic\x20Container\x20Repository','apply','3615gRDZEn','2945675pRYDlv','\x20in\x20region\x20'];a10c=function(){return k;};return a10c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x1b6))/0x1*(parseInt(f(0x1ba))/0x2)+parseInt(f(0x1ae))/0x3+-parseInt(f(0x1b8))/0x4*(-parseInt(f(0x1b7))/0x5)+-parseInt(f(0x1af))/0x6*(parseInt(f(0x1a8))/0x7)+parseInt(f(0x1b2))/0x8*(-parseInt(f(0x1b3))/0x9)+-parseInt(f(0x1a7))/0xa+parseInt(f(0x1ab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x6d589));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(0x1a9)]()[g(0x1b5)]('(((.+)+)+)+$')[g(0x1a9)]()['constructor'](a11a)[g(0x1b5)](g(0x1a6));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a11h(0x1b9)]({'name':a11h(0x1b0),'aliases':['di'],'usage':a11h(0x1aa),'validOpts':[],'shortDesc':a11h(0x1b4),'examples':[a11h(0x1aa),a11h(0x1b1)],'description':a11h(0x1ad)},async function(){const i=a11h;try{const a=new AWS();a['ec2describeInstances']();}catch(b){b&&Log[i(0x1a5)](b),process[i(0x1ac)](0x1);}},a11e);function a11c(){const j=['describe-instances','maka\x20aws:di','360784LApmMN','117QBJXTd','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','search','5TIfUFR','10TXMGHa','743196PvfEEY','create','139738sFlsSf','error','(((.+)+)+)+$','6041310qoUjKy','1015XEylNB','toString','maka\x20aws:describe-instances','20373496nallbL','exit','\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','1702026SeomUD','33246UBNQHz'];a11c=function(){return j;};return a11c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d
|
|
1
|
+
function a12c(){const k=['constructor','610188Thavzz','5746140tvEIeA','error','exit','971682FCparE','dkp','create','(((.+)+)+)+$','1954856XOVcmt','26324YtfXMx','28rXRWXs','22veXhcY','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','18iRmaDM','apply','185eegbgz','search','toString','maka\x20aws:dkp','ec2describeKeys','1455366hidxFv','2055550zPsImR','1uMntbh'];a12c=function(){return k;};return a12c();}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x19e))/0x1*(parseInt(f(0x1a4))/0x2)+-parseInt(f(0x19c))/0x3+parseInt(f(0x1a9))/0x4*(parseInt(f(0x1af))/0x5)+parseInt(f(0x1a0))/0x6*(parseInt(f(0x1aa))/0x7)+-parseInt(f(0x1a8))/0x8*(-parseInt(f(0x1ad))/0x9)+-parseInt(f(0x19d))/0xa*(parseInt(f(0x1ab))/0xb)+-parseInt(f(0x1a1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x3cfa7));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x199)]()[h(0x1b0)]('(((.+)+)+)+$')[h(0x199)]()[h(0x19f)](a12a)['search'](h(0x1a7));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x199;let f=c[d];return f;},a12d(a,b);}Command[a12i(0x1a6)]({'name':'describe-key-pairs','aliases':[a12i(0x1a5)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'shortDesc':a12i(0x1ac),'examples':['maka\x20aws:describe-key-pairs',a12i(0x19a)]},async function(){const j=a12i;try{const a=new AWS();a[j(0x19b)]();}catch(b){b&&Log[j(0x1a2)](b),process[j(0x1a3)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x173;let f=c[d];return f;},a13d(a,b);}const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x189))/0x1+-parseInt(l(0x17e))/0x2*(-parseInt(l(0x174))/0x3)+parseInt(l(0x182))/0x4*(parseInt(l(0x18e))/0x5)+-parseInt(l(0x197))/0x6+-parseInt(l(0x179))/0x7+parseInt(l(0x18f))/0x8*(-parseInt(l(0x188))/0x9)+parseInt(l(0x199))/0xa*(parseInt(l(0x184))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xe3c1e));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a['toString']()[n(0x191)](n(0x183))[n(0x17b)]()[n(0x17c)](a13a)[n(0x191)](n(0x183));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';function a13c(){const r=['maka\x20aws:delete-sg','bright','delete-security-group','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','forEach','7018710SCeprj','confirm','50RIGBhL','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','getMakaProjectConfig','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ask','1605mZxXCg','error','Deleted\x20','exit','sgId','9357131UttmhW','dsg','toString','constructor','\x20SGID:\x20','1286VeNjHO','appName','Deleting\x20a\x20','success','151392fqarPL','(((.+)+)+)+$','7871402RcdjcZ','includes','maka\x20aws:dsg','create','3328794pITwjE','769873yvuOjm','\x20SG\x20NAME:\x20','ID:\x20','name','Not\x20deleting\x20secuirty\x20group','30GRBPPX','32ekMgwp','apply','search'];a13c=function(){return r;};return a13c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x187)]({'name':a13o(0x194),'aliases':[a13o(0x17a)],'usage':a13o(0x192),'validOpts':[],'shortDesc':a13o(0x19a),'examples':[a13o(0x192),a13o(0x186)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x19b)]();d=j[p(0x17f)];}const {sgList:f}=await a['getSecurityGroups']();f['forEach'](function(k){const q=p;c&&k[q(0x18c)][q(0x185)](d)?Log['notice'](q(0x18b)+k['id']+q(0x18a)+k[q(0x18c)]+q(0x17d)+k[q(0x178)]):Log[q(0x193)](q(0x18b)+k['id']+'\x20SG\x20NAME:\x20'+k['name']+q(0x17d)+k['sgId']);});let g='';const h=await Actions[p(0x173)](p(0x195));f[p(0x196)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x175)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x198)](p(0x180)+g+p(0x19c),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x181)](p(0x176)+g)):Log[p(0x175)](p(0x18d)),process[p(0x177)](0x0);}catch(k){k&&Log[p(0x175)](k),process[p(0x177)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x109))/0x1*(parseInt(f(0x10a))/0x2)+-parseInt(f(0x107))/0x3*(-parseInt(f(0x111))/0x4)+-parseInt(f(0x11a))/0x5+parseInt(f(0x117))/0x6*(parseInt(f(0x104))/0x7)+parseInt(f(0x118))/0x8+parseInt(f(0x116))/0x9+-parseInt(f(0x10c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x1dd02));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x103;let f=c[d];return f;},a14d(a,b);}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a['toString']()[h(0x10e)]('(((.+)+)+)+$')[h(0x112)]()[h(0x108)](a14a)[h(0x10e)](h(0x11b));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14c(){const k=['apply','search','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','4772dBrlsj','toString','list-ecr','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','Completed\x20listing\x20ECR\x20repositories.','686556gzZfZn','546WkmXKv','688320gLHsGF','success','1064635QEfPNO','(((.+)+)+)+$','error','5306ybzqkT','create','exit','510ouwlWq','constructor','5815Nxpxmo','76kBuXql','regions','3200410emfdxc'];a14c=function(){return k;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14i(0x105)]({'name':a14i(0x113),'aliases':['lecr'],'usage':a14i(0x10f),'requiredOpts':[],'validOpts':[a14i(0x10b)],'shortDesc':a14i(0x110),'examples':['maka\x20aws:list-ecr','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x10b)]),Log[j(0x119)](j(0x115)),process[j(0x106)](0x0);}catch(d){Log[j(0x103)](j(0x114)+d),process[j(0x106)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x193))/0x1*(parseInt(f(0x18e))/0x2)+-parseInt(f(0x1a7))/0x3*(-parseInt(f(0x1a5))/0x4)+parseInt(f(0x19d))/0x5*(-parseInt(f(0x19c))/0x6)+-parseInt(f(0x197))/0x7+parseInt(f(0x1a8))/0x8+parseInt(f(0x1aa))/0x9*(parseInt(f(0x19e))/0xa)+parseInt(f(0x190))/0xb*(parseInt(f(0x1ac))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xbce57));function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x18e;let f=c[d];return f;},a15d(a,b);}const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x195)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x19f)]()[h(0x191)]('(((.+)+)+)+$')['toString']()[h(0x1a4)](a15a)['search']('(((.+)+)+)+$');});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a15c(){const k=['maka\x20aws:rbi','243vzFLPn','\x20is\x20still\x20running.','372JeGkRF','error','Reboot\x20an\x20EC2\x20instance','2cTPDHF','running','413347vEvGpf','search','rbi','1420253FRvgEX','chooseInstance','apply','status','4021262Phlrih','maka\x20aws:reboot-instance','name','ec2rebootInstance','exit','222JyFOje','203915KzPJkC','33560YOcgaw','toString','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','instanceId','reboot-instance','confirm','constructor','94708GEHSwp','create','195LRYYnG','11863240UCeFkM'];a15c=function(){return k;};return a15c();}Command[a15i(0x1a6)]({'name':a15i(0x1a2),'aliases':[a15i(0x192)],'usage':a15i(0x198),'validOpts':[],'shortDesc':a15i(0x1ae),'examples':[a15i(0x198),a15i(0x1a9)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x194)]();if(b?.[j(0x196)]===j(0x18f)){const c=await Actions[j(0x1a3)](j(0x1a0)+b[j(0x199)]+'\x20Ready?');c&&b[j(0x1a1)]?a[j(0x19a)]({'instanceId':b[j(0x1a1)]}):Log[j(0x1ad)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b['name']+j(0x1ab));}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x1ad)](d),process[j(0x19b)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16H=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d
|
|
1
|
+
const a16H=a16d;function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a16d(a,b);}(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0x1f2))/0x1*(parseInt(E(0x1fe))/0x2)+-parseInt(E(0x1e7))/0x3+parseInt(E(0x207))/0x4*(parseInt(E(0x1f5))/0x5)+parseInt(E(0x20c))/0x6*(parseInt(E(0x211))/0x7)+-parseInt(E(0x1f1))/0x8+-parseInt(E(0x212))/0x9*(-parseInt(E(0x1fb))/0xa)+parseInt(E(0x1ec))/0xb*(parseInt(E(0x1fd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x6d354));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x1f7)]()['search'](G(0x1e3))[G(0x1f7)]()['constructor'](a16a)['search']('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a16c(){const J=['\x20years\x20(','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','35vEGkCx','62325WYjrVu','domain','options','OrganizationName','list','create','Address\x20Line\x202:\x20','ask','confirm','+1.5555555555','Are\x20you\x20sure?','(((.+)+)+)+$','Zip\x20Code\x20[96816]:\x20','Auto\x20Renew:\x20','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','1201725bHSsbs','Choose\x20contact\x20type','Invalid\x202\x20character\x20country\x20code','Duration\x20in\x20years\x20[1]:\x20','maka\x20aws:rdn\x20--domain=example.com','869elpcfW','Contact\x20First\x20Name\x20[Contact]:\x20','123\x20Glorious\x20Way','exit','registerDomain','3024328vYhCmb','41WHZWBA','96816','rdn','256510HEHNdo','contactType','toString','error','mail@example.com','Contact\x20Last\x20Name\x20[Person]:\x20','100ODFzHv','COMPANY','153948HmtFjo','39946DcClxx','apply','PERSON','\x20/\x20Year\x20\x0a','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','\x20/\x20Year)','State\x20[HI]:\x20','\x20is\x20available\x20for:','ASSOCIATION','8skrPnD','Country\x20Code\x20[US]:\x20','warn','register-domain-name','PUBLIC_BODY','1031376UreblH','RESELLER','notice'];a16c=function(){return J;};return a16c();}import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){return Object['values'](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16H(0x217)]({'name':a16H(0x20a),'aliases':[a16H(0x1f4)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a16H(0x213)],'validOpts':[],'shortDesc':'Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','examples':['maka\x20aws:register-domain-name\x20--domain=example.com',a16H(0x1eb)]},async function(a,b){const I=a16H;try{const c=b[I(0x213)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log[I(0x20e)]('The\x20domain\x20name:\x20'+c+I(0x205));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+I(0x201));const j=await Actions[I(0x21a)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':I(0x216),'name':I(0x1f6),'message':I(0x1e8),'choices':[I(0x206),I(0x1fc),I(0x200),I(0x20b),I(0x20d)]},l=await Actions[I(0x219)](I(0x1ea))||'1',m=await Actions[I(0x219)](I(0x1ed))||'Contact',n=await Actions[I(0x219)](I(0x1fa))||'Person',{contactType:o}=await Actions[I(0x214)](k),p=await Actions[I(0x219)](I(0x202))||I(0x1ee),q=await Actions['ask'](I(0x218)),r=await Actions['ask'](I(0x1e4))||I(0x1f3),s=await Actions[I(0x219)](I(0x204))||'HI',t=await Actions['ask'](I(0x208))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x1f8)](I(0x1e9));const v=await Actions[I(0x219)](I(0x1e6))||I(0x1e1),w=await Actions['ask']('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||'+1.5555555556',x=await Actions[I(0x219)]('Contact\x20Email\x20[mail@example.com]:\x20')||I(0x1f9),y=await Actions[I(0x21a)](I(0x1e5)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==I(0x200)){const C=await Actions['ask'](I(0x210))||'My\x20Comanpy,\x20LLC.';z[I(0x215)]=C;}const A=h||0x0*parseInt(l);Log['notice']('Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'),Log[I(0x209)](A+'\x20'+i+'\x20for\x20'+l+I(0x20f)+h+'\x20'+i+I(0x203));const B=await Actions[I(0x21a)](I(0x1e2));B&&await d[I(0x1f0)](z,c,parseInt(l),y);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(D){D&&Log[I(0x1f8)](D),process[I(0x1ef)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d
|
|
1
|
+
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x14f))/0x1*(parseInt(h(0x157))/0x2)+parseInt(h(0x14b))/0x3*(-parseInt(h(0x14d))/0x4)+-parseInt(h(0x158))/0x5+-parseInt(h(0x15e))/0x6*(-parseInt(h(0x153))/0x7)+-parseInt(h(0x161))/0x8+parseInt(h(0x165))/0x9*(parseInt(h(0x151))/0xa)+-parseInt(h(0x155))/0xb*(-parseInt(h(0x14a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x641d6));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a['toString']()[j(0x163)](j(0x167))['toString']()[j(0x159)](a17a)[j(0x163)](j(0x167));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17c(){const n=['51530XxSUZN','maka\x20aws:remove-key-pair','14ScklDT','name','47487YMbEVS','apply','134VmhibV','2363725SZxmgN','constructor','maka\x20aws:rkp','Deleted\x20','Not\x20deleting\x20keypair','\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','2363082KHwxIa','exit','Deleting\x20a\x20','3871864JfSrUa','forEach','search','error','1080ipjzWg','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','(((.+)+)+)+$','remove-key-pair','ec2describeKeys','rkp','2316ddSnwv','204909TPpLUF','Please\x20choose\x20a\x20key\x20to\x20delete:','4eeeLDn','ask','12002PKtqnR','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'];a17c=function(){return n;};return a17c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x148;let f=c[d];return f;},a17d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a17k(0x168),'aliases':[a17k(0x149)],'usage':a17k(0x152),'validOpts':[],'shortDesc':a17k(0x166),'description':a17k(0x15d),'examples':[a17k(0x152),a17k(0x15a)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x148)]();let c=undefined;const d=await Actions[l(0x14e)](l(0x14c));b?.[l(0x162)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x154)]);});if(!c)throw Log[l(0x164)](l(0x150));const f=await Actions['confirm'](l(0x160)+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(await a['deleteKeyPair'](c),Log['success'](l(0x15b)+c)):Log[l(0x164)](l(0x15c)),process[l(0x15f)](0x0);}catch(g){g&&Log['error'](g),process['exit'](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0x13b))/0x1+-parseInt(l(0x124))/0x2+parseInt(l(0x11b))/0x3+parseInt(l(0x139))/0x4+-parseInt(l(0x121))/0x5*(parseInt(l(0x11d))/0x6)+-parseInt(l(0x129))/0x7+parseInt(l(0x126))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x9fe75));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0x138)]()[n(0x12f)](n(0x131))[n(0x138)]()[n(0x13e)](a18a)[n(0x12f)](n(0x131));});function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x11a;let f=c[d];return f;},a18d(a,b);}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';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a18c(){const q=['writeFileSync','constructor','maka\x20aws:set-host\x20--env\x20dev','utf8','sep','stringify','appName','template','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','\x0aSaved\x20host\x20','fsi','host','maka\x20aws\x20set-host','join','3617826sMMfls','create','18IRzOzz','ssh.json','apply','inherit','1420015vkScHx','set-host','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','558370AFyZIG','getMakaProjectConfig','16061880NApEXt','config/ssh.json','error','6792303SrCbwg','\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','success','\x20IP\x20to\x20','ask','chooseInstance','search','privateIp','(((.+)+)+)+$','isFile','exit','public','private','cat\x20','env','toString','1915596FyEDvn','maka\x20aws:sth\x20--env\x20prod','936088LzPXzr','readFileSync'];a18c=function(){return q;};return a18c();}import{Log}from'../../tools/log/log.class.js';Command[a18o(0x11c)]({'name':a18o(0x122),'aliases':['sth'],'usage':a18o(0x149),'mustBeInMakaProject':!![],'requiredOpts':[a18o(0x137)],'validOpts':[],'shortDesc':a18o(0x145),'description':a18o(0x12a),'examples':[a18o(0x13f),a18o(0x13a)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x147)]['getAppConfigPath'](b[p(0x137)]),f=this[p(0x147)][p(0x125)](),g=await c[p(0x12e)](),h=a18e[p(0x11a)](d,'ssh.json');!this[p(0x147)][p(0x132)](h)&&await this['fsi'][p(0x144)]({'srcPath':p(0x127),'destPath':h,'context':{'app':f[p(0x143)]},'config':f});const i=JSON['parse'](a18f[p(0x13c)](h,p(0x140))),j=await Actions[p(0x12d)](p(0x123))||p(0x134);if(j){if(j===p(0x134)||j===p(0x135)){if(j===p(0x134))i[p(0x148)]=g?.['publicIp'];else j===p(0x135)&&(i[p(0x148)]=g?.['privateIp']);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[p(0x148)]=g?.[p(0x130)];a18f[p(0x13d)](a18e[p(0x11a)](d,'ssh.json'),JSON[p(0x142)](i,null,0x2)),execSync(p(0x136)+a18e['join'](d,p(0x11e)),{'stdio':p(0x120)}),Log[p(0x12b)](p(0x146)+j+p(0x12c)+d+a18e[p(0x141)]+'ssh.json');}catch(k){k&&Log[p(0x128)](k),process[p(0x133)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0xbe))/0x1+-parseInt(f(0xb1))/0x2+-parseInt(f(0xb4))/0x3*(parseInt(f(0xc3))/0x4)+-parseInt(f(0xcf))/0x5*(parseInt(f(0xb3))/0x6)+parseInt(f(0xc9))/0x7*(-parseInt(f(0xcc))/0x8)+-parseInt(f(0xca))/0x9+parseInt(f(0xc6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xabf7d));function a19c(){const k=['You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','name','search','toString','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','(((.+)+)+)+$','status','maka\x20aws:ti','1229940ZWWLXu','terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','maka\x20aws:terminate-instance','304aEAfmu','instanceId','apply','22023210XlOXBX','exit','confirm','7399LWKCzO','1393704kRRjAP','running','3424HSMLOp','chooseInstance','Terminate\x20an\x20EC2\x20instance','420315ScyzTO','constructor','852358MFNOdf','\x20Ready?','90rbDljZ','17112RuiNvn','error'];a19c=function(){return k;};return a19c();}const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0xb9)]()[h(0xb8)](h(0xbb))[h(0xb9)]()[h(0xb0)](a19a)[h(0xb8)](h(0xbb));});a19a();import a19e from'./aws.command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xb0;let f=c[d];return f;},a19d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a19i(0xbf),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'shortDesc':a19i(0xce),'description':'\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','examples':[a19i(0xc2),a19i(0xbd)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0xcd)]();if(b?.[j(0xc4)]&&b?.[j(0xbc)]===j(0xcb)){const c=await Actions[j(0xc8)](j(0xc0)+b[j(0xb7)]+j(0xb2));c?a['ec2terminateInstance']({'instanceId':b[j(0xc4)]}):Log[j(0xb5)](j(0xb6)+b[j(0xb7)]+j(0xc1));}else Log['error'](j(0xba));}catch(d){d&&Log[j(0xb5)](d),process[j(0xc7)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x65;var f=c[d];return f;},a20d(a,b);}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x67))/0x1*(parseInt(f(0x68))/0x2)+parseInt(f(0x72))/0x3*(-parseInt(f(0x6b))/0x4)+parseInt(f(0x69))/0x5*(-parseInt(f(0x6e))/0x6)+-parseInt(f(0x71))/0x7+-parseInt(f(0x6f))/0x8+-parseInt(f(0x70))/0x9+parseInt(f(0x6d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xc4804));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x66)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x6c)]()[h(0x6a)](h(0x65))[h(0x6c)]()['constructor'](a20a)['search'](h(0x65));});a20a();import'./build.js';function a20c(){var i=['apply','3pRmGZN','878698gurrZl','15JQPKyv','search','4oxFxdW','toString','56832450foSNXe','1889502kLyJXZ','3768024JJTyFa','11609487JlIQhU','5125680TpoQXa','367179GIJdbD','(((.+)+)+)+$'];a20c=function(){return i;};return a20c();}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d
|
|
1
|
+
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x1ba))/0x1+-parseInt(n(0x1bd))/0x2*(parseInt(n(0x1a8))/0x3)+parseInt(n(0x1b3))/0x4*(parseInt(n(0x1b8))/0x5)+parseInt(n(0x1b1))/0x6+parseInt(n(0x1c1))/0x7*(-parseInt(n(0x1c0))/0x8)+parseInt(n(0x1a9))/0x9+parseInt(n(0x1be))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x6232c));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x1b4)]()[p(0x1c2)]('(((.+)+)+)+$')[p(0x1b4)]()[p(0x1ce)](a21a)[p(0x1c2)]('(((.+)+)+)+$');});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a21d(a,b);}a21a();import a21e from'path';function a21c(){const t=['build','argv','pathFromProject','constructor','existsSync','error','22353rwGXbM','3019104mowxAM','create','This\x20project\x27s\x20meteor\x20version\x20(','--release','autoupdate','invokeMeteorCommand','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','confirm','34902OcYSAP','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','16cQJZGC','toString','slice','fsi','splice','115980uDBIfJ','checkMeteorPackage','74180ncqmoT','apply',').\x20Update?','38rDJdJI','9124820zaDUTZ','Aborted.','71080OBNrts','574fCekdD','search','join','getProjectMeteorVersion','concat','force','maka\x20build','getGlobalMeteorVersion','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','--force'];a21c=function(){return t;};return a21c();}import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x1aa)]({'name':a21q(0x1cb),'usage':a21q(0x1c7),'validOpts':[a21q(0x1c6)],'aliases':['b'],'shortDesc':a21q(0x1c9),'mustBeInMakaProject':!![],'description':a21q(0x1af),'examples':[a21q(0x1c7)]},async function(a,b){const r=a21q;try{await this[r(0x1b6)][r(0x1b9)](r(0x1ad),{'shouldInstall':!![]});const c=b[r(0x1c6)];if(!c){const g=this[r(0x1b6)][r(0x1c8)](),h=this[r(0x1b6)][r(0x1c4)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x1b0)](r(0x1ab)+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+r(0x1bc));j&&this[r(0x1b6)][r(0x1ae)]('update',[r(0x1ac),g]);}}const d=[this[r(0x1b6)]['pathFromProject']({'pathParts':[r(0x1cb)]})][r(0x1c5)](process[r(0x1cc)][r(0x1b5)](0x3)),f=a21e[r(0x1c3)](this['fsi'][r(0x1cd)]({}),r(0x1cb),'app.tar.gz');if(a21f[r(0x1cf)](f)){const k=c??await Actions[r(0x1b0)](r(0x1b2));if(!k)throw Log[r(0x1a7)](r(0x1bf));}d['forEach']((l,m)=>{const s=r;l===s(0x1ca)&&d[s(0x1b7)](m,0x2);}),this[r(0x1b6)][r(0x1ae)](r(0x1cb),d);}catch(l){console[r(0x1a7)](l),process['exit'](0x0);}});export default BuildCommand;
|