@maka/maka-cli 4.13.1 → 4.13.2
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/templates/meteor/project/gitignore +0 -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.13.
|
|
3
|
+
"version": "4.13.2",
|
|
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
|
+
function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xd0;let f=c[d];return f;},a0d(a,b);}const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x112))/0x1+parseInt(n(0xe7))/0x2+parseInt(n(0xf8))/0x3*(-parseInt(n(0x115))/0x4)+parseInt(n(0x11c))/0x5*(-parseInt(n(0x11d))/0x6)+-parseInt(n(0x109))/0x7*(parseInt(n(0xf7))/0x8)+-parseInt(n(0xec))/0x9*(parseInt(n(0xd9))/0xa)+parseInt(n(0xfd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xeb92c));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(0x116)]()['search'](o(0x107))[o(0x116)]()[o(0x10c)](a0a)[o(0x11b)](o(0x107));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';function a0c(){const z=['split','validateMakaProject','maybeProxyCommandToMeteor','play','assign','mustBeInMakaProject','length','mustHaveMeteorInstalled','Description','_commands','2901744sfQJJs','push','Command\x20requires\x20a\x20handler\x20function','processAndRunCommand','create','81fMBeDU','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','invoke','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','maxArgLength','run','name','usage','find','mustBeLoggedIn','24qUvYOS','48CIrPXa','shortDesc','notice','Please\x20run\x20\x22maka\x20login\x22','Command\x20not\x20found','49248815nqpAsj','There\x20is\x20no\x20Meteor\x20application\x20here','_handler','murder','Command\x20format\x20is\x20incorrect','sort','keys','join','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','exit','(((.+)+)+)+$','function','2488731whrPMK','addCommand','\x20not\x20found','constructor','validateMakaSubscription','slice','Command\x20requires\x20a\x20name','fsi','tableList','1699563XhbKsF','validateUserIsLoggedIn','Name','4844jSMuPb','toString','setColorMode','error','minArgLength','bind','search','50NWyHyl','517620LVmsCs','number','light','aliases','Too\x20many\x20options','match','Too\x20few\x20arguments','Sub-Commands:','maxOptsLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Command\x20','generate','bright','validateMeteorInstall','LIGHT','1460990tiPRaZ','localeCompare','Too\x20many\x20arguments','options'];a0c=function(){return z;};return a0c();}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{[a0p(0xdc)];[a0p(0xe6)];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0x105));if(!a[q(0xf3)])throw new Error(q(0x10f));if(typeof b!=='function')throw new Error(q(0xe9));this[q(0xdc)]=Object[q(0xe1)]({},a),this[q(0xf3)]=this[q(0xdc)][q(0xf3)],this[q(0xe6)]=[],this['_handler']=b[q(0x11a)](this);}static[a0p(0xeb)](a,b,c){const r=a0p;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==r(0x108))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[r(0xdc)]?.[r(0xf3)]}),c[r(0x10a)](d),d;}[a0p(0x10a)](a){const s=a0p;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[s(0xe6)][s(0xe8)](a);}async[a0p(0xf2)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x110)]['getGlobalConfig'](),d=c['pallet']===t(0x11f)?ColorMode[t(0xd8)]:ColorMode['DARK'];Log[t(0x117)](d),await this['validateMakaSubscription'](this);}catch(f){Log[t(0x118)](f),process[t(0x106)](0x0);}return await this[t(0xee)](a,b);}catch(g){process[t(0x106)](0x1);}}async['invoke'](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[u(0xdc)];try{if(this[u(0xdc)][u(0xf3)]!=='generate'){if(!isRoot){const f=(a[0x0]===_prevCmd||a['length']===0x0)&&this[u(0xe6)][u(0xe3)]>=0x0,g=b['help']||b['h'];if(f&&g){if(this['_commands'][u(0xe3)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0xdc)][u(0xe2)]){const h=this[u(0xde)]();if(!h)throw new MustBeInProjectError();}if(this[u(0xdc)][u(0xf6)]){const i=await this[u(0x113)]();if(!i)throw new MustBeLoggedIn();}if(this[u(0xdc)][u(0xe4)]){const j=this[u(0xd7)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0xdc)][u(0x119)]===u(0x11e)){if(a['length']<this[u(0xdc)][u(0x119)]){Log[u(0x118)](u(0xd0));throw new UsageError();}}if(typeof this[u(0xdc)][u(0xf1)]===u(0x11e)){if(a['length']>=this[u(0xdc)][u(0xf1)]){Log[u(0x118)](u(0xdb));throw new UsageError();}}if(typeof this[u(0xdc)]['minOptsLength']===u(0x11e)){if(Object[u(0x103)](b)[u(0xe3)]<this[u(0xdc)]['minOptsLength']){Log[u(0x118)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[u(0xdc)][u(0xd2)]==='number'){if(Object[u(0x103)](b)[u(0xe3)]>=this[u(0xdc)]['maxOptsLength']){Log['error'](u(0x121));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[u(0xdc)]),_prevCmd=a[0x0];}return await this[u(0xff)]['call'](this,a,b);}catch(k){Log[u(0xf4)](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log['notice'](u(0xd1)),this[u(0x111)](this[u(0xe6)]),Log['header'](u(0xf0));else{if(k instanceof MustBeInProjectError)Log[u(0x118)](u(0xef));else{if(k instanceof NoMeteorFoundError)Log['error'](u(0xed)),Log[u(0xfa)](u(0xd3));else{if(k instanceof NoMeteorAppFoundError)Log[u(0x118)](u(0xfe));else k instanceof MustBeLoggedIn&&(Log['error']('You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command'),Log[u(0xfa)](u(0xfb)));}}}process[u(0x106)](0x1);}}[a0p(0x111)](a){const v=a0p,b=new a0e({});b[v(0xe8)]([v(0x114),'Alias',v(0xe5)]),a[v(0x102)]((c,d)=>{const w=v;return c[w(0xf3)][w(0xda)](d['name']);})['forEach'](c=>{const x=v;c[x(0xf3)]!==x(0x100)&&c[x(0xf3)]!==x(0xe0)&&b[x(0xe8)]([c[x(0xf3)],c[x(0x120)](),c[x(0xf9)]()]);}),Log[v(0xd6)](b[v(0x116)]());}async[a0p(0xea)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0xdd)](':');if(!d||d['length']===0x0)throw y(0x101);if(d[0x0]===y(0xd5)||d[0x0]==='g'&&d[y(0xe3)]>0x1){const h=this['_commands'][y(0xf5)](j=>j['match'](y(0xd5)));if(!h)throw y(0xfc);await this[y(0x10d)](h);const i=d[y(0x10e)](0x1)[y(0x104)](':');return b['unshift'](i),await h[y(0xf2)](b,c);}let f=this['_commands'],g;for(const j of d){g=f[y(0xf5)](k=>k[y(0x122)](j));if(!g)try{await this[y(0x110)][y(0xdf)]();}catch(k){throw y(0xd4)+j+y(0x10b);}g&&(await this['validateMakaSubscription'](g),f=g[y(0xe6)]);}if(g){const l=await g['run'](b,c);return l;}else throw y(0xfc);}catch(m){Log[y(0x118)](m),process[y(0x106)](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(0xa8))/0x1+-parseInt(f(0x9c))/0x2+parseInt(f(0xa6))/0x3+parseInt(f(0x9e))/0x4*(-parseInt(f(0x9d))/0x5)+parseInt(f(0xa4))/0x6+-parseInt(f(0x9f))/0x7+parseInt(f(0xa2))/0x8*(parseInt(f(0xa0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x29bd2));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a[g(0xa7)]()[g(0xa1)](g(0xa3))[g(0xa7)]()[g(0xa5)](a1a)[g(0xa1)](g(0xa3));});a1a();function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x9c;var f=c[d];return f;},a1d(a,b);}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';function a1c(){var h=['112236wYGBQq','408766iAOqBq','15KMIVuC','149412saDCiR','1425375dTbzqO','2160963YamKcW','search','16OziDPS','(((.+)+)+)+$','345774ENvLrI','constructor','122850upEZFW','toString'];a1c=function(){return h;};return a1c();}import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a2c(){const o=['10589362LALMrG','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','232705omRUVe','error','toLowerCase','openapikey','ChatGPT\x20style\x20AI\x20interface','exit','fsi','(((.+)+)+)+$','28741167IZglhE','toString','search','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','GPT:\x20','stdout','trim','isFile','parse','notice','1071856hupBCv','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','stdin','text','1251712RpqFcN','Using\x20OpenAI\x20Key\x20','message','cacert','data','close','apply','bright','1456476HZOorx','Using\x20CA\x20Cert\x20','9UQJMTb','question','openai','cert','222DWVEnG','3704972KjLCcu'];a2c=function(){return o;};return a2c();}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x172))/0x1+-parseInt(h(0x166))/0x2*(-parseInt(h(0x14c))/0x3)+parseInt(h(0x151))/0x4+parseInt(h(0x154))/0x5*(parseInt(h(0x150))/0x6)+parseInt(h(0x152))/0x7+-parseInt(h(0x16a))/0x8+-parseInt(h(0x15c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xeaf67));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x15d)]()[j(0x15e)](j(0x15b))['toString']()['constructor'](a2a)[j(0x15e)](j(0x15b));});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['createInterface']({'input':process[k(0x168)],'output':process[k(0x161)]});c[k(0x14d)]('You:\x20',async d=>{const l=k;if(d[l(0x156)]()==='exit'){c[l(0x16f)]();return;}try{const e=await HTTPS['askGPT']({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x164)](e[l(0x16e)]);if(f['error'])throw new Error(f['error'][l(0x16c)]);Log[l(0x171)](l(0x160)+f?.['choices'][0x0]?.[l(0x169)][l(0x162)]());}catch(g){Log[l(0x155)](g),process[l(0x159)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x14b;let f=c[d];return f;},a2d(a,b);}Command['create']({'name':'ai','description':a2m(0x158),'validOpts':[a2m(0x16d),a2m(0x157)],'shortDesc':a2m(0x158),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x16d)]&&(this[n(0x15a)][n(0x163)](b[n(0x16d)])?(c=b[n(0x16d)],Log['notice'](n(0x14b)+c)):Log[n(0x155)](n(0x153)+c));const d=await this[n(0x15a)]['getGlobalConfig']();if(d[n(0x14f)]){if(this[n(0x15a)][n(0x163)](d[n(0x14f)]))c=d['cert'];else throw Log[n(0x155)](n(0x167)+c);}let f='';if(b[n(0x157)])f=b['openapikey'],Log[n(0x165)](n(0x16b)+f);else{if(d[n(0x14e)])f=d[n(0x14e)];else throw Log['error']('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}Log[n(0x171)](n(0x15f)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x155)](g),process[n(0x159)](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(0xa7))/0x1+-parseInt(f(0xa4))/0x2+-parseInt(f(0xab))/0x3*(-parseInt(f(0x9f))/0x4)+-parseInt(f(0xa5))/0x5+parseInt(f(0xad))/0x6*(-parseInt(f(0xa1))/0x7)+parseInt(f(0xa6))/0x8*(parseInt(f(0xa0))/0x9)+parseInt(f(0xaa))/0xa*(parseInt(f(0xae))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x641c6));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xa9)]()[h(0xac)](h(0xa3))[h(0xa9)]()[h(0xa2)](a3a)[h(0xac)](h(0xa3));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3c(){var i=['1519095gYzRMJ','9560mgYxVv','611291dhgUVB','apply','toString','2630zyOdvF','233403HmYKAC','search','112386QKCsKa','75119bGWKvX','12SIAQeD','2547jdyCcq','301IyYBiO','constructor','(((.+)+)+)+$','474036pyhZre'];a3c=function(){return i;};return a3c();}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';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x9f;var f=c[d];return f;},a3d(a,b);}import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a4i=a4d;function a4c(){const j=['\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','456673JVQXNU','55302czawaz','1839264RdMXNp','168992ooQYqj','create','aws','maka\x20aws:<sub-command>','constructor','apply','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','(((.+)+)+)+$','60WxLWEa','12nrNEGz','search','3134800WHAZxy','258765ZvYUWL','1037680yTQruI','153HQGvOD'];a4c=function(){return j;};return a4c();}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xa3))/0x1+parseInt(f(0xa4))/0x2+-parseInt(f(0xa5))/0x3+parseInt(f(0xae))/0x4*(parseInt(f(0xb2))/0x5)+parseInt(f(0xaf))/0x6*(-parseInt(f(0xb3))/0x7)+parseInt(f(0xa6))/0x8*(parseInt(f(0xb4))/0x9)+-parseInt(f(0xb1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x60d87));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a['toString']()[h(0xb0)](h(0xad))['toString']()[h(0xaa)](a4a)['search'](h(0xad));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xa7)]({'name':a4i(0xa8),'usage':a4i(0xa9),'validOpts':[],'shortDesc':a4i(0xac),'description':a4i(0xb5)},async function(){throw UsageError;});function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xa3;let f=c[d];return f;},a4d(a,b);}export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x183))/0x1*(parseInt(g(0x191))/0x2)+parseInt(g(0x192))/0x3*(-parseInt(g(0x18c))/0x4)+parseInt(g(0x17a))/0x5+parseInt(g(0x17f))/0x6*(parseInt(g(0x189))/0x7)+-parseInt(g(0x194))/0x8+-parseInt(g(0x196))/0x9+-parseInt(g(0x19a))/0xa*(-parseInt(g(0x199))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xe1978));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x182)]()[i(0x17c)](i(0x18a))[i(0x182)]()[i(0x181)](a5a)[i(0x17c)](i(0x18a));});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x179;let f=c[d];return f;},a5d(a,b);}function a5c(){const l=['4943472VeefCG','create-ecr','7250049TvFVoi','Repository\x20URI:\x20','name','451qQzyIk','119150YwzHhe','Repository\x20created\x20successfully.','4677725tvILIH','repository','search','maka\x20aws:create-ecr\x20--name=my-new-repo','httpStatusCode','54MVqxOE','maka\x20aws:create-ecr','constructor','toString','2617ngUjSK','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','exit','apply','Create\x20an\x20Elastic\x20Container\x20Repository','error','1265691kWdblc','(((.+)+)+)+$','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','15876xclQdG','repositoryUri','cecr','ecrCreateRepository','create','184czBuJa','714Rofchq','maka\x20aws:cecr\x20--name=my-new-repo'];a5c=function(){return l;};return a5c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0x190)]({'name':a5j(0x195),'aliases':[a5j(0x18e)],'usage':a5j(0x180),'requiredOpts':[a5j(0x198)],'validOpts':['region'],'shortDesc':a5j(0x187),'examples':[a5j(0x17d),a5j(0x193),a5j(0x184)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x18f)](b);d&&d['$metadata'][k(0x17e)]===0xc8&&d[k(0x17b)]?(Log['success'](k(0x179)),Log['notice'](k(0x197)+d[k(0x17b)][k(0x18d)])):Log[k(0x188)](k(0x18b)),process[k(0x185)](0x0);}catch(f){Log[k(0x188)](f),process[k(0x185)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6l=a6d;
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x18b))/0x1+-parseInt(i(0x17e))/0x2+-parseInt(i(0x187))/0x3*(-parseInt(i(0x16f))/0x4)+-parseInt(i(0x18a))/0x5*(parseInt(i(0x182))/0x6)+-parseInt(i(0x17c))/0x7*(-parseInt(i(0x177))/0x8)+parseInt(i(0x176))/0x9+parseInt(i(0x170))/0xa*(-parseInt(i(0x181))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x28464));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x189)]()[k(0x186)](k(0x183))['toString']()[k(0x17b)](a6a)['search'](k(0x183));});a6a();import a6e from'./aws.command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x16f;let f=c[d];return f;},a6d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a6c(){const n=['Instance\x20not\x20found','domain','create','1523430krkSRY','123800QFwTqm','apply','publicIp','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','constructor','91ytpXsG','linkEC2ToRoute53','108078fENqyi','error','chz','21098xwvDPq','71868cmklhc','(((.+)+)+)+$','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','exit','search','967245uqZzCT','Set\x20hosted\x20zone\x20to\x20an\x20instance?','toString','125PsGdTI','213029EyPAQo','4mAOXue','2020jHFjOS','maka\x20aws:chz\x20--domain=example.com','create-hosted-zone'];a6c=function(){return n;};return a6c();}import{Log}from'../../tools/log/log.class.js';Command[a6l(0x175)]({'name':a6l(0x172),'aliases':[a6l(0x180)],'usage':'maka\x20aws:create-hosted-zone','requiredOpts':[a6l(0x174)],'validOpts':[],'shortDesc':a6l(0x17a),'examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com',a6l(0x171)]},async function(a,b){const m=a6l;try{const c=b[m(0x174)],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions['confirm'](m(0x188));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0x179)])throw Log['error'](m(0x184));d[m(0x17d)](g['id'],g[m(0x179)],c);}else throw m(0x173);}}catch(h){h&&Log[m(0x17f)](h),process[m(0x185)](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0xec))/0x1+-parseInt(ae(0xd3))/0x2*(-parseInt(ae(0xe1))/0x3)+-parseInt(ae(0xf3))/0x4*(-parseInt(ae(0xd5))/0x5)+parseInt(ae(0xae))/0x6+-parseInt(ae(0xd7))/0x7*(-parseInt(ae(0xb6))/0x8)+parseInt(ae(0xc8))/0x9+parseInt(ae(0xab))/0xa*(-parseInt(ae(0xd9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xa0067));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a['toString']()[ag(0xe2)]('(((.+)+)+)+$')[ag(0xb1)]()[ag(0xd4)](a7a)[ag(0xe2)]('(((.+)+)+)+$');});a7a();function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x98;let f=c[d];return f;},a7d(a,b);}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';function a7c(){const at=['Please\x20choose\x20a\x20key\x20to\x20use:\x20','name','build\x20on\x20','desc','EC2\x20Name:\x20[','env','alias','Setting\x20the\x20key-pair\x20to:\x20','Setting\x20SG\x20ID\x20to:\x20','amiId','chooseVPC','\x20CIDR:\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','fsi','190WQRzVk','ImageID:','**\x20Available\x20Security\x20Groups\x20**','1013958bCWVtV','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20SG\x20NAME:\x20','toString','sgId','join','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','Desc','40zfgsJh','success','\x20AMIID:\x20','\x20SUBNETID:\x20','subnetId','ID:\x20','Security\x20Group:\x20','error','maka\x20aws:create-instance\x20--env\x20dev','getTime','subnet','apply','split','create-instance','Web\x20App','Setting\x20Subnet\x20ID\x20to\x20','confirm','getMakaProjectConfig','654480pPLyvo','user-data','\x20SGID:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','parse','isFile','ec2describeKeys','\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','unlinkSync','exit','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','468722rOfoVj','constructor','392705HHoZkO','Would\x20you\x20like\x20to\x20include\x20user\x20data?','748153cSEdrQ','**\x20Available\x20Subnets\x20**','748319xJpNdc','**\x20Available\x20AMIs\x20**','push','ec2create','createFile','User\x20Data:','Remove\x20the\x20security\x20group\x20','getSecurityGroups','15qnTNSz','search','maka-cli','Name','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','cidr','**\x20Available\x20key-pairs\x20**','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Instance\x20Count:\x20','date','ask','235522IKtnuk','bright','22,80,443','number','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','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=*','created-by','12SsMsyo','ec2createSG','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','forEach','notice','\x20AZONE:\x20','Key-Pair:\x20'];a7c=function(){return at;};return a7c();}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a7ah(0xc3),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0xbe),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0xa2)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0xcf)},async function(a,b){const ai=a7ah;try{const c=this[ai(0xaa)][ai(0xc7)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xaa)]['getEnvFromShorthand'](b[ai(0xa2)]),i=this['fsi']['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0xeb)](ai(0xa1)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d['createKeyPair']({'env':h});r=y,s=z,Log[ai(0xb7)](ai(0xa4)+r);}else try{Log[ai(0x9a)](ai(0xe7));const A=r?r:k,B=await d[ai(0xce)]({'suggestion':A}),C=await Actions[ai(0xeb)](ai(0x9d))||'-1';if(parseInt(C)<0x0){Log[ai(0xbd)]('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[ai(0x9a)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x99)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log['success'](aj(0xa4)+r));});}catch(D){Log[ai(0xbd)](D);}l=await d[ai(0xa7)]();const t=await Actions['confirm'](ai(0xe5),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions[ai(0xeb)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0xeb)](ai(0xd2))||ai(0xee),G=F[ai(0xc2)](',');await d[ai(0xf4)]({'description':ai(0xc4),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xe0)](u);if(I===''){Log[ai(0x9a)](ai(0xad)),J[ai(0x99)](function(L){const ak=ai;L[ak(0x9e)]===u?Log[ak(0x9a)](ak(0xbb)+L['id']+ak(0xb0)+L[ak(0x9e)]+'\x20SGID:\x20'+L[ak(0xb2)]):Log[ak(0xed)]('ID:\x20'+L['id']+ak(0xb0)+L[ak(0x9e)]+ak(0xca)+L[ak(0xb2)]);});const K=await Actions[ai(0xeb)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0xb1)]();J[ai(0x99)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0xb2)],Log[al(0xb7)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});}else m=I,Log['success'](ai(0xa5)+m+'\x0a');if(m==='')throw Log['error'](ai(0xaf));}catch(L){Log[ai(0xbd)](L);}try{const M=0x7e6;Log['notice'](ai(0xda));const N=execSync(ai(0xf1)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')[ai(0xb1)](),O=JSON[ai(0xcc)](N),P=[],Q=[];O[ai(0x99)](function(S){const am=ai;if(S[am(0xa3)]==='amazon'){const T=S[am(0xb5)][am(0xc2)](am(0x9f))[0x1];P[am(0xdb)]({'amiId':S['ID'],'desc':S[am(0xb5)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T[an(0xea)])[an(0xbf)]()-new Date(S['date'])[an(0xbf)]();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0xdb)]({'id':T,'amiId':S[ao(0xa6)],'desc':S[ao(0xa0)]});}),Q[ai(0x99)](function(S){const ap=ai;Log[ap(0xed)](ap(0xbb)+S['id']+ap(0xb8)+S[ap(0xa6)]+'\x20DESCRIPTION:\x20'+S[ap(0xa0)]);});const R=await Actions[ai(0xeb)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q['forEach'](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xa6)],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+'\x20:\x20'+S[aq(0xa0)]));});if(n==='')throw Log[ai(0xbd)](ai(0xaf));}catch(S){Log['error'](S);}try{Log[ai(0x9a)](ai(0xd8));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0xb1)](),U=JSON[ai(0xcc)](T),V=[];U['forEach'](function(X,Y){V['push']({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X['subnetId']});}),V['forEach'](function(X){const ar=ai;Log[ar(0xed)](ar(0xbb)+X['id']+ar(0xa8)+X[ar(0xe6)]+ar(0x9b)+X['az']+ar(0xb9)+X['subnetId']);});const W=await Actions[ai(0xeb)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V['forEach'](function(X){const as=ai;X['id']===parseInt(W)&&(p=X[as(0xba)],Log[as(0xb7)](as(0xc5)+p));});if(p==='')throw Log['error'](ai(0xaf));}catch(X){Log[ai(0xbd)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xeb)](ai(0xf0))||'1:1',Z=Y[ai(0xc2)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)===ai(0xef)&&typeof parseInt(a0)===ai(0xef)&&Log[ai(0xb7)](ai(0xe8)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ai(0xeb)](ai(0xcb))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ai(0xc6)](ai(0xd6),![]);a4&&(x=a7f[ai(0xb3)](i,ai(0xc9)),Log[ai(0x9a)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0xaa)][ai(0xdd)]({'filePath':x,'data':''}),await Actions[ai(0xc6)](ai(0xb4)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0xcc)](execSync(ai(0xf5)+p+ai(0xa9))[ai(0xb1)]())[0x0][ai(0xc0)];Log[ai(0x9a)](ai(0xac)+n),Log[ai(0x9a)](ai(0xe9)+v+':'+w),Log[ai(0x9a)]('Instace\x20Type:\x20'+o),Log[ai(0x9a)](ai(0x9c)+r),Log[ai(0x9a)](ai(0xbc)+m),Log[ai(0x9a)]('Subnet:\x20'+a6);if(x){Log['notice'](ai(0xde)+x);const a8=a7g['readFileSync'](x)[ai(0xb1)]();Log[ai(0x9a)](a8);}const a7=await Actions['confirm']('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ai(0xdc)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0xf2),'Value':ai(0xe3)},{'Key':'environment','Value':h},{'Key':ai(0xe4),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xb7)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ai(0x98)));}else{Log[ai(0x9a)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f[ai(0xcd)](s)&&a7g[ai(0xd0)](s));const ab=await Actions['confirm'](ai(0xdf)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log[ai(0xbd)](ac);}}catch(ad){ad&&Log[ai(0xbd)](ad),process[ai(0xd1)](0x0);}},a7e);
|
|
1
|
+
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x13a))/0x1+parseInt(ae(0x159))/0x2*(-parseInt(ae(0x156))/0x3)+-parseInt(ae(0x139))/0x4+parseInt(ae(0x15f))/0x5*(parseInt(ae(0x135))/0x6)+-parseInt(ae(0x133))/0x7+-parseInt(ae(0x125))/0x8+parseInt(ae(0x118))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x53af1));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x11a)]()[ag(0x160)](ag(0xff))[ag(0x11a)]()[ag(0x13e)](a7a)[ag(0x160)](ag(0xff));});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xff;let f=c[d];return f;},a7d(a,b);}import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a7c(){const au=['324NRNvVk','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','createFile','maka\x20aws:create-instance\x20--env\x20dev','765476XJdjsp','426093oZwCUK','desc','maka\x20aws:create-instance','Instace\x20Type:\x20','constructor','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','isFile','getTime','apply','ID:\x20','Subnet:\x20','\x20SGID:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','parse','ec2createSG','deleteKeyPair','amazon','**\x20Available\x20Subnets\x20**','\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','bright','\x20DESCRIPTION:\x20','push','t3.micro','**\x20Available\x20AMIs\x20**','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=*','success','alias','error','65679MQHSUo','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','38phtqgg','created-by','chooseVPC','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','name','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','40265IXsayK','search','\x20:\x20','ec2describeKeys','22,80,443','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','\x20SG\x20NAME:\x20','Setting\x20SG\x20ID\x20to:\x20','(((.+)+)+)+$','cider','sgId','unlinkSync','env','deleteSecurityGroup','Desc','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','subnetId','*\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','join','split','ask','Web\x20App','getSecurityGroups','\x20AMIID:\x20','Setting\x20AMI\x20ID\x20to\x20','Remove\x20the\x20security\x20group\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Key-Pair:\x20','create','getMakaProjectConfig','exit','Setting\x20Subnet\x20ID\x20to\x20','10521630zdBOlz','ImageID:','toString','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','forEach','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','1:1','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Setting\x20the\x20key-pair\x20to:\x20','maka\x20aws:ci\x20--env\x20prod','Name','confirm','fsi','5075352JCCzuS','number','User\x20Data:','amiId','string','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','subnet','date','\x20CIDR:\x20','**\x20Available\x20key-pairs\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','Security\x20Group:\x20','ec2create','createKeyPair','3118507UYlokN','notice'];a7c=function(){return au;};return a7c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ah(0x114)]({'name':'create-instance','aliases':['ci'],'usage':a7ah(0x13c),'examples':[a7ah(0x138),a7ah(0x121)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ah(0x103)}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ah(0x14c)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x124)][ai(0x115)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi']['getEnvFromShorthand'](b[ai(0x103)]),i=this[ai(0x124)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x10b)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x123)](ai(0x11d),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x132)]({'env':h});r=y,s=z,Log[ai(0x153)](ai(0x120)+r);}else try{Log[ai(0x134)](ai(0x12e));const A=r?r:k,B=await d[ai(0x162)]({'suggestion':A}),C=await Actions[ai(0x10b)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x155)](ai(0x12f)),Log[ai(0x134)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ai(0x11c)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0x15d)],Log[aj(0x153)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0x155)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0x123)](ai(0x164),!![]);let u;if(t){const E=l===''?await d[ai(0x15b)]():l;u=await Actions[ai(0x10b)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions[ai(0x10b)](ai(0x11b))||ai(0x163),G=F[ai(0x10a)](',');await d[ai(0x148)]({'description':ai(0x10c),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x10d)](u);if(I===''){Log[ai(0x134)]('**\x20Available\x20Security\x20Groups\x20**'),J['forEach'](function(L){const ak=ai;L[ak(0x15d)]===u?Log[ak(0x134)](ak(0x143)+L['id']+ak(0x165)+L['name']+ak(0x145)+L[ak(0x101)]):Log[ak(0x14d)](ak(0x143)+L['id']+ak(0x165)+L[ak(0x15d)]+ak(0x145)+L['sgId']);});const K=await Actions[ai(0x10b)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H['toString']();J[ai(0x11c)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0x153)](al(0x166)+m+'\x0a'));});}else m=I,Log[ai(0x153)](ai(0x166)+m+'\x0a');if(m==='')throw Log[ai(0x155)](ai(0x136));}catch(L){Log[ai(0x155)](L);}try{const M=0x7e6;Log['notice'](ai(0x151));const N=execSync(ai(0x152)+M+ai(0x108))['toString'](),O=JSON[ai(0x147)](N),P=[],Q=[];O[ai(0x11c)](function(S){const am=ai;if(S[am(0x154)]===am(0x14a)){const T=S['Desc']['split']('build\x20on\x20')[0x1];P['push']({'amiId':S['ID'],'desc':S[am(0x105)],'date':T});}}),P['sort'](function(S,T){const an=ai;return new Date(T[an(0x12c)])[an(0x141)]()-new Date(S['date'])['getTime']();}),P[ai(0x11c)](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S[ao(0x128)],'desc':S[ao(0x13b)]});}),Q[ai(0x11c)](function(S){const ap=ai;Log[ap(0x14d)](ap(0x143)+S['id']+ap(0x10e)+S[ap(0x128)]+ap(0x14e)+S[ap(0x13b)]);});const R=await Actions[ai(0x10b)](ai(0x112))||'0';Q[ai(0x11c)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x128)],Log['success'](aq(0x10f)+n+aq(0x161)+S[aq(0x13b)]));});if(n==='')throw Log['error'](ai(0x136));}catch(S){Log[ai(0x155)](S);}try{Log[ai(0x134)](ai(0x14b));const T=execSync(ai(0x12a))[ai(0x11a)](),U=JSON['parse'](T),V=[];U[ai(0x11c)](function(X,Y){const ar=ai;V[ar(0x14f)]({'id':Y,'cidr':X[ar(0x100)],'az':X['az'],'subnetId':X['subnetId']});}),V[ai(0x11c)](function(X){const as=ai;Log['bright'](as(0x143)+X['id']+as(0x12d)+X['cidr']+'\x20AZONE:\x20'+X['az']+'\x20SUBNETID:\x20'+X[as(0x107)]);});const W=await Actions[ai(0x10b)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x11c)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x107)],Log['success'](at(0x117)+p));});if(p==='')throw Log[ai(0x155)](ai(0x136));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x10b)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x11e),Z=Y[ai(0x10a)](':')[0x0],a0=Y[ai(0x10a)](':')[0x1];typeof parseInt(Z)===ai(0x126)&&typeof parseInt(a0)===ai(0x126)&&Log[ai(0x153)](ai(0x111)+Z+':'+a0);}catch(a1){Log[ai(0x155)](a1);}try{const a2=await Actions['ask'](ai(0x157))||ai(0x150);typeof a2===ai(0x129)&&(o=a2);}catch(a3){Log[ai(0x155)](a3);}let x='';try{const a4=await Actions[ai(0x123)](ai(0x11f),![]);a4&&(x=a7f[ai(0x109)](i,'user-data'),Log[ai(0x134)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[ai(0x124)][ai(0x137)]({'filePath':x,'data':''}),await Actions[ai(0x123)](ai(0x13f)));}catch(a5){Log['error'](a5);}try{const a6=JSON[ai(0x147)](execSync(ai(0x106)+p+ai(0x15c))[ai(0x11a)]())[0x0][ai(0x12b)];Log[ai(0x134)](ai(0x119)+n),Log[ai(0x134)]('Instance\x20Count:\x20'+v+':'+w),Log[ai(0x134)](ai(0x13d)+o),Log[ai(0x134)](ai(0x113)+r),Log[ai(0x134)](ai(0x130)+m),Log['notice'](ai(0x144)+a6);if(x){Log[ai(0x134)](ai(0x127)+x);const a8=a7g['readFileSync'](x)[ai(0x11a)]();Log[ai(0x134)](a8);}const a7=await Actions[ai(0x123)](ai(0x146));if(a7){const a9=await d[ai(0x131)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x15a),'Value':'maka-cli'},{'Key':'environment','Value':h},{'Key':ai(0x122),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x153)](ai(0x15e)),Log['bright']('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{Log['notice'](ai(0x158));const aa=await Actions['confirm']('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);aa&&(d[ai(0x149)](r),f[ai(0x140)](s)&&a7g[ai(0x102)](s));const ab=await Actions[ai(0x123)](ai(0x110)+m+'\x20?',!![]);ab&&d[ai(0x104)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ai(0x155)](ad),process[ai(0x116)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a8c(){const l=['
|
|
1
|
+
const a8j=a8d;function a8c(){const l=['15741mYsrcN','toString','\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','45jlwNlv','maka\x20aws:create-key-pair\x20--env\x20prod','getEnvFromShorthand','fsi','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','create-key-pair','1066520ebsmhC','1290SPdwhq','8iUBwqB','236655zlHIdN','308354BtlKpY','(((.+)+)+)+$','exit','ckp','env','107430qgIwZk','createKeyPair','2413075shjllO','maka\x20aws:ckp\x20--env\x20prod','apply','993141RDRRLU','error','create','2PIdvMA','constructor','search'];a8c=function(){return l;};return a8c();}(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x146))/0x1*(-parseInt(g(0x136))/0x2)+parseInt(g(0x145))/0x3*(-parseInt(g(0x144))/0x4)+parseInt(g(0x13c))/0x5*(parseInt(g(0x14b))/0x6)+parseInt(g(0x130))/0x7+-parseInt(g(0x142))/0x8+-parseInt(g(0x133))/0x9+parseInt(g(0x143))/0xa*(-parseInt(g(0x139))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x37b5f));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x132)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a[i(0x13a)]()[i(0x138)]('(((.+)+)+)+$')['toString']()[i(0x137)](a8a)[i(0x138)](i(0x147));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x130;let f=c[d];return f;},a8d(a,b);}Command[a8j(0x135)]({'name':a8j(0x141),'aliases':[a8j(0x149)],'usage':'maka\x20aws:create-key-pair','examples':[a8j(0x13d),a8j(0x131)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8j(0x140),'description':a8j(0x13b)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x13f)][k(0x13e)](b[k(0x14a)]);c[k(0x14c)]({'env':d});}catch(f){f&&Log[k(0x134)](f),process[k(0x148)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;
|
|
1
|
+
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0xa0))/0x1*(parseInt(m(0xb1))/0x2)+-parseInt(m(0xaf))/0x3+-parseInt(m(0xb3))/0x4*(parseInt(m(0xb0))/0x5)+parseInt(m(0xab))/0x6+parseInt(m(0xa9))/0x7+parseInt(m(0x9b))/0x8*(parseInt(m(0xb5))/0x9)+-parseInt(m(0xb2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x7250b));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x9c)]()[o(0x9a)](o(0x9f))['toString']()[o(0x98)](a9a)[o(0x9a)]('(((.+)+)+)+$');});function a9c(){const s=['1532292VClnSS','60voSgcq','1241326LIRFqM','4414780DGWbzS','265436vfLwtl','maka\x20aws\x20create-security-group','831582PZlHLW','maka\x20aws:create-secuirty-group','match','\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','constructor','ask','search','16SYMCzm','toString','chooseVPC','split','(((.+)+)+)+$','1SbzvVA','forEach','create-security-group','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','error','Security\x20Group\x20Name:\x20[','fsi','List\x20is\x20not\x20all\x20numbers','apply','5067559swnZlI','name','4124334AJscda','getMakaProjectConfig','Web\x20App','ec2createSG'];a9c=function(){return s;};return a9c();}a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x96;let f=c[d];return f;},a9d(a,b);}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['create']({'name':a9p(0xa2),'aliases':['csg'],'usage':a9p(0xb4),'validOpts':[],'shortDesc':a9p(0xa3),'description':a9p(0x97),'examples':[a9p(0xb6),'maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0xa6)][q(0xac)](),{appName:f}=d,g=await c[q(0x9d)](),h=b[q(0xaa)]?b[q(0xaa)]:''+f,i=await Actions[q(0x99)](q(0xa5)+h+']')||h,j=await Actions['ask']('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',k=j[q(0x9e)](',');k[q(0xa1)](l=>{const r=q;if(!l[r(0x96)](/^\d+$/))throw r(0xa7);}),await c[q(0xae)]({'description':q(0xad),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0xa4)](l),process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x197))/0x1*(-parseInt(f(0x1a3))/0x2)+parseInt(f(0x1a8))/0x3+-parseInt(f(0x190))/0x4+parseInt(f(0x19b))/0x5*(-parseInt(f(0x195))/0x6)+parseInt(f(0x19f))/0x7*(-parseInt(f(0x1a7))/0x8)+-parseInt(f(0x189))/0x9+parseInt(f(0x1a6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xe2da7));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x19a)]()[h(0x18c)](h(0x19c))[h(0x19a)]()[h(0x1a4)](a10a)[h(0x18c)](h(0x19c));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a10c(){const k=['create','45540680UhnsOq','392YIklQU','3803697EoQWpr','3770424nHuQPT','Repository\x20','name','search','\x20deleted\x20successfully\x20in\x20region\x20','region','delete-ecr','7329884tWGpQK','Delete\x20an\x20Elastic\x20Container\x20Repository','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','apply','decr','24UOClxC','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','2aWlALY','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','\x20in\x20region\x20','toString','1427125nDESvQ','(((.+)+)+)+$','ecrDeleteRepository','error','217791hHqOpT','.\x20Error:\x20','Failed\x20to\x20delete\x20the\x20repository:\x20','exit','24868zNFiMo','constructor'];a10c=function(){return k;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x189;let f=c[d];return f;},a10d(a,b);}Command[a10i(0x1a5)]({'name':a10i(0x18f),'aliases':[a10i(0x194)],'usage':a10i(0x196),'requiredOpts':[a10i(0x18b),'region'],'validOpts':[],'shortDesc':a10i(0x191),'examples':[a10i(0x192),a10i(0x198)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x19d)]({'repoName':b[j(0x18b)],'region':b[j(0x18e)]}),Log['success'](j(0x18a)+b[j(0x18b)]+j(0x18d)+b['region']+'.'),process['exit'](0x0);}catch(d){Log[j(0x19e)](j(0x1a1)+b['name']+j(0x199)+b[j(0x18e)]+j(0x1a0)+d),process[j(0x1a2)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11i=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xd2;let f=c[d];return f;},a11d(a,b);}function a11c(){const k=['exit','102pYLMSu','910iCOStD','137687gEixcm','apply','521685Qafyce','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','3063402gGtEQc','(((.+)+)+)+$','error','251058iYEEVf','describe-instances','7805dxizVW','24TUXFor','86056HNCWFj','6415315fMcGJn','3fCflNy','maka\x20aws:describe-instances','\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','toString','ec2describeInstances'];a11c=function(){return k;};return a11c();}(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0xe5))/0x1*(-parseInt(f(0xdf))/0x2)+-parseInt(f(0xdc))/0x3+-parseInt(f(0xe3))/0x4+parseInt(f(0xe4))/0x5+parseInt(f(0xd6))/0x6*(parseInt(f(0xe1))/0x7)+-parseInt(f(0xe2))/0x8*(parseInt(f(0xda))/0x9)+-parseInt(f(0xd7))/0xa*(-parseInt(f(0xd8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xcf03f));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0xd3)]()['search'](h(0xdd))[h(0xd3)]()['constructor'](a11a)['search']('(((.+)+)+)+$');});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a11i(0xe0),'aliases':['di'],'usage':a11i(0xe6),'validOpts':[],'shortDesc':a11i(0xdb),'examples':[a11i(0xe6),'maka\x20aws:di'],'description':a11i(0xd2)},async function(){const j=a11i;try{const a=new AWS();a[j(0xd4)]();}catch(b){b&&Log[j(0xde)](b),process[j(0xd5)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xb5;let f=c[d];return f;},a12d(a,b);}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xb6))/0x1+-parseInt(f(0xba))/0x2*(-parseInt(f(0xc1))/0x3)+-parseInt(f(0xb9))/0x4*(-parseInt(f(0xbf))/0x5)+parseInt(f(0xb7))/0x6+parseInt(f(0xbb))/0x7+-parseInt(f(0xc5))/0x8*(parseInt(f(0xb8))/0x9)+-parseInt(f(0xc0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xea384));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()['search']('(((.+)+)+)+$')[h(0xbc)]()['constructor'](a12a)[h(0xc6)](h(0xbe));});a12a();import a12e from'./aws.command.js';function a12c(){const k=['2755088rfkAAW','toString','error','(((.+)+)+)+$','150XZmxAO','5836100SqVBhM','3ZZPQOS','create','exit','describe-key-pairs','755968ZvcFKw','search','maka\x20aws:describe-key-pairs','ec2describeKeys','apply','265204unARmD','1030044bpTiMW','72ZrzKsR','185620XeQBmn','1213476YWtDjz'];a12c=function(){return k;};return a12c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0xc2)]({'name':a12i(0xc4),'aliases':['dkp'],'usage':a12i(0xc7),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a12i(0xc7),'maka\x20aws:dkp']},async function(){const j=a12i;try{const a=new AWS();a[j(0xc8)]();}catch(b){b&&Log[j(0xbd)](b),process[j(0xc3)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a13c(){const
|
|
1
|
+
const a13o=a13d;function a13c(){const s=['appName','isMakaProject','Not\x20deleting\x20secuirty\x20group','\x20SG\x20NAME:\x20','apply','bright','notice','10UDNZxM','deleteSecurityGroup','1907180WnFBRE','378926zrCtBb','31224CQByat','forEach','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','dsg','3nXNPPN','toString','exit','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','name','870964sNxcju','error','includes','1005942ZyjyAm','1332506DVoERG','sgId','387ZtLeRW','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','success','ID:\x20','Deleted\x20','search','confirm','10NXJWLV','ask','191376kIftcb','maka\x20aws:dsg','maka\x20aws:delete-sg','Deleting\x20a\x20','\x20SGID:\x20'];a13c=function(){return s;};return a13c();}(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x1d4))/0x1+parseInt(l(0x1e2))/0x2*(parseInt(l(0x1d9))/0x3)+parseInt(l(0x1de))/0x4+-parseInt(l(0x1d1))/0x5*(-parseInt(l(0x1ed))/0x6)+parseInt(l(0x1e1))/0x7+-parseInt(l(0x1d5))/0x8*(parseInt(l(0x1e4))/0x9)+parseInt(l(0x1eb))/0xa*(-parseInt(l(0x1d3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x5aa9d));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a['toString']()[n(0x1e9)]('(((.+)+)+)+$')[n(0x1da)]()['constructor'](a13a)['search']('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a13d(a,b);}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';Command['create']({'name':'delete-security-group','aliases':[a13o(0x1d8)],'usage':a13o(0x1ef),'validOpts':[],'shortDesc':a13o(0x1e5),'examples':['maka\x20aws:delete-sg',a13o(0x1ee)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x1cb)]();let d='';if(c){const j=b['getMakaProjectConfig']();d=j[p(0x1ca)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0x1d6)](function(k){const q=p;c&&k[q(0x1dd)][q(0x1e0)](d)?Log[q(0x1d0)](q(0x1e7)+k['id']+q(0x1cd)+k[q(0x1dd)]+'\x20SGID:\x20'+k[q(0x1e3)]):Log[q(0x1cf)](q(0x1e7)+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x1dd)]+q(0x1c9)+k[q(0x1e3)]);});let g='';const h=await Actions[p(0x1ec)](p(0x1d7));f[p(0x1d6)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1e3)]);});if(!g)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x1ea)](p(0x1f0)+g+p(0x1dc),![]);i?(await a[p(0x1d2)](g),Log[p(0x1e6)](p(0x1e8)+g)):Log[p(0x1df)](p(0x1cc)),process[p(0x1db)](0x0);}catch(k){k&&Log[p(0x1df)](k),process[p(0x1db)](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x1a8))/0x1+-parseInt(f(0x1b0))/0x2+-parseInt(f(0x19c))/0x3*(parseInt(f(0x19a))/0x4)+parseInt(f(0x1ad))/0x5*(-parseInt(f(0x1af))/0x6)+-parseInt(f(0x19b))/0x7*(parseInt(f(0x1ac))/0x8)+parseInt(f(0x19d))/0x9+parseInt(f(0x1a0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x6b90b));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a['toString']()['search']('(((.+)+)+)+$')[h(0x1aa)]()[h(0x1ab)](a14a)[h(0x1a3)](h(0x1ae));});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 a14c(){const k=['An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','listAllEcrRepositories','apply','Completed\x20listing\x20ECR\x20repositories.','86317lyekTe','exit','toString','constructor','1512SvNuyy','15oPFonV','(((.+)+)+)+$','264228VhquVM','302456MtzRQH','maka\x20aws:lecr\x20--regions=all','error','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','3524Tuvmyj','17745FhQYUj','159TReDaE','1893402NYnNZS','create','list-ecr','11256760wtFGcS','lecr','maka\x20aws:list-ecr','search'];a14c=function(){return k;};return a14c();}function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x19a;let f=c[d];return f;},a14d(a,b);}Command[a14i(0x19e)]({'name':a14i(0x19f),'aliases':[a14i(0x1a1)],'usage':a14i(0x1b4),'requiredOpts':[],'validOpts':['regions'],'shortDesc':a14i(0x1b3),'examples':[a14i(0x1a2),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14i(0x1b1)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x1a5)](b['regions']),Log['success'](j(0x1a7)),process['exit'](0x0);}catch(d){Log[j(0x1b2)](j(0x1a4)+d),process[j(0x1a9)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15h=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a15h=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x9c))/0x1*(-parseInt(f(0x8e))/0x2)+-parseInt(f(0x8a))/0x3+-parseInt(f(0x8c))/0x4+parseInt(f(0xa1))/0x5+-parseInt(f(0x96))/0x6+-parseInt(f(0x9d))/0x7+parseInt(f(0x9b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xcf53a));function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x88;let f=c[d];return f;},a15d(a,b);}const a15b=(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;};}()),a15a=a15b(this,function(){const g=a15d;return a15a[g(0x97)]()['search'](g(0x89))[g(0x97)]()[g(0x8b)](a15a)[g(0x90)]('(((.+)+)+)+$');});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';function a15c(){const j=['instanceId','reboot-instance','name','27394496qyvScN','418329WRWtrc','6691769BlHMPp','chooseInstance','ec2rebootInstance','\x20is\x20still\x20running.','6103860tAFwBR','confirm','error','(((.+)+)+)+$','466989KYpKXk','constructor','3733596IQEgjQ','rbi','2DQqqEi','status','search','maka\x20aws:reboot-instance','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','create','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','Reboot\x20an\x20EC2\x20instance','7995096SLNKsx','toString'];a15c=function(){return j;};return a15c();}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[a15h(0x93)]({'name':a15h(0x99),'aliases':[a15h(0x8d)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a15h(0x95),'examples':[a15h(0x91),'maka\x20aws:rbi']},async function(){const i=a15h;try{const a=new AWS(),b=await a[i(0x9e)]();if(b?.[i(0x8f)]==='running'){const c=await Actions[i(0xa2)](i(0x92)+b[i(0x9a)]+'\x20Ready?');c&&b[i(0x98)]?a[i(0x9f)]({'instanceId':b['instanceId']}):Log[i(0x88)](i(0x94)+b['name']+i(0xa0));}else Log[i(0x88)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[i(0x88)](d),process['exit'](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(
|
|
1
|
+
const a16I=a16d;function a16c(){const K=['8147461KRoYKa','contactType','notice','apply','warn','domain','554315sEpoWX','6046NcfRhh','register-domain-name','123\x20Glorious\x20Way','create','includes','Zip\x20Code\x20[96816]:\x20','mail@example.com','maka\x20aws:register-domain-name\x20--domain=example.com','confirm','Country\x20Code\x20[US]:\x20','search','\x20for\x20','5888972GbVELU','error','ASSOCIATION','42mBIFDD','ask','Address\x20Line\x202:\x20','114tZiUzb','My\x20Comanpy,\x20LLC.','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','values','COMPANY','exit','Person','16554078PMdEhP','PUBLIC_BODY','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','Contact\x20Email\x20[mail@example.com]:\x20','registerDomain','\x20/\x20Year\x20\x0a','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','The\x20domain\x20name:\x20','toString','maka\x20aws:rdn\x20--domain=example.com','\x20years\x20(','96816','227637xcIfgC','Choose\x20contact\x20type','Are\x20you\x20sure?','rdn','8yQKpZd','\x20is\x20available\x20for:','Do\x20you\x20wish\x20to\x20register\x20','Contact\x20Last\x20Name\x20[Person]:\x20','constructor','OrganizationName','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','PERSON','+1.5555555556','Domain\x20name\x20is\x20unavailable','46079340VXdywT','State\x20[HI]:\x20','maka\x20aws:register-domain-name','+1.5555555555','Duration\x20in\x20years\x20[1]:\x20'];a16c=function(){return K;};return a16c();}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x72;let f=c[d];return f;},a16d(a,b);}(function(a,b){const E=a16d,c=a();while(!![]){try{const d=parseInt(E(0x9b))/0x1+-parseInt(E(0x76))/0x2*(-parseInt(E(0x88))/0x3)+parseInt(E(0x82))/0x4+-parseInt(E(0x75))/0x5*(-parseInt(E(0x85))/0x6)+parseInt(E(0xae))/0x7*(parseInt(E(0x9f))/0x8)+parseInt(E(0x8f))/0x9+-parseInt(E(0xa9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xf0c0e));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0x97)]()['search']('(((.+)+)+)+$')['toString']()[G(0xa3)](a16a)[G(0x80)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';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(0x8b)](CountryCode)[H(0x7a)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0x79)]({'name':a16I(0x77),'aliases':[a16I(0x9e)],'usage':a16I(0xab),'requiredOpts':[a16I(0x74)],'validOpts':[],'shortDesc':a16I(0xa5),'examples':[a16I(0x7d),a16I(0x98)]},async function(a,b){const J=a16I;try{const c=b[J(0x74)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log[J(0xb0)](J(0x96)+c+J(0xa0));const {Price:h,Currency:i}=g;Log[J(0x73)]('\x20\x20'+h+'\x20'+i+J(0x94));const j=await Actions[J(0x7e)](J(0xa1)+c+'\x20?',![]);if(j){const k={'type':'list','name':J(0xaf),'message':J(0x9c),'choices':[J(0x84),J(0x8c),J(0xa6),J(0x90),'RESELLER']},l=await Actions[J(0x86)](J(0xad))||'1',m=await Actions[J(0x86)]('Contact\x20First\x20Name\x20[Contact]:\x20')||'Contact',n=await Actions['ask'](J(0xa2))||J(0x8e),{contactType:o}=await Actions['options'](k),p=await Actions['ask'](J(0x91))||J(0x78),q=await Actions['ask'](J(0x87)),r=await Actions['ask'](J(0x7b))||J(0x9a),s=await Actions[J(0x86)](J(0xaa))||'HI',t=await Actions['ask'](J(0x7f))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0x83)]('Invalid\x202\x20character\x20country\x20code');const v=await Actions[J(0x86)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||J(0xac),w=await Actions[J(0x86)](J(0x8a))||J(0xa7),x=await Actions['ask'](J(0x92))||J(0x7c),y=await Actions['confirm']('Auto\x20Renew:\x20'),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(0xa6)){const C=await Actions[J(0x86)]('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||J(0x89);z[J(0xa4)]=C;}const A=h||0x0*parseInt(l);Log[J(0xb0)](J(0x95)),Log['warn'](A+'\x20'+i+J(0x81)+l+J(0x99)+h+'\x20'+i+'\x20/\x20Year)');const B=await Actions[J(0x7e)](J(0x9d));B&&await d[J(0x93)](z,c,parseInt(l),y);}}else throw J(0xa8);}catch(D){D&&Log[J(0x83)](D),process[J(0x8d)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a17k=a17d;function a17c(){const n=['toString','3155640lwxgPA','deleteKeyPair','exit','forEach','34159360jTnrqU','apply','success','create','search','1543064sNtNKU','12TvxxXD','name','maka\x20aws:remove-key-pair','rkp','Not\x20deleting\x20keypair','(((.+)+)+)+$','132OrsZYW','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1226019zurLcJ','6030NYWmuV','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','maka\x20aws:rkp','174762mTeNMo','Deleting\x20a\x20','14520FZjelq','error','confirm','150070BVMrhA','Please\x20choose\x20a\x20key\x20to\x20delete:','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','ask'];a17c=function(){return n;};return a17c();}(function(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0xdb))/0x1+-parseInt(h(0xc9))/0x2+parseInt(h(0xd3))/0x3*(-parseInt(h(0xd2))/0x4)+parseInt(h(0xc4))/0x5*(parseInt(h(0xd9))/0x6)+-parseInt(h(0xbf))/0x7+parseInt(h(0xc1))/0x8*(parseInt(h(0xdc))/0x9)+parseInt(h(0xcd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xe0b69));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0xc8)]()[j(0xd1)](j(0xd8))['toString']()['constructor'](a17a)[j(0xd1)](j(0xd8));});function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0xbd;let f=c[d];return f;},a17d(a,b);}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';import{Log}from'../../tools/log/log.class.js';Command[a17k(0xd0)]({'name':'remove-key-pair','aliases':[a17k(0xd6)],'usage':a17k(0xd5),'validOpts':[],'shortDesc':a17k(0xc6),'description':'\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','examples':['maka\x20aws:remove-key-pair',a17k(0xbe)]},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[l(0xc7)](l(0xc5));b?.[l(0xcc)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0xd4)]);});if(!c)throw Log[l(0xc2)](l(0xda));const f=await Actions[l(0xc3)](l(0xc0)+c+l(0xbd),![]);f?(await a[l(0xca)](c),Log[l(0xcf)]('Deleted\x20'+c)):Log[l(0xc2)](l(0xd7)),process['exit'](0x0);}catch(g){g&&Log['error'](g),process[l(0xcb)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(
|
|
1
|
+
const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(0x17a))/0x1*(parseInt(m(0x176))/0x2)+parseInt(m(0x15e))/0x3*(-parseInt(m(0x174))/0x4)+-parseInt(m(0x15d))/0x5+-parseInt(m(0x14f))/0x6+parseInt(m(0x168))/0x7+-parseInt(m(0x172))/0x8*(parseInt(m(0x159))/0x9)+parseInt(m(0x157))/0xa*(parseInt(m(0x15c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x90f63));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a['toString']()[o(0x169)](o(0x161))['toString']()[o(0x155)](a18a)[o(0x169)]('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a18c(){const r=['maka\x20aws\x20set-host','set-host','chooseInstance','maka\x20aws:set-host\x20--env\x20dev','ssh.json','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','7507136rFxoGQ','search','isFile','sep','getAppConfigPath','getEnvFromShorthand','\x0aSaved\x20host\x20','writeFileSync','\x20IP\x20to\x20','host','6658264wtRRbd','env','1580LSZaQM','maka\x20aws:sth\x20--env\x20prod','45674kbbhKu','config/ssh.json','fsi','cat\x20','4UnXiab','stringify','template','parse','5488638WoLWxH','apply','public','error','private','inherit','constructor','readFileSync','20DAyvkG','success','9CJiWNV','privateIp','join','14452922ugVjpJ','559600vOoBKf','8781bQnOAV','appName','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','(((.+)+)+)+$'];a18c=function(){return r;};return a18c();}import{Log}from'../../tools/log/log.class.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x14d;let f=c[d];return f;},a18d(a,b);}Command['create']({'name':a18p(0x163),'aliases':['sth'],'usage':a18p(0x162),'mustBeInMakaProject':!![],'requiredOpts':[a18p(0x173)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':'\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','examples':[a18p(0x165),a18p(0x175)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this[q(0x178)][q(0x16d)](b['env']),f=this[q(0x178)][q(0x16c)](d),g=this[q(0x178)]['getMakaProjectConfig'](),h=await c[q(0x164)](),i=a18e['join'](f,q(0x166));!this[q(0x178)][q(0x16a)](i)&&await this[q(0x178)][q(0x14d)]({'srcPath':q(0x177),'destPath':i,'context':{'app':g[q(0x15f)]},'config':g});const j=JSON[q(0x14e)](a18f[q(0x156)](i,'utf8')),k=await Actions['ask'](q(0x167))||q(0x151);if(k){if(k===q(0x151)||k===q(0x153)){if(k==='public')j['host']=h?.['publicIp'];else k===q(0x153)&&(j[q(0x171)]=h?.['privateIp']);}else throw q(0x160);}else j['host']=h?.[q(0x15a)];a18f[q(0x16f)](a18e[q(0x15b)](f,'ssh.json'),JSON[q(0x17b)](j,null,0x2)),execSync(q(0x179)+a18e[q(0x15b)](f,q(0x166)),{'stdio':q(0x154)}),Log[q(0x158)](q(0x16e)+k+q(0x170)+f+a18e[q(0x16b)]+q(0x166));}catch(l){l&&Log[q(0x152)](l),process['exit'](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x1aa))/0x1+parseInt(f(0x1ad))/0x2*(-parseInt(f(0x194))/0x3)+-parseInt(f(0x1b0))/0x4+-parseInt(f(0x1a7))/0x5*(-parseInt(f(0x198))/0x6)+parseInt(f(0x19f))/0x7*(-parseInt(f(0x19e))/0x8)+parseInt(f(0x195))/0x9+parseInt(f(0x1a0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xbf512));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x196)]()['search'](h(0x197))[h(0x196)]()[h(0x199)](a19a)[h(0x1a9)]('(((.+)+)+)+$');});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';function a19c(){const k=['\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','terminate-instance','3520596IWwkHe','exit','running','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','1033041KubGAX','543870aSPDpj','toString','(((.+)+)+)+$','6EDTXIP','constructor','error','instanceId','\x20Ready?','name','72FEEtZL','901971TzUgrs','34767920gggIhZ','maka\x20aws:ti','chooseInstance','maka\x20aws:terminate-instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','ec2terminateInstance','apply','6928465MXrSKR','create','search','1410761FOkTRW','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','4JkBOXC'];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';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x192;let f=c[d];return f;},a19d(a,b);}Command[a19i(0x1a8)]({'name':a19i(0x1af),'aliases':['ti'],'usage':a19i(0x1a3),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19i(0x1ae),'examples':[a19i(0x1a3),a19i(0x1a1)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x1a2)]();if(b?.[j(0x19b)]&&b?.['status']===j(0x192)){const c=await Actions['confirm'](j(0x193)+b[j(0x19d)]+j(0x19c));c?a[j(0x1a5)]({'instanceId':b[j(0x19b)]}):Log[j(0x19a)](j(0x1a4)+b[j(0x19d)]+j(0x1ac));}else Log['error'](j(0x1ab));}catch(d){d&&Log[j(0x19a)](d),process[j(0x1b1)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a20d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x14d))/0x1*(parseInt(f(0x144))/0x2)+parseInt(f(0x146))/0x3*(-parseInt(f(0x141))/0x4)+parseInt(f(0x142))/0x5+-parseInt(f(0x14c))/0x6+-parseInt(f(0x14b))/0x7*(parseInt(f(0x14e))/0x8)+parseInt(f(0x14a))/0x9*(-parseInt(f(0x143))/0xa)+parseInt(f(0x148))/0xb*(parseInt(f(0x147))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x35c0a));var a20b=(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;};}()),a20a=a20b(this,function(){var g=a20d;return a20a['toString']()[g(0x145)](g(0x140))['toString']()[g(0x149)](a20a)[g(0x145)]('(((.+)+)+)+$');});function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x140;var f=c[d];return f;},a20d(a,b);}a20a();function a20c(){var h=['8TSPQHx','(((.+)+)+)+$','128bvympf','1967125qbiuwr','1290UxniIj','132422bonHRW','search','21234mFrNmS','48RNxnXA','692923UfIHqD','constructor','6129EPcLlM','289205iKMpBa','20136zbtgId','1JvtXQg'];a20c=function(){return h;};return a20c();}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(
|
|
1
|
+
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x1e0))/0x1+parseInt(n(0x1ea))/0x2*(parseInt(n(0x1d6))/0x3)+-parseInt(n(0x1d3))/0x4+-parseInt(n(0x1df))/0x5*(parseInt(n(0x1d9))/0x6)+-parseInt(n(0x1dd))/0x7+parseInt(n(0x1f0))/0x8*(parseInt(n(0x1ce))/0x9)+-parseInt(n(0x1d1))/0xa*(-parseInt(n(0x1cf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xf1d3e));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a['toString']()['search'](p(0x1ca))[p(0x1ef)]()['constructor'](a21a)[p(0x1e7)]('(((.+)+)+)+$');});a21a();function a21c(){const t=['fsi','(((.+)+)+)+$','exit','apply','getProjectMeteorVersion','14481603YljmIG','10340198mAwALE','checkMeteorPackage','30nUSEyp','existsSync','4944572XbAtjZ','invokeMeteorCommand','maka\x20build','1049025QxLTGD','create',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','2406ZXiwQV','app.tar.gz','autoupdate','getGlobalMeteorVersion','7448140PVeVqL','join','12365LONPxy','846109TzlJzK','error',').\x20Update?','--force','splice','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','This\x20project\x27s\x20meteor\x20version\x20(','search','force','--release','4BxTWVX','slice','update','Aborted.','confirm','toString','8xQcYaQ','build','pathFromProject'];a21c=function(){return t;};return a21c();}import a21e from'path';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(0x1d7)]({'name':a21q(0x1f1),'usage':a21q(0x1d5),'validOpts':[a21q(0x1e8)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','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(0x1d5)]},async function(a,b){const r=a21q;try{await this[r(0x1c9)][r(0x1d0)](r(0x1db),{'shouldInstall':!![]});const c=b['force'];if(!c){const g=this[r(0x1c9)][r(0x1dc)](),h=this[r(0x1c9)][r(0x1cd)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0x1ee)](r(0x1e6)+h+r(0x1d8)+g+r(0x1e2));j&&this[r(0x1c9)][r(0x1d4)](r(0x1ec),[r(0x1e9),g]);}}const d=[this['fsi'][r(0x1f2)]({'pathParts':[r(0x1f1)]})]['concat'](process['argv'][r(0x1eb)](0x3)),f=a21e[r(0x1de)](this[r(0x1c9)][r(0x1f2)]({}),r(0x1f1),r(0x1da));if(a21f[r(0x1d2)](f)){const k=c??await Actions[r(0x1ee)](r(0x1e5));if(!k)throw Log[r(0x1e1)](r(0x1ed));}d['forEach']((l,m)=>{const s=r;l===s(0x1e3)&&d[s(0x1e4)](m,0x2);}),this['fsi'][r(0x1d4)](r(0x1f1),d);}catch(l){console[r(0x1e1)](l),process[r(0x1cb)](0x0);}});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a21d(a,b);}export default BuildCommand;
|