@maka/maka-cli 4.12.22 → 4.12.24
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 +3 -2
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +3 -2
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.24",
|
|
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.",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"es-build": "esbuild ./bundle/typescript/src/maka.js --bundle --platform=node --outfile=bundle/maka.cjs",
|
|
31
31
|
"package": "pkg ./bundle/maka.cjs -d --bundle --out-path=\"bundle/compiled\" --compress GZip",
|
|
32
32
|
"distribute": "mkdir -p compiled/macos compiled/linux compiled/win && mv bundle/compiled/maka-linux compiled/linux/maka && mv bundle/compiled/maka-macos compiled/macos/maka && mv bundle/compiled/maka-win.exe compiled/win/maka.exe",
|
|
33
|
-
"prepare": "husky install"
|
|
33
|
+
"prepare": "husky install",
|
|
34
|
+
"postinstall": "maka v"
|
|
34
35
|
},
|
|
35
36
|
"author": "Matthew Campbell <mjmcee@gmail.com>",
|
|
36
37
|
"license": "MIT",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=parseInt(n(0x1e7))/0x1*(parseInt(n(0x1de))/0x2)+-parseInt(n(0x1f6))/0x3+-parseInt(n(0x1db))/0x4*(-parseInt(n(0x1f0))/0x5)+-parseInt(n(0x1dd))/0x6*(-parseInt(n(0x1f3))/0x7)+-parseInt(n(0x1e6))/0x8*(parseInt(n(0x1e1))/0x9)+parseInt(n(0x1fe))/0xa*(parseInt(n(0x20e))/0xb)+-parseInt(n(0x204))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb4b3a));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a['toString']()['search'](p(0x1c1))[p(0x1c9)]()[p(0x216)](a0a)[p(0x20a)](p(0x1c1));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a0d(a,b);}function a0c(){const A=['Alias','16sEujqa','208063uQZyuT','apply','Command\x20requires\x20a\x20name','light','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','Too\x20many\x20options','mustBeInMakaProject','Please\x20run\x20\x22maka\x20login\x22','generate','1400075TQrmWL','split','find','230657sboavp','function','DARK','1310265WQkNAK','push','validateParams','Too\x20many\x20arguments','options','shortDesc','aliases','header','13277270RPxpUu','Command\x20not\x20found','Too\x20few\x20arguments','name','Too\x20few\x20options','bind','32353368UGnngp','exit','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_handler','_commands','join','search','help','error','invoke','11KeAIhV','create','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Sub-Commands:','play','Command.create\x20requires\x20some\x20options!','tableList','constructor','forEach','mustBeLoggedIn','(((.+)+)+)+$','call','maxArgLength','maxOptsLength','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','mustHaveMeteorInstalled','setColorMode','minOptsLength','toString','bright','unshift','length','fsi','minArgLength','addCommand','LIGHT','notice','slice','murder','assign','number','validateMakaProject','match','validateMakaSubscription','addCommand\x20requires\x20a\x20Command\x20instance','Command\x20requires\x20a\x20handler\x20function','12vllmAn','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','228IuEGDV','10QatLPU','maybeProxyCommandToMeteor','run','2642409GlocoD','localeCompare','keys','Description'];a0c=function(){return A;};return a0c();}import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{[a0q(0x1fa)];['_commands'];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0x211));if(!a['name'])throw new Error(r(0x1e9));if(typeof b!==r(0x1f4))throw new Error(r(0x1da));this[r(0x1fa)]=Object[r(0x1d4)]({},a),this[r(0x201)]=this[r(0x1fa)][r(0x201)],this[r(0x208)]=[],this['_handler']=b[r(0x203)](this);}static[a0q(0x20f)](a,b,c){const s=a0q;if(!a)throw new Error(s(0x214));if(typeof b!==s(0x1f4))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[s(0x1fa)]?.[s(0x201)]}),c[s(0x1cf)](d),d;}[a0q(0x1cf)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x1d9));this[t(0x208)][t(0x1f7)](a);}async[a0q(0x1e0)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this[u(0x1cd)]['getGlobalConfig'](),d=c['pallet']===u(0x1ea)?ColorMode[u(0x1d0)]:ColorMode[u(0x1f5)];Log[u(0x1c7)](d),await this[u(0x1d8)](this);}catch(f){Log[u(0x20c)](f),process[u(0x205)](0x0);}return await this[u(0x20d)](a,b);}catch(g){process[u(0x205)](0x1);}}async[a0q(0x20d)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[v(0x1fa)];try{if(this[v(0x1fa)][v(0x201)]!==v(0x1ef)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[v(0x1cc)]===0x0)&&this[v(0x208)][v(0x1cc)]>=0x0,g=b[v(0x20b)]||b['h'];if(f&&g){if(this[v(0x208)][v(0x1cc)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[v(0x1fa)][v(0x1ed)]){const h=this[v(0x1d6)]();if(!h)throw new MustBeInProjectError();}if(this[v(0x1fa)][v(0x1c0)]){const i=await this['validateUserIsLoggedIn']();if(!i)throw new MustBeLoggedIn();}if(this[v(0x1fa)][v(0x1c6)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[v(0x1fa)][v(0x1ce)]===v(0x1d5)){if(a[v(0x1cc)]<this[v(0x1fa)]['minArgLength']){Log['error'](v(0x200));throw new UsageError();}}if(typeof this['options']['maxArgLength']===v(0x1d5)){if(a[v(0x1cc)]>=this[v(0x1fa)][v(0x1c3)]){Log['error'](v(0x1f9));throw new UsageError();}}if(typeof this[v(0x1fa)][v(0x1c8)]===v(0x1d5)){if(Object[v(0x1e3)](b)['length']<this[v(0x1fa)]['minOptsLength']){Log[v(0x20c)](v(0x202));throw new UsageError();}}if(typeof this[v(0x1fa)][v(0x1c4)]===v(0x1d5)){if(Object['keys'](b)[v(0x1cc)]>=this['options'][v(0x1c4)]){Log[v(0x20c)](v(0x1ec));throw new UsageError();}}}}b=await this[v(0x1f8)](a,b,this['options']),_prevCmd=a[0x0];}return await this[v(0x207)][v(0x1c2)](this,a,b);}catch(k){Log['usage'](description,examples,usage,c,requiredOpts,d);if(k instanceof UsageErrorWithSubs)Log[v(0x1d1)](v(0x212)),this[v(0x215)](this[v(0x208)]),Log[v(0x1fd)](v(0x210));else{if(k instanceof MustBeInProjectError)Log[v(0x20c)](v(0x1eb));else{if(k instanceof NoMeteorFoundError)Log[v(0x20c)](v(0x1dc)),Log[v(0x1d1)](v(0x206));else{if(k instanceof NoMeteorAppFoundError)Log[v(0x20c)]('There\x20is\x20no\x20Meteor\x20application\x20here');else k instanceof MustBeLoggedIn&&(Log[v(0x20c)](v(0x1c5)),Log[v(0x1d1)](v(0x1ee)));}}}process['exit'](0x1);}}['tableList'](a){const w=a0q,b=new a0e({});b[w(0x1f7)](['Name',w(0x1e5),w(0x1e4)]),a['sort']((c,d)=>{const x=w;return c[x(0x201)][x(0x1e2)](d[x(0x201)]);})[w(0x217)](c=>{const y=w;c[y(0x201)]!==y(0x1d3)&&c[y(0x201)]!==y(0x213)&&b[y(0x1f7)]([c['name'],c[y(0x1fc)](),c[y(0x1fb)]()]);}),Log[w(0x1ca)](b[w(0x1c9)]());}async['processAndRunCommand'](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x1f1)](':');if(!d||d['length']===0x0)throw'Command\x20format\x20is\x20incorrect';if(d[0x0]===z(0x1ef)||d[0x0]==='g'&&d[z(0x1cc)]>0x1){const h=this[z(0x208)][z(0x1f2)](j=>j[z(0x1d7)](z(0x1ef)));if(!h)throw'Command\x20not\x20found';await this[z(0x1d8)](h);const i=d[z(0x1d2)](0x1)[z(0x209)](':');return b[z(0x1cb)](i),await h[z(0x1e0)](b,c);}let f=this['_commands'],g;for(const j of d){g=f[z(0x1f2)](k=>k[z(0x1d7)](j));if(!g)try{await this[z(0x1cd)][z(0x1df)]();}catch(k){throw'Command\x20'+j+'\x20not\x20found';}g&&(await this[z(0x1d8)](g),f=g['_commands']);}if(g){const l=await g['run'](b,c);return l;}else throw z(0x1ff);}catch(m){Log[z(0x20c)](m),process[z(0x205)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1db))/0x1*(-parseInt(f(0x1d0))/0x2)+parseInt(f(0x1d4))/0x3*(-parseInt(f(0x1d5))/0x4)+parseInt(f(0x1dd))/0x5*(parseInt(f(0x1d9))/0x6)+parseInt(f(0x1d1))/0x7*(parseInt(f(0x1d8))/0x8)+-parseInt(f(0x1d6))/0x9+parseInt(f(0x1d3))/0xa*(parseInt(f(0x1d2))/0xb)+-parseInt(f(0x1de))/0xc*(-parseInt(f(0x1da))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x7ff60));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(0x1d7)]()[g(0x1cf)]('(((.+)+)+)+$')[g(0x1d7)]()[g(0x1dc)](a1a)['search']('(((.+)+)+)+$');});a1a();function a1c(){var h=['toString','1040272bHcpmh','471702AmKTGF','1799213eCADit','25YWCrrF','constructor','15lfLkSN','36DAphYz','search','63398sOGVQJ','56SWVPOg','121mGfSPU','776430SpZPIn','24hHvSZx','223596ToQyVc','7034436paUCds'];a1c=function(){return h;};return a1c();}function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1cf;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';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';import'./undo.js';import'./register.js';import'./patreon.js';import'./profile.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2m=a2d;function a2c(){const o=['
|
|
1
|
+
const a2m=a2d;function a2c(){const o=['GPT:\x20','cert','(((.+)+)+)+$','200xvMdzE','305055fdhYfN','search','cacert','1221rFRxyB','exit','openai','2IrrEBp','text','187216BkVlaO','12861FecXqP','question','data','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','stdin','error','bright','33GPEoQl','ChatGPT\x20style\x20AI\x20interface','113435kIWlzS','18fTiqna','apply','askGPT','createInterface','log','Using\x20OpenAI\x20Key\x20','parse','toString','openapikey','fsi','1613424gLBJLm','trim','You:\x20','notice','7276eMxYOq','4424420ftBNlX','isFile'];a2c=function(){return o;};return a2c();}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x182))/0x1*(parseInt(h(0x184))/0x2)+parseInt(h(0x17f))/0x3*(parseInt(h(0x19d))/0x4)+-parseInt(h(0x17c))/0x5+-parseInt(h(0x18f))/0x6*(parseInt(h(0x18e))/0x7)+parseInt(h(0x17b))/0x8*(parseInt(h(0x185))/0x9)+-parseInt(h(0x176))/0xa+-parseInt(h(0x18c))/0xb*(-parseInt(h(0x199))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x6b742));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x196)]()[j(0x17d)](j(0x17a))[j(0x196)]()['constructor'](a2a)[j(0x17d)](j(0x17a));});function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x176;let f=c[d];return f;},a2d(a,b);}a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x192)]({'input':process[k(0x189)],'output':process['stdout']});c[k(0x186)](k(0x19b),async d=>{const l=k;if(d['toLowerCase']()===l(0x180)){c['close']();return;}try{const e=await HTTPS[l(0x191)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x195)](e[l(0x187)]);if(f[l(0x18a)])throw new Error(f[l(0x18a)]['message']);Log[l(0x18b)](l(0x178)+f?.['choices'][0x0]?.[l(0x183)][l(0x19a)]());}catch(g){Log[l(0x18a)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command['create']({'name':'ai','description':a2m(0x18d),'validOpts':[a2m(0x17e),a2m(0x197)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface','isPro':!![]},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0x198)][n(0x177)](b[n(0x17e)])?(c=b['cacert'],Log[n(0x19c)]('Using\x20CA\x20Cert\x20'+c)):Log['error']('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this['fsi']['getGlobalConfig']();if(d[n(0x179)]){if(this[n(0x198)]['isFile'](d[n(0x179)]))c=d[n(0x179)];else throw Log['error']('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+c);}let f='';if(b['openapikey'])f=b['openapikey'],Log['notice'](n(0x194)+f);else{if(d[n(0x181)])f=d[n(0x181)];else throw Log[n(0x18a)](n(0x188));}console[n(0x193)]('Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.'),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console['error'](g),process[n(0x180)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3c(){var
|
|
1
|
+
function a3c(){var h=['348RMZyiz','2399280qUlNKS','444160DuTwlQ','102565mItBJn','3983616rrvqpi','1533744CIpPid','4779316IlzYBH','toString','constructor','3483200iceKcQ','search'];a3c=function(){return h;};return a3c();}(function(a,b){var f=a3d,c=a();while(!![]){try{var d=parseInt(f(0x195))/0x1+-parseInt(f(0x18d))/0x2+parseInt(f(0x194))/0x3+parseInt(f(0x18e))/0x4+-parseInt(f(0x18b))/0x5*(parseInt(f(0x193))/0x6)+parseInt(f(0x18c))/0x7+-parseInt(f(0x191))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x96583));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var g=a3d;return a3a[g(0x18f)]()[g(0x192)]('(((.+)+)+)+$')[g(0x18f)]()[g(0x190)](a3a)['search']('(((.+)+)+)+$');});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x18b;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
|
|
1
|
+
function a4c(){const i=['8408946rthkqO','create','constructor','25677NpQaUc','212brvqIl','search','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','7yLaEoa','462405IXTqtL','32600148pLNOtR','maka\x20aws:<sub-command>','toString','2maBaNJ','11ksghzf','6744440CIRBdq','aws','1780nftBHA','4711992WsEnfr','70135KKIgos','(((.+)+)+)+$','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'];a4c=function(){return i;};return a4c();}const a4h=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x126;let f=c[d];return f;},a4d(a,b);}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x12e))/0x1+parseInt(f(0x132))/0x2*(parseInt(f(0x137))/0x3)+-parseInt(f(0x12a))/0x4*(-parseInt(f(0x138))/0x5)+parseInt(f(0x126))/0x6*(parseInt(f(0x12d))/0x7)+parseInt(f(0x134))/0x8+parseInt(f(0x129))/0x9*(-parseInt(f(0x136))/0xa)+-parseInt(f(0x133))/0xb*(parseInt(f(0x12f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd4d2b));const a4b=(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;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0x131)]()[g(0x12b)](g(0x139))['toString']()[g(0x128)](a4a)['search'](g(0x139));});a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0x127)]({'name':a4h(0x135),'usage':a4h(0x130),'validOpts':[],'shortDesc':a4h(0x12c),'description':a4h(0x13a)},async function(){throw UsageError;});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a5j=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x199;let f=c[d];return f;},a5d(a,b);}(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x1b2))/0x1+parseInt(g(0x1ad))/0x2*(parseInt(g(0x1aa))/0x3)+parseInt(g(0x19f))/0x4*(-parseInt(g(0x1b3))/0x5)+parseInt(g(0x1b5))/0x6+parseInt(g(0x19b))/0x7*(-parseInt(g(0x19a))/0x8)+-parseInt(g(0x1a9))/0x9*(parseInt(g(0x1ae))/0xa)+parseInt(g(0x19d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x7f5fd));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1ac)]()[i(0x1a4)](i(0x1b1))[i(0x1ac)]()['constructor'](a5a)[i(0x1a4)](i(0x1b1));});a5a();function a5c(){const l=['3143TbhYff','cecr','246312YXCoSD','create','8oYFbmZ','exit','Repository\x20created\x20successfully.','httpStatusCode','maka\x20aws:create-ecr\x20--name=my-new-repo','search','Create\x20an\x20Elastic\x20Container\x20Repository','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','create-ecr','name','61443CZdPDp','21HYCKAe','Repository\x20URI:\x20','toString','90826FgGiUr','70aDdqPt','ecrCreateRepository','apply','(((.+)+)+)+$','172052exBWAF','531815ATHWlT','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','5383968dlwMFG','repository','region','5048wwMuwW'];a5c=function(){return l;};return a5c();}import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5j(0x19e)]({'name':a5j(0x1a7),'aliases':[a5j(0x19c)],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5j(0x1a8)],'validOpts':[a5j(0x199)],'shortDesc':a5j(0x1a5),'examples':[a5j(0x1a3),'maka\x20aws:cecr\x20--name=my-new-repo',a5j(0x1b4)]},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c[k(0x1af)](b);d&&d['$metadata'][k(0x1a2)]===0xc8&&d[k(0x1b6)]?(Log['success'](k(0x1a1)),Log['notice'](k(0x1ab)+d[k(0x1b6)]['repositoryUri'])):Log['error'](k(0x1a6)),process['exit'](0x0);}catch(f){Log['error'](f),process[k(0x1a0)](0x1);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=-parseInt(i(0x1c6))/0x1*(-parseInt(i(0x1bc))/0x2)+parseInt(i(0x1bb))/0x3*(parseInt(i(0x1c7))/0x4)+parseInt(i(0x1cd))/0x5+parseInt(i(0x1d3))/0x6*(-parseInt(i(0x1d2))/0x7)+-parseInt(i(0x1d4))/0x8+parseInt(i(0x1c8))/0x9+-parseInt(i(0x1c4))/0xa*(parseInt(i(0x1cc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x4c0ea));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1d1)]()[k(0x1bf)](k(0x1d5))[k(0x1d1)]()[k(0x1c5)](a6a)[k(0x1bf)](k(0x1d5));});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';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a6d(a,b);}import{Log}from'../../tools/log/log.class.js';function a6c(){const n=['(((.+)+)+)+$','confirm','583698pJETdx','28JgLfmq','apply','maka\x20aws:create-hosted-zone','search','Set\x20hosted\x20zone\x20to\x20an\x20instance?','publicIp','create-hosted-zone','error','210hLQlUy','constructor','31231WaHPzA','8qBlAQX','2258973sAYYKS','domain','linkEC2ToRoute53','create','44154Anqimv','48130TYGZbj','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:chz\x20--domain=example.com','toString','326543gvVdgK','12MTzSvX','4782936OoCmJG'];a6c=function(){return n;};return a6c();}Command[a6l(0x1cb)]({'name':a6l(0x1c2),'aliases':['chz'],'usage':a6l(0x1be),'requiredOpts':[a6l(0x1c9)],'validOpts':[],'shortDesc':a6l(0x1ce),'examples':[a6l(0x1cf),a6l(0x1d0)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions[m(0x1ba)](m(0x1c0));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0x1c1)])throw Log['error']('Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address');d[m(0x1ca)](g['id'],g[m(0x1c1)],c);}else throw'Instance\x20not\x20found';}}catch(h){h&&Log[m(0x1c3)](h),process['exit'](0x0);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7ag=a7d;(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x12a))/0x1+-parseInt(ae(0x13d))/0x2*(parseInt(ae(0x155))/0x3)+-parseInt(ae(0x12f))/0x4*(-parseInt(ae(0x150))/0x5)+-parseInt(ae(0x16f))/0x6*(parseInt(ae(0x131))/0x7)+parseInt(ae(0x12d))/0x8*(-parseInt(ae(0x12e))/0x9)+-parseInt(ae(0x15f))/0xa+parseInt(ae(0x149))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x6b148));const a7b=(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;};}()),a7a=a7b(this,function(){const af=a7d;return a7a[af(0x11f)]()[af(0x13b)](af(0x14c))['toString']()[af(0x143)](a7a)['search'](af(0x14c));});function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x115;let f=c[d];return f;},a7d(a,b);}a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a7c(){const at=['Create\x20new\x20AWS\x20instance','createKeyPair','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','**\x20Available\x20AMIs\x20**','constructor','EC2\x20Name:\x20[','Creating\x20user\x20data\x20file\x20in\x20','subnet','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','number','25819695fGAVQN','sgId','Instance\x20Count:\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=*','Setting\x20SG\x20ID\x20to:\x20','chooseVPC','443695ZJFski','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','create','error','sort','39RxxNdA','**\x20Available\x20Subnets\x20**','Name','1:1','forEach','Security\x20Group:\x20','create-instance','subnetId','ID:\x20','split','8156150adfZja','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Remove\x20the\x20security\x20group\x20','ask','readFileSync','\x20DESCRIPTION:\x20','amiId','Subnet:\x20','Setting\x20the\x20key-pair\x20to:\x20','isFile','getTime','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Would\x20you\x20like\x20to\x20include\x20user\x20data?','name','maka\x20aws:create-instance','\x20AMIID:\x20','11154BwifCJ','cidr','\x20:\x20','ec2create','maka-cli','ec2createSG','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','environment','deleteKeyPair','getMakaProjectConfig','Setting\x20Subnet\x20ID\x20to\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Setting\x20AMI\x20ID\x20to\x20','user-data','env','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\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','Remove\x20the\x20keypair\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','push','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getAppConfigPath','build\x20on\x20','fsi','getEnvFromShorthand','join','notice','toString','ec2describeKeys','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','createFile','User\x20Data:','**\x20Available\x20key-pairs\x20**','desc','Web\x20App','success','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','exit','494701eoxNLa','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','maka\x20aws:create-instance\x20--env\x20dev','71184BmJwdz','513QouQvD','8VZbocj','confirm','2674bbKtfU','Security\x20Group\x20Name:\x20[','\x20SGID:\x20','parse','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20SUBNETID:\x20','bright','unlinkSync','Key-Pair:\x20','date','search','\x20SG\x20NAME:\x20','84290ZZvAGS','\x20AZONE:\x20'];a7c=function(){return at;};return a7c();}import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ag(0x152)]({'name':a7ag(0x15b),'aliases':['ci'],'usage':a7ag(0x16d),'examples':[a7ag(0x12c),'maka\x20aws:ci\x20--env\x20prod'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a7ag(0x17d)}],'validOpts':[],'shortDesc':a7ag(0x13f),'description':a7ag(0x17f)},async function(a,b){const ah=a7ag;try{const c=this['fsi'][ah(0x178)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ah(0x11b)][ah(0x11c)](b[ah(0x17d)]),i=this['fsi'][ah(0x119)](h),j=g+'-'+h,k=await Actions[ah(0x162)](ah(0x144)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x130)](ah(0x141),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x140)]({'env':h});r=y,s=z,Log[ah(0x127)](ah(0x167)+r);}else try{Log[ah(0x11e)](ah(0x124));const A=r?r:k,B=await d[ah(0x120)]({'suggestion':A}),C=await Actions[ah(0x162)](ah(0x115))||'-1';if(parseInt(C)<0x0){Log['error']('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[ah(0x11e)]('No\x20instance\x20has\x20been\x20created.');return;}B?.[ah(0x159)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x16c)],Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ah(0x153)](D);}l=await d[ah(0x14f)]();const t=await Actions[ah(0x130)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?',!![]);let u;if(t){const E=l===''?await d[ah(0x14f)]():l;u=await Actions[ah(0x162)](ah(0x132)+k+']')||k;const F=await Actions[ah(0x162)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||'22,80,443',G=F[ah(0x15e)](',');await d[ah(0x174)]({'description':ah(0x126),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x11e)]('**\x20Available\x20Security\x20Groups\x20**'),J[ah(0x159)](function(L){const aj=ah;L[aj(0x16c)]===u?Log[aj(0x11e)](aj(0x15d)+L['id']+aj(0x13c)+L[aj(0x16c)]+'\x20SGID:\x20'+L[aj(0x14a)]):Log[aj(0x137)](aj(0x15d)+L['id']+aj(0x13c)+L[aj(0x16c)]+aj(0x133)+L[aj(0x14a)]);});const K=await Actions['ask'](ah(0x175)+H+']\x20')||H[ah(0x11f)]();J[ah(0x159)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x14a)],Log[ak(0x127)](ak(0x14e)+m+'\x0a'));});}else m=I,Log[ah(0x127)](ah(0x14e)+m+'\x0a');if(m==='')throw Log[ah(0x153)](ah(0x121));}catch(L){Log[ah(0x153)](L);}try{const M=0x7e6;Log[ah(0x11e)](ah(0x142));const N=execSync(ah(0x14d)+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')[ah(0x11f)](),O=JSON[ah(0x134)](N),P=[],Q=[];O[ah(0x159)](function(S){const al=ah;if(S['alias']==='amazon'){const T=S['Desc'][al(0x15e)](al(0x11a))[0x1];P[al(0x117)]({'amiId':S['ID'],'desc':S['Desc'],'date':T});}}),P[ah(0x154)](function(S,T){const am=ah;return new Date(T[am(0x13a)])[am(0x169)]()-new Date(S[am(0x13a)])[am(0x169)]();}),P[ah(0x159)](function(S,T){const an=ah;Q[an(0x117)]({'id':T,'amiId':S[an(0x165)],'desc':S[an(0x125)]});}),Q['forEach'](function(S){const ao=ah;console['log']('ID:\x20'+S['id']+ao(0x16e)+S[ao(0x165)]+ao(0x164)+S[ao(0x125)]);});const R=await Actions[ah(0x162)](ah(0x118))||'0';Q[ah(0x159)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x165)],Log[ap(0x127)](ap(0x17b)+n+ap(0x171)+S[ap(0x125)]));});if(n==='')throw Log['error'](ah(0x121));}catch(S){Log[ah(0x153)](S);}try{Log[ah(0x11e)](ah(0x156));const T=execSync(ah(0x12b))[ah(0x11f)](),U=JSON[ah(0x134)](T),V=[];U[ah(0x159)](function(X,Y){const aq=ah;V[aq(0x117)]({'id':Y,'cidr':X['cider'],'az':X['az'],'subnetId':X[aq(0x15c)]});}),V[ah(0x159)](function(X){const ar=ah;console['log'](ar(0x15d)+X['id']+'\x20CIDR:\x20'+X[ar(0x170)]+ar(0x13e)+X['az']+ar(0x136)+X[ar(0x15c)]);});const W=await Actions[ah(0x162)](ah(0x151))||'0';V[ah(0x159)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x15c)],Log['success'](as(0x179)+p));});if(p==='')throw Log[ah(0x153)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x17e))||ah(0x158),Z=Y[ah(0x15e)](':')[0x0],a0=Y[ah(0x15e)](':')[0x1];typeof parseInt(Z)===ah(0x148)&&typeof parseInt(a0)===ah(0x148)&&Log[ah(0x127)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+Z+':'+a0);}catch(a1){Log[ah(0x153)](a1);}try{const a2=await Actions[ah(0x162)](ah(0x160))||'t3.micro';typeof a2==='string'&&(o=a2);}catch(a3){Log[ah(0x153)](a3);}let x='';try{const a4=await Actions[ah(0x130)](ah(0x16b),![]);a4&&(x=a7f[ah(0x11d)](i,ah(0x17c)),Log[ah(0x11e)](ah(0x145)+x),await this[ah(0x11b)][ah(0x122)]({'filePath':x,'data':''}),await Actions['confirm'](ah(0x128)));}catch(a5){Log[ah(0x153)](a5);}try{const a6=JSON[ah(0x134)](execSync(ah(0x116)+p+ah(0x17a))[ah(0x11f)]())[0x0][ah(0x146)];Log[ah(0x11e)]('ImageID:'+n),Log[ah(0x11e)](ah(0x14b)+v+':'+w),Log[ah(0x11e)]('Instace\x20Type:\x20'+o),Log[ah(0x11e)](ah(0x139)+r),Log[ah(0x11e)](ah(0x15a)+m),Log[ah(0x11e)](ah(0x166)+a6);if(x){Log[ah(0x11e)](ah(0x123)+x);const a8=a7g[ah(0x163)](x)['toString']();Log['notice'](a8);}const a7=await Actions[ah(0x130)](ah(0x147));if(a7){const a9=await d[ah(0x172)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ah(0x173)},{'Key':ah(0x176),'Value':h},{'Key':ah(0x157),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x127)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ah(0x137)](ah(0x135)));}else{Log['notice'](ah(0x16a));const aa=await Actions[ah(0x130)](ah(0x180)+r+'\x20?',!![]);aa&&(d[ah(0x177)](r),f[ah(0x168)](s)&&a7g[ah(0x138)](s));const ab=await Actions[ah(0x130)](ah(0x161)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log['error'](ac);}}catch(ad){ad&&Log[ah(0x153)](ad),process[ah(0x129)](0x0);}},a7e);
|
|
1
|
+
const a7ag=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x15b;let f=c[d];return f;},a7d(a,b);}function a7c(){const at=['aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','21945GeBlUC','log','7631270OeSnjN','28txhlUy','\x20SUBNETID:\x20','exit','unlinkSync','Web\x20App','createFile','string','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Instance\x20Count:\x20','desc','subnet','maka\x20aws:create-instance','ec2createSG','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Instace\x20Type:\x20','6EKZLGb','error','push','subnetId','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','sort','\x20AZONE:\x20','parse','user-data','readFileSync','ec2describeKeys','bright','EC2\x20Name:\x20[','forEach','ID:\x20','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','560965qcAKVc','User\x20Data:','name','build\x20on\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','confirm','maka\x20aws:create-instance\x20--env\x20dev','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','created-by','8322475NySnMk','getTime','deleteKeyPair','\x20SG\x20NAME:\x20','isFile','Remove\x20the\x20security\x20group\x20','Subnet:\x20','159xCnUfQ','\x20SGID:\x20','**\x20Available\x20AMIs\x20**','chooseVPC','Remove\x20the\x20keypair\x20','Security\x20Group:\x20','Creating\x20user\x20data\x20file\x20in\x20','getEnvFromShorthand','cidr','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','create-instance','number','\x20AMIID:\x20','amiId','split','134847oRKegs','create','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','environment','(((.+)+)+)+$','**\x20Available\x20Subnets\x20**','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','success','242aAchfB','\x20DESCRIPTION:\x20','Setting\x20the\x20key-pair\x20to:\x20','ask','Name','date','ImageID:','22,80,443','amazon','No\x20instance\x20has\x20been\x20created.','424gBzHql','toString','\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','Setting\x20SG\x20ID\x20to:\x20','createKeyPair','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','367980puaAJa','cider','Security\x20Group\x20Name:\x20[','Desc','fsi','maka\x20aws:ci\x20--env\x20prod','\x20CIDR:\x20','join','**\x20Available\x20Security\x20Groups\x20**','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Setting\x20AMI\x20ID\x20to\x20','1:1','notice','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','8238DbuZpL','sgId','search'];a7c=function(){return at;};return a7c();}(function(a,b){const ae=a7d,c=a();while(!![]){try{const d=parseInt(ae(0x1bd))/0x1*(-parseInt(ae(0x186))/0x2)+-parseInt(ae(0x18a))/0x3+parseInt(ae(0x18d))/0x4*(-parseInt(ae(0x1ad))/0x5)+parseInt(ae(0x19d))/0x6*(parseInt(ae(0x1b6))/0x7)+-parseInt(ae(0x171))/0x8*(-parseInt(ae(0x15f))/0x9)+parseInt(ae(0x18c))/0xa+parseInt(ae(0x167))/0xb*(-parseInt(ae(0x177))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9853e));const a7b=(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;};}()),a7a=a7b(this,function(){const af=a7d;return a7a[af(0x172)]()[af(0x188)](af(0x163))['toString']()['constructor'](a7a)['search']('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import{execSync}from'child_process';import a7f from'path';import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7ag(0x160)]({'name':a7ag(0x1c7),'aliases':['ci'],'usage':a7ag(0x198),'examples':[a7ag(0x1b3),a7ag(0x17c)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':'Create\x20new\x20AWS\x20instance','description':a7ag(0x173)},async function(a,b){const ah=a7ag;try{const c=this[ah(0x17b)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi'][ah(0x1c4)](b['env']),i=this[ah(0x17b)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[ah(0x16a)](ah(0x1a9)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x1b2)](ah(0x1a1),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x175)]({'env':h});r=y,s=z,Log[ah(0x166)](ah(0x169)+r);}else try{Log['notice']('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[ah(0x1a7)]({'suggestion':A}),C=await Actions[ah(0x16a)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(C)<0x0){Log['error']('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[ah(0x183)](ah(0x170));return;}B?.[ah(0x1aa)](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x1af)],Log[ai(0x166)](ai(0x169)+r));});}catch(D){Log[ah(0x19e)](D);}l=await d['chooseVPC']();const t=await Actions[ah(0x1b2)](ah(0x19a),!![]);let u;if(t){const E=l===''?await d[ah(0x1c0)]():l;u=await Actions[ah(0x16a)](ah(0x179)+k+']')||k;const F=await Actions[ah(0x16a)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||ah(0x16e),G=F[ah(0x15e)](',');await d[ah(0x199)]({'description':ah(0x191),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x183)](ah(0x17f)),J[ah(0x1aa)](function(L){const aj=ah;L['name']===u?Log[aj(0x183)]('ID:\x20'+L['id']+aj(0x1b9)+L['name']+'\x20SGID:\x20'+L[aj(0x187)]):Log[aj(0x1a8)](aj(0x1ab)+L['id']+aj(0x1b9)+L['name']+aj(0x1be)+L[aj(0x187)]);});const K=await Actions['ask'](ah(0x1c6)+H+']\x20')||H['toString']();J[ah(0x1aa)](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x187)],Log[ak(0x166)](ak(0x174)+m+'\x0a'));});}else m=I,Log['success']('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log[ah(0x19e)](ah(0x161));}catch(L){Log[ah(0x19e)](L);}try{const M=0x7e6;Log[ah(0x183)](ah(0x1bf));const N=execSync('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=*'+M+ah(0x1ac))[ah(0x172)](),O=JSON[ah(0x1a4)](N),P=[],Q=[];O[ah(0x1aa)](function(S){const al=ah;if(S['alias']===al(0x16f)){const T=S[al(0x17a)]['split'](al(0x1b0))[0x1];P['push']({'amiId':S['ID'],'desc':S[al(0x17a)],'date':T});}}),P[ah(0x1a2)](function(S,T){const am=ah;return new Date(T[am(0x16c)])[am(0x1b7)]()-new Date(S[am(0x16c)])[am(0x1b7)]();}),P['forEach'](function(S,T){const an=ah;Q[an(0x19f)]({'id':T,'amiId':S[an(0x15d)],'desc':S[an(0x196)]});}),Q['forEach'](function(S){const ao=ah;console[ao(0x18b)]('ID:\x20'+S['id']+ao(0x15c)+S[ao(0x15d)]+ao(0x168)+S[ao(0x196)]);});const R=await Actions[ah(0x16a)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';Q['forEach'](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S[ap(0x15d)],Log[ap(0x166)](ap(0x181)+n+'\x20:\x20'+S[ap(0x196)]));});if(n==='')throw Log[ah(0x19e)](ah(0x161));}catch(S){Log['error'](S);}try{Log[ah(0x183)](ah(0x164));const T=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')['toString'](),U=JSON[ah(0x1a4)](T),V=[];U[ah(0x1aa)](function(X,Y){const aq=ah;V['push']({'id':Y,'cidr':X[aq(0x178)],'az':X['az'],'subnetId':X[aq(0x1a0)]});}),V[ah(0x1aa)](function(X){const ar=ah;console['log'](ar(0x1ab)+X['id']+ar(0x17d)+X[ar(0x1c5)]+ar(0x1a3)+X['az']+ar(0x18e)+X[ar(0x1a0)]);});const W=await Actions['ask'](ah(0x19b))||'0';V[ah(0x1aa)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x1a0)],Log[as(0x166)]('Setting\x20Subnet\x20ID\x20to\x20'+p));});if(p==='')throw Log[ah(0x19e)](ah(0x161));}catch(X){Log[ah(0x19e)](X);}const v=0x1,w=0x1;try{const Y=await Actions[ah(0x16a)](ah(0x1b4))||ah(0x182),Z=Y['split'](':')[0x0],a0=Y[ah(0x15e)](':')[0x1];typeof parseInt(Z)===ah(0x15b)&&typeof parseInt(a0)==='number'&&Log[ah(0x166)](ah(0x184)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ah(0x16a)](ah(0x165))||'t3.micro';typeof a2===ah(0x193)&&(o=a2);}catch(a3){Log[ah(0x19e)](a3);}let x='';try{const a4=await Actions[ah(0x1b2)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a7f[ah(0x17e)](i,ah(0x1a5)),Log[ah(0x183)](ah(0x1c3)+x),await this[ah(0x17b)][ah(0x192)]({'filePath':x,'data':''}),await Actions[ah(0x1b2)](ah(0x185)));}catch(a5){Log[ah(0x19e)](a5);}try{const a6=JSON['parse'](execSync(ah(0x189)+p+ah(0x176))[ah(0x172)]())[0x0][ah(0x197)];Log['notice'](ah(0x16d)+n),Log[ah(0x183)](ah(0x195)+v+':'+w),Log[ah(0x183)](ah(0x19c)+o),Log[ah(0x183)]('Key-Pair:\x20'+r),Log[ah(0x183)](ah(0x1c2)+m),Log['notice'](ah(0x1bc)+a6);if(x){Log[ah(0x183)](ah(0x1ae)+x);const a8=a7g[ah(0x1a6)](x)[ah(0x172)]();Log[ah(0x183)](a8);}const a7=await Actions[ah(0x1b2)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ah(0x1b5),'Value':'maka-cli'},{'Key':ah(0x162),'Value':h},{'Key':ah(0x16b),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x166)](ah(0x180)),Log['bright'](ah(0x194)));}else{Log[ah(0x183)](ah(0x1b1));const aa=await Actions['confirm'](ah(0x1c1)+r+'\x20?',!![]);aa&&(d[ah(0x1b8)](r),f[ah(0x1ba)](s)&&a7g[ah(0x190)](s));const ab=await Actions[ah(0x1b2)](ah(0x1bb)+m+'\x20?',!![]);ab&&d['deleteSecurityGroup'](m);}}catch(ac){Log[ah(0x19e)](ac);}}catch(ad){ad&&Log['error'](ad),process[ah(0x18f)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0xd6;let f=c[d];return f;},a8d(a,b);}function a8c(){const k=['maka\x20aws:create-key-pair','1008032SvtGoN','constructor','create-key-pair','toString','create','exit','287240DPThdD','176yekQni','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','805866DgiiWD','getEnvFromShorthand','\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','40232SUXkDA','search','5404byJlIY','20llOLGf','fsi','1430292dYxZKf','(((.+)+)+)+$','maka\x20aws:ckp\x20--env\x20prod','maka\x20aws:create-key-pair\x20--env\x20prod','1197ytTARN','27yHYPjx','createKeyPair','1941870cyNIsS','env'];a8c=function(){return k;};return a8c();}const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0xed))/0x1+-parseInt(g(0xe4))/0x2+parseInt(g(0xdf))/0x3*(-parseInt(g(0xd7))/0x4)+parseInt(g(0xd8))/0x5*(parseInt(g(0xda))/0x6)+-parseInt(g(0xe1))/0x7+-parseInt(g(0xf0))/0x8*(-parseInt(g(0xde))/0x9)+parseInt(g(0xea))/0xa*(parseInt(g(0xeb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x75cd6));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(0xe7)]()[h(0xd6)](h(0xdb))[h(0xe7)]()[h(0xe5)](a8a)[h(0xd6)](h(0xdb));});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';Command[a8i(0xe8)]({'name':a8i(0xe6),'aliases':['ckp'],'usage':a8i(0xe3),'examples':[a8i(0xdd),a8i(0xdc)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8i(0xec),'description':a8i(0xef)},async function(a,b){const j=a8i;try{const c=new AWS(),d=this[j(0xd9)][j(0xee)](b[j(0xe2)]);c[j(0xe0)]({'env':d});}catch(f){f&&Log['error'](f),process[j(0xe9)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x138))/0x1*(parseInt(m(0x13d))/0x2)+-parseInt(m(0x132))/0x3*(parseInt(m(0x12b))/0x4)+-parseInt(m(0x13f))/0x5+-parseInt(m(0x126))/0x6*(-parseInt(m(0x130))/0x7)+-parseInt(m(0x122))/0x8*(-parseInt(m(0x141))/0x9)+-parseInt(m(0x144))/0xa*(parseInt(m(0x13e))/0xb)+-parseInt(m(0x13c))/0xc*(-parseInt(m(0x139))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe43ec));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a[o(0x125)]()[o(0x134)](o(0x12f))[o(0x125)]()[o(0x137)](a9a)['search']('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';function a9c(){const s=['maka\x20aws:csg','(((.+)+)+)+$','7cijmEb','22,80,443','1479DKtsBX','name','search','ask','error','constructor','8MmRMVJ','4974619cTDFBI','List\x20is\x20not\x20all\x20numbers','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','108iCMjZe','167578sPixzX','21527HHPqBz','8779015FLwlUL','Security\x20Group\x20Name:\x20[','2007AugiUJ','create-security-group','getMakaProjectConfig','2330saDJCV','csg','split','6376FdcBnP','ec2createSG','maka\x20aws:create-secuirty-group','toString','951906PYcEmt','Web\x20App','fsi','match','apply','10580fvhcvW','maka\x20aws\x20create-security-group','forEach'];a9c=function(){return s;};return a9c();}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 a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x121;let f=c[d];return f;},a9d(a,b);}Command['create']({'name':a9p(0x142),'aliases':[a9p(0x145)],'usage':a9p(0x12c),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':'\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','examples':[a9p(0x124),a9p(0x12e)]},async function(a,b){const q=a9p;try{const c=new AWS(),d=this[q(0x128)][q(0x143)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0x133)]?b[q(0x133)]:''+f,i=await Actions[q(0x135)](q(0x140)+h+']')||h,j=await Actions[q(0x135)](q(0x13b))||q(0x131),k=j[q(0x121)](',');k[q(0x12d)](l=>{const r=q;if(!l[r(0x129)](/^\d+$/))throw r(0x13a);}),await c[q(0x123)]({'description':q(0x127),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x136)](l),process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;
|
|
1
|
+
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x134))/0x1*(parseInt(f(0x124))/0x2)+-parseInt(f(0x139))/0x3+-parseInt(f(0x135))/0x4*(parseInt(f(0x136))/0x5)+parseInt(f(0x12f))/0x6*(parseInt(f(0x142))/0x7)+parseInt(f(0x127))/0x8*(-parseInt(f(0x130))/0x9)+-parseInt(f(0x144))/0xa+parseInt(f(0x12d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x59cde));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x143)]()['search'](h(0x12b))['toString']()[h(0x125)](a10a)[h(0x131)]('(((.+)+)+)+$');});a10a();function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x124;let f=c[d];return f;},a10d(a,b);}function a10c(){const k=['24368905SAclMT','decr','42hCrrMm','1076886DIOGUA','search','region','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','451mbfYef','28DXOSFw','464465imzZCj','Delete\x20an\x20Elastic\x20Container\x20Repository','error','398880KsKwgt','.\x20Error:\x20','name','create','apply','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','Failed\x20to\x20delete\x20the\x20repository:\x20','delete-ecr','150619VJIblX','toString','2331320GxBDSr','2762POqUjZ','constructor','\x20deleted\x20successfully\x20in\x20region\x20','24lohsMW','success','\x20in\x20region\x20','exit','(((.+)+)+)+$','ecrDeleteRepository'];a10c=function(){return k;};return a10c();}import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x13c)]({'name':a10i(0x141),'aliases':[a10i(0x12e)],'usage':a10i(0x13e),'requiredOpts':['name','region'],'validOpts':[],'shortDesc':a10i(0x137),'examples':[a10i(0x13f),a10i(0x133)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x12c)]({'repoName':b['name'],'region':b[j(0x132)]}),Log[j(0x128)]('Repository\x20'+b[j(0x13b)]+j(0x126)+b['region']+'.'),process[j(0x12a)](0x0);}catch(d){Log[j(0x138)](j(0x140)+b[j(0x13b)]+j(0x129)+b[j(0x132)]+j(0x13a)+d),process[j(0x12a)](0x1);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11i=a11d;
|
|
1
|
+
const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=parseInt(f(0x1f2))/0x1+parseInt(f(0x1f8))/0x2+-parseInt(f(0x1f7))/0x3+-parseInt(f(0x1ed))/0x4*(-parseInt(f(0x1fb))/0x5)+parseInt(f(0x1ef))/0x6+-parseInt(f(0x1eb))/0x7*(-parseInt(f(0x1ec))/0x8)+-parseInt(f(0x1fc))/0x9*(parseInt(f(0x1e9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x77f78));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a[h(0x1f4)]()[h(0x1fa)](h(0x1f1))['toString']()[h(0x1fd)](a11a)[h(0x1fa)](h(0x1f1));});a11a();function a11c(){const k=['maka\x20aws:describe-instances','toString','create','error','1729581XLPANg','988608iUloOh','describe-instances','search','435UiOIzk','90AYgkWG','constructor','1435990MgrZUR','ec2describeInstances','7Xrftnd','4144392SYptig','11372rUTekI','apply','4906140cVTzEH','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','(((.+)+)+)+$','426517TajGjP'];a11c=function(){return k;};return a11c();}import a11e from'./aws.command.js';import{Command}from'../../command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1e9;let f=c[d];return f;},a11d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11i(0x1f5)]({'name':a11i(0x1f9),'aliases':['di'],'usage':'maka\x20aws:describe-instances','validOpts':[],'shortDesc':a11i(0x1f0),'examples':[a11i(0x1f3),'maka\x20aws:di'],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const j=a11i;try{const a=new AWS();a[j(0x1ea)]();}catch(b){b&&Log[j(0x1f6)](b),process['exit'](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xc1))/0x1*(-parseInt(f(0xaf))/0x2)+-parseInt(f(0xb5))/0x3*(-parseInt(f(0xbf))/0x4)+-parseInt(f(0xbc))/0x5*(parseInt(f(0xb1))/0x6)+parseInt(f(0xc2))/0x7+-parseInt(f(0xb0))/0x8+-parseInt(f(0xae))/0x9*(-parseInt(f(0xb9))/0xa)+-parseInt(f(0xbb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xee9ff));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()['search']('(((.+)+)+)+$')['toString']()[h(0xb4)](a12a)[h(0xc0)](h(0xb3));});a12a();import a12e from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xae;let f=c[d];return f;},a12d(a,b);}function a12c(){const k=['ec2describeKeys','error','2108570GLNwkD','maka\x20aws:describe-key-pairs','32412226pKVtSY','885CzZmYN','create','dkp','6015676rBsebv','search','52187jwIuGj','13104308jVHikx','81FNSapL','52ZrTBbJ','15440528pmjOqh','26322KFOExY','apply','(((.+)+)+)+$','constructor','3vbtjde','exit'];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(0xbd)]({'name':'describe-key-pairs','aliases':[a12i(0xbe)],'usage':a12i(0xba),'validOpts':[],'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':[a12i(0xba),'maka\x20aws:dkp']},async function(){const j=a12i;try{const a=new AWS();a[j(0xb7)]();}catch(b){b&&Log[j(0xb8)](b),process[j(0xb6)](0x0);}},a12e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d
|
|
1
|
+
const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x1a1))/0x1+parseInt(l(0x18a))/0x2*(-parseInt(l(0x199))/0x3)+-parseInt(l(0x191))/0x4*(-parseInt(l(0x1a8))/0x5)+parseInt(l(0x188))/0x6+parseInt(l(0x1a2))/0x7*(-parseInt(l(0x18c))/0x8)+parseInt(l(0x194))/0x9*(parseInt(l(0x193))/0xa)+-parseInt(l(0x1a0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x248d8));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x195)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a['toString']()[n(0x186)]('(((.+)+)+)+$')[n(0x184)]()[n(0x198)](a13a)[n(0x186)](n(0x1aa));});a13a();import a13e from'./aws.command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x182;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':a13o(0x19c),'aliases':[a13o(0x19f)],'usage':a13o(0x19e),'validOpts':[],'shortDesc':a13o(0x19a),'examples':[a13o(0x19e),a13o(0x1a3)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x192)]();let d='';if(c){const j=b[p(0x185)]();d=j['appName'];}const {sgList:f}=await a[p(0x190)]();f['forEach'](function(k){const q=p;c&&k[q(0x1a7)]['includes'](d)?Log['notice'](q(0x19d)+k['id']+q(0x18b)+k[q(0x1a7)]+q(0x19b)+k['sgId']):Log[q(0x18e)](q(0x19d)+k['id']+q(0x18b)+k[q(0x1a7)]+q(0x19b)+k[q(0x1ab)]);});let g='';const h=await Actions[p(0x1a6)](p(0x187));f[p(0x1a5)](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x1ab)]);});if(!g)throw Log[p(0x183)](p(0x18d));const i=await Actions[p(0x182)](p(0x18f)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x196)](g),Log[p(0x1a9)](p(0x189)+g)):Log[p(0x183)](p(0x1a4)),process[p(0x197)](0x0);}catch(k){k&&Log['error'](k),process[p(0x197)](0x1);}},a13e);function a13c(){const s=['2587630ixokEF','9zGIVed','apply','deleteSecurityGroup','exit','constructor','18WVXEqQ','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','\x20SGID:\x20','delete-security-group','ID:\x20','maka\x20aws:delete-sg','dsg','8373904lafzjH','243222vcUJBx','815696PTBtxC','maka\x20aws:dsg','Not\x20deleting\x20secuirty\x20group','forEach','ask','name','2060LEZjqP','success','(((.+)+)+)+$','sgId','confirm','error','toString','getMakaProjectConfig','search','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','1555986NYnBVR','Deleted\x20','8088NCFByY','\x20SG\x20NAME:\x20','8wggdPl','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','bright','Deleting\x20a\x20','getSecurityGroups','2820xCaujm','isMakaProject'];a13c=function(){return s;};return a13c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d
|
|
1
|
+
const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x10f))/0x1+parseInt(f(0xfb))/0x2*(-parseInt(f(0xf9))/0x3)+parseInt(f(0x10a))/0x4+parseInt(f(0x105))/0x5*(-parseInt(f(0xfe))/0x6)+parseInt(f(0x100))/0x7+parseInt(f(0xf8))/0x8+-parseInt(f(0x10d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x5cf7b));function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xf8;let f=c[d];return f;},a14d(a,b);}const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0xfd)]()[h(0x109)](h(0x10b))['toString']()['constructor'](a14a)[h(0x109)]('(((.+)+)+)+$');});a14a();import a14e from'./aws.command.js';function a14c(){const k=['2931464EOneHw','(((.+)+)+)+$','list-ecr','4859046whRpZa','listAllEcrRepositories','24349iNAvDq','3660848cRxjvm','618jrerzw','create','4852Uyhhno','error','toString','21666RWKhIv','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','1464645szLVfi','exit','regions','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','success','5Ozzxcc','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','maka\x20aws:lecr\x20--regions=all','apply','search'];a14c=function(){return k;};return a14c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14i(0xfa)]({'name':a14i(0x10c),'aliases':['lecr'],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x102)],'shortDesc':a14i(0x106),'examples':['maka\x20aws:list-ecr',a14i(0xff),a14i(0x107)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x10e)](b[j(0x102)]),Log[j(0x104)]('Completed\x20listing\x20ECR\x20repositories.'),process[j(0x101)](0x0);}catch(d){Log[j(0xfc)](j(0x103)+d),process[j(0x101)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a15c(){const
|
|
1
|
+
const a15i=a15d;function a15c(){const k=['50YONqCK','(((.+)+)+)+$','apply','maka\x20aws:reboot-instance','154383aUCFTj','create','6774cJuuqq','instanceId','error','6041gFSnUO','938565zrHGMi','872940zlQxNS','rbi','2venVxI','\x20Ready?','8900518cVsxtI','constructor','Reboot\x20an\x20EC2\x20instance','chooseInstance','search','44qezGur','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','1838288LWyAdw','maka\x20aws:rbi','toString','447765ZNdbdP','name'];a15c=function(){return k;};return a15c();}(function(a,b){const f=a15d,c=a();while(!![]){try{const d=-parseInt(f(0x16c))/0x1*(-parseInt(f(0x16e))/0x2)+-parseInt(f(0x165))/0x3*(-parseInt(f(0x175))/0x4)+parseInt(f(0x15f))/0x5+-parseInt(f(0x167))/0x6*(parseInt(f(0x16a))/0x7)+parseInt(f(0x177))/0x8+parseInt(f(0x16b))/0x9*(parseInt(f(0x161))/0xa)+-parseInt(f(0x170))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x792b6));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a['toString']()['search'](h(0x162))[h(0x179)]()[h(0x171)](a15a)[h(0x174)](h(0x162));});a15a();import a15e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x15f;let f=c[d];return f;},a15d(a,b);}Command[a15i(0x166)]({'name':'reboot-instance','aliases':[a15i(0x16d)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a15i(0x172),'examples':[a15i(0x164),a15i(0x178)]},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x173)]();if(b?.['status']==='running'){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[j(0x160)]+j(0x16f));c&&b[j(0x168)]?a['ec2rebootInstance']({'instanceId':b[j(0x168)]}):Log[j(0x169)](j(0x176)+b[j(0x160)]+'\x20is\x20still\x20running.');}else Log[j(0x169)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log['error'](d),process['exit'](0x1);}},a15e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;
|
|
1
|
+
const a16I=a16d;(function(a,b){const E=a16d,c=a();while(!![]){try{const d=-parseInt(E(0xdd))/0x1*(-parseInt(E(0xd3))/0x2)+-parseInt(E(0xe4))/0x3+-parseInt(E(0xf5))/0x4*(-parseInt(E(0xfc))/0x5)+-parseInt(E(0xed))/0x6+parseInt(E(0xf6))/0x7+parseInt(E(0xd1))/0x8*(parseInt(E(0xf0))/0x9)+-parseInt(E(0xc7))/0xa*(parseInt(E(0xe7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xec3b6));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a16d;if(c){const e=c[F(0xf8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const G=a16d;return a16a[G(0xd0)]()[G(0xec)](G(0xe2))[G(0xd0)]()[G(0x103)](a16a)[G(0xec)]('(((.+)+)+)+$');});a16a();function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0xc7;let f=c[d];return f;},a16d(a,b);}import a16e from'./aws.command.js';function a16c(){const K=['COMPANY','apply','123\x20Glorious\x20Way','domain','Contact\x20Last\x20Name\x20[Person]:\x20','399145hWNvfG','\x20/\x20Year)','register-domain-name','OrganizationName','notice','\x20years\x20(','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','constructor','Auto\x20Renew:\x20','maka\x20aws:rdn\x20--domain=example.com','contactType','330xWWrgB','RESELLER','error','Country\x20Code\x20[US]:\x20','values','ASSOCIATION','\x20for\x20','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','exit','toString','16feXFOA','PERSON','153310Zuhbia','Do\x20you\x20wish\x20to\x20register\x20','includes','ask','96816','Contact\x20First\x20Name\x20[Contact]:\x20','Person','Address\x20Line\x202:\x20','+1.5555555555','Domain\x20name\x20is\x20unavailable','18sFChpR','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','\x20/\x20Year\x20\x0a','list','maka\x20aws:register-domain-name\x20--domain=example.com','(((.+)+)+)+$','maka\x20aws:register-domain-name','3989274lGUfZT','confirm','\x20is\x20available\x20for:','617727Iitiee','Invalid\x202\x20character\x20country\x20code','Zip\x20Code\x20[96816]:\x20','checkDomainAvailability','State\x20[HI]:\x20','search','2479656YiFfyo','The\x20domain\x20name:\x20','PUBLIC_BODY','3623463fZOabd','Are\x20you\x20sure?','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','warn','options','88ecXLVM','4358053NnUSpF'];a16c=function(){return K;};return a16c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object[H(0xcb)](CountryCode)[H(0xd5)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command['create']({'name':a16I(0xfe),'aliases':['rdn'],'usage':a16I(0xe3),'requiredOpts':[a16I(0xfa)],'validOpts':[],'shortDesc':a16I(0xde),'examples':[a16I(0xe1),a16I(0x105)]},async function(a,b){const J=a16I;try{const c=b[J(0xfa)],d=new AWS(),{available:f,cost:g}=await d[J(0xea)](c);if(f&&g){Log[J(0x100)](J(0xee)+c+J(0xe6));const {Price:h,Currency:i}=g;Log[J(0xf3)]('\x20\x20'+h+'\x20'+i+J(0xdf));const j=await Actions[J(0xe5)](J(0xd4)+c+'\x20?',![]);if(j){const k={'type':J(0xe0),'name':J(0x106),'message':'Choose\x20contact\x20type','choices':[J(0xcc),J(0xf7),J(0xd2),J(0xef),J(0xc8)]},l=await Actions['ask']('Duration\x20in\x20years\x20[1]:\x20')||'1',m=await Actions[J(0xd6)](J(0xd8))||'Contact',n=await Actions[J(0xd6)](J(0xfb))||J(0xd9),{contactType:o}=await Actions[J(0xf4)](k),p=await Actions[J(0xd6)](J(0xce))||J(0xf9),q=await Actions[J(0xd6)](J(0xda)),r=await Actions['ask'](J(0xe9))||J(0xd7),s=await Actions[J(0xd6)](J(0xeb))||'HI',t=await Actions[J(0xd6)](J(0xca))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[J(0xc9)](J(0xe8));const v=await Actions[J(0xd6)]('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||J(0xdb),w=await Actions[J(0xd6)](J(0xf2))||'+1.5555555556',x=await Actions[J(0xd6)]('Contact\x20Email\x20[mail@example.com]:\x20')||'mail@example.com',y=await Actions[J(0xe5)](J(0x104)),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(0xd2)){const C=await Actions['ask']('Organization\x20Name\x20[My\x20Company,\x20LLC.]:')||'My\x20Comanpy,\x20LLC.';z[J(0xff)]=C;}const A=h||0x0*parseInt(l);Log[J(0x100)](J(0x102)),Log[J(0xf3)](A+'\x20'+i+J(0xcd)+l+J(0x101)+h+'\x20'+i+J(0xfd));const B=await Actions['confirm'](J(0xf1));B&&await d['registerDomain'](z,c,parseInt(l),y);}}else throw J(0xdc);}catch(D){D&&Log[J(0xc9)](D),process[J(0xcf)](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(a,b){const h=a17d,c=a();while(!![]){try{const d=-parseInt(h(0x158))/0x1+parseInt(h(0x14b))/0x2+parseInt(h(0x168))/0x3+-parseInt(h(0x14f))/0x4*(-parseInt(h(0x159))/0x5)+-parseInt(h(0x165))/0x6*(-parseInt(h(0x15e))/0x7)+parseInt(h(0x156))/0x8+-parseInt(h(0x163))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x78568));function a17c(){const n=['1192338MdEntA','Please\x20choose\x20a\x20key\x20to\x20delete:','ask','Deleting\x20a\x20','1431098BuDdcZ','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','search','maka\x20aws:remove-key-pair','44nWPJPt','toString','(((.+)+)+)+$','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','success','confirm','Not\x20deleting\x20keypair','3021912zLIUIg','exit','759576tYSCbS','184880VuvEUZ','error','apply','forEach','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','56HryurA','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','rkp','name','deleteKeyPair','13614102PupYsV','ec2describeKeys','650766PlJqjX','create','maka\x20aws:rkp'];a17c=function(){return n;};return a17c();}const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x150)]()[j(0x14d)]('(((.+)+)+)+$')[j(0x150)]()['constructor'](a17a)[j(0x14d)](j(0x151));});a17a();import a17e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x148;let f=c[d];return f;},a17d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a17k(0x166)]({'name':'remove-key-pair','aliases':[a17k(0x160)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':a17k(0x15d),'description':a17k(0x14c),'examples':[a17k(0x14e),a17k(0x167)]},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x164)]();let c=undefined;const d=await Actions[l(0x149)](l(0x148));b?.[l(0x15c)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x161)]);});if(!c)throw Log[l(0x15a)](l(0x152));const f=await Actions[l(0x154)](l(0x14a)+c+l(0x15f),![]);f?(await a[l(0x162)](c),Log[l(0x153)]('Deleted\x20'+c)):Log[l(0x15a)](l(0x155)),process[l(0x157)](0x0);}catch(g){g&&Log[l(0x15a)](g),process[l(0x157)](0x1);}},a17e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=parseInt(m(0xa0))/0x1*(parseInt(m(0xc0))/0x2)+parseInt(m(0xb4))/0x3*(parseInt(m(0x9d))/0x4)+-parseInt(m(0xbb))/0x5*(-parseInt(m(0xb8))/0x6)+parseInt(m(0xbe))/0x7*(-parseInt(m(0xb3))/0x8)+parseInt(m(0xc2))/0x9*(-parseInt(m(0xa1))/0xa)+parseInt(m(0xc7))/0xb+-parseInt(m(0xc5))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x5674a));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['toString']()['search']('(((.+)+)+)+$')[o(0xcb)]()[o(0xb6)](a18a)[o(0xa3)]('(((.+)+)+)+$');});function a18c(){const r=['fsi','apply','privateIp','inherit','\x0aSaved\x20host\x20','maka\x20aws\x20set-host','\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','appName','ssh.json','getMakaProjectConfig','2052616vITDaP','7278nIgqbq','env','constructor','utf8','4209558zhSDNZ','getAppConfigPath','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','5krUSqc','exit','maka\x20aws:set-host\x20--env\x20dev','7QDVDxp','success','54NcALtb','join','1489140lWfmky','\x20IP\x20to\x20','parse','5537280IMlRyP','maka\x20aws:sth\x20--env\x20prod','6155479LHNywY','stringify','readFileSync','public','toString','chooseInstance','112ZYZbff','private','cat\x20','8867DyGiZz','30hSLaIx','sth','search','host','isFile','create','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','publicIp'];a18c=function(){return r;};return a18c();}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 a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x9c;let f=c[d];return f;},a18d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a18p(0xa6)]({'name':'set-host','aliases':[a18p(0xa2)],'usage':a18p(0xae),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a18p(0xba),'description':a18p(0xaf),'examples':[a18p(0xbd),a18p(0xc6)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this[q(0xa9)]['getEnvFromShorthand'](b[q(0xb5)]),f=this[q(0xa9)][q(0xb9)](d),g=this[q(0xa9)][q(0xb2)](),h=await c[q(0x9c)](),i=a18e[q(0xc1)](f,'ssh.json');!this[q(0xa9)][q(0xa5)](i)&&await this[q(0xa9)]['template']({'srcPath':'config/ssh.json','destPath':i,'context':{'app':g[q(0xb0)]},'config':g});const j=JSON[q(0xc4)](a18f[q(0xc9)](i,q(0xb7))),k=await Actions['ask']('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||q(0xca);if(k){if(k===q(0xca)||k===q(0x9e)){if(k===q(0xca))j[q(0xa4)]=h?.[q(0xa8)];else k===q(0x9e)&&(j[q(0xa4)]=h?.['privateIp']);}else throw q(0xa7);}else j[q(0xa4)]=h?.[q(0xab)];a18f['writeFileSync'](a18e[q(0xc1)](f,q(0xb1)),JSON[q(0xc8)](j,null,0x2)),execSync(q(0x9f)+a18e[q(0xc1)](f,q(0xb1)),{'stdio':q(0xac)}),Log[q(0xbf)](q(0xad)+k+q(0xc3)+f+a18e['sep']+'ssh.json');}catch(l){l&&Log['error'](l),process[q(0xbc)](0x0);}},a18g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d
|
|
1
|
+
const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0x17b))/0x1+-parseInt(f(0x17c))/0x2+parseInt(f(0x181))/0x3+-parseInt(f(0x171))/0x4+parseInt(f(0x173))/0x5+-parseInt(f(0x16f))/0x6*(-parseInt(f(0x16e))/0x7)+-parseInt(f(0x179))/0x8*(parseInt(f(0x17e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xabcb4));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x17a)]()[h(0x167)](h(0x16d))[h(0x17a)]()[h(0x176)](a19a)[h(0x167)](h(0x16d));});a19a();import a19e from'./aws.command.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x166;let f=c[d];return f;},a19d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a19c(){const k=['running','maka\x20aws:ti','confirm','(((.+)+)+)+$','6680653mlNmkl','6FewSLN','name','4139340XxThvI','maka\x20aws:terminate-instance','6434160gMLhxI','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','create','constructor','instanceId','error','916168CRQpZo','toString','346885UdAbrS','2188168TKJXiV','chooseInstance','9ceiOmO','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','apply','3158346UAPfHe','\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','search','Terminate\x20an\x20EC2\x20instance','\x20Ready?'];a19c=function(){return k;};return a19c();}Command[a19i(0x175)]({'name':'terminate-instance','aliases':['ti'],'usage':a19i(0x172),'validOpts':[],'shortDesc':a19i(0x168),'description':a19i(0x166),'examples':[a19i(0x172),a19i(0x16b)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x17d)]();if(b?.[j(0x177)]&&b?.['status']===j(0x16a)){const c=await Actions[j(0x16c)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+j(0x169));c?a['ec2terminateInstance']({'instanceId':b[j(0x177)]}):Log[j(0x178)](j(0x174)+b[j(0x170)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x178)](j(0x17f));}catch(d){d&&Log[j(0x178)](d),process['exit'](0x1);}},a19e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a20c(){var h=['606003NfiVZi','4319140GoExTX','(((.+)+)+)+$','12fXaQIb','search','160984DujzeX','391504HXdMdL','constructor','27vVGloe','14PzeAIf','8944440hsvXrn','4047435jLIpov','4863774cxLsEf'];a20c=function(){return h;};return a20c();}function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x18c;var f=c[d];return f;},a20d(a,b);}(function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x18e))/0x1+parseInt(f(0x198))/0x2*(-parseInt(f(0x195))/0x3)+-parseInt(f(0x196))/0x4+-parseInt(f(0x193))/0x5+parseInt(f(0x194))/0x6+parseInt(f(0x191))/0x7*(-parseInt(f(0x18d))/0x8)+parseInt(f(0x190))/0x9*(parseInt(f(0x192))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xb5a05));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(0x18c)](g(0x197))['toString']()[g(0x18f)](a20a)[g(0x18c)](g(0x197));});a20a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a21p=a21d;(function(a,b){const n=a21d,c=a();while(!![]){try{const d=parseInt(n(0x1f2))/0x1+parseInt(n(0x1ea))/0x2*(-parseInt(n(0x1df))/0x3)+-parseInt(n(0x1e5))/0x4+-parseInt(n(0x1e6))/0x5*(-parseInt(n(0x1e4))/0x6)+parseInt(n(0x1fe))/0x7+parseInt(n(0x1fb))/0x8*(-parseInt(n(0x1e1))/0x9)+parseInt(n(0x1ee))/0xa*(parseInt(n(0x1e0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0xe2da9));function a21c(){const r=['search','141486xTtpJM','2361392wGpVMh','65gMWUFU','join','argv','update','2995252CEiZYZ','forEach','build','app.tar.gz','190Oplnct','getGlobalMeteorVersion','constructor','pathFromProject','1853669nOEpxT','force','\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','(((.+)+)+)+$','--release','exit','fsi','checkMeteorPackage','getProjectMeteorVersion','2204624noFFCC','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','confirm','6624940BPgeSH','Aborted.','slice','3IKBGHx','267289nqcuXK','18cdKUMV','existsSync'];a21c=function(){return r;};return a21c();}const a21b=(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;};}()),a21a=a21b(this,function(){const o=a21d;return a21a['toString']()[o(0x1e3)](o(0x1f5))['toString']()[o(0x1f0)](a21a)['search'](o(0x1f5));});a21a();import a21e from'path';import a21f from'fs';import a21g from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0x1df;let f=c[d];return f;},a21d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':'build','usage':'maka\x20build','validOpts':[a21p(0x1f3)],'aliases':['b'],'shortDesc':a21p(0x1fc),'mustBeInMakaProject':!![],'description':a21p(0x1f4),'examples':['maka\x20build']},async function(a,b){const q=a21p;try{await this[q(0x1f8)][q(0x1f9)]('autoupdate',{'shouldInstall':!![]});const c=b[q(0x1f3)];if(!c){const g=this[q(0x1f8)][q(0x1ef)](),h=this[q(0x1f8)][q(0x1fa)](),i=a21g['gt'](g,h);if(i){const j=await Actions['confirm']('This\x20project\x27s\x20meteor\x20version\x20('+h+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+g+').\x20Update?');j&&this['fsi']['invokeMeteorCommand'](q(0x1e9),[q(0x1f6),g]);}}const d=[this['fsi'][q(0x1f1)]({'pathParts':[q(0x1ec)]})]['concat'](process[q(0x1e8)][q(0x200)](0x3)),f=a21e[q(0x1e7)](this[q(0x1f8)][q(0x1f1)]({}),q(0x1ec),q(0x1ed));if(a21f[q(0x1e2)](f)){const k=c??await Actions[q(0x1fd)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!k)throw Log['error'](q(0x1ff));}d[q(0x1eb)]((l,m)=>{l==='--force'&&d['splice'](m,0x2);}),this[q(0x1f8)]['invokeMeteorCommand'](q(0x1ec),d);}catch(l){console['error'](l),process[q(0x1f7)](0x0);}});export default BuildCommand;
|