@maka/maka-cli 4.12.5 → 4.12.7
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.7",
|
|
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 a0q=a0d;function
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x126))/0x1*(parseInt(n(0xee))/0x2)+parseInt(n(0x102))/0x3+parseInt(n(0x106))/0x4*(parseInt(n(0x129))/0x5)+parseInt(n(0x11a))/0x6*(-parseInt(n(0x12a))/0x7)+parseInt(n(0x113))/0x8+parseInt(n(0xf7))/0x9*(parseInt(n(0x117))/0xa)+parseInt(n(0x11d))/0xb*(-parseInt(n(0xf5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xd6361));function a0c(){const A=['tableList','mustBeInMakaProject','2222049RLbhTO','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','exit','mustHaveMeteorInstalled','4XtAgRD','number','bind','mustBeLoggedIn','light','maxArgLength','options','Command\x20','Description','split','create','minOptsLength','slice','8558816PnPcBh','Name','validateMakaProject','forEach','61890ursvEy','Command\x20requires\x20a\x20name','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','444OwuXwL','Too\x20many\x20arguments','DARK','44594qRIElM','addCommand','match','validateMeteorInstall','Too\x20few\x20arguments','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','generate','maybeProxyCommandToMeteor','sort','151573hzfidO','Command\x20requires\x20a\x20handler\x20function','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','6805305vJjFcT','10094vLriDE','push','addCommand\x20requires\x20a\x20Command\x20instance','header','invoke','keys','unshift','shortDesc','help','pallet','processAndRunCommand','run','murder','minArgLength','error','localeCompare','find','name','length','join','_commands','search','getGlobalConfig','18mQZAIV','Please\x20run\x20\x22maka\x20login\x22','_handler','Too\x20many\x20options','maxOptsLength','Command\x20not\x20found','function','11832HxoQKT','\x20not\x20found','648tJFFUX','validateMakaSubscription','constructor','aliases','apply','usage','notice','call','fsi'];a0c=function(){return A;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a['toString']()['search']('(((.+)+)+)+$')['toString']()[p(0xf9)](a0a)[p(0xec)]('(((.+)+)+)+$');});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xdc;let f=c[d];return f;},a0d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0q(0xeb)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x128));if(!a[r(0xe8)])throw new Error(r(0x118));if(typeof b!==r(0xf4))throw new Error(r(0x127));this[r(0x10c)]=Object['assign']({},a),this['name']=this['options'][r(0xe8)],this[r(0xeb)]=[],this[r(0xf0)]=b[r(0x108)](this);}static[a0q(0x110)](a,b,c){const s=a0q;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==s(0xf4))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[s(0x10c)]?.['name']}),c[s(0x11e)](d),d;}[a0q(0x11e)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x12c));this[t(0xeb)][t(0x12b)](a);}async[a0q(0xe2)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0xff)][u(0xed)](),d=c[u(0xe0)]===u(0x10a)?ColorMode['LIGHT']:ColorMode[u(0x11c)];Log['setColorMode'](d),await this[u(0xf8)](this);}catch(f){Log[u(0xe5)](f),process['exit'](0x0);}return await this[u(0x12e)](a,b);}catch(g){process['exit'](0x1);}}async['invoke'](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x10c)];try{if(this[v(0x10c)][v(0xe8)]!==v(0x123)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0xe9)]===0x0)&&this['_commands']['length']>=0x0,g=b[v(0xdf)]||b['h'];if(f&&g){if(this[v(0xeb)][v(0xe9)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x10c)][v(0x101)]){const h=this[v(0x115)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x10c)][v(0x109)]){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[v(0x10c)][v(0x105)]){const j=this[v(0x120)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][v(0xe4)]==='number'){if(a[v(0xe9)]<this[v(0x10c)][v(0xe4)]){Log[v(0xe5)](v(0x121));throw new UsageError();}}if(typeof this[v(0x10c)][v(0x10b)]===v(0x107)){if(a['length']>=this[v(0x10c)][v(0x10b)]){Log[v(0xe5)](v(0x11b));throw new UsageError();}}if(typeof this[v(0x10c)]['minOptsLength']===v(0x107)){if(Object[v(0xdc)](b)['length']<this['options'][v(0x111)]){Log[v(0xe5)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[v(0x10c)][v(0xf2)]==='number'){if(Object[v(0xdc)](b)['length']>=this[v(0x10c)][v(0xf2)]){Log['error'](v(0xf1));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[v(0x10c)]),_prevCmd=a[0x0];}return await this[v(0xf0)][v(0xfe)](this,a,b);}catch(k){Log[v(0xfc)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0xfd)]('Sub-Commands:'),this[v(0x100)](this[v(0xeb)]),Log[v(0x12d)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(k instanceof MustBeInProjectError)Log[v(0xe5)](v(0x119));else{if(k instanceof NoMeteorFoundError)Log[v(0xe5)](v(0x103)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else{if(k instanceof NoMeteorAppFoundError)Log[v(0xe5)]('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log['error'](v(0x122)),Log[v(0xfd)](v(0xef)));}}}process['exit'](0x1);}}[a0q(0x100)](a){const w=a0q,b=new a0e({});b[w(0x12b)]([w(0x114),'Alias',w(0x10e)]),a[w(0x125)]((c,d)=>{const x=w;return c['name'][x(0xe6)](d['name']);})[w(0x116)](c=>{const y=w;c[y(0xe8)]!==y(0xe3)&&c[y(0xe8)]!=='play'&&b['push']([c[y(0xe8)],c[y(0xfa)](),c[y(0xde)]()]);}),Log['bright'](b['toString']());}async[a0q(0xe1)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x10f)](':');if(!d||d[z(0xe9)]===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===z(0x123)||d[0x0]==='g'&&d['length']>0x1){const h=this[z(0xeb)][z(0xe7)](j=>j[z(0x11f)]('generate'));if(!h)throw z(0xf3);await this[z(0xf8)](h);const i=d[z(0x112)](0x1)[z(0xea)](':');return b[z(0xdd)](i),await h[z(0xe2)](b,c);}let f=this[z(0xeb)],g;for(const j of d){g=f[z(0xe7)](k=>k[z(0x11f)](j));if(!g)try{await this[z(0xff)][z(0x124)]();}catch(k){throw z(0x10d)+j+z(0xf6);}g&&(await this[z(0xf8)](g),f=g[z(0xeb)]);}if(g){const l=await g['run'](b,c);return l;}else throw'Command\x20not\x20found';}catch(m){Log['error'](m),process[z(0x104)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=-parseInt(f(0x9e))/0x1*(-parseInt(f(0x9b))/0x2)+-parseInt(f(0x93))/0x3*(parseInt(f(0x94))/0x4)+-parseInt(f(0xa0))/0x5+parseInt(f(0x90))/0x6*(-parseInt(f(0x97))/0x7)+-parseInt(f(0x98))/0x8*(-parseInt(f(0x95))/0x9)+parseInt(f(0x91))/0xa*(parseInt(f(0xa1))/0xb)+-parseInt(f(0x9c))/0xc*(-parseInt(f(0x96))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x94df0));function a1c(){var i=['1944175vcNMPu','11mxaNWw','96Xnzcus','3420710ZoCiTS','apply','10161ZNFmqA','768xbbiaN','4530618wlhLuZ','13JvaRiv','402899HuVVRC','16PUhabH','(((.+)+)+)+$','search','2dnYhEX','13717872hzknWQ','toString','77796STHtNc','constructor'];a1c=function(){return i;};return a1c();}var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x9d)]()['search'](h(0x99))[h(0x9d)]()[h(0x9f)](a1a)[h(0x9a)](h(0x99));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';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';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x90;var f=c[d];return f;},a1d(a,b);}import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2l=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x17d))/0x1*(-parseInt(h(0x16e))/0x2)+parseInt(h(0x162))/0x3*(-parseInt(h(0x183))/0x4)+-parseInt(h(0x168))/0x5+parseInt(h(0x161))/0x6*(-parseInt(h(0x17b))/0x7)+parseInt(h(0x15a))/0x8+-parseInt(h(0x16a))/0x9+parseInt(h(0x176))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xcbe45));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const i=a2d;return a2a[i(0x16f)]()[i(0x170)]('(((.+)+)+)+$')['toString']()['constructor'](a2a)[i(0x170)]('(((.+)+)+)+$');});a2a();function a2c(){const n=['Using\x20OpenAI\x20Key\x20','exit','cert','52210940rOEWpG','toLowerCase','question','close','notice','7kbIizH','Using\x20CA\x20Cert\x20','739xocVWq','error','bright','data','choices','GPT:\x20','4BKyXUp','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','fsi','5378696lwjZyB','stdout','openai','message','isFile','stdin','trim','4018296eDBVIZ','612240xnesGV','createInterface','openapikey','cacert','text','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','8014920ZrnfWC','create','8953893oAQAWi','log','askGPT','You:\x20','4294QXViSN','toString','search','ChatGPT\x20style\x20AI\x20interface','getGlobalConfig'];a2c=function(){return n;};return a2c();}import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x158;let f=c[d];return f;},a2d(a,b);}const startChat=async({openApiKey:a,caCertPath:b})=>{const j=a2d,c=a2e[j(0x163)]({'input':process[j(0x15f)],'output':process[j(0x15b)]});c[j(0x178)](j(0x16d),async d=>{const k=j;if(d[k(0x177)]()===k(0x174)){c[k(0x179)]();return;}try{const e=await HTTPS[k(0x16c)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON['parse'](e[k(0x180)]);if(f['error'])throw new Error(f[k(0x17e)][k(0x15d)]);Log[k(0x17f)](k(0x182)+f?.[k(0x181)][0x0]?.[k(0x166)][k(0x160)]());}catch(g){Log[k(0x17e)](g),process[k(0x174)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2l(0x169)]({'name':'ai','description':a2l(0x171),'validOpts':[a2l(0x165),a2l(0x164)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const m=a2l;try{let c='';b['cacert']&&(this[m(0x159)][m(0x15e)](b[m(0x165)])?(c=b[m(0x165)],Log[m(0x17a)](m(0x17c)+c)):Log[m(0x17e)](m(0x158)+c));const d=await this[m(0x159)][m(0x172)]();if(d[m(0x175)]){if(this[m(0x159)]['isFile'](d[m(0x175)]))c=d[m(0x175)];else throw Log['error']('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[m(0x164)])f=b[m(0x164)],Log[m(0x17a)](m(0x173)+f);else{if(d[m(0x15c)])f=d['openai'];else throw Log[m(0x17e)](m(0x167));}console[m(0x16b)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[m(0x17e)](g),process[m(0x174)](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(0x18c))/0x1+parseInt(f(0x18d))/0x2*(-parseInt(f(0x191))/0x3)+-parseInt(f(0x199))/0x4+-parseInt(f(0x190))/0x5*(parseInt(f(0x193))/0x6)+parseInt(f(0x197))/0x7+parseInt(f(0x194))/0x8+parseInt(f(0x196))/0x9*(parseInt(f(0x18f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x4c89a));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var g=a3d;return a3a[g(0x195)]()[g(0x18e)](g(0x192))[g(0x195)]()[g(0x198)](a3a)[g(0x18e)](g(0x192));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x18c;var f=c[d];return f;},a3d(a,b);}import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';function a3c(){var h=['toString','4104HRzPYV','3183320tNVEwM','constructor','1547880nbtwqC','439490TkUrcV','1802APYTlV','search','9330bCylWh','5ZIGIrA','2022KPjtHP','(((.+)+)+)+$','2435628oSSGUR','3151856BPqbaw'];a3c=function(){return h;};return a3c();}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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a4d(a,b);}const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x1b6))/0x1+parseInt(f(0x1a6))/0x2*(-parseInt(f(0x1a4))/0x3)+-parseInt(f(0x1aa))/0x4+parseInt(f(0x1b4))/0x5+-parseInt(f(0x1b2))/0x6*(-parseInt(f(0x1a5))/0x7)+-parseInt(f(0x1ad))/0x8*(-parseInt(f(0x1b7))/0x9)+-parseInt(f(0x1b3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x1ec09));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x1af)]()[h(0x1b5)]('(((.+)+)+)+$')[h(0x1af)]()[h(0x1ae)](a4a)['search'](h(0x1ab));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x1a7)]({'name':a4i(0x1b1),'usage':a4i(0x1a8),'validOpts':[],'shortDesc':a4i(0x1ac),'description':a4i(0x1a9)},async function(){throw UsageError;});function a4c(){const j=['7MCNobt','23756QlnBMJ','create','maka\x20aws:<sub-command>','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','624332FAZLKt','(((.+)+)+)+$','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','122808SrZOaO','constructor','toString','apply','aws','506778VtKLkV','404350iFaMjj','1148900DtfpaM','search','123532OYicOf','126runPmd','21kOquFJ'];a4c=function(){return j;};return a4c();}export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x96))/0x1+parseInt(g(0x93))/0x2+parseInt(g(0x86))/0x3*(parseInt(g(0x84))/0x4)+parseInt(g(0x95))/0x5*(parseInt(g(0x7d))/0x6)+-parseInt(g(0x87))/0x7*(parseInt(g(0x8a))/0x8)+-parseInt(g(0x80))/0x9+-parseInt(g(0x9b))/0xa*(parseInt(g(0x91))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x254df));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x9d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x8c)]()[i(0x89)](i(0x85))[i(0x8c)]()[i(0x8b)](a5a)[i(0x89)](i(0x85));});a5a();function a5c(){const l=['Repository\x20URI:\x20','5564CateHt','(((.+)+)+)+$','495WvVrQZ','2156ffIccp','region','search','3032vdKjVF','constructor','toString','$metadata','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','exit','create-ecr','620983MpWBag','cecr','438522TKxczf','maka\x20aws:cecr\x20--name=my-new-repo','5QgQZOz','112080uEHwqe','name','error','Repository\x20created\x20successfully.','maka\x20aws:create-ecr','10pQhoKm','notice','apply','repositoryUri','580326GROOCm','maka\x20aws:create-ecr\x20--name=my-new-repo','repository','966897qGXnAu','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','httpStatusCode'];a5c=function(){return l;};return a5c();}import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x7c;let f=c[d];return f;},a5d(a,b);}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a5j(0x90),'aliases':[a5j(0x92)],'usage':a5j(0x9a),'requiredOpts':[a5j(0x97)],'validOpts':[a5j(0x88)],'shortDesc':'Create\x20an\x20Elastic\x20Container\x20Repository','examples':[a5j(0x7e),a5j(0x94),a5j(0x8e)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0x8d)][k(0x82)]===0xc8&&d[k(0x7f)]?(Log['success'](k(0x99)),Log[k(0x9c)](k(0x83)+d['repository'][k(0x7c)])):Log[k(0x98)](k(0x81)),process[k(0x8f)](0x0);}catch(f){Log[k(0x98)](f),process['exit'](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6l=a6d;function a6c(){const n=['route53CreateHostedZone','Instance\x20not\x20found','error','(((.+)+)+)+$','confirm','10784097uarDIY','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','9207700HIlBkN','7742248YSPnQO','exit','apply','create','toString','243293FLJTKt','29900gRbYtW','publicIp','domain','5awdeBG','Set\x20hosted\x20zone\x20to\x20an\x20instance?','constructor','633EVTwvg','chz','432198Bxncor','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','7jntyqZ','create-hosted-zone','586166jtcakI'];a6c=function(){return n;};return a6c();}(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0x1e5))/0x1+parseInt(i(0x1d7))/0x2+-parseInt(i(0x1d1))/0x3*(-parseInt(i(0x1cb))/0x4)+-parseInt(i(0x1ce))/0x5*(parseInt(i(0x1d3))/0x6)+-parseInt(i(0x1d5))/0x7*(parseInt(i(0x1e0))/0x8)+parseInt(i(0x1dd))/0x9+-parseInt(i(0x1df))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xd3198));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cb;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(0x1e2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1e4)]()['search'](k(0x1db))['toString']()[k(0x1d0)](a6a)['search'](k(0x1db));});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(0x1e3)]({'name':a6l(0x1d6),'aliases':[a6l(0x1d2)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0x1cd)],'validOpts':[],'shortDesc':a6l(0x1de),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x1d8)](c);const f=await Actions[m(0x1dc)](m(0x1cf));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0x1cc)])throw Log[m(0x1da)](m(0x1d4));d['linkEC2ToRoute53'](g['id'],g[m(0x1cc)],c);}else throw m(0x1d9);}}catch(h){h&&Log['error'](h),process[m(0x1e1)](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(0x92))/0x1*(-parseInt(ae(0xe8))/0x2)+-parseInt(ae(0xe6))/0x3*(parseInt(ae(0x89))/0x4)+-parseInt(ae(0x8e))/0x5+parseInt(ae(0xd6))/0x6*(parseInt(ae(0x98))/0x7)+-parseInt(ae(0x91))/0x8*(parseInt(ae(0xbd))/0x9)+parseInt(ae(0xe9))/0xa+-parseInt(ae(0x82))/0xb*(-parseInt(ae(0xe1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x7268b));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x75;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(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x9c)]()[ag(0x81)](ag(0xc5))['toString']()[ag(0xc1)](a7a)[ag(0x81)](ag(0xc5));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';function a7c(){const au=['Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','*\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','Creating\x20user\x20data\x20file\x20in\x20','Setting\x20AMI\x20ID\x20to\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','parse','subnetId','desc','createFile','createKeyPair','create','fsi','Setting\x20SG\x20ID\x20to:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','amazon','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=*','6lADebc','getConfigFromShorthand','User\x20Data:','amiId','EC2\x20Name:\x20[','getAppConfigPath','deleteSecurityGroup','Create\x20new\x20AWS\x20instance','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','environment','\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','24XENTBT','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Name','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','22,80,443','607917BXoJhT','join','2254Wtunck','8875940wovpDW','Subnet:\x20','t3.micro','**\x20Available\x20key-pairs\x20**','Security\x20Group\x20Name:\x20[','subnet','\x20SUBNETID:\x20','error','\x20CIDR:\x20','1:1','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','forEach','ID:\x20','cider','ec2describeKeys','search','3071431KLNBJz','readFileSync','sgId','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','bright','string','exit','4kuodAH','ask','build\x20on\x20','ImageID:','Remove\x20the\x20security\x20group\x20','933995TYvzcb','alias','cidr','6408504nzQDvq','161bYLROM','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20SGID:\x20','split','chooseVPC','apply','221459ZuYfWb','\x20SG\x20NAME:\x20','unlinkSync','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','toString','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Desc','confirm','\x20AMIID:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','date','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','\x20DESCRIPTION:\x20','Instace\x20Type:\x20','Remove\x20the\x20keypair\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','name','Security\x20Group:\x20','\x20AZONE:\x20','maka\x20aws:ci\x20--env\x20prod','Setting\x20Subnet\x20ID\x20to\x20','ec2create','number','getMakaProjectConfig','Web\x20App','log','push','maka\x20aws:create-instance','success','\x20:\x20','maka-cli','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','env','getSecurityGroups','Would\x20you\x20like\x20to\x20include\x20user\x20data?','**\x20Available\x20Subnets\x20**','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','9cWGjNQ','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','notice','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','constructor','maka\x20aws:create-instance\x20--env\x20dev','Key-Pair:\x20','isFile','(((.+)+)+)+$'];a7c=function(){return au;};return a7c();}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(0xd0)]({'name':'create-instance','aliases':['ci'],'usage':a7ah(0xb3),'examples':[a7ah(0xc2),a7ah(0xab)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0xb8)}],'validOpts':[],'shortDesc':a7ah(0xdd),'description':a7ah(0xe0)},async function(a,b){const ai=a7ah;try{const c=this[ai(0xd1)][ai(0xaf)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xd1)][ai(0xd7)](b[ai(0xb8)]),i=this[ai(0xd1)][ai(0xdb)](h),j=g+'-'+h,k=await Actions[ai(0x8a)](ai(0xda)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm'](ai(0xca),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xcf)]({'env':h});r=y,s=z,Log[ai(0xb4)]('Setting\x20the\x20key-pair\x20to:\x20'+r);}else try{Log[ai(0xbf)](ai(0x75));const A=r?r:k,B=await d[ai(0x80)]({'suggestion':A}),C=await Actions[ai(0x8a)](ai(0xa7))||'-1';if(parseInt(C)<0x0){Log[ai(0x79)](ai(0xbc)),Log[ai(0xbf)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x7d)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xa8)],Log[aj(0xb4)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x79)](D);}l=await d[ai(0x96)]();const t=await Actions[ai(0x9f)](ai(0xde),!![]);let u;if(t){const E=l===''?await d[ai(0x96)]():l;u=await Actions[ai(0x8a)](ai(0x76)+k+']')||k;const F=await Actions[ai(0x8a)](ai(0x85))||ai(0xe5),G=F['split'](',');await d['ec2createSG']({'description':ai(0xb0),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xb9)](u);if(I===''){Log[ai(0xbf)]('**\x20Available\x20Security\x20Groups\x20**'),J[ai(0x7d)](function(L){const ak=ai;L[ak(0xa8)]===u?Log[ak(0xbf)](ak(0x7e)+L['id']+ak(0x99)+L[ak(0xa8)]+ak(0x94)+L[ak(0x84)]):Log[ak(0x86)](ak(0x7e)+L['id']+ak(0x99)+L[ak(0xa8)]+'\x20SGID:\x20'+L[ak(0x84)]);});const K=await Actions[ai(0x8a)](ai(0x9b)+H+']\x20')||H[ai(0x9c)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x84)],Log[al(0xb4)](al(0xd2)+m+'\x0a'));});}else m=I,Log[ai(0xb4)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ai(0x79)](ai(0x7c));}catch(L){Log[ai(0x79)](L);}try{const M=0x7e6;Log[ai(0xbf)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0xd5)+M+ai(0xc7))['toString'](),O=JSON[ai(0xcb)](N),P=[],Q=[];O[ai(0x7d)](function(S){const am=ai;if(S[am(0x8f)]===am(0xd4)){const T=S[am(0x9e)][am(0x95)](am(0x8b))[0x1];P[am(0xb2)]({'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(0xa2)])['getTime']();}),P[ai(0x7d)](function(S,T){const ao=ai;Q[ao(0xb2)]({'id':T,'amiId':S['amiId'],'desc':S[ao(0xcd)]});}),Q[ai(0x7d)](function(S){const ap=ai;console['log'](ap(0x7e)+S['id']+ap(0xa0)+S[ap(0xd9)]+ap(0xa4)+S[ap(0xcd)]);});const R=await Actions[ai(0x8a)](ai(0xe2))||'0';Q[ai(0x7d)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xd9)],Log[aq(0xb4)](aq(0xc9)+n+aq(0xb5)+S[aq(0xcd)]));});if(n==='')throw Log['error'](ai(0x7c));}catch(S){Log['error'](S);}try{Log['notice'](ai(0xbb));const T=execSync(ai(0xc0))[ai(0x9c)](),U=JSON['parse'](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0xb2)]({'id':Y,'cidr':X[ar(0x7f)],'az':X['az'],'subnetId':X[ar(0xcc)]});}),V[ai(0x7d)](function(X){const as=ai;console[as(0xb1)]('ID:\x20'+X['id']+as(0x7a)+X[as(0x90)]+as(0xaa)+X['az']+as(0x78)+X[as(0xcc)]);});const W=await Actions[ai(0x8a)](ai(0xc6))||'0';V['forEach'](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0xcc)],Log[at(0xb4)](at(0xac)+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x79)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x8a)](ai(0xa1))||ai(0x7b),Z=Y[ai(0x95)](':')[0x0],a0=Y[ai(0x95)](':')[0x1];typeof parseInt(Z)===ai(0xae)&&typeof parseInt(a0)===ai(0xae)&&Log[ai(0xb4)](ai(0xe4)+Z+':'+a0);}catch(a1){Log[ai(0x79)](a1);}try{const a2=await Actions[ai(0x8a)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||ai(0xeb);typeof a2===ai(0x87)&&(o=a2);}catch(a3){Log[ai(0x79)](a3);}let x='';try{const a4=await Actions[ai(0x9f)](ai(0xba),![]);a4&&(x=a7f[ai(0xe7)](i,'user-data'),Log[ai(0xbf)](ai(0xc8)+x),await this[ai(0xd1)][ai(0xce)]({'filePath':x,'data':''}),await Actions[ai(0x9f)](ai(0xbe)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xcb)](execSync(ai(0x9d)+p+ai(0xa3))[ai(0x9c)]())[0x0][ai(0x77)];Log[ai(0xbf)](ai(0x8c)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log[ai(0xbf)](ai(0xa5)+o),Log[ai(0xbf)](ai(0xc3)+r),Log['notice'](ai(0xa9)+m),Log[ai(0xbf)](ai(0xea)+a6);if(x){Log[ai(0xbf)](ai(0xd8)+x);const a8=a7g[ai(0x83)](x)[ai(0x9c)]();Log[ai(0xbf)](a8);}const a7=await Actions[ai(0x9f)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0xad)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ai(0xb6)},{'Key':ai(0xdf),'Value':h},{'Key':ai(0xe3),'Value':k}],...x&&{'userData':x}});a9&&(Log['success'](ai(0xd3)),Log['bright'](ai(0x93)));}else{Log[ai(0xbf)](ai(0xb7));const aa=await Actions['confirm'](ai(0xa6)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0xc4)](s)&&a7g[ai(0x9a)](s));const ab=await Actions[ai(0x9f)](ai(0x8d)+m+'\x20?',!![]);ab&&d[ai(0xdc)](m);}}catch(ac){Log[ai(0x79)](ac);}}catch(ad){ad&&Log['error'](ad),process[ai(0x88)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(
|
|
1
|
+
const a8j=a8d;function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xc4;let f=c[d];return f;},a8d(a,b);}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0xc5))/0x1+parseInt(g(0xc7))/0x2+-parseInt(g(0xc6))/0x3*(-parseInt(g(0xcc))/0x4)+-parseInt(g(0xdb))/0x5*(parseInt(g(0xcd))/0x6)+parseInt(g(0xdd))/0x7+parseInt(g(0xc9))/0x8*(parseInt(g(0xd7))/0x9)+-parseInt(g(0xd3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xb45bc));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()[i(0xd8)](i(0xcf))[i(0xd6)]()[i(0xd9)](a8a)[i(0xd8)](i(0xcf));});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 a8c(){const l=['\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','430023VqPGfj','12LKXoAZ','912154JhNLxa','apply','904BieRcK','error','create-key-pair','17228UhfrSa','6OXcCvC','maka\x20aws:ckp\x20--env\x20prod','(((.+)+)+)+$','exit','env','ckp','7960300KoIyiS','fsi','create','toString','19917BMgeDQ','search','constructor','maka\x20aws:create-key-pair\x20--env\x20prod','4888010csJCxc','maka\x20aws:create-key-pair','9512881LhMuEw'];a8c=function(){return l;};return a8c();}Command[a8j(0xd5)]({'name':a8j(0xcb),'aliases':[a8j(0xd2)],'usage':a8j(0xdc),'examples':[a8j(0xda),a8j(0xce)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0xd1)],'validOpts':[],'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a8j(0xde)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0xd4)][k(0xc4)](b[k(0xd1)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[k(0xca)](f),process[k(0xd0)](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(0x17c))/0x1+-parseInt(m(0x17f))/0x2*(parseInt(m(0x188))/0x3)+parseInt(m(0x18f))/0x4+parseInt(m(0x181))/0x5+parseInt(m(0x17a))/0x6*(-parseInt(m(0x17b))/0x7)+parseInt(m(0x18a))/0x8+-parseInt(m(0x18d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x24bc3));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x18b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x191)]()['search'](o(0x193))[o(0x191)]()[o(0x185)](a9a)['search'](o(0x193));});function a9c(){const s=['Security\x20Group\x20Name:\x20[','833715YvbueI','exit','ask','error','constructor','ec2createSG','match','241935fmxVJX','create','1360280DxEREd','apply','split','4008789minrFC','create-security-group','1194740lJMFsU','maka\x20aws:csg','toString','name','(((.+)+)+)+$','getMakaProjectConfig','\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','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','csg','maka\x20aws\x20create-security-group','List\x20is\x20not\x20all\x20numbers','maka\x20aws:create-secuirty-group','257814yXydGZ','7DNnOxb','164684hDwqcP','22,80,443','chooseVPC','4QQgqWY'];a9c=function(){return s;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x174;let f=c[d];return f;},a9d(a,b);}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x189)]({'name':a9p(0x18e),'aliases':[a9p(0x176)],'usage':a9p(0x177),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a9p(0x174),'examples':[a9p(0x179),a9p(0x190)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi'][q(0x194)](),{appName:f}=d,g=await c[q(0x17e)](),h=b['name']?b[q(0x192)]:''+f,i=await Actions['ask'](q(0x180)+h+']')||h,j=await Actions[q(0x183)](q(0x175))||q(0x17d),k=j[q(0x18c)](',');k['forEach'](l=>{const r=q;if(!l[r(0x187)](/^\d+$/))throw r(0x178);}),await c[q(0x186)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x184)](l),process[q(0x182)](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xda;let f=c[d];return f;},a10d(a,b);}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0xe3))/0x1*(parseInt(f(0xef))/0x2)+parseInt(f(0xdd))/0x3+parseInt(f(0xf3))/0x4+parseInt(f(0xe4))/0x5+-parseInt(f(0xda))/0x6+-parseInt(f(0xe8))/0x7+parseInt(f(0xe2))/0x8*(-parseInt(f(0xe5))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xb69be));function a10c(){const k=['1503416afGYpW','701fRwpHa','912725uAGiZS','18uPXpCM','error','(((.+)+)+)+$','5802335PySjXT','Delete\x20an\x20Elastic\x20Container\x20Repository','delete-ecr','\x20deleted\x20successfully\x20in\x20region\x20','name','Failed\x20to\x20delete\x20the\x20repository:\x20','success','866DTAtUg','Repository\x20','exit','apply','3868236cpWGXb','decr','region','create','\x20in\x20region\x20','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','2431746DgSVeS','.\x20Error:\x20','constructor','2714637xzZASR','search','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','toString'];a10c=function(){return k;};return a10c();}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0xe1)]()[h(0xde)](h(0xe7))['toString']()[h(0xdc)](a10a)['search']('(((.+)+)+)+$');});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(0xf6)]({'name':a10i(0xea),'aliases':[a10i(0xf4)],'usage':a10i(0xdf),'requiredOpts':[a10i(0xec),a10i(0xf5)],'validOpts':[],'shortDesc':a10i(0xe9),'examples':[a10i(0xe0),a10i(0xf8)]},async function(a,b){const j=a10i;try{const c=new AWS();await c['ecrDeleteRepository']({'repoName':b['name'],'region':b[j(0xf5)]}),Log[j(0xee)](j(0xf0)+b[j(0xec)]+j(0xeb)+b['region']+'.'),process[j(0xf1)](0x0);}catch(d){Log[j(0xe6)](j(0xed)+b[j(0xec)]+j(0xf7)+b[j(0xf5)]+j(0xdb)+d),process[j(0xf1)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x14f))/0x1+parseInt(f(0x147))/0x2*(-parseInt(f(0x14c))/0x3)+parseInt(f(0x152))/0x4+-parseInt(f(0x154))/0x5*(parseInt(f(0x149))/0x6)+parseInt(f(0x148))/0x7*(-parseInt(f(0x155))/0x8)+parseInt(f(0x151))/0x9+-parseInt(f(0x158))/0xa*(parseInt(f(0x14e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xf3a08));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(0x14a)]()[g(0x144)](g(0x14b))[g(0x14a)]()['constructor'](a11a)[g(0x144)](g(0x14b));});a11a();function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x144;let f=c[d];return f;},a11d(a,b);}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a11c(){const j=['5438sFxeif','7tRGMZf','11982eQZCSz','toString','(((.+)+)+)+$','84qptSvo','\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','127402wKuyvt','16716kgbxZU','ec2describeInstances','15122349WOKnVo','7385428WpTNuT','maka\x20aws:di','1295TnlyJZ','10891208IZGYNm','error','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','510ymTRUd','search','create','maka\x20aws:describe-instances'];a11c=function(){return j;};return a11c();}Command[a11h(0x145)]({'name':'describe-instances','aliases':['di'],'usage':a11h(0x146),'validOpts':[],'shortDesc':a11h(0x157),'examples':['maka\x20aws:describe-instances',a11h(0x153)],'description':a11h(0x14d)},async function(){const i=a11h;try{const a=new AWS();a[i(0x150)]();}catch(b){b&&Log[i(0x156)](b),process['exit'](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d
|
|
1
|
+
const a12i=a12d;function a12c(){const k=['maka\x20aws:describe-key-pairs','10STSIhh','exit','dkp','constructor','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','380kEYHYj','786676vittIK','toString','9mDlhXQ','2912944CYxuMP','(((.+)+)+)+$','4606650KsLYLR','search','apply','3423XWWfCj','3015404ItkHJR','create','2129756fJbaAM','168982yNIZir','23922TglFpk','describe-key-pairs'];a12c=function(){return k;};return a12c();}(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x12f))/0x1+-parseInt(f(0x138))/0x2+-parseInt(f(0x134))/0x3+-parseInt(f(0x13a))/0x4*(-parseInt(f(0x129))/0x5)+parseInt(f(0x13c))/0x6*(parseInt(f(0x137))/0x7)+parseInt(f(0x132))/0x8*(-parseInt(f(0x131))/0x9)+-parseInt(f(0x12e))/0xa*(-parseInt(f(0x13b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xeeaaf));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x130)]()[h(0x135)](h(0x133))[h(0x130)]()[h(0x12c)](a12a)[h(0x135)](h(0x133));});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-0x127;let f=c[d];return f;},a12d(a,b);}Command[a12i(0x139)]({'name':a12i(0x127),'aliases':[a12i(0x12b)],'usage':a12i(0x128),'validOpts':[],'shortDesc':a12i(0x12d),'examples':[a12i(0x128),'maka\x20aws:dkp']},async function(){const j=a12i;try{const a=new AWS();a['ec2describeKeys']();}catch(b){b&&Log['error'](b),process[j(0x12a)](0x0);}},a12e);
|
|
@@ -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(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x188))/0x1+-parseInt(l(0x1a1))/0x2+-parseInt(l(0x185))/0x3*(parseInt(l(0x19c))/0x4)+-parseInt(l(0x199))/0x5+parseInt(l(0x1a7))/0x6+parseInt(l(0x18b))/0x7+-parseInt(l(0x18f))/0x8*(-parseInt(l(0x184))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x25162));function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x182;let f=c[d];return f;},a13d(a,b);}const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x190)]()['search'](n(0x1a3))[n(0x190)]()[n(0x183)](a13a)['search']('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a13c(){const r=['getMakaProjectConfig','218790HTDnEM','dsg','(((.+)+)+)+$','Deleting\x20a\x20','exit','Deleted\x20','1339926QYRBcJ','notice','constructor','31257ZlLYOv','31011FrwZRD','error','confirm','211355hOLGZU','success','delete-security-group','321174dURsvI','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','ID:\x20','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','880PDcwTH','toString','maka\x20aws:dsg','maka\x20aws:delete-sg','Not\x20deleting\x20secuirty\x20group','forEach','\x20SGID:\x20','deleteSecurityGroup','getSecurityGroups','apply','531090dgeJgg','\x20SG\x20NAME:\x20','sgId','28fgxDkv','isMakaProject','appName','name'];a13c=function(){return r;};return a13c();}Command['create']({'name':a13o(0x18a),'aliases':[a13o(0x1a2)],'usage':a13o(0x192),'validOpts':[],'shortDesc':a13o(0x18c),'examples':['maka\x20aws:delete-sg',a13o(0x191)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x19d)]();let d='';if(c){const j=b[p(0x1a0)]();d=j[p(0x19e)];}const {sgList:f}=await a[p(0x197)]();f[p(0x194)](function(k){const q=p;c&&k['name']['includes'](d)?Log[q(0x182)](q(0x18d)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x19f)]+q(0x195)+k[q(0x19b)]):Log['bright']('ID:\x20'+k['id']+q(0x19a)+k[q(0x19f)]+q(0x195)+k[q(0x19b)]);});let g='';const h=await Actions['ask'](p(0x18e));f[p(0x194)](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x186)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x187)](p(0x1a4)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x196)](g),Log[p(0x189)](p(0x1a6)+g)):Log['error'](p(0x193)),process['exit'](0x0);}catch(k){k&&Log['error'](k),process[p(0x1a5)](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(0x11b))/0x1*(-parseInt(f(0x117))/0x2)+parseInt(f(0x114))/0x3+-parseInt(f(0x104))/0x4+parseInt(f(0x105))/0x5+parseInt(f(0x102))/0x6+-parseInt(f(0x10f))/0x7+-parseInt(f(0x113))/0x8*(-parseInt(f(0x118))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x9017b));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x116)]()[h(0x10c)](h(0x119))[h(0x116)]()[h(0x109)](a14a)[h(0x10c)](h(0x119));});function a14c(){const k=['2958804HcDjwu','1778925abSGkx','maka\x20aws:list-ecr','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','listAllEcrRepositories','constructor','regions','create','search','list-ecr','error','4994906tiEBpW','apply','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','8fIbLkN','2307348hrasqK','exit','toString','260016tvfyIm','2094057BCCvcV','(((.+)+)+)+$','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','2xYCVQA','2555232dgCmew','maka\x20aws:lecr\x20--regions=all'];a14c=function(){return k;};return a14c();}a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x102;let f=c[d];return f;},a14d(a,b);}Command[a14i(0x10b)]({'name':a14i(0x10d),'aliases':['lecr'],'usage':a14i(0x11a),'requiredOpts':[],'validOpts':['regions'],'shortDesc':a14i(0x111),'examples':[a14i(0x106),a14i(0x112),a14i(0x103)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x108)](b[j(0x10a)]),Log['success']('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x115)](0x0);}catch(d){Log[j(0x10e)](j(0x107)+d),process[j(0x115)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0xda))/0x1*(-parseInt(f(0xdf))/0x2)+-parseInt(f(0xe6))/0x3+parseInt(f(0xe3))/0x4*(parseInt(f(0xe1))/0x5)+parseInt(f(0xeb))/0x6*(-parseInt(f(0xec))/0x7)+parseInt(f(0xef))/0x8+parseInt(f(0xe4))/0x9+-parseInt(f(0xd3))/0xa*(-parseInt(f(0xf0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x9569a));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a['toString']()['search'](h(0xd4))[h(0xd9)]()[h(0xd5)](a15a)[h(0xee)](h(0xd4));});a15a();function a15c(){const k=['2347209hKUKfK','name','2871069yqZIxI','create','chooseInstance','status','exit','78emiZts','290654GVUmOj','reboot-instance','search','394552ZQWVzb','672749LNtrHi','error','\x20Ready?','10FYYxmL','(((.+)+)+)+$','constructor','running','Reboot\x20an\x20EC2\x20instance','maka\x20aws:reboot-instance','toString','1IGQEtq','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','confirm','1988536vWEuFQ','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','619380ycAszo','instanceId','24QguaDK'];a15c=function(){return k;};return a15c();}import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xd1;let f=c[d];return f;},a15d(a,b);}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[a15i(0xe7)]({'name':a15i(0xed),'aliases':['rbi'],'usage':a15i(0xd8),'validOpts':[],'shortDesc':a15i(0xd7),'examples':[a15i(0xd8),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xe8)]();if(b?.[j(0xe9)]===j(0xd6)){const c=await Actions[j(0xde)](j(0xdd)+b[j(0xe5)]+j(0xd2));c&&b[j(0xe2)]?a['ec2rebootInstance']({'instanceId':b[j(0xe2)]}):Log[j(0xd1)](j(0xdb)+b[j(0xe5)]+'\x20is\x20still\x20running.');}else Log['error'](j(0xe0));}catch(d){d&&Log[j(0xd1)](d),process[j(0xea)](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0xc2))/0x1+parseInt(E(0xdf))/0x2*(-parseInt(E(0xe8))/0x3)+parseInt(E(0xf8))/0x4*(parseInt(E(0xd7))/0x5)+parseInt(E(0xea))/0x6*(parseInt(E(0xbf))/0x7)+-parseInt(E(0xd0))/0x8+parseInt(E(0xba))/0x9*(-parseInt(E(0xf7))/0xa)+-parseInt(E(0xe1))/0xb*(-parseInt(E(0xd2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x4b58e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0xcb)]()[G(0xd1)](G(0xdd))[G(0xcb)]()[G(0xd9)](a16a)[G(0xd1)](G(0xdd));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xba;let f=c[d];return f;},a16d(a,b);}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(0xcf)](CountryCode)[H(0xc8)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}function a16c(){const K=['\x20for\x20','Person','includes','The\x20domain\x20name:\x20','PERSON','toString','Duration\x20in\x20years\x20[1]:\x20','96816','RESELLER','values','359752PtLsjf','search','12luBIMS','mail@example.com','error','warn','ask','6070pGbSqi','checkDomainAvailability','constructor','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','My\x20Comanpy,\x20LLC.','contactType','(((.+)+)+)+$','apply','66806gxcoVs','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','1502259xzxBdz','Are\x20you\x20sure?','registerDomain','Choose\x20contact\x20type','\x20/\x20Year\x20\x0a','ASSOCIATION','Contact\x20Email\x20[mail@example.com]:\x20','36zkEbRB','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','30juiXFt','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','+1.5555555556','confirm','Contact','Do\x20you\x20wish\x20to\x20register\x20','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Country\x20Code\x20[US]:\x20','exit','maka\x20aws:register-domain-name\x20--domain=example.com','Zip\x20Code\x20[96816]:\x20','Contact\x20First\x20Name\x20[Contact]:\x20','State\x20[HI]:\x20','5870cebFWe','68dsJxqV','\x20is\x20available\x20for:','domain','639sJedQJ','COMPANY','OrganizationName','list','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','441091xomPpS','Invalid\x202\x20character\x20country\x20code','register-domain-name','323832oWeqke','rdn','Auto\x20Renew:\x20','notice'];a16c=function(){return K;};return a16c();}Command['create']({'name':a16I(0xc1),'aliases':[a16I(0xc3)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a16I(0xfa)],'validOpts':[],'shortDesc':a16I(0xe0),'examples':[a16I(0xf3),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const J=a16I;try{const c=b[J(0xfa)],d=new AWS(),{available:f,cost:g}=await d[J(0xd8)](c);if(f&&g){Log[J(0xc5)](J(0xc9)+c+J(0xf9));const {Price:h,Currency:i}=g;Log[J(0xd5)]('\x20\x20'+h+'\x20'+i+J(0xe5));const j=await Actions[J(0xed)](J(0xef)+c+'\x20?',![]);if(j){const k={'type':J(0xbd),'name':J(0xdc),'message':J(0xe4),'choices':[J(0xe6),J(0xbb),'PERSON','PUBLIC_BODY',J(0xce)]},l=await Actions[J(0xd6)](J(0xcc))||'1',m=await Actions[J(0xd6)](J(0xf5))||J(0xee),n=await Actions[J(0xd6)]('Contact\x20Last\x20Name\x20[Person]:\x20')||J(0xc7),{contactType:o}=await Actions['options'](k),p=await Actions['ask'](J(0xda))||'123\x20Glorious\x20Way',q=await Actions[J(0xd6)]('Address\x20Line\x202:\x20'),r=await Actions[J(0xd6)](J(0xf4))||J(0xcd),s=await Actions[J(0xd6)](J(0xf6))||'HI',t=await Actions[J(0xd6)](J(0xf1))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xd4)](J(0xc0));const v=await Actions[J(0xd6)](J(0xeb))||'+1.5555555555',w=await Actions[J(0xd6)](J(0xbe))||J(0xec),x=await Actions[J(0xd6)](J(0xe7))||J(0xd3),y=await Actions[J(0xed)](J(0xc4)),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!==J(0xca)){const C=await Actions[J(0xd6)](J(0xf0))||J(0xdb);z[J(0xbc)]=C;}const A=h||0x0*parseInt(l);Log[J(0xc5)](J(0xe9)),Log[J(0xd5)](A+'\x20'+i+J(0xc6)+l+'\x20years\x20('+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[J(0xed)](J(0xe2));B&&await d[J(0xe3)](z,c,parseInt(l),y);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(D){D&&Log[J(0xd4)](D),process[J(0xf2)](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(0xc7))/0x1*(-parseInt(h(0xbe))/0x2)+-parseInt(h(0xb7))/0x3+-parseInt(h(0xbf))/0x4*(parseInt(h(0xbc))/0x5)+-parseInt(h(0xb3))/0x6*(parseInt(h(0xb5))/0x7)+-parseInt(h(0xb2))/0x8+-parseInt(h(0xb1))/0x9*(-parseInt(h(0xcb))/0xa)+-parseInt(h(0xcd))/0xb*(-parseInt(h(0xb4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x36bb0));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0xb0)]()[j(0xc1)](j(0xba))[j(0xb0)]()[j(0xb9)](a17a)[j(0xc1)]('(((.+)+)+)+$');});a17a();import a17e 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 a17c(){const n=['2112870gSYPcT','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','340747jQoKyi','Not\x20deleting\x20keypair','apply','ec2describeKeys','maka\x20aws:rkp','exit','toString','9qGiYlK','630832TCfRFK','552JlXTgP','204HteqAZ','9254JJDGYC','maka\x20aws:remove-key-pair','405219fNTqsn','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','constructor','(((.+)+)+)+$','Deleted\x20','35320ltUXxR','create','2UZpRXa','116VNVnxH','\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','search','forEach','name','confirm','success','rkp','26687USKXLx','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','deleteKeyPair','error'];a17c=function(){return n;};return a17c();}import{Log}from'../../tools/log/log.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0xb0;let f=c[d];return f;},a17d(a,b);}Command[a17k(0xbd)]({'name':'remove-key-pair','aliases':[a17k(0xc6)],'usage':a17k(0xb6),'validOpts':[],'shortDesc':a17k(0xc8),'description':a17k(0xc0),'examples':[a17k(0xb6),a17k(0xd1)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0xd0)]();let c=undefined;const d=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0xc2)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xc3)]);});if(!c)throw Log[l(0xca)](l(0xcc));const f=await Actions[l(0xc4)]('Deleting\x20a\x20'+c+l(0xb8),![]);f?(await a[l(0xc9)](c),Log[l(0xc5)](l(0xbb)+c)):Log['error'](l(0xce)),process[l(0xd2)](0x0);}catch(g){g&&Log[l(0xca)](g),process[l(0xd2)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-
|
|
1
|
+
function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x12a;let f=c[d];return f;},a18d(a,b);}const a18o=a18d;(function(a,b){const l=a18d,c=a();while(!![]){try{const d=-parseInt(l(0x139))/0x1+parseInt(l(0x152))/0x2*(-parseInt(l(0x146))/0x3)+parseInt(l(0x140))/0x4+-parseInt(l(0x136))/0x5+parseInt(l(0x12c))/0x6+-parseInt(l(0x12d))/0x7*(-parseInt(l(0x132))/0x8)+parseInt(l(0x131))/0x9*(parseInt(l(0x13b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xb9165));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a18d;if(c){const e=c[m(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const n=a18d;return a18a['toString']()[n(0x12e)](n(0x14c))['toString']()[n(0x134)](a18a)[n(0x12e)](n(0x14c));});a18a();import a18e from'path';import a18f from'fs';function a18c(){const q=['inherit','111209IeHhPi','sep','10517300MfCAFJ','apply','isFile','fsi','success','2783884TSydEC','maka\x20aws\x20set-host','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','getAppConfigPath','readFileSync','\x20IP\x20to\x20','6WskVKk','stringify','\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','config/ssh.json','exit','cat\x20','(((.+)+)+)+$','template','public','appName','ssh.json','maka\x20aws:set-host\x20--env\x20dev','1207774zVxvGe','private','parse','ask','sth','privateIp','join','maka\x20aws:sth\x20--env\x20prod','7001994JtYewy','14ytknHF','search','chooseInstance','host','9jjkfdA','570488gkvXPv','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','constructor','publicIp','4901110xmbqFV','utf8'];a18c=function(){return q;};return a18c();}import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'set-host','aliases':[a18o(0x156)],'usage':a18o(0x141),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a18o(0x148),'examples':[a18o(0x151),a18o(0x12b)]},async function(a,b){const p=a18o;try{const c=new AWS(),d=this[p(0x13e)][p(0x143)](b['env']),f=this[p(0x13e)]['getMakaProjectConfig'](),g=await c[p(0x12f)](),h=a18e[p(0x12a)](d,p(0x150));!this[p(0x13e)][p(0x13d)](h)&&await this['fsi'][p(0x14d)]({'srcPath':p(0x149),'destPath':h,'context':{'app':f[p(0x14f)]},'config':f});const i=JSON[p(0x154)](a18f[p(0x144)](h,p(0x137))),j=await Actions[p(0x155)](p(0x142))||p(0x14e);if(j){if(j===p(0x14e)||j===p(0x153)){if(j===p(0x14e))i[p(0x130)]=g?.[p(0x135)];else j==='private'&&(i[p(0x130)]=g?.['privateIp']);}else throw p(0x133);}else i[p(0x130)]=g?.[p(0x157)];a18f['writeFileSync'](a18e[p(0x12a)](d,'ssh.json'),JSON[p(0x147)](i,null,0x2)),execSync(p(0x14b)+a18e[p(0x12a)](d,p(0x150)),{'stdio':p(0x138)}),Log[p(0x13f)]('\x0aSaved\x20host\x20'+j+p(0x145)+d+a18e[p(0x13a)]+p(0x150));}catch(k){k&&Log['error'](k),process[p(0x14a)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a19c(){const k=['error','3217509AQUxtf','confirm','instanceId','chooseInstance','create','3sCmrvn','maka\x20aws:terminate-instance','13223RCekDX','21316LZwvlK','status','apply','running','constructor','name','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','114xAHWPG','369568nyjQIn','190538BcpAyi','Terminate\x20an\x20EC2\x20instance','search','241168XMTXdV','toString','(((.+)+)+)+$','ec2terminateInstance','428275zicdjf','terminate-instance','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'];a19c=function(){return k;};return a19c();}const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x1bd))/0x1+parseInt(f(0x1c0))/0x2+parseInt(f(0x1cd))/0x3*(-parseInt(f(0x1d0))/0x4)+parseInt(f(0x1c4))/0x5+-parseInt(f(0x1bb))/0x6*(-parseInt(f(0x1cf))/0x7)+parseInt(f(0x1bc))/0x8+-parseInt(f(0x1c8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x1c542));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x1c1)]()[h(0x1bf)]('(((.+)+)+)+$')[h(0x1c1)]()[h(0x1d4)](a19a)[h(0x1bf)](h(0x1c2));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a19d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a19i(0x1cc)]({'name':a19i(0x1c5),'aliases':['ti'],'usage':a19i(0x1ce),'validOpts':[],'shortDesc':a19i(0x1be),'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':['maka\x20aws:terminate-instance','maka\x20aws:ti']},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x1cb)]();if(b?.[j(0x1ca)]&&b?.[j(0x1d1)]===j(0x1d3)){const c=await Actions[j(0x1c9)](j(0x1c6)+b[j(0x1d5)]+'\x20Ready?');c?a[j(0x1c3)]({'instanceId':b[j(0x1ca)]}):Log[j(0x1c7)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[j(0x1d5)]+j(0x1b9));}else Log[j(0x1c7)](j(0x1ba));}catch(d){d&&Log['error'](d),process['exit'](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a20c(){var i=['
|
|
1
|
+
function a20c(){var i=['225jvuBZf','2268344BXZYLY','30iOaFlf','(((.+)+)+)+$','toString','search','apply','519310LlTmWo','111565ksmZlf','8ZNDjvj','888423qjFivd','1028796fkckAu','1265656lWCYoe','5348371oZejwG','constructor'];a20c=function(){return i;};return a20c();}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x89))/0x1+parseInt(f(0x8a))/0x2+parseInt(f(0x88))/0x3+-parseInt(f(0x8e))/0x4+parseInt(f(0x86))/0x5*(-parseInt(f(0x8f))/0x6)+parseInt(f(0x8b))/0x7*(parseInt(f(0x87))/0x8)+-parseInt(f(0x8d))/0x9*(parseInt(f(0x85))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xb5dbc));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x93)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x91)]()['search'](h(0x90))[h(0x91)]()[h(0x8c)](a20a)[h(0x92)](h(0x90));});a20a();import'./build.js';function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x85;var f=c[d];return f;},a20d(a,b);}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(0x87))/0x1+parseInt(n(0x80))/0x2*(parseInt(n(0x69))/0x3)+-parseInt(n(0x65))/0x4*(-parseInt(n(0x6e))/0x5)+-parseInt(n(0x75))/0x6+parseInt(n(0x7d))/0x7+-parseInt(n(0x7a))/0x8*(-parseInt(n(0x77))/0x9)+parseInt(n(0x8b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x95bbd));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x6d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a['toString']()['search'](p(0x6f))[p(0x73)]()[p(0x86)](a21a)[p(0x83)](p(0x6f));});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a21c(){const t=['create','1528aBPwJJ',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','build','786450uWOpNO','maka\x20build','update','468vgoLCn','slice','getProjectMeteorVersion','search','Aborted.','\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','constructor','1072882PKvCbv','confirm','checkMeteorPackage','argv','8077860UYppHN','4fyTqFL','pathFromProject','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','--force','8079JHZSyw','fsi','This\x20project\x27s\x20meteor\x20version\x20(','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','apply','2073770yexkwr','(((.+)+)+)+$','force','invokeMeteorCommand','concat','toString','autoupdate','2838648khhBQe','error','9153OFRndC',').\x20Update?'];a21c=function(){return t;};return a21c();}import{Command}from'../../command.js';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x65;let f=c[d];return f;},a21d(a,b);}import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21q(0x79)]({'name':a21q(0x7c),'usage':a21q(0x7e),'validOpts':[a21q(0x70)],'aliases':['b'],'shortDesc':a21q(0x6c),'mustBeInMakaProject':!![],'description':a21q(0x85),'examples':[a21q(0x7e)]},async function(a,b){const r=a21q;try{await this[r(0x6a)][r(0x89)](r(0x74),{'shouldInstall':!![]});const c=b[r(0x70)];if(!c){const g=this['fsi']['getGlobalMeteorVersion'](),h=this['fsi'][r(0x82)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x88)](r(0x6b)+h+r(0x7b)+g+r(0x78));j&&this[r(0x6a)][r(0x71)](r(0x7f),['--release',g]);}}const d=[this[r(0x6a)][r(0x66)]({'pathParts':[r(0x7c)]})][r(0x72)](process[r(0x8a)][r(0x81)](0x3)),f=a21e['join'](this[r(0x6a)]['pathFromProject']({}),r(0x7c),'app.tar.gz');if(a21f['existsSync'](f)){const k=c??await Actions[r(0x88)](r(0x67));if(!k)throw Log[r(0x76)](r(0x84));}d['forEach']((l,m)=>{const s=r;l===s(0x68)&&d['splice'](m,0x2);}),this[r(0x6a)]['invokeMeteorCommand']('build',d);}catch(l){console['error'](l),process['exit'](0x0);}});export default BuildCommand;
|