@maka/maka-cli 4.13.3 → 4.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -0
- package/bundle/obf/src/generators/aws/aws.js +1 -0
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -0
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -0
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -0
- 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/aws/cloudformation/create-ec2-instance.template +14 -0
- 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.4",
|
|
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 a0c(){const z=['1041782hvnAbX','generate','\x20not\x20found','murder','DARK','shortDesc','options','maxOptsLength','mustHaveMeteorInstalled','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Command\x20requires\x20a\x20handler\x20function','assign','addCommand\x20requires\x20a\x20Command\x20instance','number','processAndRunCommand','minArgLength','11vZMHfC','Command\x20not\x20found','Sub-Commands:','sort','name','Too\x20few\x20options','(((.+)+)+)+$','error','4QKhxmu','maybeProxyCommandToMeteor','_commands','light','validateMakaProject','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20format\x20is\x20incorrect','14045680aTAUao','maxArgLength','Too\x20few\x20arguments','length','match','Alias','182216zrwWpj','mustBeInMakaProject','4279083VGzIcE','search','Command.create\x20requires\x20a\x20handler\x20function!','help','Description','Command\x20','24562rNJyVy','Command\x20requires\x20a\x20name','Please\x20run\x20\x22maka\x20install\x20meteor\x22','find','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','unshift','function','validateMakaSubscription','setColorMode','Too\x20many\x20options','slice','validateUserIsLoggedIn','addCommand','validateMeteorInstall','invoke','split','minOptsLength','constructor','join','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','forEach','6HbKAnR','create','13960296XQoESk','fsi','207EXvVff','aliases','tableList','notice','_handler','Command.create\x20requires\x20some\x20options!','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','mustBeLoggedIn','play','exit','localeCompare','toString','run','2WTFoJi','validateParams','340835QWmKxr'];a0c=function(){return z;};return a0c();}const a0p=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0xdc))/0x1+-parseInt(n(0xac))/0x2*(-parseInt(n(0xd6))/0x3)+parseInt(n(0xc7))/0x4*(-parseInt(n(0xae))/0x5)+-parseInt(n(0xf1))/0x6*(-parseInt(n(0xaf))/0x7)+parseInt(n(0xd4))/0x8*(-parseInt(n(0x9f))/0x9)+parseInt(n(0xce))/0xa*(-parseInt(n(0xbf))/0xb)+parseInt(n(0x9d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xbb225));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(0xaa)]()['search'](o(0xc5))[o(0xaa)]()[o(0xed)](a0a)[o(0xd7)]('(((.+)+)+)+$');});function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x9d;let f=c[d];return f;},a0d(a,b);}a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0p(0xb5)];['_commands'];constructor(a,b){const q=a0p;super();if(!a)throw new Error(q(0xb8));if(!a[q(0xc3)])throw new Error(q(0xdd));if(typeof b!==q(0xe2))throw new Error(q(0xb9));this[q(0xb5)]=Object[q(0xba)]({},a),this[q(0xc3)]=this[q(0xb5)][q(0xc3)],this[q(0xc9)]=[],this['_handler']=b['bind'](this);}static[a0p(0xf2)](a,b,c){const r=a0p;if(!a)throw new Error(r(0xa4));if(typeof b!=='function')throw new Error(r(0xd8));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[r(0xb5)]?.['name']}),c[r(0xe8)](d),d;}[a0p(0xe8)](a){const s=a0p;if(!(a instanceof Command))throw new Error(s(0xbb));this[s(0xc9)]['push'](a);}async[a0p(0xab)](a,b){const t=a0p;try{a=a||[],b=b||{};try{const c=await this[t(0x9e)]['getGlobalConfig'](),d=c['pallet']===t(0xca)?ColorMode['LIGHT']:ColorMode[t(0xb3)];Log[t(0xe4)](d),await this[t(0xe3)](this);}catch(f){Log['error'](f),process['exit'](0x0);}return await this['invoke'](a,b);}catch(g){process[t(0xa8)](0x1);}}async[a0p(0xea)](a,b){const u=a0p,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{if(this[u(0xb5)]['name']!==u(0xb0)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[u(0xd1)]===0x0)&&this[u(0xc9)]['length']>=0x0,g=b[u(0xd9)]||b['h'];if(f&&g){if(this[u(0xc9)][u(0xd1)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[u(0xb5)][u(0xd5)]){const h=this[u(0xcb)]();if(!h)throw new MustBeInProjectError();}if(this[u(0xb5)][u(0xa6)]){const i=await this[u(0xe7)]();if(!i)throw new MustBeLoggedIn();}if(this[u(0xb5)][u(0xb7)]){const j=this[u(0xe9)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[u(0xb5)]['minArgLength']==='number'){if(a[u(0xd1)]<this['options'][u(0xbe)]){Log['error'](u(0xd0));throw new UsageError();}}if(typeof this['options']['maxArgLength']===u(0xbc)){if(a[u(0xd1)]>=this[u(0xb5)][u(0xcf)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[u(0xb5)]['minOptsLength']==='number'){if(Object['keys'](b)['length']<this['options'][u(0xec)]){Log['error'](u(0xc4));throw new UsageError();}}if(typeof this[u(0xb5)][u(0xb6)]===u(0xbc)){if(Object['keys'](b)[u(0xd1)]>=this['options']['maxOptsLength']){Log['error'](u(0xe5));throw new UsageError();}}}}b=await this[u(0xad)](a,b,this['options']),_prevCmd=a[0x0];}return await this[u(0xa3)]['call'](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[u(0xa2)](u(0xc1)),this[u(0xa1)](this[u(0xc9)]),Log['header']('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(k instanceof MustBeInProjectError)Log['error'](u(0xe0));else{if(k instanceof NoMeteorFoundError)Log[u(0xc6)](u(0xef)),Log[u(0xa2)](u(0xde));else{if(k instanceof NoMeteorAppFoundError)Log['error'](u(0xcc));else k instanceof MustBeLoggedIn&&(Log[u(0xc6)](u(0xa5)),Log[u(0xa2)]('Please\x20run\x20\x22maka\x20login\x22'));}}}process[u(0xa8)](0x1);}}[a0p(0xa1)](a){const v=a0p,b=new a0e({});b['push'](['Name',v(0xd3),v(0xda)]),a[v(0xc2)]((c,d)=>{const w=v;return c[w(0xc3)][w(0xa9)](d[w(0xc3)]);})[v(0xf0)](c=>{const x=v;c[x(0xc3)]!==x(0xb2)&&c[x(0xc3)]!==x(0xa7)&&b['push']([c[x(0xc3)],c[x(0xa0)](),c[x(0xb4)]()]);}),Log['bright'](b[v(0xaa)]());}async[a0p(0xbd)](a,b=[],c={}){const y=a0p;try{const d=a?.[y(0xeb)](':');if(!d||d[y(0xd1)]===0x0)throw y(0xcd);if(d[0x0]===y(0xb0)||d[0x0]==='g'&&d[y(0xd1)]>0x1){const h=this[y(0xc9)][y(0xdf)](j=>j[y(0xd2)](y(0xb0)));if(!h)throw y(0xc0);await this[y(0xe3)](h);const i=d[y(0xe6)](0x1)[y(0xee)](':');return b[y(0xe1)](i),await h['run'](b,c);}let f=this[y(0xc9)],g;for(const j of d){g=f[y(0xdf)](k=>k[y(0xd2)](j));if(!g)try{await this[y(0x9e)][y(0xc8)]();}catch(k){throw y(0xdb)+j+y(0xb1);}g&&(await this[y(0xe3)](g),f=g[y(0xc9)]);}if(g){const l=await g['run'](b,c);return l;}else throw y(0xc0);}catch(m){Log['error'](m),process[y(0xa8)](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(0xd8))/0x1+-parseInt(f(0xd0))/0x2+parseInt(f(0xd6))/0x3*(parseInt(f(0xdb))/0x4)+parseInt(f(0xd1))/0x5*(-parseInt(f(0xd4))/0x6)+parseInt(f(0xd3))/0x7+-parseInt(f(0xd7))/0x8+-parseInt(f(0xcf))/0x9*(-parseInt(f(0xd2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x946c8));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['toString']()['search']('(((.+)+)+)+$')[g(0xd5)]()[g(0xce)](a1a)[g(0xd9)](g(0xda));});a1a();import'./aws/_index.js';function a1c(){var h=['2870888SqGxmM','34932IszUJF','search','(((.+)+)+)+$','314348yZmScL','constructor','162ZrTcVy','880962cAANjx','6495aMQYDw','568220MzVJvy','1578752TxTqjE','4146HdQzGa','toString','39oYIUSx'];a1c=function(){return h;};return a1c();}import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xce;var f=c[d];return f;},a1d(a,b);}import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x141;let f=c[d];return f;},a2d(a,b);}const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x14e))/0x1*(parseInt(h(0x166))/0x2)+-parseInt(h(0x150))/0x3+parseInt(h(0x154))/0x4+parseInt(h(0x15b))/0x5+parseInt(h(0x144))/0x6*(-parseInt(h(0x15f))/0x7)+parseInt(h(0x157))/0x8*(-parseInt(h(0x163))/0x9)+parseInt(h(0x160))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x1dc46));function a2c(){const o=['trim','806200NDcuvI','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','toLowerCase','isFile','7KMCCaY','4564700dItKZF','(((.+)+)+)+$','ChatGPT\x20style\x20AI\x20interface','282699ZAuaYG','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','cert','2PTnqzw','apply','data','search','You:\x20','785058FwyzZk','askGPT','toString','constructor','getGlobalConfig','question','GPT:\x20','stdout','fsi','cacert','118413ZGTqqC','exit','508785yaQuMF','error','openapikey','parse','320488EQfydJ','bright','openai','40HfULHC','notice','createInterface'];a2c=function(){return o;};return a2c();}const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x167)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x146)]()[j(0x142)](j(0x161))[j(0x146)]()[j(0x147)](a2a)[j(0x142)](j(0x161));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x159)]({'input':process['stdin'],'output':process[k(0x14b)]});c[k(0x149)](k(0x143),async d=>{const l=k;if(d[l(0x15d)]()===l(0x14f)){c['close']();return;}try{const e=await HTTPS[l(0x145)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x153)](e[l(0x141)]);if(f['error'])throw new Error(f[l(0x151)]['message']);Log[l(0x155)](l(0x14a)+f?.['choices'][0x0]?.['text'][l(0x15a)]());}catch(g){Log[l(0x151)](g),process[l(0x14f)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2m(0x14d),a2m(0x152)],'shortDesc':a2m(0x162),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x14d)]&&(this[n(0x14c)][n(0x15e)](b['cacert'])?(c=b[n(0x14d)],Log[n(0x158)]('Using\x20CA\x20Cert\x20'+c)):Log[n(0x151)](n(0x164)+c));const d=await this[n(0x14c)][n(0x148)]();if(d['cert']){if(this['fsi'][n(0x15e)](d['cert']))c=d[n(0x165)];else throw Log[n(0x151)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b[n(0x152)])f=b[n(0x152)],Log[n(0x158)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d['openai'])f=d[n(0x156)];else throw Log['error'](n(0x15c));}Log[n(0x155)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x14f)](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(0xe0))/0x1*(-parseInt(f(0xe2))/0x2)+parseInt(f(0xe1))/0x3+parseInt(f(0xd9))/0x4+-parseInt(f(0xdf))/0x5*(parseInt(f(0xdd))/0x6)+parseInt(f(0xd7))/0x7*(parseInt(f(0xdc))/0x8)+-parseInt(f(0xdb))/0x9+-parseInt(f(0xda))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x3ba36));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0xd8)]()['search'](h(0xd6))['toString']()['constructor'](a3a)['search'](h(0xd6));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xd6;var f=c[d];return f;},a3d(a,b);}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';function a3c(){var i=['2863544GVMlwz','6ueKjOl','apply','1811165KqPMQv','7aNQtll','399918YiupkS','8914OeaWfy','(((.+)+)+)+$','7Itzgfd','toString','1472740DTqklz','1825410IyaUru','352647ohyIhK'];a3c=function(){return i;};return a3c();}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
|
|
1
|
+
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x18c))/0x1*(-parseInt(f(0x185))/0x2)+parseInt(f(0x18d))/0x3*(-parseInt(f(0x183))/0x4)+parseInt(f(0x18e))/0x5*(-parseInt(f(0x18a))/0x6)+parseInt(f(0x18f))/0x7+-parseInt(f(0x182))/0x8*(-parseInt(f(0x17d))/0x9)+-parseInt(f(0x186))/0xa*(parseInt(f(0x184))/0xb)+parseInt(f(0x17f))/0xc*(parseInt(f(0x188))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x853fc));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x180)]()[h(0x190)](h(0x181))[h(0x180)]()[h(0x17e)](a4a)[h(0x190)](h(0x181));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0x18b)]({'name':'aws','usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':a4i(0x187),'description':a4i(0x191)},async function(){throw UsageError;});export default AWSCommand;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x17d;let f=c[d];return f;},a4d(a,b);}function a4c(){const j=['171240yeiURQ','4JukBNm','11641366yPpAXB','554EVPBhG','10azwZMB','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','15821JGksQb','apply','6xXmNGg','create','1018jDjzJS','678759dGjXea','1074730fiWCaC','18641CMnSJF','search','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','225kNcQMc','constructor','12084yBXCrb','toString','(((.+)+)+)+$'];a4c=function(){return j;};return a4c();}
|
|
@@ -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(0x1b6))/0x1+parseInt(g(0x1ba))/0x2*(parseInt(g(0x1ac))/0x3)+-parseInt(g(0x1a7))/0x4+parseInt(g(0x1c1))/0x5+parseInt(g(0x1bc))/0x6+-parseInt(g(0x1c2))/0x7*(parseInt(g(0x1b1))/0x8)+-parseInt(g(0x1ab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xbaf97));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1c4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1bb)]()['search'](i(0x1ad))[i(0x1bb)]()[i(0x1af)](a5a)[i(0x1b9)](i(0x1ad));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0x1b8)]({'name':a5j(0x1a8),'aliases':[a5j(0x1a9)],'usage':a5j(0x1aa),'requiredOpts':[a5j(0x1b5)],'validOpts':['region'],'shortDesc':a5j(0x1bf),'examples':[a5j(0x1c0),'maka\x20aws:cecr\x20--name=my-new-repo','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1']},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x1bd)](b);d&&d[k(0x1b0)][k(0x1b7)]===0xc8&&d['repository']?(Log[k(0x1b2)](k(0x1c6)),Log[k(0x1c3)](k(0x1ae)+d[k(0x1be)][k(0x1c7)])):Log[k(0x1c5)](k(0x1b4)),process[k(0x1b3)](0x0);}catch(f){Log[k(0x1c5)](f),process[k(0x1b3)](0x1);}},a5e);function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a5d(a,b);}function a5c(){const l=['14855382smjUoJ','3mqUoNi','(((.+)+)+)+$','Repository\x20URI:\x20','constructor','$metadata','1062872pwklxp','success','exit','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','name','363355KCJkzO','httpStatusCode','create','search','990182WvQyoa','toString','4157256ibJXrE','ecrCreateRepository','repository','Create\x20an\x20Elastic\x20Container\x20Repository','maka\x20aws:create-ecr\x20--name=my-new-repo','6135435XesHXo','7pNoyjF','notice','apply','error','Repository\x20created\x20successfully.','repositoryUri','916420gNeuDt','create-ecr','cecr','maka\x20aws:create-ecr'];a5c=function(){return l;};return a5c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a6k=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0xb3))/0x1*(parseInt(i(0xb2))/0x2)+parseInt(i(0xbc))/0x3+-parseInt(i(0xba))/0x4*(parseInt(i(0xac))/0x5)+-parseInt(i(0xbd))/0x6+-parseInt(i(0xad))/0x7*(-parseInt(i(0xbe))/0x8)+-parseInt(i(0xa6))/0x9+parseInt(i(0xae))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xf3850));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const j=a6d;return a6a[j(0xa8)]()[j(0xaa)](j(0xaf))[j(0xa8)]()[j(0xa9)](a6a)[j(0xaa)]('(((.+)+)+)+$');});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';function a6c(){const m=['chooseInstance','maka\x20aws:create-hosted-zone\x20--domain=example.com','publicIp','2572ONbtrq','linkEC2ToRoute53','212730buDrDB','2013096Fpkdww','1219312RbCtmT','create','create-hosted-zone','confirm','13497849IrpFrF','maka\x20aws:create-hosted-zone','toString','constructor','search','domain','4870voxYbZ','7JhEaWA','47508890mKgxtL','(((.+)+)+)+$','chz','maka\x20aws:chz\x20--domain=example.com','12QjyVgP','252533NvNlcy','Set\x20hosted\x20zone\x20to\x20an\x20instance?','route53CreateHostedZone','Instance\x20not\x20found'];a6c=function(){return m;};return a6c();}function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xa5;let f=c[d];return f;},a6d(a,b);}Command[a6k(0xbf)]({'name':a6k(0xc0),'aliases':[a6k(0xb0)],'usage':a6k(0xa7),'requiredOpts':[a6k(0xab)],'validOpts':[],'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':[a6k(0xb8),a6k(0xb1)]},async function(a,b){const l=a6k;try{const c=b[l(0xab)],d=new AWS();d[l(0xb5)](c);const f=await Actions[l(0xa5)](l(0xb4));if(f){const g=await d[l(0xb7)]();if(g?.['id']){if(!g[l(0xb9)])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[l(0xbb)](g['id'],g[l(0xb9)],c);}else throw l(0xb6);}}catch(h){h&&Log['error'](h),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x190))/0x1+-parseInt(ae(0x1a5))/0x2+parseInt(ae(0x17a))/0x3*(-parseInt(ae(0x1a7))/0x4)+parseInt(ae(0x1d0))/0x5+-parseInt(ae(0x178))/0x6+-parseInt(ae(0x197))/0x7+parseInt(ae(0x179))/0x8*(parseInt(ae(0x18d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xa132b));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x175;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(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x1c9)]()[ag(0x188)](ag(0x1d6))[ag(0x1c9)]()['constructor'](a7a)['search'](ag(0x1d6));});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';function a7c(){const au=['unlinkSync','desc','User\x20Data:','77686pnvyJa','notice','24yeFbsF','Setting\x20SG\x20ID\x20to:\x20','create','alias','confirm','Subnet:\x20','parse','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','readFileSync','maka-cli','\x20SGID:\x20','cidr','string','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','amazon','user-data','Key-Pair:\x20','env','deleteKeyPair','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','split','maka\x20aws:create-instance','*\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','No\x20instance\x20has\x20been\x20created.','t3.micro','ID:\x20','sort','subnet','date','Security\x20Group:\x20','deleteSecurityGroup','Instace\x20Type:\x20','name','Would\x20you\x20like\x20to\x20include\x20user\x20data?','toString','environment','22,80,443','Remove\x20the\x20keypair\x20','ImageID:','amiId','isFile','5671910rsAFMN','sgId','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','number','build\x20on\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','(((.+)+)+)+$','getEnvFromShorthand','\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','**\x20Available\x20Subnets\x20**','ec2createSG','\x20AZONE:\x20','bright','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','getAppConfigPath','join','created-by','error','chooseVPC','Create\x20new\x20AWS\x20instance','5552076dgyFHV','193576oWQzPS','263793oxYwSL','**\x20Available\x20key-pairs\x20**','cider','Desc','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=*','\x20:\x20','EC2\x20Name:\x20[','Web\x20App','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','**\x20Available\x20Security\x20Groups\x20**','ask','createFile','Remove\x20the\x20security\x20group\x20','search','success','**\x20Available\x20AMIs\x20**','Creating\x20user\x20data\x20file\x20in\x20','apply','648qnbviP','Setting\x20the\x20key-pair\x20to:\x20','\x20CIDR:\x20','595331iipgfn','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','ec2describeKeys','fsi','createKeyPair','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','maka\x20aws:create-instance\x20--env\x20dev','9238985CqkLvc','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','forEach','push','Please\x20choose\x20a\x20key\x20to\x20use:\x20','getMakaProjectConfig','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','getTime','subnetId','\x20SUBNETID:\x20','\x20AMIID:\x20'];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(0x1a9)]({'name':'create-instance','aliases':['ci'],'usage':a7ah(0x1bc),'examples':[a7ah(0x196),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0x177),'description':a7ah(0x1d8)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x193)][ai(0x19c)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x193)][ai(0x1d7)](b[ai(0x1b8)]),i=this[ai(0x193)][ai(0x1de)](h),j=g+'-'+h,k=await Actions['ask'](ai(0x181)+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[ai(0x194)]({'env':h});r=y,s=z,Log['success'](ai(0x18e)+r);}else try{Log[ai(0x1a6)](ai(0x17b));const A=r?r:k,B=await d[ai(0x192)]({'suggestion':A}),C=await Actions[ai(0x185)](ai(0x19b))||'-1';if(parseInt(C)<0x0){Log[ai(0x175)]('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(0x1a6)](ai(0x1be));return;}B?.[ai(0x199)](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D['name'],Log['success'](aj(0x18e)+r));});}catch(D){Log[ai(0x175)](D);}l=await d['chooseVPC']();const t=await Actions[ai(0x1ab)](ai(0x1dd),!![]);let u;if(t){const E=l===''?await d[ai(0x176)]():l;u=await Actions[ai(0x185)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ai(0x1ba))||ai(0x1cb),G=F[ai(0x1bb)](',');await d[ai(0x1da)]({'description':ai(0x182),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ai(0x1a6)](ai(0x184)),J[ai(0x199)](function(L){const ak=ai;L['name']===u?Log[ak(0x1a6)](ak(0x1c0)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1c7)]+ak(0x1b1)+L[ak(0x1d1)]):Log[ak(0x1dc)](ak(0x1c0)+L['id']+'\x20SG\x20NAME:\x20'+L[ak(0x1c7)]+ak(0x1b1)+L[ak(0x1d1)]);});const K=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H[ai(0x1c9)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x1d1)],Log[al(0x189)](al(0x1a8)+m+'\x0a'));});}else m=I,Log[ai(0x189)](ai(0x1a8)+m+'\x0a');if(m==='')throw Log[ai(0x175)](ai(0x183));}catch(L){Log[ai(0x175)](L);}try{const M=0x7e6;Log['notice'](ai(0x18a));const N=execSync(ai(0x17f)+M+ai(0x1bd))[ai(0x1c9)](),O=JSON[ai(0x1ad)](N),P=[],Q=[];O['forEach'](function(S){const am=ai;if(S[am(0x1aa)]===am(0x1b5)){const T=S[am(0x17d)][am(0x1bb)](am(0x1d4))[0x1];P[am(0x19a)]({'amiId':S['ID'],'desc':S[am(0x17d)],'date':T});}}),P[ai(0x1c1)](function(S,T){const an=ai;return new Date(T['date'])[an(0x19e)]()-new Date(S[an(0x1c3)])['getTime']();}),P[ai(0x199)](function(S,T){const ao=ai;Q[ao(0x19a)]({'id':T,'amiId':S[ao(0x1ce)],'desc':S[ao(0x1a3)]});}),Q['forEach'](function(S){const ap=ai;Log['bright'](ap(0x1c0)+S['id']+ap(0x1a1)+S[ap(0x1ce)]+'\x20DESCRIPTION:\x20'+S[ap(0x1a3)]);});const R=await Actions[ai(0x185)](ai(0x1ae))||'0';Q[ai(0x199)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0x1ce)],Log['success']('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0x180)+S[aq(0x1a3)]));});if(n==='')throw Log[ai(0x175)](ai(0x183));}catch(S){Log[ai(0x175)](S);}try{Log[ai(0x1a6)](ai(0x1d9));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')[ai(0x1c9)](),U=JSON[ai(0x1ad)](T),V=[];U[ai(0x199)](function(X,Y){const ar=ai;V[ar(0x19a)]({'id':Y,'cidr':X[ar(0x17c)],'az':X['az'],'subnetId':X[ar(0x19f)]});}),V[ai(0x199)](function(X){const as=ai;Log[as(0x1dc)](as(0x1c0)+X['id']+as(0x18f)+X[as(0x1b2)]+as(0x1db)+X['az']+as(0x1a0)+X[as(0x19f)]);});const W=await Actions[ai(0x185)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x199)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x19f)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x175)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x185)](ai(0x1b4))||'1:1',Z=Y[ai(0x1bb)](':')[0x0],a0=Y[ai(0x1bb)](':')[0x1];typeof parseInt(Z)===ai(0x1d3)&&typeof parseInt(a0)==='number'&&Log[ai(0x189)](ai(0x198)+Z+':'+a0);}catch(a1){Log[ai(0x175)](a1);}try{const a2=await Actions[ai(0x185)](ai(0x19d))||ai(0x1bf);typeof a2===ai(0x1b3)&&(o=a2);}catch(a3){Log[ai(0x175)](a3);}let x='';try{const a4=await Actions[ai(0x1ab)](ai(0x1c8),![]);a4&&(x=a7f[ai(0x1df)](i,ai(0x1b6)),Log['notice'](ai(0x18b)+x),await this[ai(0x193)][ai(0x186)]({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0x175)](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0x191))[ai(0x1c9)]())[0x0][ai(0x1c2)];Log['notice'](ai(0x1cd)+n),Log['notice']('Instance\x20Count:\x20'+v+':'+w),Log['notice'](ai(0x1c6)+o),Log[ai(0x1a6)](ai(0x1b7)+r),Log[ai(0x1a6)](ai(0x1c4)+m),Log[ai(0x1a6)](ai(0x1ac)+a6);if(x){Log[ai(0x1a6)](ai(0x1a4)+x);const a8=a7g[ai(0x1af)](x)[ai(0x1c9)]();Log[ai(0x1a6)](a8);}const a7=await Actions['confirm'](ai(0x1d5));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x1e0),'Value':ai(0x1b0)},{'Key':ai(0x1ca),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x189)](ai(0x195)),Log['bright'](ai(0x17e)));}else{Log[ai(0x1a6)](ai(0x1d2));const aa=await Actions[ai(0x1ab)](ai(0x1cc)+r+'\x20?',!![]);aa&&(d[ai(0x1b9)](r),f[ai(0x1cf)](s)&&a7g[ai(0x1a2)](s));const ab=await Actions[ai(0x1ab)](ai(0x187)+m+'\x20?',!![]);ab&&d[ai(0x1c5)](m);}}catch(ac){Log[ai(0x175)](ac);}}catch(ad){ad&&Log[ai(0x175)](ad),process['exit'](0x0);}},a7e);
|
|
1
|
+
const a7ah=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=-parseInt(ae(0x137))/0x1+-parseInt(ae(0x125))/0x2*(parseInt(ae(0x102))/0x3)+-parseInt(ae(0x143))/0x4+parseInt(ae(0x100))/0x5+parseInt(ae(0x127))/0x6*(-parseInt(ae(0x12b))/0x7)+parseInt(ae(0x138))/0x8+parseInt(ae(0x101))/0x9*(parseInt(ae(0x147))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x35103));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a7d;if(c){const e=c[af(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const ag=a7d;return a7a[ag(0x159)]()[ag(0x113)](ag(0x160))['toString']()[ag(0x129)](a7a)[ag(0x113)]('(((.+)+)+)+$');});a7a();function a7c(){const au=['user-data','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','bright','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','chooseVPC','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','User\x20Data:','created-by','\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','22,80,443','*\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','confirm','toString','Desc','forEach','split','env','Setting\x20the\x20key-pair\x20to:\x20','\x20SG\x20NAME:\x20','(((.+)+)+)+$','\x20AZONE:\x20','Remove\x20the\x20security\x20group\x20','create-instance','name','ImageID:','number','amiId','deleteSecurityGroup','Create\x20new\x20AWS\x20instance','Setting\x20SG\x20ID\x20to:\x20','1356640mhAysT','2349eYSQUo','2841dJUSfL','\x20SGID:\x20','getMakaProjectConfig','unlinkSync','Remove\x20the\x20keypair\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Security\x20Group\x20Name:\x20[','Security\x20Group:\x20','environment','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Subnet:\x20','ec2describeKeys','maka\x20aws:create-instance\x20--env\x20dev','amazon','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','createKeyPair','subnet','search','desc','maka\x20aws:ci\x20--env\x20prod','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','**\x20Available\x20key-pairs\x20**','alias','isFile','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','cider','**\x20Available\x20Subnets\x20**','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','createFile','Setting\x20AMI\x20ID\x20to\x20','ID:\x20','No\x20instance\x20has\x20been\x20created.','date','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20:\x20','178bhGCrN','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','6GYDADW','**\x20Available\x20AMIs\x20**','constructor','join','1408057AqDhAr','notice','string','sgId','getSecurityGroups','error','Instance\x20Count:\x20','1:1','Would\x20you\x20like\x20to\x20include\x20user\x20data?','**\x20Available\x20Security\x20Groups\x20**','\x20AMIID:\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=*','411819qZLjuc','1925544tEXBvR','deleteKeyPair','EC2\x20Name:\x20[','subnetId','Web\x20App','\x20CIDR:\x20','apply','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','ec2createSG','\x20DESCRIPTION:\x20','ask','1673064CPAInq','\x20SUBNETID:\x20','push','maka-cli','31450FHPNUd','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','fsi','success','Creating\x20user\x20data\x20file\x20in\x20'];a7c=function(){return au;};return a7c();}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';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0xf8;let f=c[d];return f;},a7d(a,b);}import{FSI}from'../../tools/fsi/fsi.class.js';Command['create']({'name':a7ah(0xf8),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a7ah(0x10e),a7ah(0x115)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7ah(0xfe),'description':a7ah(0x155)},async function(a,b){const ai=a7ah;try{const c=this[ai(0x14a)][ai(0x104)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0x14a)]['getEnvFromShorthand'](b[ai(0x15d)]),i=this['fsi']['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ai(0x142)](ai(0x13a)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0x158)](ai(0x126),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0x111)]({'env':h});r=y,s=z,Log['success'](ai(0x15e)+r);}else try{Log[ai(0x12c)](ai(0x117));const A=r?r:k,B=await d[ai(0x10d)]({'suggestion':A}),C=await Actions[ai(0x142)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log[ai(0x130)](ai(0x11a)),Log[ai(0x12c)](ai(0x121));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xf9)],Log[aj(0x14b)](aj(0x15e)+r));});}catch(D){Log[ai(0x130)](D);}l=await d[ai(0x151)]();const t=await Actions[ai(0x158)](ai(0x116),!![]);let u;if(t){const E=l===''?await d['chooseVPC']():l;u=await Actions['ask'](ai(0x108)+k+']')||k;const F=await Actions[ai(0x142)](ai(0x107))||ai(0x156),G=F[ai(0x15c)](',');await d[ai(0x140)]({'description':ai(0x13c),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0x12f)](u);if(I===''){Log[ai(0x12c)](ai(0x134)),J[ai(0x15b)](function(L){const ak=ai;L[ak(0xf9)]===u?Log[ak(0x12c)](ak(0x120)+L['id']+ak(0x15f)+L['name']+ak(0x103)+L[ak(0x12e)]):Log[ak(0x14f)](ak(0x120)+L['id']+ak(0x15f)+L[ak(0xf9)]+ak(0x103)+L[ak(0x12e)]);});const K=await Actions[ai(0x142)](ai(0x148)+H+']\x20')||H[ai(0x159)]();J['forEach'](function(L){const al=ai;L['id']===parseInt(K)&&(m=L[al(0x12e)],Log[al(0x14b)](al(0xff)+m+'\x0a'));});}else m=I,Log[ai(0x14b)](ai(0xff)+m+'\x0a');if(m==='')throw Log[ai(0x130)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(L){Log['error'](L);}try{const M=0x7e7;Log[ai(0x12c)](ai(0x128));const N=execSync(ai(0x136)+M+ai(0x157))[ai(0x159)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0x15b)](function(S){const am=ai;if(S[am(0x118)]===am(0x10f)){const T=S[am(0x15a)][am(0x15c)]('build\x20on\x20')[0x1];P[am(0x145)]({'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(0x122)])['getTime']();}),P['forEach'](function(S,T){const ao=ai;Q[ao(0x145)]({'id':T,'amiId':S[ao(0xfc)],'desc':S[ao(0x114)]});}),Q[ai(0x15b)](function(S){const ap=ai;Log[ap(0x14f)](ap(0x120)+S['id']+ap(0x135)+S[ap(0xfc)]+ap(0x141)+S[ap(0x114)]);});const R=await Actions[ai(0x142)](ai(0x123))||'0';Q[ai(0x15b)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S['amiId'],Log[aq(0x14b)](aq(0x11f)+n+aq(0x124)+S[aq(0x114)]));});if(n==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(S){Log[ai(0x130)](S);}try{Log[ai(0x12c)](ai(0x11c));const T=execSync(ai(0x10b))['toString'](),U=JSON['parse'](T),V=[];U[ai(0x15b)](function(X,Y){const ar=ai;V['push']({'id':Y,'cidr':X[ar(0x11b)],'az':X['az'],'subnetId':X[ar(0x13b)]});}),V['forEach'](function(X){const as=ai;Log['bright']('ID:\x20'+X['id']+as(0x13d)+X['cidr']+as(0x161)+X['az']+as(0x144)+X[as(0x13b)]);});const W=await Actions[ai(0x142)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ai(0x15b)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X[at(0x13b)],Log[at(0x14b)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ai(0x130)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0x142)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||ai(0x132),Z=Y[ai(0x15c)](':')[0x0],a0=Y[ai(0x15c)](':')[0x1];typeof parseInt(Z)===ai(0xfb)&&typeof parseInt(a0)===ai(0xfb)&&Log[ai(0x14b)](ai(0x152)+Z+':'+a0);}catch(a1){Log[ai(0x130)](a1);}try{const a2=await Actions[ai(0x142)](ai(0x14e))||'t3.micro';typeof a2===ai(0x12d)&&(o=a2);}catch(a3){Log[ai(0x130)](a3);}let x='';try{const a4=await Actions[ai(0x158)](ai(0x133),![]);a4&&(x=a7f[ai(0x12a)](i,ai(0x14d)),Log['notice'](ai(0x14c)+x),await this[ai(0x14a)][ai(0x11e)]({'filePath':x,'data':''}),await Actions[ai(0x158)](ai(0x13f)));}catch(a5){Log['error'](a5);}try{const a6=JSON['parse'](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ai(0x159)]())[0x0][ai(0x112)];Log[ai(0x12c)](ai(0xfa)+n),Log[ai(0x12c)](ai(0x131)+v+':'+w),Log[ai(0x12c)]('Instace\x20Type:\x20'+o),Log[ai(0x12c)]('Key-Pair:\x20'+r),Log['notice'](ai(0x109)+m),Log['notice'](ai(0x10c)+a6);if(x){Log[ai(0x12c)](ai(0x153)+x);const a8=a7g['readFileSync'](x)['toString']();Log[ai(0x12c)](a8);}const a7=await Actions[ai(0x158)](ai(0x150));if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x154),'Value':ai(0x146)},{'Key':ai(0x10a),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0x14b)](ai(0x110)),Log[ai(0x14f)](ai(0x149)));}else{Log['notice'](ai(0x11d));const aa=await Actions[ai(0x158)](ai(0x106)+r+'\x20?',!![]);aa&&(d[ai(0x139)](r),f[ai(0x119)](s)&&a7g[ai(0x105)](s));const ab=await Actions[ai(0x158)](ai(0x162)+m+'\x20?',!![]);ab&&d[ai(0xfd)](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log['error'](ad),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x185))/0x1*(-parseInt(g(0x17d))/0x2)+parseInt(g(0x190))/0x3+-parseInt(g(0x181))/0x4*(-parseInt(g(0x188))/0x5)+-parseInt(g(0x17e))/0x6*(-parseInt(g(0x180))/0x7)+-parseInt(g(0x18b))/0x8*(parseInt(g(0x194))/0x9)+parseInt(g(0x183))/0xa+-parseInt(g(0x192))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x9f5a1));const a8b=(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;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x18d)]()[h(0x195)](h(0x17f))[h(0x18d)]()[h(0x184)](a8a)[h(0x195)](h(0x17f));});function a8c(){const k=['3827097vEfxMq','maka\x20aws:create-key-pair\x20--env\x20prod','10419816nSIFtM','getEnvFromShorthand','9dfsEqP','search','\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','20134fXSATg','6wScIGq','(((.+)+)+)+$','6710396pztZYq','488eooOXX','createKeyPair','10955740gZPBCf','constructor','117nPdhyK','error','maka\x20aws:create-key-pair','25530ZbGYNV','ckp','exit','9400264epkUlb','env','toString','create-key-pair','maka\x20aws:ckp\x20--env\x20prod'];a8c=function(){return k;};return a8c();}a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x17d;let f=c[d];return f;},a8d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a8i(0x18e),'aliases':[a8i(0x189)],'usage':a8i(0x187),'examples':[a8i(0x191),a8i(0x18f)],'mustBeInMakaProject':!![],'requiredOpts':[a8i(0x18c)],'validOpts':[],'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':a8i(0x196)},async function(a,b){const j=a8i;try{const c=new AWS(),d=this['fsi'][j(0x193)](b[j(0x18c)]);c[j(0x182)]({'env':d});}catch(f){f&&Log[j(0x186)](f),process[j(0x18a)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x156;let f=c[d];return f;},a9d(a,b);}const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x15b))/0x1+parseInt(m(0x174))/0x2+-parseInt(m(0x16b))/0x3*(parseInt(m(0x167))/0x4)+parseInt(m(0x15c))/0x5*(parseInt(m(0x156))/0x6)+parseInt(m(0x163))/0x7*(-parseInt(m(0x168))/0x8)+-parseInt(m(0x176))/0x9*(-parseInt(m(0x162))/0xa)+-parseInt(m(0x170))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x33baa));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x160)]()[o(0x165)]('(((.+)+)+)+$')['toString']()['constructor'](a9a)[o(0x165)](o(0x157));});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';function a9c(){const s=['2247nhcwVN','create','search','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','1672GTCjjM','5288ktNyiY','List\x20is\x20not\x20all\x20numbers','ec2createSG','549yqByZw','forEach','apply','chooseVPC','maka\x20aws\x20create-security-group','2477376rHgTVZ','22,80,443','name','Web\x20App','388490HewAUX','create-security-group','9hFdwrx','9018otdrzy','(((.+)+)+)+$','\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','maka\x20aws:create-secuirty-group','Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','75458xZtVUy','285TvyXPg','split','Security\x20Group\x20Name:\x20[','error','toString','ask','3703990JkPZOD'];a9c=function(){return s;};return a9c();}Command[a9p(0x164)]({'name':a9p(0x175),'aliases':['csg'],'usage':a9p(0x16f),'validOpts':[],'shortDesc':a9p(0x15a),'description':a9p(0x158),'examples':[a9p(0x159),'maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi']['getMakaProjectConfig'](),{appName:f}=d,g=await c[q(0x16e)](),h=b[q(0x172)]?b['name']:''+f,i=await Actions[q(0x161)](q(0x15e)+h+']')||h,j=await Actions[q(0x161)](q(0x166))||q(0x171),k=j[q(0x15d)](',');k[q(0x16c)](l=>{const r=q;if(!l['match'](/^\d+$/))throw r(0x169);}),await c[q(0x16a)]({'description':q(0x173),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x15f)](l),process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x1bd))/0x1+-parseInt(f(0x1c1))/0x2+-parseInt(f(0x1ba))/0x3+-parseInt(f(0x1c9))/0x4+parseInt(f(0x1c2))/0x5+parseInt(f(0x1bf))/0x6*(-parseInt(f(0x1c5))/0x7)+-parseInt(f(0x1cb))/0x8*(-parseInt(f(0x1c8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x79b5f));function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a10d(a,b);}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x1be)]()[h(0x1c4)](h(0x1bb))[h(0x1be)]()[h(0x1b7)](a10a)[h(0x1c4)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';function a10c(){const k=['delete-ecr','success','502527NRYiBL','(((.+)+)+)+$','.\x20Error:\x20','104494bGtySu','toString','34656wevlrV','error','654288rTYiwL','1971705QdvZqR','exit','search','175euSvjO','apply','name','189HsqDom','2758876NFwoqA','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','585696fUsyyF','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','region','decr','create','constructor'];a10c=function(){return k;};return a10c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x1b6)]({'name':a10i(0x1b8),'aliases':[a10i(0x1b5)],'usage':'maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','requiredOpts':['name',a10i(0x1cd)],'validOpts':[],'shortDesc':'Delete\x20an\x20Elastic\x20Container\x20Repository','examples':[a10i(0x1cc),a10i(0x1ca)]},async function(a,b){const j=a10i;try{const c=new AWS();await c['ecrDeleteRepository']({'repoName':b['name'],'region':b[j(0x1cd)]}),Log[j(0x1b9)]('Repository\x20'+b[j(0x1c7)]+'\x20deleted\x20successfully\x20in\x20region\x20'+b['region']+'.'),process[j(0x1c3)](0x0);}catch(d){Log[j(0x1c0)]('Failed\x20to\x20delete\x20the\x20repository:\x20'+b['name']+'\x20in\x20region\x20'+b['region']+j(0x1bc)+d),process[j(0x1c3)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x193;let f=c[d];return f;},a11d(a,b);}const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x1a1))/0x1*(-parseInt(f(0x196))/0x2)+parseInt(f(0x1a0))/0x3+-parseInt(f(0x194))/0x4+-parseInt(f(0x19e))/0x5+parseInt(f(0x1a5))/0x6+parseInt(f(0x19d))/0x7*(parseInt(f(0x19b))/0x8)+parseInt(f(0x19f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x70db4));function a11c(){const k=['maka\x20aws:di','maka\x20aws:describe-instances','ec2describeInstances','348424UUmniL','apply','21kiWtVn','3949880gntxhv','8108379hvWdfj','68430KTWWch','1399kDHnHC','constructor','(((.+)+)+)+$','\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','4247358BDSOpR','search','toString','exit','2375988DtHBUI','describe-instances','120vVTDLB','error'];a11c=function(){return k;};return a11c();}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a['toString']()[h(0x1a6)](h(0x1a3))[h(0x1a7)]()[h(0x1a2)](a11a)[h(0x1a6)](h(0x1a3));});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(0x195),'aliases':['di'],'usage':a11i(0x199),'validOpts':[],'shortDesc':'Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','examples':[a11i(0x199),a11i(0x198)],'description':a11i(0x1a4)},async function(){const j=a11i;try{const a=new AWS();a[j(0x19a)]();}catch(b){b&&Log[j(0x197)](b),process[j(0x193)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a12c(){const k=['exit','dkp','maka\x20aws:describe-key-pairs','59Sjfstu','2398kXMwWY','search','739020SsUyDI','toString','error','apply','constructor','ec2describeKeys','1530918QQBCFE','1470738RnRWGl','3341345QgqdOm','38017tjPHtt','create','describe-key-pairs','2094972GXWyUo','104JMlMwQ'];a12c=function(){return k;};return a12c();}const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x1c0))/0x1*(-parseInt(f(0x1c1))/0x2)+-parseInt(f(0x1c3))/0x3+parseInt(f(0x1bb))/0x4+parseInt(f(0x1b7))/0x5+-parseInt(f(0x1b6))/0x6+parseInt(f(0x1b8))/0x7*(parseInt(f(0x1bc))/0x8)+-parseInt(f(0x1b5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x81785));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x1b2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x1c4)]()['search']('(((.+)+)+)+$')['toString']()[h(0x1b3)](a12a)[h(0x1c2)]('(((.+)+)+)+$');});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a12d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a12i(0x1b9)]({'name':a12i(0x1ba),'aliases':[a12i(0x1be)],'usage':a12i(0x1bf),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a12i(0x1bf),'maka\x20aws:dkp']},async function(){const j=a12i;try{const a=new AWS();a[j(0x1b4)]();}catch(b){b&&Log[j(0x1c5)](b),process[j(0x1bd)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-
|
|
1
|
+
function a13c(){const s=['261254HrXVyC','getMakaProjectConfig','search','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','Not\x20deleting\x20secuirty\x20group','constructor','366PjSteU','isMakaProject','Deleted\x20','delete-security-group','includes','sgId','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','name','create','3468964KkmxRV','16173BgCIJS','dsg','error','14izUVsT','maka\x20aws:delete-sg','appName','toString','notice','\x20SG\x20NAME:\x20','ask','3jGAQmp','apply','(((.+)+)+)+$','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','6051437VYqKtN','15961385HytSdz','getSecurityGroups','maka\x20aws:dsg','5288CMohzM','\x20SGID:\x20','7943690ceuAmu','confirm','exit','127550rSPZfG','forEach','ID:\x20'];a13c=function(){return s;};return a13c();}function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a13d(a,b);}const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x202))/0x1*(parseInt(l(0x215))/0x2)+parseInt(l(0x21c))/0x3*(parseInt(l(0x211))/0x4)+-parseInt(l(0x1ff))/0x5*(parseInt(l(0x208))/0x6)+parseInt(l(0x1f6))/0x7+-parseInt(l(0x1fa))/0x8*(-parseInt(l(0x212))/0x9)+-parseInt(l(0x1fc))/0xa+-parseInt(l(0x1f7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xe727d));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x218)]()[n(0x204)](n(0x1f4))[n(0x218)]()[n(0x207)](a13a)[n(0x204)]('(((.+)+)+)+$');});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';Command[a13o(0x210)]({'name':a13o(0x20b),'aliases':[a13o(0x213)],'usage':a13o(0x216),'validOpts':[],'shortDesc':a13o(0x205),'examples':[a13o(0x216),a13o(0x1f9)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x209)]();let d='';if(c){const j=b[p(0x203)]();d=j[p(0x217)];}const {sgList:f}=await a[p(0x1f8)]();f[p(0x200)](function(k){const q=p;c&&k['name'][q(0x20c)](d)?Log[q(0x219)](q(0x201)+k['id']+q(0x21a)+k[q(0x20f)]+q(0x1fb)+k['sgId']):Log['bright']('ID:\x20'+k['id']+q(0x21a)+k[q(0x20f)]+q(0x1fb)+k[q(0x20d)]);});let g='';const h=await Actions[p(0x21b)](p(0x20e));f[p(0x200)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x20d)]);});if(!g)throw Log[p(0x214)](p(0x1f5));const i=await Actions[p(0x1fd)]('Deleting\x20a\x20'+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a['deleteSecurityGroup'](g),Log['success'](p(0x20a)+g)):Log[p(0x214)](p(0x206)),process[p(0x1fe)](0x0);}catch(k){k&&Log[p(0x214)](k),process['exit'](0x1);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x1af))/0x1+-parseInt(f(0x1a8))/0x2*(parseInt(f(0x1b3))/0x3)+parseInt(f(0x1ae))/0x4*(parseInt(f(0x1b0))/0x5)+parseInt(f(0x1b9))/0x6+-parseInt(f(0x1ba))/0x7*(-parseInt(f(0x1b7))/0x8)+parseInt(f(0x1ab))/0x9+-parseInt(f(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x46483));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x1b4)]()[h(0x1a9)](h(0x1b5))['toString']()['constructor'](a14a)[h(0x1a9)](h(0x1b5));});a14a();function a14c(){const k=['search','success','2353302yMDzKx','error','create','104RZJfLc','238987bePuQg','66715GKitOI','apply','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','3iqSrxD','toString','(((.+)+)+)+$','list-ecr','184KznQXB','Completed\x20listing\x20ECR\x20repositories.','1060050rvIloV','159418pzbXhn','2230050XxNapG','exit','regions','lecr','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','maka\x20aws:list-ecr','1118012wdWJrk'];a14c=function(){return k;};return a14c();}import a14e from'./aws.command.js';import{Command}from'../../command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x1a6;let f=c[d];return f;},a14d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0x1ad)]({'name':a14i(0x1b6),'aliases':[a14i(0x1be)],'usage':a14i(0x1a6),'requiredOpts':[],'validOpts':['regions'],'shortDesc':'List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','examples':[a14i(0x1a7),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','maka\x20aws:lecr\x20--regions=all']},async function(a,b){const j=a14i;try{const c=new AWS();await c['listAllEcrRepositories'](b[j(0x1bd)]),Log[j(0x1aa)](j(0x1b8)),process['exit'](0x0);}catch(d){Log[j(0x1ac)](j(0x1b2)+d),process[j(0x1bc)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d
|
|
1
|
+
const a15i=a15d;function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xbe;let f=c[d];return f;},a15d(a,b);}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0xbf))/0x1*(parseInt(f(0xdb))/0x2)+parseInt(f(0xce))/0x3*(parseInt(f(0xda))/0x4)+parseInt(f(0xcf))/0x5*(parseInt(f(0xc0))/0x6)+parseInt(f(0xcd))/0x7*(-parseInt(f(0xd9))/0x8)+-parseInt(f(0xc2))/0x9*(parseInt(f(0xd6))/0xa)+parseInt(f(0xc6))/0xb*(-parseInt(f(0xd7))/0xc)+-parseInt(f(0xd3))/0xd*(-parseInt(f(0xc1))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd99b4));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0xc7)]()[h(0xdd)](h(0xd4))[h(0xc7)]()['constructor'](a15a)[h(0xdd)](h(0xd4));});a15a();import a15e from'./aws.command.js';function a15c(){const k=['rbi','name','error','626054LKiTXN','(((.+)+)+)+$','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','5712640zrltgq','12uxZXWY','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','8iyvDpq','4WXBRup','12JSwQVQ','status','search','\x20Ready?','maka\x20aws:reboot-instance','74650MRZYLo','174iUcEDg','658keIhvg','18uLfJxz','running','Reboot\x20an\x20EC2\x20instance','chooseInstance','18957906EqodDV','toString','create','confirm','apply','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','instanceId','384643VAVAiw','3257412yaursq','2605nNGQcD'];a15c=function(){return k;};return a15c();}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[a15i(0xc8)]({'name':'reboot-instance','aliases':[a15i(0xd0)],'usage':a15i(0xbe),'validOpts':[],'shortDesc':a15i(0xc4),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xc5)]();if(b?.[j(0xdc)]===j(0xc3)){const c=await Actions[j(0xc9)](j(0xcb)+b['name']+j(0xde));c&&b[j(0xcc)]?a['ec2rebootInstance']({'instanceId':b[j(0xcc)]}):Log[j(0xd2)](j(0xd5)+b[j(0xd1)]+'\x20is\x20still\x20running.');}else Log[j(0xd2)](j(0xd8));}catch(d){d&&Log['error'](d),process['exit'](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16H=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d
|
|
1
|
+
const a16H=a16d;function a16c(){const J=['1063020NDoUQO','confirm','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','includes','Zip\x20Code\x20[96816]:\x20','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','exit','PERSON','135ejmcDI','(((.+)+)+)+$','\x20years\x20(','1220799hcogez','+1.5555555556','Country\x20Code\x20[US]:\x20','\x20is\x20available\x20for:','ask','75644BATlso','Auto\x20Renew:\x20','\x20for\x20','Domain\x20name\x20is\x20unavailable','\x20/\x20Year)','ASSOCIATION','register-domain-name','623wntRLw','search','contactType','123\x20Glorious\x20Way','error','Invalid\x202\x20character\x20country\x20code','maka\x20aws:register-domain-name\x20--domain=example.com','635523MmzhRT','7861887TJiPPI','COMPANY','Contact\x20First\x20Name\x20[Contact]:\x20','Contact','list','\x20/\x20Year\x20\x0a','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Duration\x20in\x20years\x20[1]:\x20','Do\x20you\x20wish\x20to\x20register\x20','notice','1264570IYXVln','rdn','Address\x20Line\x202:\x20','PUBLIC_BODY','The\x20domain\x20name:\x20','domain','registerDomain','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','2jEJldG','9OjGHwX','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','warn','Contact\x20Last\x20Name\x20[Person]:\x20','44736yvegcj','Contact\x20Email\x20[mail@example.com]:\x20','options','State\x20[HI]:\x20'];a16c=function(){return J;};return a16c();}(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0x171))/0x1+parseInt(E(0x184))/0x2*(-parseInt(E(0x15e))/0x3)+parseInt(E(0x163))/0x4*(parseInt(E(0x15b))/0x5)+-parseInt(E(0x153))/0x6+-parseInt(E(0x16a))/0x7*(-parseInt(E(0x14f))/0x8)+parseInt(E(0x185))/0x9*(-parseInt(E(0x17c))/0xa)+parseInt(E(0x172))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x5c057));const a16b=(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;};}()),a16a=a16b(this,function(){const F=a16d;return a16a['toString']()[F(0x16b)](F(0x15c))['toString']()['constructor'](a16a)[F(0x16b)](F(0x15c));});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 G=a16d;return Object['values'](CountryCode)[G(0x156)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x14e;let f=c[d];return f;},a16d(a,b);}Command['create']({'name':a16H(0x169),'aliases':[a16H(0x17d)],'usage':'maka\x20aws:register-domain-name','requiredOpts':[a16H(0x181)],'validOpts':[],'shortDesc':a16H(0x186),'examples':[a16H(0x170),'maka\x20aws:rdn\x20--domain=example.com']},async function(a,b){const I=a16H;try{const c=b[I(0x181)],d=new AWS(),{available:f,cost:g}=await d['checkDomainAvailability'](c);if(f&&g){Log['notice'](I(0x180)+c+I(0x161));const {Price:h,Currency:i}=g;Log[I(0x187)]('\x20\x20'+h+'\x20'+i+I(0x177));const j=await Actions[I(0x154)](I(0x17a)+c+'\x20?',![]);if(j){const k={'type':I(0x176),'name':I(0x16c),'message':'Choose\x20contact\x20type','choices':[I(0x168),I(0x173),I(0x15a),I(0x17f),'RESELLER']},l=await Actions[I(0x162)](I(0x179))||'1',m=await Actions[I(0x162)](I(0x174))||I(0x175),n=await Actions[I(0x162)](I(0x14e))||'Person',{contactType:o}=await Actions[I(0x151)](k),p=await Actions[I(0x162)](I(0x158))||I(0x16d),q=await Actions['ask'](I(0x17e)),r=await Actions['ask'](I(0x157))||'96816',s=await Actions['ask'](I(0x152))||'HI',t=await Actions[I(0x162)](I(0x160))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0x16e)](I(0x16f));const v=await Actions[I(0x162)](I(0x183))||'+1.5555555555',w=await Actions[I(0x162)]('Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20')||I(0x15f),x=await Actions['ask'](I(0x150))||'mail@example.com',y=await Actions['confirm'](I(0x164)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!==I(0x15a)){const C=await Actions['ask'](I(0x155))||'My\x20Comanpy,\x20LLC.';z['OrganizationName']=C;}const A=h||0x0*parseInt(l);Log[I(0x17b)](I(0x178)),Log[I(0x187)](A+'\x20'+i+I(0x165)+l+I(0x15d)+h+'\x20'+i+I(0x167));const B=await Actions[I(0x154)]('Are\x20you\x20sure?');B&&await d[I(0x182)](z,c,parseInt(l),y);}}else throw I(0x166);}catch(D){D&&Log[I(0x16e)](D),process[I(0x159)](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a17j=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a17j=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x119))/0x1+parseInt(h(0x120))/0x2*(parseInt(h(0x121))/0x3)+parseInt(h(0x11d))/0x4+parseInt(h(0x132))/0x5*(-parseInt(h(0x12f))/0x6)+parseInt(h(0x12e))/0x7+parseInt(h(0x125))/0x8+-parseInt(h(0x127))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xd6fe5));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const i=a17d;return a17a['toString']()[i(0x123)]('(((.+)+)+)+$')[i(0x126)]()[i(0x117)](a17a)[i(0x123)](i(0x130));});function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x113;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';function a17c(){const m=['Deleted\x20','3287292qKZWeu','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Not\x20deleting\x20keypair','734958JxwFdX','9bBziWx','ask','search','create','10044656PkoWzB','toString','24075162oNyJPR','success','maka\x20aws:remove-key-pair','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','Deleting\x20a\x20','error','maka\x20aws:rkp','11108398VSQJfA','3444elCVvu','(((.+)+)+)+$','deleteKeyPair','15080xUPOkD','Please\x20choose\x20a\x20key\x20to\x20delete:','exit','name','forEach','constructor','\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','520059tsAbtP','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','remove-key-pair'];a17c=function(){return m;};return a17c();}import{Log}from'../../tools/log/log.class.js';Command[a17j(0x124)]({'name':a17j(0x11b),'aliases':['rkp'],'usage':a17j(0x129),'validOpts':[],'shortDesc':a17j(0x12a),'description':a17j(0x118),'examples':[a17j(0x129),a17j(0x12d)]},async function(){const k=a17j;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[k(0x122)](k(0x113));b?.[k(0x116)](function(g){const l=k;g['id']===parseInt(d)&&(c=g[l(0x115)]);});if(!c)throw Log[k(0x12c)](k(0x11e));const f=await Actions['confirm'](k(0x12b)+c+k(0x11a),![]);f?(await a[k(0x131)](c),Log[k(0x128)](k(0x11c)+c)):Log[k(0x12c)](k(0x11f)),process[k(0x114)](0x0);}catch(g){g&&Log['error'](g),process[k(0x114)](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 a18c(){const r=['\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','readFileSync','9888MqztCt','4bMrtUS','toString','writeFileSync','success','maka\x20aws\x20set-host','20ecpAFn','parse','search','ssh.json','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','getMakaProjectConfig','9427cjhlUQ','env','fsi','16217976afUQih','sep','stringify','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','create','chooseInstance','\x20IP\x20to\x20','privateIp','(((.+)+)+)+$','apply','1356NfMiuH','appName','join','cat\x20','7707HeJRnW','maka\x20aws:set-host\x20--env\x20dev','host','ask','456732PAjAbk','set-host','7590YTjett','153DMfkSF','error','public','sth','constructor','utf8','isFile','209880ubPjng','getEnvFromShorthand','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','config/ssh.json','117265cRLGao','exit','\x0aSaved\x20host\x20','private','getAppConfigPath'];a18c=function(){return r;};return a18c();}(function(a,b){const m=a18d,c=a();while(!![]){try{const d=parseInt(m(0x8b))/0x1*(-parseInt(m(0x93))/0x2)+-parseInt(m(0x7d))/0x3+-parseInt(m(0x87))/0x4*(parseInt(m(0x98))/0x5)+-parseInt(m(0xab))/0x6*(-parseInt(m(0x79))/0x7)+parseInt(m(0x92))/0x8*(-parseInt(m(0x80))/0x9)+-parseInt(m(0x7f))/0xa*(parseInt(m(0x9e))/0xb)+parseInt(m(0xa1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x511a3));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0x94)]()[o(0x9a)](o(0xa9))[o(0x94)]()[o(0x84)](a18a)[o(0x9a)](o(0xa9));});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';import{Log}from'../../tools/log/log.class.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x77;let f=c[d];return f;},a18d(a,b);}Command[a18p(0xa5)]({'name':a18p(0x7e),'aliases':[a18p(0x83)],'usage':a18p(0x97),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a18p(0x89),'description':a18p(0x90),'examples':[a18p(0x7a),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const q=a18p;try{const c=new AWS(),d=this['fsi'][q(0x88)](b[q(0x9f)]),f=this['fsi'][q(0x8f)](d),g=this[q(0xa0)][q(0x9d)](),h=await c[q(0xa6)](),i=a18e[q(0x77)](f,q(0x9b));!this[q(0xa0)][q(0x86)](i)&&await this[q(0xa0)]['template']({'srcPath':q(0x8a),'destPath':i,'context':{'app':g[q(0xac)]},'config':g});const j=JSON[q(0x99)](a18f[q(0x91)](i,q(0x85))),k=await Actions[q(0x7c)](q(0x9c))||'public';if(k){if(k===q(0x82)||k===q(0x8e)){if(k===q(0x82))j[q(0x7b)]=h?.['publicIp'];else k===q(0x8e)&&(j[q(0x7b)]=h?.[q(0xa8)]);}else throw q(0xa4);}else j[q(0x7b)]=h?.[q(0xa8)];a18f[q(0x95)](a18e[q(0x77)](f,q(0x9b)),JSON[q(0xa3)](j,null,0x2)),execSync(q(0x78)+a18e['join'](f,q(0x9b)),{'stdio':'inherit'}),Log[q(0x96)](q(0x8d)+k+q(0xa7)+f+a18e[q(0xa2)]+q(0x9b));}catch(l){l&&Log[q(0x81)](l),process[q(0x8c)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19h=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x1d5))/0x1+parseInt(f(0x1c8))/0x2*(-parseInt(f(0x1d2))/0x3)+-parseInt(f(0x1d6))/0x4*(parseInt(f(0x1c0))/0x5)+-parseInt(f(0x1cb))/0x6+parseInt(f(0x1bf))/0x7+parseInt(f(0x1c9))/0x8*(-parseInt(f(0x1d9))/0x9)+parseInt(f(0x1cf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x20df1));const a19b=(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;};}()),a19a=a19b(this,function(){const g=a19d;return a19a[g(0x1d8)]()[g(0x1d4)](g(0x1d7))[g(0x1d8)]()[g(0x1be)](a19a)[g(0x1d4)]('(((.+)+)+)+$');});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a19c(){const j=['1867173vdWpup','650otVwMF','chooseInstance','name','ec2terminateInstance','error','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','instanceId','\x20Ready?','537862AqUXMC','9728lVlVwR','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','476286wCjogv','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','maka\x20aws:ti','4465520SiKZic','Terminate\x20an\x20EC2\x20instance','exit','3Xnjdwm','maka\x20aws:terminate-instance','search','172968LrCfAI','7508YRIPXy','(((.+)+)+)+$','toString','1179GzhOJC','terminate-instance','\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','constructor'];a19c=function(){return j;};return a19c();}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-0x1bc;let f=c[d];return f;},a19d(a,b);}Command['create']({'name':a19h(0x1bc),'aliases':['ti'],'usage':a19h(0x1d3),'validOpts':[],'shortDesc':a19h(0x1d0),'description':a19h(0x1bd),'examples':[a19h(0x1d3),a19h(0x1ce)]},async function(){const i=a19h;try{const a=new AWS(),b=await a[i(0x1c1)]();if(b?.[i(0x1c6)]&&b?.['status']==='running'){const c=await Actions['confirm'](i(0x1cd)+b[i(0x1c2)]+i(0x1c7));c?a[i(0x1c3)]({'instanceId':b[i(0x1c6)]}):Log[i(0x1c4)](i(0x1cc)+b[i(0x1c2)]+i(0x1c5));}else Log[i(0x1c4)](i(0x1ca));}catch(d){d&&Log[i(0x1c4)](d),process[i(0x1d1)](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x133))/0x1+parseInt(f(0x130))/0x2*(parseInt(f(0x132))/0x3)+-parseInt(f(0x13b))/0x4+parseInt(f(0x136))/0x5+-parseInt(f(0x135))/0x6+parseInt(f(0x12f))/0x7+-parseInt(f(0x134))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x6a829));function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x12f;var f=c[d];return f;},a20d(a,b);}var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x138)]()[h(0x13a)](h(0x131))[h(0x138)]()[h(0x137)](a20a)['search'](h(0x131));});function a20c(){var i=['3849235yBYhmu','constructor','toString','apply','search','2720412KOIoEz','4753238QoXGIW','2560fCtODn','(((.+)+)+)+$','1875qLtlEY','46619USZdJD','5038216eDCrhf','2736702cuBGqv'];a20c=function(){return i;};return a20c();}a20a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21q=a21d;
|
|
1
|
+
const a21q=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=-parseInt(n(0x99))/0x1+parseInt(n(0x9e))/0x2+-parseInt(n(0xb1))/0x3+-parseInt(n(0x9b))/0x4*(parseInt(n(0xb9))/0x5)+parseInt(n(0x98))/0x6*(parseInt(n(0xa3))/0x7)+-parseInt(n(0xa6))/0x8+parseInt(n(0xab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xbd189));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a21d;if(c){const e=c[o(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const p=a21d;return a21a[p(0x9f)]()['search'](p(0xb0))['toString']()[p(0xa7)](a21a)['search'](p(0xb0));});a21a();import a21e from'path';import a21f from'fs';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x96;let f=c[d];return f;},a21d(a,b);}import a21g from'semver';function a21c(){const t=['maka\x20build','update','10765792cQDNei','constructor','\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','build',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','25739388UtBmNY','fsi','apply','argv','--force','(((.+)+)+)+$','1545855nEzltM','confirm','error','force','checkMeteorPackage',').\x20Update?','pathFromProject','existsSync','1306420RiGwtD','getGlobalMeteorVersion','exit','246mFodNY','155204NhPoBj','app.tar.gz','20FUavJj','forEach','splice','478186IGkRbp','toString','getProjectMeteorVersion','This\x20project\x27s\x20meteor\x20version\x20(','slice','170415sAMYgA'];a21c=function(){return t;};return a21c();}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a21q(0xa9),'usage':a21q(0xa4),'validOpts':[a21q(0xb4)],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a21q(0xa8),'examples':[a21q(0xa4)]},async function(a,b){const r=a21q;try{await this[r(0xac)][r(0xb5)]('autoupdate',{'shouldInstall':!![]});const c=b[r(0xb4)];if(!c){const g=this[r(0xac)][r(0x96)](),h=this['fsi'][r(0xa0)](),i=a21g['gt'](g,h);if(i){const j=await Actions[r(0xb2)](r(0xa1)+h+r(0xaa)+g+r(0xb6));j&&this[r(0xac)]['invokeMeteorCommand'](r(0xa5),['--release',g]);}}const d=[this['fsi'][r(0xb7)]({'pathParts':['build']})]['concat'](process[r(0xae)][r(0xa2)](0x3)),f=a21e['join'](this[r(0xac)]['pathFromProject']({}),r(0xa9),r(0x9a));if(a21f[r(0xb8)](f)){const k=c??await Actions['confirm']('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!k)throw Log[r(0xb3)]('Aborted.');}d[r(0x9c)]((l,m)=>{const s=r;l===s(0xaf)&&d[s(0x9d)](m,0x2);}),this[r(0xac)]['invokeMeteorCommand'](r(0xa9),d);}catch(l){console['error'](l),process[r(0x97)](0x0);}});export default BuildCommand;
|