@maka/maka-cli 4.12.26 → 4.12.27
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.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0xd2))/0x1+parseInt(n(0x101))/0x2+-parseInt(n(0xff))/0x3+-parseInt(n(0xf7))/0x4*(parseInt(n(0xed))/0x5)+-parseInt(n(0xfd))/0x6+-parseInt(n(0x11c))/0x7*(parseInt(n(0x111))/0x8)+parseInt(n(0xd9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x5a0a7));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const o=a0d;return a0a[o(0xfc)]()[o(0xe5)]('(((.+)+)+)+$')[o(0xfc)]()[o(0xf6)](a0a)[o(0xe5)](o(0x118));});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd0;let f=c[d];return f;},a0d(a,b);}import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0c(){const z=['create','1632933OzaKkV','name','694986kGVfyR','unshift','function','forEach','Please\x20run\x20\x22maka\x20install\x20meteor\x22','bright','validateMakaSubscription','aliases','fsi','Too\x20many\x20arguments','generate','header','validateMeteorInstall','find','error','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','42424aCrxcx','pallet','keys','slice','_handler','setColorMode','_commands','(((.+)+)+)+$','addCommand','tableList','split','504iTJVTr','LIGHT','minArgLength','Too\x20few\x20options','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','run','murder','341197ZrUezF','localeCompare','Command\x20requires\x20a\x20name','DARK','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','play','minOptsLength','10085769gzuueD','Too\x20few\x20arguments','Command\x20format\x20is\x20incorrect','length','maxOptsLength','Command\x20not\x20found','invoke','getGlobalConfig','match','addCommand\x20requires\x20a\x20Command\x20instance','number','Too\x20many\x20options','search','validateParams','exit','Please\x20run\x20\x22maka\x20login\x22','\x20not\x20found','Command.create\x20requires\x20a\x20handler\x20function!','Description','usage','205eCUagt','Alias','help','push','assign','options','Command\x20','notice','maxArgLength','constructor','22572TMpXnE','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','validateMakaProject','mustBeInMakaProject','call','toString','1698204EyFrsm'];a0c=function(){return z;};return a0c();}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0xf2)];[a0p(0x117)];constructor(a,b){const q=a0p;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[q(0x100)])throw new Error(q(0xd4));if(typeof b!==q(0x103))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[q(0xf2)]=Object[q(0xf1)]({},a),this[q(0x100)]=this[q(0xf2)][q(0x100)],this[q(0x117)]=[],this['_handler']=b['bind'](this);}static[a0p(0xfe)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(r(0xea));const d=new Command(a,b);return c=c||a0f,Object[r(0xf1)](d,{'parent':c?.[r(0xf2)]?.['name']}),c[r(0x119)](d),d;}[a0p(0x119)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xe2));this[s(0x117)][s(0xf0)](a);}async['run'](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x109)][t(0xe0)](),d=c[t(0x112)]==='light'?ColorMode[t(0x11d)]:ColorMode[t(0xd5)];Log[t(0x116)](d),await this[t(0x107)](this);}catch(f){Log[t(0x10f)](f),process[t(0xe7)](0x0);}return await this[t(0xdf)](a,b);}catch(g){process['exit'](0x1);}}async[a0p(0xdf)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this['options']['name']!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[u(0x117)][u(0xdc)]>=0x0,g=b[u(0xef)]||b['h'];if(f&&g){if(this['_commands'][u(0xdc)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this['options'][u(0xfa)]){const h=this[u(0xf9)]();if(!h)throw new MustBeInProjectError();}if(this[u(0xf2)]['mustBeLoggedIn']){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[u(0xf2)]['mustHaveMeteorInstalled']){const j=this[u(0x10d)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0xf2)][u(0x11e)]==='number'){if(a[u(0xdc)]<this[u(0xf2)][u(0x11e)]){Log[u(0x10f)](u(0xda));throw new UsageError();}}if(typeof this[u(0xf2)][u(0xf5)]===u(0xe3)){if(a[u(0xdc)]>=this[u(0xf2)]['maxArgLength']){Log[u(0x10f)](u(0x10a));throw new UsageError();}}if(typeof this['options'][u(0xd8)]===u(0xe3)){if(Object[u(0x113)](b)[u(0xdc)]<this[u(0xf2)][u(0xd8)]){Log['error'](u(0x11f));throw new UsageError();}}if(typeof this[u(0xf2)][u(0xdd)]===u(0xe3)){if(Object[u(0x113)](b)['length']>=this[u(0xf2)][u(0xdd)]){Log['error'](u(0xe4));throw new UsageError();}}}}b=await this[u(0xe6)](a,b,this[u(0xf2)]),_prevCmd=a[0x0];}return await this[u(0x115)][u(0xfb)](this,a,b);}catch(k){Log[u(0xec)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0xf4)]('Sub-Commands:'),this[u(0x11a)](this[u(0x117)]),Log[u(0x10c)](u(0xd6));else{if(k instanceof MustBeInProjectError)Log[u(0x10f)](u(0x120));else{if(k instanceof NoMeteorFoundError)Log[u(0x10f)](u(0x110)),Log[u(0xf4)](u(0x105));else{if(k instanceof NoMeteorAppFoundError)Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log[u(0x10f)](u(0xf8)),Log[u(0xf4)](u(0xe8)));}}}process[u(0xe7)](0x1);}}[a0p(0x11a)](a){const v=a0p,b=new a0e({});b['push'](['Name',v(0xee),v(0xeb)]),a['sort']((c,d)=>{const w=v;return c[w(0x100)][w(0xd3)](d[w(0x100)]);})[v(0x104)](c=>{const x=v;c[x(0x100)]!==x(0xd1)&&c['name']!==x(0xd7)&&b[x(0xf0)]([c[x(0x100)],c[x(0x108)](),c['shortDesc']()]);}),Log[v(0x106)](b[v(0xfc)]());}async['processAndRunCommand'](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0x11b)](':');if(!d||d[y(0xdc)]===0x0)throw y(0xdb);if(d[0x0]===y(0x10b)||d[0x0]==='g'&&d[y(0xdc)]>0x1){const h=this[y(0x117)][y(0x10e)](j=>j[y(0xe1)](y(0x10b)));if(!h)throw y(0xde);await this[y(0x107)](h);const i=d[y(0x114)](0x1)['join'](':');return b[y(0x102)](i),await h[y(0xd0)](b,c);}let f=this[y(0x117)],g;for(const j of d){g=f['find'](k=>k[y(0xe1)](j));if(!g)try{await this['fsi']['maybeProxyCommandToMeteor']();}catch(k){throw y(0xf3)+j+y(0xe9);}g&&(await this[y(0x107)](g),f=g[y(0x117)]);}if(g){const l=await g[y(0xd0)](b,c);return l;}else throw y(0xde);}catch(m){Log[y(0x10f)](m),process[y(0xe7)](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(0xdb))/0x1*(-parseInt(f(0xe2))/0x2)+parseInt(f(0xe6))/0x3+parseInt(f(0xde))/0x4*(parseInt(f(0xdf))/0x5)+parseInt(f(0xe1))/0x6+parseInt(f(0xe0))/0x7+-parseInt(f(0xe7))/0x8+-parseInt(f(0xe3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xf3671));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xdc)]()[h(0xe5)](h(0xe8))[h(0xdc)]()[h(0xdd)](a1a)['search']('(((.+)+)+)+$');});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';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xdb;var f=c[d];return f;},a1d(a,b);}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=['5FNUuES','13102257ebTdqa','11050902fUtgJm','19092AomaIU','16525827eGLSHM','apply','search','2106135hxwbqZ','4134224LOBtYQ','(((.+)+)+)+$','174wXzYot','toString','constructor','2381396tePHnG'];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
|
-
function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-
|
|
1
|
+
function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a2d(a,b);}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x1d1))/0x1*(parseInt(h(0x1cd))/0x2)+parseInt(h(0x1bf))/0x3*(-parseInt(h(0x1c4))/0x4)+-parseInt(h(0x1ab))/0x5*(-parseInt(h(0x1d3))/0x6)+-parseInt(h(0x1b5))/0x7*(parseInt(h(0x1ae))/0x8)+-parseInt(h(0x1d0))/0x9*(parseInt(h(0x1cc))/0xa)+parseInt(h(0x1cf))/0xb*(parseInt(h(0x1ba))/0xc)+parseInt(h(0x1aa))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x96f98));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a['toString']()[j(0x1d4)]('(((.+)+)+)+$')[j(0x1c5)]()[j(0x1bc)](a2a)[j(0x1d4)]('(((.+)+)+)+$');});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(0x1c0)]({'input':process[k(0x1c1)],'output':process[k(0x1cb)]});c['question'](k(0x1c3),async d=>{const l=k;if(d[l(0x1be)]()===l(0x1ce)){c[l(0x1b6)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[l(0x1bd)]);if(f['error'])throw new Error(f['error']['message']);Log[l(0x1b7)](l(0x1d5)+f?.[l(0x1b8)][0x0]?.['text'][l(0x1b4)]());}catch(g){Log[l(0x1c8)](g),process[l(0x1ce)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2c(){const o=['GPT:\x20','1766115LHDsoW','60LlffDh','fsi','openapikey','80qCOJTL','apply','cert','openai','ChatGPT\x20style\x20AI\x20interface','isFile','trim','104426vZXINB','close','bright','choices','log','12NcAzGX','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','constructor','data','toLowerCase','3QegtxR','createInterface','stdin','notice','You:\x20','657092oWRVmg','toString','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','create','error','Using\x20CA\x20Cert\x20','getGlobalConfig','stdout','1310dAbOgG','2FWxTGL','exit','12605989gXyECj','56268DnzzZT','710741uIBSKr','cacert','589872dfKnnk','search'];a2c=function(){return o;};return a2c();}Command[a2m(0x1c7)]({'name':'ai','description':a2m(0x1b2),'validOpts':[a2m(0x1d2),a2m(0x1ad)],'shortDesc':a2m(0x1b2),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x1d2)]&&(this[n(0x1ac)][n(0x1b3)](b['cacert'])?(c=b[n(0x1d2)],Log[n(0x1c2)](n(0x1c9)+c)):Log[n(0x1c8)](n(0x1bb)+c));const d=await this[n(0x1ac)][n(0x1ca)]();if(d[n(0x1b0)]){if(this[n(0x1ac)]['isFile'](d[n(0x1b0)]))c=d['cert'];else throw Log[n(0x1c8)](n(0x1c6)+c);}let f='';if(b[n(0x1ad)])f=b[n(0x1ad)],Log['notice']('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x1b1)])f=d['openai'];else throw Log[n(0x1c8)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}console[n(0x1b9)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1c8)](g),process[n(0x1ce)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a3d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x109))/0x1+-parseInt(f(0x10a))/0x2+parseInt(f(0x10d))/0x3*(parseInt(f(0x100))/0x4)+-parseInt(f(0x106))/0x5+-parseInt(f(0x108))/0x6+-parseInt(f(0x10c))/0x7*(-parseInt(f(0x103))/0x8)+-parseInt(f(0x104))/0x9*(-parseInt(f(0x102))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x2f75a));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x10b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x107)]()[h(0x105)](h(0x10e))[h(0x107)]()[h(0x101)](a3a)[h(0x105)](h(0x10e));});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';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x100;var f=c[d];return f;},a3d(a,b);}function a3c(){var i=['683050lADTDy','apply','133UMqDHE','76341AhAeaE','(((.+)+)+)+$','8BPfZXF','constructor','20yNReym','7864gCVwKl','2214414eilKgq','search','331295jSLBpu','toString','11244TwyiJn','42389BuyHwn'];a3c=function(){return i;};return a3c();}import'./lecr.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a4i=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a4d(a,b);}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1dd))/0x1+parseInt(f(0x1db))/0x2+parseInt(f(0x1e0))/0x3*(-parseInt(f(0x1e6))/0x4)+parseInt(f(0x1df))/0x5+-parseInt(f(0x1e4))/0x6*(-parseInt(f(0x1d9))/0x7)+-parseInt(f(0x1ea))/0x8*(-parseInt(f(0x1de))/0x9)+-parseInt(f(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xcfd0d));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1eb)]()[h(0x1e7)]('(((.+)+)+)+$')['toString']()[h(0x1e5)](a4a)[h(0x1e7)](h(0x1e8));});function a4c(){const j=['aws','create','21271760PWjOyt','462978exxkEo','constructor','10700ULitMK','search','(((.+)+)+)+$','apply','160PbCEix','toString','154KnFUVU','maka\x20aws:<sub-command>','1488360VEryla','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','909552rYicEo','370206LgxGOv','5832600KaKFrF','609LMqPia'];a4c=function(){return j;};return a4c();}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x1e2)]({'name':a4i(0x1e1),'usage':a4i(0x1da),'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4i(0x1dc)},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
|
+
function a5c(){const l=['42CdXUEk','1074xOxZRe','148396tyVzMG','maka\x20aws:create-ecr','success','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','56968SbfjBx','(((.+)+)+)+$','repository','$metadata','ecrCreateRepository','repositoryUri','834QheUbB','Repository\x20created\x20successfully.','1315930ArgXQe','cecr','region','httpStatusCode','74380YyKVEj','create-ecr','14SsQCos','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','apply','12818292xOjcvf','toString','create','365cHPLUs','306WNvhSv','name','search','exit','error','8185ZDAIBe'];a5c=function(){return l;};return a5c();}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0xab))/0x1*(-parseInt(g(0x9d))/0x2)+-parseInt(g(0xb2))/0x3*(parseInt(g(0x93))/0x4)+-parseInt(g(0xb1))/0x5*(parseInt(g(0x92))/0x6)+parseInt(g(0xa5))/0x7*(parseInt(g(0x97))/0x8)+-parseInt(g(0xac))/0x9*(parseInt(g(0xa3))/0xa)+parseInt(g(0x9f))/0xb+parseInt(g(0xa8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x468c7));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0xa7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0xa9)]()[i(0xae)](i(0x98))[i(0xa9)]()['constructor'](a5a)['search'](i(0x98));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x92;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0xaa)]({'name':a5j(0xa4),'aliases':[a5j(0xa0)],'usage':a5j(0x94),'requiredOpts':[a5j(0xad)],'validOpts':[a5j(0xa1)],'shortDesc':'Create\x20an\x20Elastic\x20Container\x20Repository','examples':['maka\x20aws:create-ecr\x20--name=my-new-repo','maka\x20aws:cecr\x20--name=my-new-repo',a5j(0xa6)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x9b)](b);d&&d[k(0x9a)][k(0xa2)]===0xc8&&d[k(0x99)]?(Log[k(0x95)](k(0x9e)),Log['notice']('Repository\x20URI:\x20'+d[k(0x99)][k(0x9c)])):Log[k(0xb0)](k(0x96)),process[k(0xaf)](0x0);}catch(f){Log[k(0xb0)](f),process[k(0xaf)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0x209))/0x1+parseInt(i(0x200))/0x2+-parseInt(i(0x1fa))/0x3*(-parseInt(i(0x1f2))/0x4)+-parseInt(i(0x20a))/0x5+parseInt(i(0x205))/0x6*(-parseInt(i(0x204))/0x7)+parseInt(i(0x1f8))/0x8+parseInt(i(0x1f7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x99c20));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1f0;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(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1f5)]()['search']('(((.+)+)+)+$')[k(0x1f5)]()[k(0x1f6)](a6a)['search']('(((.+)+)+)+$');});function a6c(){const n=['create','apply','Instance\x20not\x20found','1510424wbbNUj','maka\x20aws:chz\x20--domain=example.com','exit','toString','constructor','8498601aaAcMo','4489840zfxZxh','chooseInstance','3XnUaAN','Set\x20hosted\x20zone\x20to\x20an\x20instance?','error','maka\x20aws:create-hosted-zone\x20--domain=example.com','domain','chz','1516332wnTCeD','create-hosted-zone','publicIp','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','245357njebzc','108WNmqSu','linkEC2ToRoute53','confirm','maka\x20aws:create-hosted-zone','1258231nkVNOz','611750UFynxM','route53CreateHostedZone'];a6c=function(){return n;};return a6c();}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';import{Log}from'../../tools/log/log.class.js';Command[a6l(0x20c)]({'name':a6l(0x201),'aliases':[a6l(0x1ff)],'usage':a6l(0x208),'requiredOpts':[a6l(0x1fe)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a6l(0x1fd),a6l(0x1f3)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x20b)](c);const f=await Actions[m(0x207)](m(0x1fb));if(f){const g=await d[m(0x1f9)]();if(g?.['id']){if(!g[m(0x202)])throw Log[m(0x1fc)](m(0x203));d[m(0x206)](g['id'],g['publicIp'],c);}else throw m(0x1f1);}}catch(h){h&&Log[m(0x1fc)](h),process[m(0x1f4)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x14a))/0x1+parseInt(ae(0x133))/0x2*(parseInt(ae(0x12a))/0x3)+parseInt(ae(0x18e))/0x4*(parseInt(ae(0x12c))/0x5)+-parseInt(ae(0x131))/0x6*(-parseInt(ae(0x140))/0x7)+-parseInt(ae(0x148))/0x8*(-parseInt(ae(0x168))/0x9)+parseInt(ae(0x151))/0xa*(parseInt(ae(0x174))/0xb)+-parseInt(ae(0x155))/0xc*(parseInt(ae(0x178))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x8e2e4));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x149)]()[ag(0x144)](ag(0x11f))['toString']()[ag(0x12e)](a7a)[ag(0x144)]('(((.+)+)+)+$');});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-0x11f;let f=c[d];return f;},a7d(a,b);}function a7c(){const au=['268MDJSqV','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','(((.+)+)+)+$','Instace\x20Type:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Instance\x20Count:\x20','getSecurityGroups','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','apply','Setting\x20Subnet\x20ID\x20to\x20','ec2describeKeys','unlinkSync','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','1977kbzkSg','Security\x20Group\x20Name:\x20[','81060xzHtQo','alias','constructor','getAppConfigPath','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','1164pqsmOG','push','3104UYvnEs','**\x20Available\x20key-pairs\x20**','getEnvFromShorthand','No\x20instance\x20has\x20been\x20created.','**\x20Available\x20AMIs\x20**','chooseVPC','ec2createSG','create-instance','Key-Pair:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','notice','amazon','Name','38689JRyroe','**\x20Available\x20Subnets\x20**','maka\x20aws:ci\x20--env\x20prod','split','search','**\x20Available\x20Security\x20Groups\x20**','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x20DESCRIPTION:\x20','568qANvID','toString','208250aKxsTU','environment','Creating\x20user\x20data\x20file\x20in\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','string','\x20SGID:\x20','amiId','3370lbEuSb','\x20SG\x20NAME:\x20','Create\x20new\x20AWS\x20instance','confirm','3635304PxhWOs','success','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','parse','readFileSync','Security\x20Group:\x20','createKeyPair','maka\x20aws:create-instance','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','\x20SUBNETID:\x20','forEach','*\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','Web\x20App','number','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Setting\x20SG\x20ID\x20to:\x20','maka-cli','Setting\x20the\x20key-pair\x20to:\x20','exit','34839RZCTZO','cider','desc','env','\x20CIDR:\x20','22,80,443','sgId','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=*','isFile','bright','ID:\x20','fsi','27951HOArGn','Subnet:\x20','name','create','169LMBGcE','created-by','date','ImageID:','Setting\x20AMI\x20ID\x20to\x20','1:1','subnet','EC2\x20Name:\x20[','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Remove\x20the\x20security\x20group\x20','ask','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Desc','error','deleteKeyPair','build\x20on\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','subnetId','user-data','\x20AZONE:\x20'];a7c=function(){return au;};return a7c();}Command[a7ah(0x177)]({'name':a7ah(0x13a),'aliases':['ci'],'usage':a7ah(0x15c),'examples':['maka\x20aws:create-instance\x20--env\x20dev',a7ah(0x142)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0x153),'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(0x173)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x173)][ai(0x135)](b[ai(0x16b)]),i=this[ai(0x173)][ai(0x12f)](h),j=g+'-'+h,k=await Actions[ai(0x183)](ai(0x17f)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x154)](ai(0x163),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x15b)]({'env':h});r=y,s=z,Log['success'](ai(0x166)+r);}else try{Log[ai(0x13d)](ai(0x134));const A=r?r:k,B=await d[ai(0x127)]({'suggestion':A}),C=await Actions['ask'](ai(0x185))||'-1';if(parseInt(C)<0x0){Log[ai(0x187)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log['notice'](ai(0x136));return;}B?.[ai(0x15f)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log[aj(0x156)](aj(0x166)+r));});}catch(D){Log[ai(0x187)](D);}l=await d[ai(0x138)]();const t=await Actions[ai(0x154)](ai(0x14d),!![]);let u;if(t){const E=l===''?await d[ai(0x138)]():l;u=await Actions[ai(0x183)](ai(0x12b)+k+']')||k;const F=await Actions[ai(0x183)](ai(0x124))||ai(0x16d),G=F[ai(0x143)](',');await d[ai(0x139)]({'description':ai(0x161),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x123)](u);if(I===''){Log[ai(0x13d)](ai(0x145)),J[ai(0x15f)](function(L){const ak=ai;L[ak(0x176)]===u?Log[ak(0x13d)](ak(0x172)+L['id']+ak(0x152)+L['name']+ak(0x14f)+L[ak(0x16e)]):Log[ak(0x171)](ak(0x172)+L['id']+ak(0x152)+L[ak(0x176)]+'\x20SGID:\x20'+L[ak(0x16e)]);});const K=await Actions[ai(0x183)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x149)]();J[ai(0x15f)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x16e)],Log[al(0x156)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log[ai(0x156)](ai(0x164)+m+'\x0a');if(m==='')throw Log[ai(0x187)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log[ai(0x187)](L);}try{const M=0x7e6;Log[ai(0x13d)](ai(0x137));const N=execSync(ai(0x16f)+M+ai(0x160))[ai(0x149)](),O=JSON[ai(0x158)](N),P=[],Q=[];O[ai(0x15f)](function(S){const am=ai;if(S[am(0x12d)]===am(0x13e)){const T=S[am(0x186)][am(0x143)](am(0x189))[0x1];P[am(0x132)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T['date'])['getTime']()-new Date(S[an(0x17a)])['getTime']();}),P[ai(0x15f)](function(S,T){const ao=ai;Q[ao(0x132)]({'id':T,'amiId':S[ao(0x150)],'desc':S[ao(0x16a)]});}),Q['forEach'](function(S){const ap=ai;console['log']('ID:\x20'+S['id']+'\x20AMIID:\x20'+S['amiId']+ap(0x147)+S['desc']);});const R=await Actions['ask'](ai(0x129))||'0';Q[ai(0x15f)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x150)],Log['success'](aq(0x17c)+n+'\x20:\x20'+S[aq(0x16a)]));});if(n==='')throw Log[ai(0x187)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x187)](S);}try{Log[ai(0x13d)](ai(0x141));const T=execSync(ai(0x18f))['toString'](),U=JSON[ai(0x158)](T),V=[];U[ai(0x15f)](function(X,Y){const ar=ai;V[ar(0x132)]({'id':Y,'cidr':X[ar(0x169)],'az':X['az'],'subnetId':X[ar(0x18b)]});}),V[ai(0x15f)](function(X){const as=ai;console['log'](as(0x172)+X['id']+as(0x16c)+X['cidr']+as(0x18d)+X['az']+as(0x15e)+X[as(0x18b)]);});const W=await Actions[ai(0x183)](ai(0x130))||'0';V[ai(0x15f)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x18b)],Log['success'](at(0x126)+p));});if(p==='')throw Log[ai(0x187)](ai(0x184));}catch(X){Log[ai(0x187)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x183)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x17d),Z=Y[ai(0x143)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0x162)&&typeof parseInt(a0)===ai(0x162)&&Log[ai(0x156)](ai(0x18a)+Z+':'+a0);}catch(a1){Log[ai(0x187)](a1);}try{const a2=await Actions[ai(0x183)](ai(0x146))||'t3.micro';typeof a2===ai(0x14e)&&(o=a2);}catch(a3){Log[ai(0x187)](a3);}let x='';try{const a4=await Actions['confirm'](ai(0x13c),![]);a4&&(x=a7f['join'](i,ai(0x18c)),Log[ai(0x13d)](ai(0x14c)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions[ai(0x154)](ai(0x157)));}catch(a5){Log[ai(0x187)](a5);}try{const a6=JSON[ai(0x158)](execSync(ai(0x121)+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x149)]())[0x0][ai(0x17e)];Log[ai(0x13d)](ai(0x17b)+n),Log[ai(0x13d)](ai(0x122)+v+':'+w),Log[ai(0x13d)](ai(0x120)+o),Log[ai(0x13d)](ai(0x13b)+r),Log[ai(0x13d)](ai(0x15a)+m),Log[ai(0x13d)](ai(0x175)+a6);if(x){Log['notice']('User\x20Data:'+x);const a8=a7g[ai(0x159)](x)[ai(0x149)]();Log[ai(0x13d)](a8);}const a7=await Actions[ai(0x154)](ai(0x181));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x179),'Value':ai(0x165)},{'Key':ai(0x14b),'Value':h},{'Key':ai(0x13f),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x156)](ai(0x180)),Log[ai(0x171)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log[ai(0x13d)](ai(0x15d));const aa=await Actions[ai(0x154)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x188)](r),f[ai(0x170)](s)&&a7g[ai(0x128)](s));const ab=await Actions[ai(0x154)](ai(0x182)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ai(0x187)](ad),process[ai(0x167)](0x0);}},a7e);
|
|
1
|
+
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x17c))/0x1*(-parseInt(ae(0x192))/0x2)+-parseInt(ae(0x16a))/0x3+-parseInt(ae(0x175))/0x4*(-parseInt(ae(0x126))/0x5)+-parseInt(ae(0x169))/0x6*(-parseInt(ae(0x15e))/0x7)+-parseInt(ae(0x148))/0x8*(-parseInt(ae(0x159))/0x9)+-parseInt(ae(0x15d))/0xa+-parseInt(ae(0x136))/0xb*(parseInt(ae(0x16c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xeb10c));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x137)]()[ag(0x144)]('(((.+)+)+)+$')['toString']()[ag(0x18e)](a7a)[ag(0x144)](ag(0x133));});a7a();function a7c(){const at=['**\x20Available\x20Subnets\x20**','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Web\x20App','ec2describeKeys','ID:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Subnet:\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','getTime','split','Key-Pair:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','maka-cli','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','constructor','\x20SGID:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','readFileSync','1346892rqwXKV','24965XbKrIV','Desc','confirm','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','maka\x20aws:create-instance\x20--env\x20dev','t3.micro','Instance\x20Count:\x20','exit','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Name','create','Please\x20choose\x20a\x20key\x20to\x20use:\x20','unlinkSync','(((.+)+)+)+$','apply','\x20SG\x20NAME:\x20','56551IgejVJ','toString','subnetId','\x20AZONE:\x20','name','number','subnet','build\x20on\x20','bright','amazon','environment','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\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','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','search','getAppConfigPath','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','\x20:\x20','56Uydibl','fsi','\x20SUBNETID:\x20','desc','parse','chooseVPC','Setting\x20the\x20key-pair\x20to:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','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','**\x20Available\x20AMIs\x20**','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','ask','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','deleteKeyPair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','user-data','42138MwNPdN','getSecurityGroups','sgId','env','7681600ihUBHb','4232788IFMbJn','error','ec2createSG','notice','deleteSecurityGroup','Setting\x20AMI\x20ID\x20to\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','date','amiId','create-instance','maka\x20aws:create-instance','18HLWRvB','325977ZvbEVs','push','276WIIeJR','log','maka\x20aws:ci\x20--env\x20prod','Instace\x20Type:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','No\x20instance\x20has\x20been\x20created.','success','Setting\x20SG\x20ID\x20to:\x20','getMakaProjectConfig','1168VJYpsq','forEach','sort','cidr','*\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','ImageID:','Creating\x20user\x20data\x20file\x20in\x20','2rXzAHa','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','string','getEnvFromShorthand'];a7c=function(){return at;};return a7c();}import a7e from'./aws.command.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x126;let f=c[d];return f;},a7d(a,b);}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(0x130)]({'name':a7ah(0x167),'aliases':['ci'],'usage':a7ah(0x168),'examples':[a7ah(0x12a),a7ah(0x16e)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x15c)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0x142)},async function(a,b){const ai=a7ah;try{const c=this['fsi'][ai(0x174)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x149)][ai(0x17f)](b[ai(0x15c)]),i=this[ai(0x149)][ai(0x145)](h),j=g+'-'+h,k=await Actions[ai(0x154)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x128)](ai(0x190),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0x172)](ai(0x14e)+r);}else try{Log[ai(0x161)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ai(0x183)]({'suggestion':A}),C=await Actions[ai(0x154)](ai(0x131))||'-1';if(parseInt(C)<0x0){Log['error'](ai(0x151)),Log['notice'](ai(0x171));return;}B?.[ai(0x176)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x13a)],Log[aj(0x172)](aj(0x14e)+r));});}catch(D){Log[ai(0x15f)](D);}l=await d[ai(0x14d)]();const t=await Actions['confirm'](ai(0x170),!![]);let u;if(t){const E=l===''?await d[ai(0x14d)]():l;u=await Actions['ask']('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x154)](ai(0x187))||'22,80,443',G=F[ai(0x189)](',');await d[ai(0x160)]({'description':ai(0x182),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x15a)](u);if(I===''){Log['notice']('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x176)](function(L){const ak=ai;L[ak(0x13a)]===u?Log[ak(0x161)](ak(0x184)+L['id']+ak(0x135)+L['name']+ak(0x18f)+L[ak(0x15b)]):Log[ak(0x13e)](ak(0x184)+L['id']+ak(0x135)+L[ak(0x13a)]+ak(0x18f)+L[ak(0x15b)]);});const K=await Actions[ai(0x154)](ai(0x18d)+H+']\x20')||H[ai(0x137)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log['success'](al(0x173)+m+'\x0a'));});}else m=I,Log[ai(0x172)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x15f)](ai(0x157));}catch(L){Log[ai(0x15f)](L);}try{const M=0x7e6;Log['notice'](ai(0x152));const N=execSync(ai(0x146)+M+ai(0x179))['toString'](),O=JSON['parse'](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S['alias']===am(0x13f)){const T=S[am(0x127)][am(0x189)](am(0x13d))[0x1];P[am(0x16b)]({'amiId':S['ID'],'desc':S[am(0x127)],'date':T});}}),P[ai(0x177)](function(S,T){const an=ai;return new Date(T[an(0x165)])[an(0x188)]()-new Date(S[an(0x165)])['getTime']();}),P[ai(0x176)](function(S,T){const ao=ai;Q[ao(0x16b)]({'id':T,'amiId':S[ao(0x166)],'desc':S[ao(0x14b)]});}),Q[ai(0x176)](function(S){const ap=ai;console[ap(0x16d)](ap(0x184)+S['id']+'\x20AMIID:\x20'+S['amiId']+'\x20DESCRIPTION:\x20'+S[ap(0x14b)]);});const R=await Actions[ai(0x154)](ai(0x185))||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x166)],Log[aq(0x172)](aq(0x163)+n+aq(0x147)+S[aq(0x14b)]));});if(n==='')throw Log[ai(0x15f)](ai(0x157));}catch(S){Log[ai(0x15f)](S);}try{Log[ai(0x161)](ai(0x180));const T=execSync(ai(0x129))['toString'](),U=JSON[ai(0x14c)](T),V=[];U[ai(0x176)](function(X,Y){const ar=ai;V[ar(0x16b)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[ar(0x138)]});}),V[ai(0x176)](function(X){const as=ai;console['log']('ID:\x20'+X['id']+'\x20CIDR:\x20'+X[as(0x178)]+as(0x139)+X['az']+as(0x14a)+X[as(0x138)]);});const W=await Actions[ai(0x154)](ai(0x155))||'0';V['forEach'](function(X){X['id']===parseInt(W)&&(p=X['subnetId'],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ai(0x15f)](ai(0x157));}catch(X){Log[ai(0x15f)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x154)](ai(0x181))||'1:1',Z=Y[ai(0x189)](':')[0x0],a0=Y[ai(0x189)](':')[0x1];typeof parseInt(Z)===ai(0x13b)&&typeof parseInt(a0)===ai(0x13b)&&Log[ai(0x172)](ai(0x12e)+Z+':'+a0);}catch(a1){Log[ai(0x15f)](a1);}try{const a2=await Actions[ai(0x154)](ai(0x141))||ai(0x12b);typeof a2===ai(0x17e)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0x128)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a7f['join'](i,ai(0x158)),Log[ai(0x161)](ai(0x17b)+x),await this[ai(0x149)]['createFile']({'filePath':x,'data':''}),await Actions[ai(0x128)](ai(0x153)));}catch(a5){Log[ai(0x15f)](a5);}try{const a6=JSON[ai(0x14c)](execSync(ai(0x14f)+p+ai(0x143))[ai(0x137)]())[0x0][ai(0x13c)];Log[ai(0x161)](ai(0x17a)+n),Log[ai(0x161)](ai(0x12c)+v+':'+w),Log[ai(0x161)](ai(0x16f)+o),Log[ai(0x161)](ai(0x18a)+r),Log['notice']('Security\x20Group:\x20'+m),Log[ai(0x161)](ai(0x186)+a6);if(x){Log[ai(0x161)]('User\x20Data:'+x);const a8=a7g[ai(0x191)](x)['toString']();Log['notice'](a8);}const a7=await Actions[ai(0x128)](ai(0x17d));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0x18c)},{'Key':ai(0x140),'Value':h},{'Key':ai(0x12f),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x172)](ai(0x18b)),Log['bright'](ai(0x164)));}else{Log[ai(0x161)](ai(0x150));const aa=await Actions[ai(0x128)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x156)](r),f['isFile'](s)&&a7g[ai(0x132)](s));const ab=await Actions[ai(0x128)]('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);ab&&d[ai(0x162)](m);}}catch(ac){Log[ai(0x15f)](ac);}}catch(ad){ad&&Log[ai(0x15f)](ad),process[ai(0x12d)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8j=a8d;function a8c(){const l=['maka\x20aws:ckp\x20--env\x20prod','toString','exit','2825288jaBHRN','12340JSTtOr','8ezPAmR','env','48772070NlfZLT','getEnvFromShorthand','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','17936ZFkzeg','create-key-pair','1133009dcyQDf','4341483bUYZEM','(((.+)+)+)+$','4907dhCXog','apply','createKeyPair','maka\x20aws:create-key-pair','constructor','error','create','2126373vCBYKN','624ppdkhp','search'];a8c=function(){return l;};return a8c();}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x69))/0x1+-parseInt(g(0x79))/0x2+-parseInt(g(0x73))/0x3*(parseInt(g(0x7b))/0x4)+parseInt(g(0x7a))/0x5*(-parseInt(g(0x74))/0x6)+parseInt(g(0x6c))/0x7*(-parseInt(g(0x80))/0x8)+-parseInt(g(0x6a))/0x9+parseInt(g(0x7d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xd43a9));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x6d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()['search'](i(0x6b))[i(0x77)]()[i(0x70)](a8a)[i(0x75)](i(0x6b));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x69;let f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8j(0x72)]({'name':a8j(0x81),'aliases':['ckp'],'usage':a8j(0x6f),'examples':['maka\x20aws:create-key-pair\x20--env\x20prod',a8j(0x76)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x7c)],'validOpts':[],'shortDesc':a8j(0x7f),'description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const k=a8j;try{const c=new AWS(),d=this['fsi'][k(0x7e)](b[k(0x7c)]);c[k(0x6e)]({'env':d});}catch(f){f&&Log[k(0x71)](f),process[k(0x78)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(
|
|
1
|
+
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=-parseInt(m(0x150))/0x1+parseInt(m(0x136))/0x2*(parseInt(m(0x13f))/0x3)+parseInt(m(0x142))/0x4*(parseInt(m(0x155))/0x5)+parseInt(m(0x137))/0x6+parseInt(m(0x148))/0x7*(-parseInt(m(0x143))/0x8)+parseInt(m(0x14b))/0x9*(parseInt(m(0x135))/0xa)+-parseInt(m(0x146))/0xb*(parseInt(m(0x151))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x90c8e));function a9c(){const s=['65282COVmzb','Security\x20Group\x20Name:\x20[','maka\x20aws:create-secuirty-group','248634hCaDov','search','apply','22,80,443','split','617446SMBiDw','8012460LByCjf','ask','Web\x20App','toString','4770475VaGPVp','chooseVPC','ec2createSG','(((.+)+)+)+$','180MVRDue','8hvmCeB','1515606IpxUqs','fsi','name','maka\x20aws\x20create-security-group','csg','forEach','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','680409WEIaDL','maka\x20aws:csg','exit','4BPcedt','56huxErr','List\x20is\x20not\x20all\x20numbers','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','22LTRqpE','match'];a9c=function(){return s;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x14c)](o(0x134))[o(0x154)]()['constructor'](a9a)[o(0x14c)](o(0x134));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x134;let f=c[d];return f;},a9d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'create-security-group','aliases':[a9p(0x13b)],'usage':a9p(0x13a),'validOpts':[],'shortDesc':a9p(0x13e),'description':a9p(0x13d),'examples':[a9p(0x14a),a9p(0x140)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x138)]['getMakaProjectConfig'](),{appName:f}=d,g=await c[q(0x156)](),h=b[q(0x139)]?b[q(0x139)]:''+f,i=await Actions['ask'](q(0x149)+h+']')||h,j=await Actions[q(0x152)](q(0x145))||q(0x14e),k=j[q(0x14f)](',');k[q(0x13c)](l=>{const r=q;if(!l[r(0x147)](/^\d+$/))throw r(0x144);}),await c[q(0x157)]({'description':q(0x153),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log['error'](l),process[q(0x141)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-
|
|
1
|
+
const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x15b;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x16e))/0x1*(-parseInt(f(0x16d))/0x2)+parseInt(f(0x16c))/0x3+parseInt(f(0x15e))/0x4+parseInt(f(0x170))/0x5+parseInt(f(0x163))/0x6+-parseInt(f(0x166))/0x7+parseInt(f(0x168))/0x8*(-parseInt(f(0x16a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xeb648));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(0x15f)]()[h(0x171)](h(0x16b))[h(0x15f)]()[h(0x160)](a10a)['search']('(((.+)+)+)+$');});function a10c(){const k=['apply','\x20in\x20region\x20','\x20deleted\x20successfully\x20in\x20region\x20','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','decr','exit','Delete\x20an\x20Elastic\x20Container\x20Repository','5805296ckmTcx','toString','constructor','Repository\x20','create','6153486ojHgrf','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','name','5942594LltPXB','ecrDeleteRepository','25064920cqIUOm','region','9jLbDKv','(((.+)+)+)+$','1251762iYqxbe','2254810wLgvml','1ToySbf','delete-ecr','4623305FsmYEs','search','success'];a10c=function(){return k;};return a10c();}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x162)]({'name':a10i(0x16f),'aliases':[a10i(0x15b)],'usage':a10i(0x164),'requiredOpts':['name',a10i(0x169)],'validOpts':[],'shortDesc':a10i(0x15d),'examples':['maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1',a10i(0x176)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x167)]({'repoName':b['name'],'region':b['region']}),Log[j(0x172)](j(0x161)+b[j(0x165)]+j(0x175)+b[j(0x169)]+'.'),process['exit'](0x0);}catch(d){Log['error']('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[j(0x165)]+j(0x174)+b[j(0x169)]+'.\x20Error:\x20'+d),process[j(0x15c)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x1aa))/0x1*(parseInt(f(0x19e))/0x2)+parseInt(f(0x1a8))/0x3+parseInt(f(0x1ab))/0x4*(-parseInt(f(0x1a5))/0x5)+parseInt(f(0x1a4))/0x6+parseInt(f(0x1a6))/0x7*(parseInt(f(0x196))/0x8)+parseInt(f(0x19b))/0x9*(parseInt(f(0x1a2))/0xa)+-parseInt(f(0x199))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x5369b));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(0x1a0)]()[g(0x1a9)](g(0x19a))[g(0x1a0)]()[g(0x19d)](a11a)['search'](g(0x19a));});a11a();import a11e from'./aws.command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x195;let f=c[d];return f;},a11d(a,b);}import{Command}from'../../command.js';function a11c(){const j=['create','341646rYpIWS','17345mTrPwv','21aMeIbS','describe-instances','1390212BePmHV','search','10kyolfP','328iRLbUm','maka\x20aws:di','1663480HegQvj','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','ec2describeInstances','11885742ZdqouH','(((.+)+)+)+$','3489111joHgQE','error','constructor','34962gmfxAN','exit','toString','maka\x20aws:describe-instances','10CxRIEN'];a11c=function(){return j;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11h(0x1a3)]({'name':a11h(0x1a7),'aliases':['di'],'usage':a11h(0x1a1),'validOpts':[],'shortDesc':a11h(0x197),'examples':['maka\x20aws:describe-instances',a11h(0x195)],'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(0x198)]();}catch(b){b&&Log[i(0x19c)](b),process[i(0x19f)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1fd))/0x1*(-parseInt(f(0x1f4))/0x2)+parseInt(f(0x1f3))/0x3+-parseInt(f(0x1fa))/0x4+parseInt(f(0x1ee))/0x5+-parseInt(f(0x1f0))/0x6+parseInt(f(0x1f1))/0x7*(-parseInt(f(0x1f5))/0x8)+-parseInt(f(0x1f2))/0x9*(-parseInt(f(0x1ef))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x79843));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(0x1f7)]()[g(0x1f6)](g(0x1fb))[g(0x1f7)]()['constructor'](a12a)[g(0x1f6)](g(0x1fb));});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-0x1ee;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12h(0x1ff),'aliases':[a12h(0x1fc)],'usage':a12h(0x1f9),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':['maka\x20aws:describe-key-pairs',a12h(0x1fe)]},async function(){const i=a12h;try{const a=new AWS();a[i(0x1f8)]();}catch(b){b&&Log['error'](b),process['exit'](0x0);}},a12e);function a12c(){const j=['1868199BrjboM','2HivQsR','8IWisbu','search','toString','ec2describeKeys','maka\x20aws:describe-key-pairs','1038212ZjzAoY','(((.+)+)+)+$','dkp','271580YwQvHC','maka\x20aws:dkp','describe-key-pairs','2207895XKKjgv','30HCBlIS','610548WtiYhx','1009421cyEgXO','631539RZCElw'];a12c=function(){return j;};return a12c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(
|
|
1
|
+
const a13o=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a13d(a,b);}(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x1d7))/0x1+-parseInt(l(0x1cb))/0x2+parseInt(l(0x1bc))/0x3*(parseInt(l(0x1d0))/0x4)+-parseInt(l(0x1c6))/0x5+-parseInt(l(0x1d3))/0x6*(-parseInt(l(0x1c8))/0x7)+-parseInt(l(0x1cc))/0x8+-parseInt(l(0x1bd))/0x9*(-parseInt(l(0x1d5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xf10df));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x1c7)]()['search'](n(0x1ca))['toString']()[n(0x1c2)](a13a)[n(0x1d9)]('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const s=['exit','notice','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','ID:\x20','\x20SG\x20NAME:\x20','1529268DcezGr','15642iUfnFW','name','error','includes','delete-security-group','constructor','maka\x20aws:delete-sg','forEach','isMakaProject','2813930wPViSm','toString','1239fOlosS','deleteSecurityGroup','(((.+)+)+)+$','2787398LehNMC','5373208qYGUDN','dsg','sgId','appName','8TBHKbc','Not\x20deleting\x20secuirty\x20group','ask','31344WYJDei','apply','14020KIsWRU','getMakaProjectConfig','765341IapRTi','\x20SGID:\x20','search'];a13c=function(){return s;};return a13c();}import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a13o(0x1c1),'aliases':[a13o(0x1cd)],'usage':a13o(0x1c3),'validOpts':[],'shortDesc':a13o(0x1b8),'examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1c5)]();let d='';if(c){const j=b[p(0x1d6)]();d=j[p(0x1cf)];}const {sgList:f}=await a['getSecurityGroups']();f['forEach'](function(k){const q=p;c&&k[q(0x1be)][q(0x1c0)](d)?Log[q(0x1db)](q(0x1ba)+k['id']+q(0x1bb)+k['name']+q(0x1d8)+k[q(0x1ce)]):Log['bright']('ID:\x20'+k['id']+q(0x1bb)+k[q(0x1be)]+q(0x1d8)+k[q(0x1ce)]);});let g='';const h=await Actions[p(0x1d2)](p(0x1b9));f[p(0x1c4)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1ce)]);});if(!g)throw Log[p(0x1bf)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions['confirm']('Deleting\x20a\x20'+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x1c9)](g),Log['success']('Deleted\x20'+g)):Log[p(0x1bf)](p(0x1d1)),process[p(0x1da)](0x0);}catch(k){k&&Log[p(0x1bf)](k),process[p(0x1da)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x15d))/0x1+parseInt(f(0x168))/0x2+parseInt(f(0x16a))/0x3+-parseInt(f(0x164))/0x4*(-parseInt(f(0x15a))/0x5)+parseInt(f(0x166))/0x6+parseInt(f(0x153))/0x7*(parseInt(f(0x162))/0x8)+-parseInt(f(0x15f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x385de));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x161)]()[h(0x157)](h(0x154))['toString']()[h(0x158)](a14a)['search'](h(0x154));});a14a();import a14e from'./aws.command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x153;let f=c[d];return f;},a14d(a,b);}function a14c(){const k=['3052413WpwLic','apply','toString','68576aRBSJP','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','58368KTyvRb','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','1218366pfyArC','lecr','699860yUUFyg','success','175569IDfYCo','regions','56zPBnHc','(((.+)+)+)+$','list-ecr','exit','search','constructor','create','120WvWZdV','maka\x20aws:list-ecr','error','460263BYZaef','maka\x20aws:lecr\x20--regions=all'];a14c=function(){return k;};return a14c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x159)]({'name':a14i(0x155),'aliases':[a14i(0x167)],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x16b)],'shortDesc':a14i(0x165),'examples':[a14i(0x15b),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14i(0x15e)]},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x16b)]),Log[j(0x169)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x156)](0x0);}catch(d){Log[j(0x15c)](j(0x163)+d),process[j(0x156)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x8b;let f=c[d];return f;},a15d(a,b);}const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x94))/0x1+parseInt(f(0x96))/0x2*(parseInt(f(0xa1))/0x3)+-parseInt(f(0x9c))/0x4*(-parseInt(f(0xa5))/0x5)+-parseInt(f(0x91))/0x6*(parseInt(f(0x98))/0x7)+parseInt(f(0x9d))/0x8+parseInt(f(0x8d))/0x9+-parseInt(f(0x9f))/0xa*(parseInt(f(0x93))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd7b42));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x9e)]()['search'](h(0xa4))[h(0x9e)]()[h(0x92)](a15a)[h(0x90)](h(0xa4));});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';function a15c(){const k=['115SckoWw','chooseInstance','instanceId','exit','6912963bupBJn','apply','confirm','search','48tcUakX','constructor','11ucIOIe','1169438DxKlbU','status','302964NkZiXH','Reboot\x20an\x20EC2\x20instance','45521NqgqhZ','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','running','41612uneVqf','10890120XDQtbW','toString','30569790MMXdxu','maka\x20aws:reboot-instance','9vBXhZI','name','error','(((.+)+)+)+$'];a15c=function(){return k;};return a15c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'reboot-instance','aliases':['rbi'],'usage':a15i(0xa0),'validOpts':[],'shortDesc':a15i(0x97),'examples':[a15i(0xa0),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xa6)]();if(b?.[j(0x95)]===j(0x9b)){const c=await Actions[j(0x8f)](j(0x99)+b[j(0xa2)]+'\x20Ready?');c&&b[j(0x8b)]?a['ec2rebootInstance']({'instanceId':b[j(0x8b)]}):Log[j(0xa3)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b[j(0xa2)]+'\x20is\x20still\x20running.');}else Log['error'](j(0x9a));}catch(d){d&&Log['error'](d),process[j(0x8c)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d
|
|
1
|
+
const a16I=a16d;function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xf9;let f=c[d];return f;},a16d(a,b);}(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0xfd))/0x1*(parseInt(E(0x11e))/0x2)+-parseInt(E(0xfe))/0x3+-parseInt(E(0x10b))/0x4*(-parseInt(E(0x11f))/0x5)+parseInt(E(0x106))/0x6*(-parseInt(E(0x11b))/0x7)+-parseInt(E(0x123))/0x8+parseInt(E(0x104))/0x9+parseInt(E(0x12f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x96aea));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x126)]()[G(0x101)](G(0x10c))['toString']()[G(0x134)](a16a)[G(0x101)](G(0x10c));});a16a();import a16e from'./aws.command.js';function a16c(){const K=['15801030nFmlBb','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','123\x20Glorious\x20Way','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Do\x20you\x20wish\x20to\x20register\x20','constructor','Contact\x20Email\x20[mail@example.com]:\x20','maka\x20aws:register-domain-name','mail@example.com','maka\x20aws:rdn\x20--domain=example.com','11054AFKHIO','3508644jmYOPN','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','rdn','search','Domain\x20name\x20is\x20unavailable','Are\x20you\x20sure?','7353072oRttWz','OrganizationName','4865550ftiwoL','My\x20Comanpy,\x20LLC.','PERSON','Zip\x20Code\x20[96816]:\x20','The\x20domain\x20name:\x20','52812OSYOjM','(((.+)+)+)+$','Choose\x20contact\x20type','list','checkDomainAvailability','Country\x20Code\x20[US]:\x20','warn','maka\x20aws:register-domain-name\x20--domain=example.com','\x20/\x20Year)','Person','COMPANY','confirm','domain','\x20/\x20Year\x20\x0a','ask','PUBLIC_BODY','7sFQpJR','\x20for\x20','ASSOCIATION','34gVuPtN','370wVhozR','values','Auto\x20Renew:\x20','\x20years\x20(','4708384DODjze','Duration\x20in\x20years\x20[1]:\x20','Contact\x20Last\x20Name\x20[Person]:\x20','toString','notice','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','Address\x20Line\x202:\x20','State\x20[HI]:\x20','RESELLER','error','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','apply'];a16c=function(){return K;};return a16c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0x120)](CountryCode)['includes'](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':'register-domain-name','aliases':[a16I(0x100)],'usage':a16I(0xfa),'requiredOpts':[a16I(0x117)],'validOpts':[],'shortDesc':a16I(0x132),'examples':[a16I(0x112),a16I(0xfc)]},async function(a,b){const J=a16I;try{const c=b[J(0x117)],d=new AWS(),{available:f,cost:g}=await d[J(0x10f)](c);if(f&&g){Log[J(0x127)](J(0x10a)+c+'\x20is\x20available\x20for:');const {Price:h,Currency:i}=g;Log[J(0x111)]('\x20\x20'+h+'\x20'+i+J(0x118));const j=await Actions[J(0x116)](J(0x133)+c+'\x20?',![]);if(j){const k={'type':J(0x10e),'name':'contactType','message':J(0x10d),'choices':[J(0x11d),J(0x115),J(0x108),J(0x11a),J(0x12b)]},l=await Actions['ask'](J(0x124))||'1',m=await Actions[J(0x119)]('Contact\x20First\x20Name\x20[Contact]:\x20')||'Contact',n=await Actions[J(0x119)](J(0x125))||J(0x114),{contactType:o}=await Actions['options'](k),p=await Actions['ask']('Address\x20Line\x201\x20[123\x20Glorious\x20Way]:')||J(0x131),q=await Actions[J(0x119)](J(0x129)),r=await Actions[J(0x119)](J(0x109))||'96816',s=await Actions[J(0x119)](J(0x12a))||'HI',t=await Actions[J(0x119)](J(0x110))||'US',u=getCountryCodeEnum(t);if(!u)throw Log['error']('Invalid\x202\x20character\x20country\x20code');const v=await Actions[J(0x119)](J(0x128))||'+1.5555555555',w=await Actions['ask'](J(0xff))||'+1.5555555556',x=await Actions[J(0x119)](J(0xf9))||J(0xfb),y=await Actions['confirm'](J(0x121)),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['ask'](J(0x12d))||J(0x107);z[J(0x105)]=C;}const A=h||0x0*parseInt(l);Log[J(0x127)](J(0x130)),Log[J(0x111)](A+'\x20'+i+J(0x11c)+l+J(0x122)+h+'\x20'+i+J(0x113));const B=await Actions[J(0x116)](J(0x103));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw J(0x102);}catch(D){D&&Log[J(0x12c)](D),process['exit'](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a17j=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x195))/0x1*(-parseInt(h(0x17f))/0x2)+parseInt(h(0x190))/0x3+parseInt(h(0x181))/0x4*(parseInt(h(0x183))/0x5)+-parseInt(h(0x19e))/0x6*(-parseInt(h(0x185))/0x7)+parseInt(h(0x199))/0x8+-parseInt(h(0x19d))/0x9+-parseInt(h(0x18e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x854b0));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const i=a17d;return a17a['toString']()[i(0x18f)](i(0x17d))[i(0x18d)]()[i(0x188)](a17a)[i(0x18f)](i(0x17d));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';function a17c(){const m=['constructor','exit','Deleted\x20','Deleting\x20a\x20','create','toString','15309480BlOegS','search','2979531aYYkML','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','ask','maka\x20aws:remove-key-pair','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','6263nJgQOp','\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','error','rkp','5871480sYcSOL','deleteKeyPair','Not\x20deleting\x20keypair','Please\x20choose\x20a\x20key\x20to\x20delete:','5472882EZNzUJ','942VVYneP','forEach','(((.+)+)+)+$','confirm','94WQJVRR','maka\x20aws:rkp','548mzgdpL','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','33080FbyReh','success','15421aPAgUU','name','remove-key-pair'];a17c=function(){return m;};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-0x17c;let f=c[d];return f;},a17d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a17j(0x18c)]({'name':a17j(0x187),'aliases':[a17j(0x198)],'usage':a17j(0x193),'validOpts':[],'shortDesc':a17j(0x182),'description':a17j(0x196),'examples':[a17j(0x193),a17j(0x180)]},async function(){const k=a17j;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[k(0x192)](k(0x19c));b?.[k(0x17c)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x186)]);});if(!c)throw Log[k(0x197)](k(0x194));const f=await Actions[k(0x17e)](k(0x18b)+c+k(0x191),![]);f?(await a[k(0x19a)](c),Log[k(0x184)](k(0x18a)+c)):Log[k(0x197)](k(0x19b)),process[k(0x189)](0x0);}catch(g){g&&Log[k(0x197)](g),process[k(0x189)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a18o=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(0x19d))/0x1+-parseInt(m(0x19b))/0x2*(-parseInt(m(0x1b9))/0x3)+-parseInt(m(0x1bd))/0x4*(-parseInt(m(0x197))/0x5)+-parseInt(m(0x1ac))/0x6+-parseInt(m(0x193))/0x7*(-parseInt(m(0x195))/0x8)+parseInt(m(0x19c))/0x9*(parseInt(m(0x1a7))/0xa)+parseInt(m(0x191))/0xb*(-parseInt(m(0x1be))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x7b4a0));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a[n(0x192)]()['search']('(((.+)+)+)+$')[n(0x192)]()['constructor'](a18a)[n(0x1bb)](n(0x1ba));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';function a18c(){const q=['set-host','62887StuAzA','toString','1393lklSlX','maka\x20aws:set-host\x20--env\x20dev','26704lgtAEa','maka\x20aws\x20set-host','541435ACOVmn','exit','writeFileSync','join','4766GBnBhs','36yEvZmk','204795BYKEqU','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','public','sth','getEnvFromShorthand','success','readFileSync','fsi','inherit','appName','246640RQRRrS','private','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','template','\x20IP\x20to\x20','2922738IHuGlv','\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','getAppConfigPath','publicIp','create','config/ssh.json','getMakaProjectConfig','utf8','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','cat\x20','privateIp','sep','isFile','1203tZNpqt','(((.+)+)+)+$','search','host','16kbHgIX','2004kmdHTb','\x0aSaved\x20host\x20','env','stringify','ssh.json'];a18c=function(){return q;};return a18c();}import{AWS}from'../../tools/aws/aws.class.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x18d;let f=c[d];return f;},a18d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a18o(0x1b0)]({'name':a18o(0x190),'aliases':[a18o(0x1a0)],'usage':a18o(0x196),'mustBeInMakaProject':!![],'requiredOpts':[a18o(0x18d)],'validOpts':[],'shortDesc':a18o(0x19e),'description':a18o(0x1ad),'examples':[a18o(0x194),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x1a4)][p(0x1a1)](b[p(0x18d)]),f=this[p(0x1a4)][p(0x1ae)](d),g=this[p(0x1a4)][p(0x1b2)](),h=await c['chooseInstance'](),i=a18e[p(0x19a)](f,p(0x18f));!this[p(0x1a4)][p(0x1b8)](i)&&await this[p(0x1a4)][p(0x1aa)]({'srcPath':p(0x1b1),'destPath':i,'context':{'app':g[p(0x1a6)]},'config':g});const j=JSON['parse'](a18f[p(0x1a3)](i,p(0x1b3))),k=await Actions['ask'](p(0x1a9))||p(0x19f);if(k){if(k===p(0x19f)||k===p(0x1a8)){if(k==='public')j[p(0x1bc)]=h?.[p(0x1af)];else k===p(0x1a8)&&(j[p(0x1bc)]=h?.[p(0x1b6)]);}else throw p(0x1b4);}else j[p(0x1bc)]=h?.[p(0x1b6)];a18f[p(0x199)](a18e[p(0x19a)](f,p(0x18f)),JSON[p(0x18e)](j,null,0x2)),execSync(p(0x1b5)+a18e['join'](f,p(0x18f)),{'stdio':p(0x1a5)}),Log[p(0x1a2)](p(0x1bf)+k+p(0x1ab)+f+a18e[p(0x1b7)]+'ssh.json');}catch(l){l&&Log['error'](l),process[p(0x198)](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(0x1a5))/0x1+parseInt(f(0x19d))/0x2*(-parseInt(f(0x1ad))/0x3)+parseInt(f(0x1aa))/0x4+-parseInt(f(0x198))/0x5+-parseInt(f(0x1a7))/0x6+-parseInt(f(0x195))/0x7*(-parseInt(f(0x196))/0x8)+parseInt(f(0x19b))/0x9*(parseInt(f(0x1a2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xd22d9));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1a4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x1a6)]()['search'](h(0x19a))[h(0x1a6)]()[h(0x19f)](a19a)[h(0x1a3)](h(0x19a));});a19a();import a19e from'./aws.command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x195;let f=c[d];return f;},a19d(a,b);}import{Command}from'../../command.js';function a19c(){const k=['744176aImjkD','confirm','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','1788288ygZwfC','ec2terminateInstance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','name','running','exit','\x20Ready?','1638HxCdJq','43984aPumXO','terminate-instance','650610CJXZaa','chooseInstance','(((.+)+)+)+$','9387vwcTnk','maka\x20aws:ti','2HfOObj','Terminate\x20an\x20EC2\x20instance','constructor','instanceId','maka\x20aws:terminate-instance','19170okoTSO','search','apply','1111406lXkNcD','toString','4640964mxHjfp','error','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).'];a19c=function(){return k;};return a19c();}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(0x197),'aliases':['ti'],'usage':'maka\x20aws:terminate-instance','validOpts':[],'shortDesc':a19i(0x19e),'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(0x1a1),a19i(0x19c)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x199)]();if(b?.[j(0x1a0)]&&b?.['status']===j(0x1b1)){const c=await Actions[j(0x1ab)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+j(0x1b3));c?a[j(0x1ae)]({'instanceId':b[j(0x1a0)]}):Log[j(0x1a8)](j(0x1ac)+b[j(0x1b0)]+j(0x1a9));}else Log[j(0x1a8)](j(0x1af));}catch(d){d&&Log['error'](d),process[j(0x1b2)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x181))/0x1*(-parseInt(f(0x178))/0x2)+parseInt(f(0x175))/0x3*(parseInt(f(0x177))/0x4)+parseInt(f(0x180))/0x5*(parseInt(f(0x17d))/0x6)+-parseInt(f(0x182))/0x7+-parseInt(f(0x17c))/0x8*(-parseInt(f(0x184))/0x9)+parseInt(f(0x176))/0xa+-parseInt(f(0x17a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x3d80e));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x179)]()[h(0x17e)](h(0x17f))[h(0x179)]()[h(0x17b)](a20a)[h(0x17e)](h(0x17f));});a20a();import'./build.js';function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x175;var f=c[d];return f;},a20d(a,b);}import'./docker.sub.cmd.js';function a20c(){var i=['139122tsoKjI','4539030MqHvXD','36KEfxcq','22856avimft','toString','13664849cQLaBS','constructor','2808584MZXEmQ','6iFFneU','search','(((.+)+)+)+$','2222970hXrYmq','5hzQKyi','1609293VMyKpK','apply','9GOtCaZ'];a20c=function(){return i;};return a20c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=parseInt(n(0xf7))/0x1+-parseInt(n(0xfd))/0x2+parseInt(n(0x10a))/0x3+-parseInt(n(0x102))/0x4+parseInt(n(0x11c))/0x5+-parseInt(n(0x103))/0x6+parseInt(n(0x11d))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xb2262));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x113)]()[p(0x11a)]('(((.+)+)+)+$')[p(0x113)]()[p(0x109)](a21a)[p(0x11a)](p(0x104));});a21a();function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0xf7;let f=c[d];return f;},a21d(a,b);}import a21e from'path';function a21c(){const t=['333394caAJXe','pathFromProject','--release','autoupdate','slice','4446724kHTRzE','8402550lICrLt','(((.+)+)+)+$','create','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','invokeMeteorCommand',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','constructor','1508649RbHOwG','fsi','exit','--force','maka\x20build','splice','confirm','error','concat','toString','getGlobalMeteorVersion','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','apply','getProjectMeteorVersion','checkMeteorPackage','force','search','forEach','3764455NecQSA','11982817EOaLNm','440896gHdVGg','build','join','existsSync','update','app.tar.gz'];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(0x105)]({'name':a21q(0xf8),'usage':a21q(0x10e),'validOpts':[a21q(0x119)],'aliases':['b'],'shortDesc':a21q(0x106),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':[a21q(0x10e)]},async function(a,b){const r=a21q;try{await this['fsi'][r(0x118)](r(0x100),{'shouldInstall':!![]});const c=b['force'];if(!c){const g=this[r(0x10b)][r(0x114)](),h=this['fsi'][r(0x117)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x110)]('This\x20project\x27s\x20meteor\x20version\x20('+h+r(0x108)+g+').\x20Update?');j&&this[r(0x10b)][r(0x107)](r(0xfb),[r(0xff),g]);}}const d=[this[r(0x10b)][r(0xfe)]({'pathParts':[r(0xf8)]})][r(0x112)](process['argv'][r(0x101)](0x3)),f=a21e[r(0xf9)](this[r(0x10b)][r(0xfe)]({}),'build',r(0xfc));if(a21f[r(0xfa)](f)){const k=c??await Actions[r(0x110)](r(0x115));if(!k)throw Log[r(0x111)]('Aborted.');}d[r(0x11b)]((l,m)=>{const s=r;l===s(0x10d)&&d[s(0x10f)](m,0x2);}),this[r(0x10b)]['invokeMeteorCommand']('build',d);}catch(l){console['error'](l),process[r(0x10c)](0x0);}});export default BuildCommand;
|