@maka/maka-cli 4.6.9 → 4.6.11
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 -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/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/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/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.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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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/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/kit.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 -0
- 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 -1
- package/bundle/obf/src/tools/https/progress.class.js +0 -1
package/bundle/obf/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
3
|
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
-
"version": "4.6.
|
|
4
|
+
"version": "4.6.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
7
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"cli-color": "^2.0.3",
|
|
46
46
|
"cli-cursor": "^4.0.0",
|
|
47
47
|
"cli-table": "^0.3.11",
|
|
48
|
+
"deasync": "^0.1.28",
|
|
48
49
|
"delete": "^1.1.0",
|
|
49
50
|
"dotenv": "^16.3.1",
|
|
50
51
|
"ejs": "^3.1.9",
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"single-line-log2": "^1.1.3",
|
|
63
64
|
"slash": "^5.1.0",
|
|
64
65
|
"spawn-args": "0.2.0",
|
|
66
|
+
"tar": "^6.2.0",
|
|
65
67
|
"uuid": "^9.0.0",
|
|
66
68
|
"xtend": "^4.0.2"
|
|
67
69
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0s=a0d;function
|
|
1
|
+
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x157))/0x1+parseInt(p(0xff))/0x2+-parseInt(p(0x121))/0x3*(-parseInt(p(0x10c))/0x4)+-parseInt(p(0x135))/0x5*(parseInt(p(0x15a))/0x6)+-parseInt(p(0x127))/0x7*(-parseInt(p(0x14d))/0x8)+-parseInt(p(0x12a))/0x9*(parseInt(p(0x115))/0xa)+parseInt(p(0x147))/0xb*(parseInt(p(0x128))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x7166b));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a['toString']()[r(0x11c)](r(0x12c))[r(0x140)]()[r(0x119)](a0a)['search'](r(0x12c));});a0a();import a0e from'cli-table';function a0c(){const E=['minOptsLength','assign','split','roles','11354123UIsNVT','validateMeteorInstall','shortDesc','keys','parent','singleLicense','8632bkFOjn','function','maxArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','length','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','filter','sort','mustBeInMakaProject','create','304663bXEQnD','aliases','splice','534fARhAn','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','799408HWtPJp','maxOptsLength','forEach','findCommand','mustHaveMeteorInstalled','push','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','play','tableList','bind','error','join','disableAuthCheck','1255012SpZtUh','run','getPro','number','Too\x20few\x20options','header','proCommands','usage','find','614110UtRNZN','Command.create\x20requires\x20some\x20options!','options','Description','constructor','validateMakaProject','setColorMode','search','murder','Alias','light','minArgLength','3KgECjy','help','deploy','There\x20is\x20no\x20Meteor\x20application\x20here','name','To\x20use\x20this\x20command,\x20\x22','413fYbGYA','12RabEOa','addCommand','126WMTKrf','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','(((.+)+)+)+$','Too\x20many\x20arguments','apply','invoke','_handler','fsi','proFlags','call','LIGHT','10135eMhcSA','To\x20use\x20these\x20pro\x20flags,\x20\x22','DARK','findSubCommand','exit','includes','validateMakaSubscription','Command\x20not\x20found','getGlobalConfig','Too\x20many\x20options','generate','toString','runSubCommand','_commands'];a0c=function(){return E;};return a0c();}function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xfe;let f=c[d];return f;},a0d(a,b);}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}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0s(0x142)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x152));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==t(0x14e))throw new Error('Command\x20requires\x20a\x20handler\x20function');this[t(0x117)]=Object[t(0x144)]({},a),this['name']=this['options']['name'],this[t(0x142)]=[],this['_handler']=b[t(0x108)](this);}static[a0s(0x156)](a,b,c){const u=a0s;if(!a)throw new Error(u(0x116));if(typeof b!==u(0x14e))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');const d=new Command(a,b);return c=c||a0f,Object[u(0x144)](d,{'parent':c?.['options']?.[u(0x125)]}),c[u(0x129)](d),d;}[a0s(0x129)](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[v(0x142)]['push'](a);}async['validateMakaSubscription'](a,b){const w=a0s,c=this['findCommand'](a[0x0]);if(c){const d=c?.[w(0x125)]||a[0x0],e=c?.[w(0x14b)]||'',f=c?.[w(0x117)];if(f[w(0x10b)])return;const g=a[0x0],h=Object[w(0x14a)](b),i=await this[w(0x131)][w(0x10e)]();!i&&(Log[w(0x109)](w(0x15b)),process['exit'](0x1));const j=i?.[w(0x112)][w(0x13a)](d)||i?.[w(0x112)]['includes'](e),k=i?.['roles']['includes'](w(0x14c))||i?.[w(0x146)][w(0x13a)]('domainLicense'),l=!k;if(j&&l)throw w(0x126)+a[0x0]+w(0xfe);if(h[w(0x151)]>0x0){const m=i?.[w(0x132)][w(0x153)](n=>h[w(0x13a)](n));if(m&&m[w(0x151)]>0x0&&l)throw w(0x136)+m?.[w(0x10a)](',\x20')+w(0xfe);}if(g===w(0x123)){const n=await this[w(0x131)][w(0x10e)](),o=n?.[w(0x112)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x126)+a[0x0]+w(0xfe);}}}async[a0s(0x10d)](a,b){const x=a0s;try{a=a||[],b=b||{};try{const c=await this[x(0x131)][x(0x13d)](),d=c['pallet']===x(0x11f)?ColorMode[x(0x134)]:ColorMode[x(0x137)];Log[x(0x11b)](d),await this[x(0x13b)](a,b);}catch(f){Log[x(0x109)](f),process[x(0x139)](0x0);}await this['invoke'](a,b);}catch(g){process[x(0x139)](0x1);}}async[a0s(0x12f)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d}=this[y(0x117)];try{if(this[y(0x117)]['name']!==y(0x13f)){if(!isRoot){const f=(a[0x0]===_prevCmd||a[y(0x151)]===0x0)&&this['_commands'][y(0x151)]>=0x0,g=b[y(0x122)]||b['h'];if(f&&g){if(this['_commands'][y(0x151)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!g){if(this[y(0x117)][y(0x155)]){const h=this[y(0x11a)]();if(!h)throw new MustBeInProjectError();}if(this['options'][y(0x103)]){const i=this[y(0x148)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[y(0x117)]['minArgLength']===y(0x10f)){if(a[y(0x151)]<this['options'][y(0x120)]){Log[y(0x109)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][y(0x14f)]===y(0x10f)){if(a['length']>=this['options'][y(0x14f)]){Log[y(0x109)](y(0x12d));throw new UsageError();}}if(typeof this['options']['minOptsLength']===y(0x10f)){if(Object['keys'](b)[y(0x151)]<this['options'][y(0x143)]){Log[y(0x109)](y(0x110));throw new UsageError();}}if(typeof this[y(0x117)]['maxOptsLength']===y(0x10f)){if(Object['keys'](b)[y(0x151)]>=this[y(0x117)][y(0x100)]){Log[y(0x109)](y(0x13e));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[y(0x117)]),_prevCmd=a[0x0];}await this[y(0x130)][y(0x133)](this,a,b);}catch(j){Log[y(0x113)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageErrorWithSubs)Log['notice']('Sub-Commands:'),this[y(0x107)](this[y(0x142)]),Log[y(0x111)](y(0x12b));else{if(j instanceof MustBeInProjectError)Log[y(0x109)](y(0x105));else{if(j instanceof NoMeteorFoundError)Log[y(0x109)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](y(0x150));else{if(j instanceof NoMeteorAppFoundError)Log[y(0x109)](y(0x124));else throw j;}}}process[y(0x139)](0x1);}}[a0s(0x107)](a){const z=a0s,b=new a0e({});b[z(0x104)](['Name',z(0x11e),z(0x118)]),a[z(0x154)]()[z(0x101)](c=>{const A=z;c['name']!==A(0x11d)&&c['name']!==A(0x106)&&b[A(0x104)]([c['name'],c[A(0x158)](),c[A(0x149)]()]);}),Log['bright'](b['toString']());}['findCommand'](a){const B=a0s;return this['_commands'][B(0x114)](b=>b['match'](a));}[a0s(0x138)](a){const C=a0s,b=a?.['split'](':');if(b)return a=b[0x0],this[C(0x102)](a);else return;}async[a0s(0x141)](a,b,c){const D=a0s;try{const d=a[D(0x145)](':');a=d[0x0];const f=d[0x1];f&&b[D(0x159)](0x0,0x0,f);const g=this[D(0x102)](a);if(g)await g[D(0x10d)](b,c);else throw D(0x13c);}catch(h){throw Log[D(0x109)](h);}}}
|
|
@@ -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(0x1f3))/0x1*(-parseInt(f(0x1fb))/0x2)+parseInt(f(0x1f5))/0x3*(parseInt(f(0x1fa))/0x4)+parseInt(f(0x1fd))/0x5*(-parseInt(f(0x1ff))/0x6)+-parseInt(f(0x1f7))/0x7+-parseInt(f(0x200))/0x8+parseInt(f(0x1f6))/0x9+parseInt(f(0x1fc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x96576));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x1f9)]()[h(0x1f8)](h(0x1fe))[h(0x1f9)]()[h(0x1f2)](a1a)[h(0x1f8)](h(0x1fe));});a1a();import'./aws/_index.js';import'./set/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1f2;var f=c[d];return f;},a1d(a,b);}import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.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';function a1c(){var i=['144114bKeQSH','8824365NocubB','1562771TmBfvV','search','toString','4TUYEHM','950086bXzORW','6949580mJhBBh','185vdMjXG','(((.+)+)+)+$','192558IubcqM','5176600aCOBVd','constructor','2RbnCDb','apply'];a1c=function(){return i;};return a1c();}import'./ai.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a2c(){const
|
|
1
|
+
const a2m=a2d;function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0xa8;let f=c[d];return f;},a2d(a,b);}(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0xb6))/0x1*(-parseInt(h(0xb8))/0x2)+parseInt(h(0xcf))/0x3*(-parseInt(h(0xc5))/0x4)+-parseInt(h(0xb7))/0x5+parseInt(h(0xaa))/0x6+-parseInt(h(0xb5))/0x7+-parseInt(h(0xa9))/0x8*(-parseInt(h(0xb4))/0x9)+parseInt(h(0xcb))/0xa*(parseInt(h(0xc6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xee475));function a2c(){const o=['createInterface','isFile','2947616rcrflA','8661840SyFGZU','openapikey','data','error','exit','create','constructor','log','toString','notice','18wXGNKT','5015892IlaJhx','1wDFDbR','4402010NVIOXs','690218LPLCUC','trim','(((.+)+)+)+$','getGlobalConfig','openai','stdin','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','You:\x20','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','search','askGPT','cacert','message','16WfWtXx','3608WxyYRy','cert','text','close','Using\x20CA\x20Cert\x20','78020rPiFCD','parse','apply','GPT:\x20','1366158EdkMVN','fsi','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json'];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(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0xb2)]()['search'](j(0xba))[j(0xb2)]()[j(0xb0)](a2a)[j(0xc1)](j(0xba));});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(0xd2)]({'input':process[k(0xbd)],'output':process['stdout']});c['question'](k(0xbf),async d=>{const l=k;if(d['toLowerCase']()===l(0xae)){c[l(0xc9)]();return;}try{const e=await HTTPS[l(0xc2)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0xcc)](e[l(0xac)]);if(f['error'])throw new Error(f['error'][l(0xc4)]);console[l(0xb1)](l(0xce)+f?.['choices'][0x0]?.[l(0xc8)][l(0xb9)]());}catch(g){Log[l(0xad)](g),process[l(0xae)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0xaf)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':[a2m(0xc3),a2m(0xab)],'shortDesc':'ChatGPT\x20style\x20AI\x20interface'},async function(a,b){const n=a2m;try{let c='';b['cacert']&&(this[n(0xd0)][n(0xa8)](b[n(0xc3)])?(c=b['cacert'],Log[n(0xb3)](n(0xca)+c)):Log[n(0xad)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+c));const d=await this['fsi'][n(0xbb)]();if(d[n(0xc7)]){if(this[n(0xd0)][n(0xa8)](d[n(0xc7)]))c=d[n(0xc7)];else throw Log['error'](n(0xbe)+c);}let f='';if(b['openapikey'])f=b[n(0xab)],Log['notice']('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0xbc)])f=d['openai'];else throw Log['error'](n(0xd1));}console['log'](n(0xc0)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0xad)](g),process[n(0xae)](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(0xfe))/0x1*(parseInt(f(0x107))/0x2)+-parseInt(f(0x108))/0x3*(parseInt(f(0x101))/0x4)+parseInt(f(0x103))/0x5+-parseInt(f(0x100))/0x6+-parseInt(f(0x10a))/0x7+-parseInt(f(0xfc))/0x8*(parseInt(f(0x109))/0x9)+parseInt(f(0x102))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x7ccf5));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a[h(0x104)]()['search']('(((.+)+)+)+$')[h(0x104)]()[h(0xff)](a3a)[h(0x106)](h(0xfd));});a3a();import'./aws.command.js';import'./ci.sub.cmd.js';function a3c(){var i=['search','2130WXlylY','13305Zvstco','196299ZQWObu','3446933BzLjTa','112igWiTo','(((.+)+)+)+$','49FZLzAi','constructor','2211726cpYYDg','460xJjopY','13892810KnUBaD','4252720nIOZsH','toString','apply'];a3c=function(){return i;};return a3c();}import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dkp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xfc;var f=c[d];return f;},a3d(a,b);}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4i=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a4c(){const k=['search','20wQCSOF','apply','1RrfIAh','677982HBdEyn','maka\x20aws:<sub-command>','toString','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','16174310YFOkwH','(((.+)+)+)+$','1335388QjAxyc','8pkeDxK','create','4231803bazMXa','aws','Sub\x20Command\x20not\x20found','findSubCommand','1977143CqtuYV','411656Kkhrgo','runSubCommand','error','3482361VThbaI'];a4c=function(){return k;};return a4c();}const a4i=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x169;let f=c[d];return f;},a4d(a,b);}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=-parseInt(f(0x16d))/0x1*(-parseInt(f(0x174))/0x2)+-parseInt(f(0x177))/0x3+parseInt(f(0x17c))/0x4+parseInt(f(0x16b))/0x5*(parseInt(f(0x16e))/0x6)+-parseInt(f(0x17b))/0x7+parseInt(f(0x175))/0x8*(-parseInt(f(0x169))/0x9)+parseInt(f(0x172))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xb98f0));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0x170)]()[h(0x16a)](h(0x173))[h(0x170)]()['constructor'](a4a)['search'](h(0x173));});a4a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a4i(0x176)]({'name':a4i(0x178),'usage':a4i(0x16f),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a4i(0x171),'description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x0a\x20\x20This\x20command\x20currently\x20requires\x20AWS\x20CLI\x20to\x20be\x20installed.\x0a\x20\x20https://aws.amazon.com/cli/\x0a\x20\x20'},async function(a,b){const j=a4i,c=a[0x0],d=this[j(0x17a)](c);if(d)this[j(0x17d)](c,a,b);else{Log[j(0x17e)](j(0x179));throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5k=a5d;(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
const a5k=a5d;function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x85;let f=c[d];return f;},a5d(a,b);}(function(a,b){const i=a5d,c=a();while(!![]){try{const d=-parseInt(i(0x8f))/0x1+-parseInt(i(0x89))/0x2+parseInt(i(0x9a))/0x3+parseInt(i(0x87))/0x4+-parseInt(i(0x98))/0x5+parseInt(i(0x88))/0x6*(-parseInt(i(0x94))/0x7)+parseInt(i(0x9b))/0x8*(parseInt(i(0x97))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x83a6d));const a5b=(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;};}()),a5a=a5b(this,function(){const j=a5d;return a5a[j(0x8e)]()[j(0x85)](j(0x91))['toString']()['constructor'](a5a)[j(0x85)](j(0x91));});function a5c(){const m=['maka\x20aws:create-hosted-zone','10411587jXFmps','3328520ZpiTON','domain','2210664DvrbGG','8VcupcK','create','linkEC2ToRoute53','create-hosted-zone','search','chooseInstance','1293332Vxkpwt','36YFSblp','484030iZqNGD','chz','error','Set\x20hosted\x20zone\x20to\x20an\x20instance?','exit','toString','666072uLePly','Instance\x20not\x20found','(((.+)+)+)+$','confirm','publicIp','121366FWVHRQ','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address'];a5c=function(){return m;};return a5c();}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5k(0x9c)]({'name':a5k(0x9e),'aliases':[a5k(0x8a)],'usage':a5k(0x96),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','examples':['maka\x20aws:create-hosted-zone\x20--domain=example.com','maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const l=a5k;try{const c=b[l(0x99)],d=new AWS();d['route53CreateHostedZone'](c);const f=await Actions[l(0x92)](l(0x8c));if(f){const g=await d[l(0x86)]();if(g?.['id']){if(!g[l(0x93)])throw Log[l(0x8b)](l(0x95));d[l(0x9d)](g['id'],g[l(0x93)],c);}else throw Log[l(0x8b)](l(0x90));}}catch(h){console[l(0x8b)](h),process[l(0x8d)](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a6ag=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0x22b))/0x1+parseInt(ae(0x1f4))/0x2+-parseInt(ae(0x21b))/0x3+parseInt(ae(0x221))/0x4*(parseInt(ae(0x205))/0x5)+-parseInt(ae(0x21d))/0x6+-parseInt(ae(0x212))/0x7*(parseInt(ae(0x22e))/0x8)+parseInt(ae(0x1ec))/0x9*(parseInt(ae(0x1d8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe4a47));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 af=a6d;return a6a[af(0x203)]()[af(0x1f5)](af(0x1f8))['toString']()[af(0x1e7)](a6a)['search']('(((.+)+)+)+$');});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a6d(a,b);}import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';function a6c(){const at=['Instace\x20Type:\x20','**\x20Available\x20Security\x20Groups\x20**','split','Setting\x20the\x20key-pair\x20to:\x20','confirm','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','error','subnet','Create\x20new\x20AWS\x20instance','1616449QsrqQh','Please\x20choose\x20a\x20key\x20to\x20use:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','856sNCpJo','create','getTime','\x20:\x20','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','ec2describeKeys','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','cidr','Remove\x20the\x20security\x20group\x20','Setting\x20Subnet\x20ID\x20to\x20','**\x20Available\x20AMIs\x20**','number','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Would\x20you\x20like\x20to\x20include\x20user\x20data?','user-data','createFile','unlinkSync','\x20AZONE:\x20','101440IXKlBb','string','Creating\x20user\x20data\x20file\x20in\x20','Setting\x20AMI\x20ID\x20to\x20','sgId','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','User\x20Data:','\x20CIDR:\x20','deleteSecurityGroup','ImageID:','subnetId','Remove\x20the\x20keypair\x20','Key-Pair:\x20','success','constructor','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','notice','ID:\x20','createKeyPair','2493Vzbcip','\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','ec2create','Name','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Instance\x20Count:\x20','t3.micro','EC2\x20Name:\x20[','2558118JdCDgh','search','push','env','(((.+)+)+)+$','alias','Desc','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x20SG\x20NAME:\x20','desc','maka\x20aws:ci\x20--env\x20prod','cider','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','ask','**\x20Available\x20key-pairs\x20**','toString','getConfigPath','5upYADr','Setting\x20SG\x20ID\x20to:\x20','amazon','join','Web\x20App','ec2createSG','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','bright','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Subnet:\x20','log','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','forEach','735XwAJCl','amiId','fsi','getProjectConfig','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','chooseVPC','sort','parse','\x20DESCRIPTION:\x20','5397759fmHgaS','name','546078rYxWHA','readFileSync','1:1','maka-cli','1462088RWqipn'];a6c=function(){return at;};return a6c();}Command[a6ag(0x22f)]({'name':'create-instance','aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':['maka\x20aws:create-instance\x20--env\x20dev',a6ag(0x1fe)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ag(0x1f7)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a6ag(0x22a),'description':a6ag(0x1ed)},async function(a,b){const ah=a6ag;try{const c=this[ah(0x214)][ah(0x215)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi']['getConfigFromShorthand'](b[ah(0x1f7)]),i=this[ah(0x214)][ah(0x204)](h),j=g+'-'+h,k=await Actions['ask'](ah(0x1f3)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ah(0x226)](ah(0x216),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ah(0x1eb)]({'env':h});r=y,s=z,Log[ah(0x1e6)](ah(0x225)+r);}else try{Log[ah(0x1e9)](ah(0x202));const A=r?r:k,B=await d[ah(0x234)]({'suggestion':A}),C=await Actions[ah(0x201)](ah(0x22c))||'-1';if(parseInt(C)<0x0){Log[ah(0x228)](ah(0x232)),Log[ah(0x1e9)]('No\x20instance\x20has\x20been\x20created.');return;}B?.['forEach'](function(D){const ai=ah;parseInt(C)===D['id']&&(r=D[ai(0x21c)],Log[ai(0x1e6)](ai(0x225)+r));});}catch(D){Log[ah(0x228)](D);}l=await d['chooseVPC']();const t=await Actions[ah(0x226)](ah(0x22d),!![]);let u;if(t){const E=l===''?await d[ah(0x217)]():l;u=await Actions[ah(0x201)]('Security\x20Group\x20Name:\x20['+k+']')||k;const F=await Actions['ask'](ah(0x1d2))||'22,80,443',G=F[ah(0x224)](',');await d[ah(0x20a)]({'description':ah(0x209),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d['getSecurityGroups'](u);if(I===''){Log[ah(0x1e9)](ah(0x223)),J['forEach'](function(L){const aj=ah;L[aj(0x21c)]===u?Log[aj(0x1e9)]('ID:\x20'+L['id']+aj(0x1fc)+L[aj(0x21c)]+'\x20SGID:\x20'+L[aj(0x1dc)]):Log[aj(0x20c)](aj(0x1ea)+L['id']+'\x20SG\x20NAME:\x20'+L[aj(0x21c)]+'\x20SGID:\x20'+L[aj(0x1dc)]);});const K=await Actions[ah(0x201)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H['toString']();J['forEach'](function(L){const ak=ah;L['id']===parseInt(K)&&(m=L[ak(0x1dc)],Log[ak(0x1e6)](ak(0x206)+m+'\x0a'));});}else m=I,Log[ah(0x1e6)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');if(m==='')throw Log['error'](ah(0x1f0));}catch(L){Log[ah(0x228)](L);}try{const M=0x7e6;Log[ah(0x1e9)](ah(0x1d0));const N=execSync(ah(0x1dd)+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(0x203)](),O=JSON[ah(0x219)](N),P=[],Q=[];O[ah(0x211)](function(S){const al=ah;if(S[al(0x1f9)]===al(0x207)){const T=S[al(0x1fa)][al(0x224)]('build\x20on\x20')[0x1];P[al(0x1f6)]({'amiId':S['ID'],'desc':S[al(0x1fa)],'date':T});}}),P[ah(0x218)](function(S,T){const am=ah;return new Date(T['date'])[am(0x230)]()-new Date(S['date'])[am(0x230)]();}),P['forEach'](function(S,T){const an=ah;Q[an(0x1f6)]({'id':T,'amiId':S['amiId'],'desc':S[an(0x1fd)]});}),Q[ah(0x211)](function(S){const ao=ah;console['log'](ao(0x1ea)+S['id']+'\x20AMIID:\x20'+S[ao(0x213)]+ao(0x21a)+S[ao(0x1fd)]);});const R=await Actions[ah(0x201)](ah(0x200))||'0';Q[ah(0x211)](function(S){const ap=ah;S['id']===parseInt(R)&&(n=S['amiId'],Log[ap(0x1e6)](ap(0x1db)+n+ap(0x231)+S[ap(0x1fd)]));});if(n==='')throw Log[ah(0x228)](ah(0x1f0));}catch(S){Log['error'](S);}try{Log[ah(0x1e9)]('**\x20Available\x20Subnets\x20**');const T=execSync(ah(0x1e8))[ah(0x203)](),U=JSON[ah(0x219)](T),V=[];U['forEach'](function(X,Y){const aq=ah;V[aq(0x1f6)]({'id':Y,'cidr':X[aq(0x1ff)],'az':X['az'],'subnetId':X[aq(0x1e3)]});}),V[ah(0x211)](function(X){const ar=ah;console['log'](ar(0x1ea)+X['id']+ar(0x1e0)+X[ar(0x1cd)]+ar(0x1d7)+X['az']+'\x20SUBNETID:\x20'+X[ar(0x1e3)]);});const W=await Actions[ah(0x201)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0';V[ah(0x211)](function(X){const as=ah;X['id']===parseInt(W)&&(p=X[as(0x1e3)],Log[as(0x1e6)](as(0x1cf)+p));});if(p==='')throw Log[ah(0x228)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(X){Log[ah(0x228)](X);}const v=0x1,w=0x1;try{const Y=await Actions['ask'](ah(0x227))||ah(0x21f),Z=Y[ah(0x224)](':')[0x0],a0=Y[ah(0x224)](':')[0x1];typeof parseInt(Z)===ah(0x1d1)&&typeof parseInt(a0)===ah(0x1d1)&&Log['success'](ah(0x233)+Z+':'+a0);}catch(a1){Log['error'](a1);}try{const a2=await Actions[ah(0x201)](ah(0x20b))||ah(0x1f2);typeof a2===ah(0x1d9)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions[ah(0x226)](ah(0x1d3),![]);a4&&(x=a6f[ah(0x208)](i,ah(0x1d4)),Log[ah(0x1e9)](ah(0x1da)+x),await this[ah(0x214)][ah(0x1d5)]({'filePath':x,'data':''}),await Actions[ah(0x226)](ah(0x210)));}catch(a5){Log[ah(0x228)](a5);}try{const a6=JSON[ah(0x219)](execSync(ah(0x20d)+p+ah(0x1de))[ah(0x203)]())[0x0][ah(0x229)];Log[ah(0x1e9)](ah(0x1e2)+n),Log['notice'](ah(0x1f1)+v+':'+w),Log[ah(0x1e9)](ah(0x222)+o),Log[ah(0x1e9)](ah(0x1e5)+r),Log[ah(0x1e9)]('Security\x20Group:\x20'+m),Log[ah(0x1e9)](ah(0x20e)+a6);if(x){Log[ah(0x1e9)](ah(0x1df)+x);const a8=a6g[ah(0x21e)](x)[ah(0x203)]();Log[ah(0x1e9)](a8);}const a7=await Actions[ah(0x226)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){const a9=await d[ah(0x1ee)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':'created-by','Value':ah(0x220)},{'Key':'environment','Value':h},{'Key':ah(0x1ef),'Value':k}],...x&&{'userData':x}});a9&&(Log[ah(0x1e6)](ah(0x1fb)),Log[ah(0x20c)](ah(0x235)));}else{Log[ah(0x1e9)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');const aa=await Actions['confirm'](ah(0x1e4)+r+'\x20?',!![]);aa&&(d['deleteKeyPair'](r),f['isFile'](s)&&a6g[ah(0x1d6)](s));const ab=await Actions[ah(0x226)](ah(0x1ce)+m+'\x20?',!![]);ab&&d[ah(0x1e1)](m);}}catch(ac){console[ah(0x20f)](ac),Log[ah(0x228)](ac);}}catch(ad){console['error'](ad),process['exit'](0x0);}},a6e);
|
|
1
|
+
function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xa3;let f=c[d];return f;},a6d(a,b);}const a6ah=a6d;(function(a,b){const ae=a6d,c=a();while(!![]){try{const d=-parseInt(ae(0xf8))/0x1*(parseInt(ae(0xbc))/0x2)+parseInt(ae(0x102))/0x3+-parseInt(ae(0xe1))/0x4+-parseInt(ae(0xdf))/0x5*(-parseInt(ae(0x107))/0x6)+-parseInt(ae(0xc2))/0x7*(-parseInt(ae(0xfb))/0x8)+-parseInt(ae(0xa7))/0x9*(-parseInt(ae(0xc1))/0xa)+parseInt(ae(0xd3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xba9ed));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const af=a6d;if(c){const e=c[af(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const ag=a6d;return a6a[ag(0xdd)]()[ag(0xc7)](ag(0xbd))['toString']()[ag(0xfd)](a6a)[ag(0xc7)](ag(0xbd));});a6a();import a6e from'./aws.command.js';import{execSync}from'child_process';import a6f from'path';import a6g 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[a6ah(0x10e)]({'name':a6ah(0xae),'aliases':['ci'],'usage':'maka\x20aws:create-instance','examples':[a6ah(0xbb),a6ah(0xfe)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a6ah(0xcc)}],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20new\x20AWS\x20instance','description':a6ah(0xdb)},async function(a,b){const ai=a6ah;try{const c=this['fsi'][ai(0xa8)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[ai(0xc9)][ai(0xd5)](b['env']),i=this[ai(0xc9)][ai(0xff)](h),j=g+'-'+h,k=await Actions[ai(0xf2)]('EC2\x20Name:\x20['+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[ai(0xf4)](ai(0xee),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[ai(0xaf)]({'env':h});r=y,s=z,Log['success'](ai(0x10b)+r);}else try{Log['notice'](ai(0xc8));const A=r?r:k,B=await d['ec2describeKeys']({'suggestion':A}),C=await Actions[ai(0xf2)](ai(0xec))||'-1';if(parseInt(C)<0x0){Log[ai(0xd2)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log['notice'](ai(0xb2));return;}B?.['forEach'](function(D){const aj=ai;parseInt(C)===D['id']&&(r=D[aj(0xd1)],Log[aj(0xa9)]('Setting\x20the\x20key-pair\x20to:\x20'+r));});}catch(D){Log[ai(0xd2)](D);}l=await d[ai(0xef)]();const t=await Actions['confirm'](ai(0x106),!![]);let u;if(t){const E=l===''?await d[ai(0xef)]():l;u=await Actions[ai(0xf2)](ai(0x108)+k+']')||k;const F=await Actions[ai(0xf2)](ai(0xf9))||ai(0x10d),G=F[ai(0x101)](',');await d[ai(0xb3)]({'description':ai(0xb4),'name':u,'vpcId':E,'sgPorts':G});}u=k;try{const {listIndexId:H,createdSgId:I,sgList:J}=await d[ai(0xe0)](u);if(I===''){Log['notice'](ai(0xcb)),J[ai(0xbf)](function(L){const ak=ai;L[ak(0xd1)]===u?Log[ak(0xe9)](ak(0x109)+L['id']+ak(0xe5)+L[ak(0xd1)]+ak(0xf1)+L[ak(0xed)]):Log[ak(0xc6)](ak(0x109)+L['id']+ak(0xe5)+L['name']+ak(0xf1)+L[ak(0xed)]);});const K=await Actions['ask']('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20['+H+']\x20')||H['toString']();J[ai(0xbf)](function(L){const al=ai;L['id']===parseInt(K)&&(m=L['sgId'],Log[al(0xa9)](al(0xc5)+m+'\x0a'));});}else m=I,Log['success'](ai(0xc5)+m+'\x0a');if(m==='')throw Log[ai(0xd2)](ai(0x10f));}catch(L){Log[ai(0xd2)](L);}try{const M=0x7e6;Log[ai(0xe9)]('**\x20Available\x20AMIs\x20**');const N=execSync(ai(0xad)+M+ai(0xf0))[ai(0xdd)](),O=JSON['parse'](N),P=[],Q=[];O[ai(0xbf)](function(S){const am=ai;if(S['alias']==='amazon'){const T=S[am(0xda)][am(0x101)](am(0xba))[0x1];P[am(0x10a)]({'amiId':S['ID'],'desc':S[am(0xda)],'date':T});}}),P[ai(0xd0)](function(S,T){const an=ai;return new Date(T[an(0xb6)])[an(0xb5)]()-new Date(S['date'])[an(0xb5)]();}),P[ai(0xbf)](function(S,T){const ao=ai;Q['push']({'id':T,'amiId':S[ao(0xbe)],'desc':S[ao(0xa3)]});}),Q[ai(0xbf)](function(S){const ap=ai;console[ap(0xd7)](ap(0x109)+S['id']+ap(0xfc)+S['amiId']+'\x20DESCRIPTION:\x20'+S['desc']);});const R=await Actions['ask'](ai(0xb7))||'0';Q[ai(0xbf)](function(S){const aq=ai;S['id']===parseInt(R)&&(n=S[aq(0xbe)],Log[aq(0xa9)]('Setting\x20AMI\x20ID\x20to\x20'+n+aq(0xe3)+S[aq(0xa3)]));});if(n==='')throw Log[ai(0xd2)](ai(0x10f));}catch(S){Log[ai(0xd2)](S);}try{Log[ai(0xe9)](ai(0xa5));const T=execSync(ai(0xab))[ai(0xdd)](),U=JSON[ai(0xdc)](T),V=[];U['forEach'](function(X,Y){const ar=ai;V[ar(0x10a)]({'id':Y,'cidr':X[ar(0x110)],'az':X['az'],'subnetId':X[ar(0xca)]});}),V[ai(0xbf)](function(X){const as=ai;console['log'](as(0x109)+X['id']+'\x20CIDR:\x20'+X['cidr']+as(0xe2)+X['az']+as(0xb1)+X['subnetId']);});const W=await Actions[ai(0xf2)](ai(0xeb))||'0';V[ai(0xbf)](function(X){const at=ai;X['id']===parseInt(W)&&(p=X['subnetId'],Log['success'](at(0xb8)+p));});if(p==='')throw Log[ai(0xd2)](ai(0x10f));}catch(X){Log['error'](X);}const v=0x1,w=0x1;try{const Y=await Actions[ai(0xf2)](ai(0xc4))||'1:1',Z=Y[ai(0x101)](':')[0x0],a0=Y[ai(0x101)](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ai(0x10c)&&Log[ai(0xa9)](ai(0xd9)+Z+':'+a0);}catch(a1){Log[ai(0xd2)](a1);}try{const a2=await Actions['ask'](ai(0xf7))||ai(0xa6);typeof a2===ai(0xaa)&&(o=a2);}catch(a3){Log['error'](a3);}let x='';try{const a4=await Actions['confirm']('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);a4&&(x=a6f[ai(0xf6)](i,ai(0xcf)),Log[ai(0xe9)](ai(0x104)+x),await this['fsi']['createFile']({'filePath':x,'data':''}),await Actions['confirm']('Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?'));}catch(a5){Log[ai(0xd2)](a5);}try{const a6=JSON[ai(0xdc)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+ai(0xb9))['toString']())[0x0][ai(0xb0)];Log[ai(0xe9)]('ImageID:'+n),Log[ai(0xe9)](ai(0xd4)+v+':'+w),Log[ai(0xe9)](ai(0xe8)+o),Log[ai(0xe9)](ai(0xce)+r),Log[ai(0xe9)]('Security\x20Group:\x20'+m),Log[ai(0xe9)](ai(0xe7)+a6);if(x){Log[ai(0xe9)](ai(0xcd)+x);const a8=a6g[ai(0xa4)](x)[ai(0xdd)]();Log['notice'](a8);}const a7=await Actions[ai(0xf4)](ai(0xea));if(a7){const a9=await d[ai(0xac)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':ai(0x105),'Value':ai(0x103)},{'Key':ai(0xe6),'Value':h},{'Key':ai(0xfa),'Value':k}],...x&&{'userData':x}});a9&&(Log[ai(0xa9)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ai(0xc6)](ai(0xd8)));}else{Log[ai(0xe9)](ai(0xf3));const aa=await Actions[ai(0xf4)](ai(0xe4)+r+'\x20?',!![]);aa&&(d[ai(0xc0)](r),f['isFile'](s)&&a6g[ai(0xde)](s));const ab=await Actions['confirm'](ai(0xd6)+m+'\x20?',!![]);ab&&d[ai(0xf5)](m);}}catch(ac){console[ai(0xd7)](ac),Log['error'](ac);}}catch(ad){console[ai(0xd2)](ad),process[ai(0x100)](0x0);}},a6e);function a6c(){const au=['error','12116456BpqOhn','Instance\x20Count:\x20','getConfigFromShorthand','Remove\x20the\x20security\x20group\x20','log','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Desc','\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','parse','toString','unlinkSync','5gZKSDf','getSecurityGroups','4166768lmbzZQ','\x20AZONE:\x20','\x20:\x20','Remove\x20the\x20keypair\x20','\x20SG\x20NAME:\x20','environment','Subnet:\x20','Instace\x20Type:\x20','notice','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','sgId','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','chooseVPC','*\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','\x20SGID:\x20','ask','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','confirm','deleteSecurityGroup','join','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','1KIpfpK','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','Name','6856dyMECB','\x20AMIID:\x20','constructor','maka\x20aws:ci\x20--env\x20prod','getConfigPath','exit','split','3090678PlvvUV','maka-cli','Creating\x20user\x20data\x20file\x20in\x20','created-by','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','881526hdnMng','Security\x20Group\x20Name:\x20[','ID:\x20','push','Setting\x20the\x20key-pair\x20to:\x20','number','22,80,443','create','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','cider','desc','readFileSync','**\x20Available\x20Subnets\x20**','t3.micro','18hhZOdQ','getProjectConfig','success','string','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','ec2create','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=*','create-instance','createKeyPair','subnet','\x20SUBNETID:\x20','No\x20instance\x20has\x20been\x20created.','ec2createSG','Web\x20App','getTime','date','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Setting\x20Subnet\x20ID\x20to\x20','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','build\x20on\x20','maka\x20aws:create-instance\x20--env\x20dev','2912242iwnmFw','(((.+)+)+)+$','amiId','forEach','deleteKeyPair','1725510HDYPyQ','5215Khrrza','apply','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Setting\x20SG\x20ID\x20to:\x20','bright','search','**\x20Available\x20key-pairs\x20**','fsi','subnetId','**\x20Available\x20Security\x20Groups\x20**','env','User\x20Data:','Key-Pair:\x20','user-data','sort','name'];a6c=function(){return au;};return a6c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a7j=a7d;(function(a,b){const g=a7d,c=a();while(!![]){try{const d
|
|
1
|
+
const a7j=a7d;function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a7d(a,b);}(function(a,b){const g=a7d,c=a();while(!![]){try{const d=parseInt(g(0x1c6))/0x1+-parseInt(g(0x1cd))/0x2+parseInt(g(0x1c2))/0x3*(parseInt(g(0x1c5))/0x4)+-parseInt(g(0x1ca))/0x5*(-parseInt(g(0x1cf))/0x6)+-parseInt(g(0x1c9))/0x7+parseInt(g(0x1c8))/0x8+-parseInt(g(0x1d2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xe311e));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a7d;if(c){const e=c[h(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const i=a7d;return a7a[i(0x1d7)]()[i(0x1d0)](i(0x1d3))[i(0x1d7)]()[i(0x1d1)](a7a)['search']('(((.+)+)+)+$');});function a7c(){const l=['env','297zTdVQH','apply','exit','62772OdgLRT','1096206ssGqcq','ckp','8016920JrQfam','5498556VLBVYy','2110585FfOhHg','maka\x20aws:create-key-pair\x20--env\x20prod','createKeyPair','2690992XnURza','getConfigFromShorthand','18IapDjC','search','constructor','16714773ADxhaL','(((.+)+)+)+$','fsi','error','maka\x20aws:ckp\x20--env\x20prod','toString'];a7c=function(){return l;};return a7c();}a7a();import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'create-key-pair','aliases':[a7j(0x1c7)],'usage':'maka\x20aws:create-key-pair','examples':[a7j(0x1cb),a7j(0x1d6)],'mustBeInMakaProject':!![],'requiredOpts':[a7j(0x1d8)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','description':'\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20'},async function(a,b){const k=a7j;try{const c=new AWS(),d=this[k(0x1d4)][k(0x1ce)](b[k(0x1d8)]);c[k(0x1cc)]({'env':d});}catch(f){console[k(0x1d5)](f),process[k(0x1c4)](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a8o=a8d;(function(a,b){const m=a8d,c=a();while(!![]){try{const d=-parseInt(m(0x15d))/0x1+-parseInt(m(0x15c))/0x2+-parseInt(m(0x154))/0x3*(parseInt(m(0x163))/0x4)+parseInt(m(0x153))/0x5+-parseInt(m(0x166))/0x6*(parseInt(m(0x169))/0x7)+-parseInt(m(0x158))/0x8*(-parseInt(m(0x161))/0x9)+parseInt(m(0x157))/0xa*(parseInt(m(0x168))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xd4896));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 n=a8d;return a8a[n(0x160)]()['search'](n(0x155))['toString']()[n(0x152)](a8a)['search'](n(0x155));});a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a8c(){const r=['maka\x20aws\x20create-security-group','toString','9MGcMXK','maka\x20aws:csg','4VlCLrc','split','List\x20is\x20not\x20all\x20numbers','54pYlNpy','create-security-group','9058247iNioUe','308658sBONBn','csg','create','maka\x20aws:create-secuirty-group','22,80,443','name','Web\x20App','match','constructor','2597040NFuKEh','120762UUFFYM','(((.+)+)+)+$','fsi','10dGnmAu','13110224LugDxK','error','forEach','Security\x20Group\x20Name:\x20[','2582692yTyKKq','382667uKeQgv','ask'];a8c=function(){return r;};return a8c();}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x150;let f=c[d];return f;},a8d(a,b);}Command[a8o(0x16b)]({'name':a8o(0x167),'aliases':[a8o(0x16a)],'usage':a8o(0x15f),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'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':[a8o(0x16c),a8o(0x162)]},async function(a,b){const p=a8o;try{const c=new AWS(),d=this[p(0x156)]['getProjectConfig'](),{appName:f}=d,g=await c['chooseVPC'](),h=b[p(0x16e)]?b[p(0x16e)]:''+f,i=await Actions[p(0x15e)](p(0x15b)+h+']')||h,j=await Actions[p(0x15e)]('Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20')||p(0x16d),k=j[p(0x164)](',');k[p(0x15a)](l=>{const q=p;if(!l[q(0x151)](/^\d+$/))throw q(0x165);}),await c['ec2createSG']({'description':p(0x150),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[p(0x159)](l),process['exit'](0x1);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d
|
|
1
|
+
const a9i=a9d;(function(a,b){const f=a9d,c=a();while(!![]){try{const d=parseInt(f(0x1ae))/0x1*(parseInt(f(0x1c1))/0x2)+parseInt(f(0x1bd))/0x3+parseInt(f(0x1b3))/0x4+-parseInt(f(0x1b0))/0x5+parseInt(f(0x1b2))/0x6*(parseInt(f(0x1b5))/0x7)+-parseInt(f(0x1ad))/0x8*(parseInt(f(0x1af))/0x9)+-parseInt(f(0x1b7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe1578));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a9d;if(c){const e=c[g(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const h=a9d;return a9a[h(0x1be)]()[h(0x1b9)](h(0x1b6))[h(0x1be)]()[h(0x1bf)](a9a)[h(0x1b9)]('(((.+)+)+)+$');});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a9d(a,b);}function a9c(){const k=['3930332yecGOI','describe-instances','7RavaRO','(((.+)+)+)+$','14763460gFiqxg','apply','search','maka\x20aws:describe-instances','create','\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','3558936VCtfai','toString','constructor','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','2970042oiiSxk','maka\x20aws:di','16VUvgTo','1WUqowj','897912cBOVTd','7324675sMrKQL','ec2describeInstances','2459406YeTeRa'];a9c=function(){return k;};return a9c();}Command[a9i(0x1bb)]({'name':a9i(0x1b4),'aliases':['di'],'usage':a9i(0x1ba),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a9i(0x1c0),'examples':[a9i(0x1ba),a9i(0x1ac)],'description':a9i(0x1bc)},async function(){const j=a9i;try{const a=new AWS();a[j(0x1b1)]();}catch(b){console['error'](b),process['exit'](0x0);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a10i=a10d;function a10c(){const k=['describe-key-pairs','maka\x20aws:dkp','toString','31870AoJQmF','918386OtAvNp','2759682cVSzgb','8qfUQyj','5560788bKbjMz','4642CPlydS','constructor','create','(((.+)+)+)+$','16TrRimW','exit','error','15VXGoMA','13211829diRpXd','3UVQDiu','apply','56660GYMEHT','52482792qmONgi','dkp','ec2describeKeys','maka\x20aws:describe-key-pairs','search'];a10c=function(){return k;};return a10c();}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=parseInt(f(0x1b5))/0x1*(-parseInt(f(0x1bc))/0x2)+parseInt(f(0x1ba))/0x3*(parseInt(f(0x1b0))/0x4)+-parseInt(f(0x1b8))/0x5*(parseInt(f(0x1ae))/0x6)+-parseInt(f(0x1ad))/0x7*(parseInt(f(0x1af))/0x8)+-parseInt(f(0x1b9))/0x9+parseInt(f(0x1ac))/0xa*(-parseInt(f(0x1b1))/0xb)+parseInt(f(0x1a4))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xf0db5));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a['toString']()['search'](h(0x1b4))[h(0x1ab)]()[h(0x1b2)](a10a)[h(0x1a8)]('(((.+)+)+)+$');});a10a();import a10e from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a10i(0x1b3)]({'name':a10i(0x1a9),'aliases':[a10i(0x1a5)],'usage':a10i(0x1a7),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','examples':['maka\x20aws:describe-key-pairs',a10i(0x1aa)]},async function(){const j=a10i;try{const a=new AWS();a[j(0x1a6)]();}catch(b){console[j(0x1b7)](b),process[j(0x1b6)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a11n=a11d;(function(a,b){const l=a11d,c=a();while(!![]){try{const d=-parseInt(l(0x75))/0x1+-parseInt(l(0x93))/0x2+-parseInt(l(0x74))/0x3*(parseInt(l(0x8d))/0x4)+parseInt(l(0x88))/0x5+parseInt(l(0x95))/0x6+-parseInt(l(0x84))/0x7+parseInt(l(0x7e))/0x8*(parseInt(l(0x8f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xf3013));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const m=a11d;return a11a[m(0x90)]()[m(0x94)](m(0x8c))['toString']()[m(0x77)](a11a)[m(0x94)](m(0x8c));});a11a();import a11e 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';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x74;let f=c[d];return f;},a11d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11c(){const r=['2890360lhGLVC','bright','18rWVLBb','toString','maka\x20aws:delete-sg','\x20SGID:\x20','1290422YsgAcq','search','6048732gsClJU','error','dsg','delete-security-group','appName','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','3tEnExd','785752NYPdgF','includes','constructor','Deleting\x20a\x20','create','deleteSecurityGroup','getSecurityGroups','forEach','notice','10927112nhczIX','sgId','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','success','ID:\x20','isMakaProject','9453031EaScQX','maka\x20aws:dsg','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','3797165JGffXM','exit','name','\x20SG\x20NAME:\x20','(((.+)+)+)+$'];a11c=function(){return r;};return a11c();}Command[a11n(0x79)]({'name':a11n(0x98),'aliases':[a11n(0x97)],'usage':a11n(0x91),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11n(0x86),'examples':['maka\x20aws:delete-sg',a11n(0x85)]},async function(){const o=a11n;try{const a=new AWS(),b=new FSI(),c=b[o(0x83)]();let d='';if(c){const j=b['getProjectConfig']();d=j[o(0x99)];}const {sgList:f}=await a[o(0x7b)]();f[o(0x7c)](function(k){const p=o;c&&k[p(0x8a)][p(0x76)](d)?Log[p(0x7d)](p(0x82)+k['id']+p(0x8b)+k[p(0x8a)]+p(0x92)+k['sgId']):Log[p(0x8e)](p(0x82)+k['id']+p(0x8b)+k[p(0x8a)]+p(0x92)+k[p(0x7f)]);});let g='';const h=await Actions['ask'](o(0x80));f[o(0x7c)](function(k){const q=o;k['id']===parseInt(h)&&(g=k[q(0x7f)]);});if(!g)throw Log[o(0x96)](o(0x9a));const i=await Actions['confirm'](o(0x78)+g+o(0x87),![]);i?(await a[o(0x7a)](g),Log[o(0x81)]('Deleted\x20'+g)):Log['error']('Not\x20deleting\x20secuirty\x20group'),process[o(0x89)](0x0);}catch(k){process[o(0x89)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-
|
|
1
|
+
const a12i=a12d;function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x8f;let f=c[d];return f;},a12d(a,b);}(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x97))/0x1*(-parseInt(f(0xa1))/0x2)+-parseInt(f(0x92))/0x3*(parseInt(f(0x8f))/0x4)+parseInt(f(0x90))/0x5+-parseInt(f(0x96))/0x6*(parseInt(f(0xa4))/0x7)+-parseInt(f(0xa7))/0x8+parseInt(f(0x9b))/0x9*(-parseInt(f(0x9c))/0xa)+parseInt(f(0xa6))/0xb*(parseInt(f(0x94))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xa3b2d));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a[h(0x9a)]()['search']('(((.+)+)+)+$')[h(0x9a)]()[h(0x9e)](a12a)[h(0x95)](h(0x98));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a12i(0xa8),'aliases':[a12i(0x99)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12i(0xa0),'examples':['maka\x20aws:reboot-instance','maka\x20aws:rbi']},async function(){const j=a12i;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[j(0x93)]==='running'){const c=await Actions['confirm'](j(0xa2)+b['name']+'\x20Ready?');c&&b['instanceId']?a[j(0xa3)]({'instanceId':b[j(0x91)]}):Log[j(0x9d)](j(0xa5)+b['name']+'\x20is\x20still\x20running.');}else Log[j(0x9d)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[j(0x9d)](d),process['exit'](0x0);}},a12e);function a12c(){const k=['ec2rebootInstance','84532PZNyqE','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','11rXZHbl','3734824CVkAAc','reboot-instance','2956EEXpqQ','5800015XYdGxK','instanceId','4245mezuyJ','status','37109916brFFgW','search','216qOKrMV','49096QeTlUn','(((.+)+)+)+$','rbi','toString','9PtzmXF','12419450jDfINv','error','constructor','apply','Reboot\x20an\x20EC2\x20instance','16IcxLKM','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'];a12c=function(){return k;};return a12c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13H=a13d;(function(a,b){const E=a13d,c=a();while(!![]){try{const d=parseInt(E(0xcb))/0x1+parseInt(E(0xdf))/0x2+-parseInt(E(0xba))/0x3*(parseInt(E(0xe0))/0x4)+parseInt(E(0xb3))/0x5+parseInt(E(0xc8))/0x6*(parseInt(E(0xbd))/0x7)+parseInt(E(0xc9))/0x8+-parseInt(E(0xb4))/0x9*(-parseInt(E(0xdd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xa1810));function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0xae;let f=c[d];return f;},a13d(a,b);}const a13b=(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;};}()),a13a=a13b(this,function(){const F=a13d;return a13a[F(0xbc)]()['search'](F(0xcc))[F(0xbc)]()[F(0xb8)](a13a)[F(0xe5)](F(0xcc));});a13a();import a13e from'./aws.command.js';function a13c(){const J=['State\x20[HI]:\x20','Contact\x20Email\x20[mail@example.com]:\x20','constructor','OrganizationName','9BchpDM','confirm','toString','1568jkHUji','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','My\x20Comanpy,\x20LLC.','Country\x20Code\x20[US]:\x20','maka\x20aws:register-domain-name','Auto\x20Renew:\x20','mail@example.com','ASSOCIATION','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','checkDomainAvailability','5286FeFuQI','9149960VzEOGb','registerDomain','70736qauEWO','(((.+)+)+)+$','+1.5555555556','maka\x20aws:register-domain-name\x20--domain=example.com','\x20/\x20Year)','Domain\x20name\x20is\x20unavailable','Duration\x20in\x20years\x20[1]:\x20','notice','PUBLIC_BODY','\x20is\x20available\x20for:','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','+1.5555555555','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','domain','warn','Contact\x20First\x20Name\x20[Contact]:\x20','RESELLER','\x20years\x20(','30fZKeZy','register-domain-name','616914JIsUnR','1470340qYJarq','Choose\x20contact\x20type','Contact','Zip\x20Code\x20[96816]:\x20','Address\x20Line\x202:\x20','search','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Person','values','Contact\x20Last\x20Name\x20[Person]:\x20','Invalid\x202\x20character\x20country\x20code','includes','maka\x20aws:rdn\x20--domain=example.com','Are\x20you\x20sure?','exit','error','contactType','create','ask','176930MEHxDW','25821TmQkuU','123\x20Glorious\x20Way'];a13c=function(){return J;};return a13c();}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=a13d;return Object[G(0xe8)](CountryCode)[G(0xeb)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a13H(0xb1)]({'name':a13H(0xde),'aliases':['rdn'],'usage':a13H(0xc1),'requiredOpts':['domain'],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13H(0xd5),'examples':[a13H(0xce),a13H(0xec)]},async function(a,b){const I=a13H;try{const c=b[I(0xd8)],d=new AWS(),{available:f,cost:g}=await d[I(0xc7)](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+I(0xd4));const {Price:h,Currency:i}=g;Log[I(0xd9)]('\x20\x20'+h+'\x20'+i+'\x20/\x20Year\x20\x0a');const j=await Actions[I(0xbb)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':'list','name':I(0xb0),'message':I(0xe1),'choices':[I(0xc4),'COMPANY','PERSON',I(0xd3),I(0xdb)]},l=await Actions['ask'](I(0xd1))||'1',m=await Actions[I(0xb2)](I(0xda))||I(0xe2),n=await Actions[I(0xb2)](I(0xe9))||I(0xe7),{contactType:o}=await Actions['options'](k),p=await Actions[I(0xb2)](I(0xc6))||I(0xb5),q=await Actions[I(0xb2)](I(0xe4)),r=await Actions[I(0xb2)](I(0xe3))||'96816',s=await Actions['ask'](I(0xb6))||'HI',t=await Actions[I(0xb2)](I(0xc0))||'US',u=getCountryCodeEnum(t);if(!u)throw Log[I(0xaf)](I(0xea));const v=await Actions[I(0xb2)](I(0xd7))||I(0xd6),w=await Actions['ask'](I(0xbe))||I(0xcd),x=await Actions[I(0xb2)](I(0xb7))||I(0xc3),y=await Actions['confirm'](I(0xc2)),z={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':u,'AddressLine1':p,'AddressLine2':q,'ZipCode':r,'PhoneNumber':v,'Fax':w,'State':s,'Email':x};if(o!=='PERSON'){const C=await Actions[I(0xb2)](I(0xe6))||I(0xbf);z[I(0xb9)]=C;}const A=h||0x0*parseInt(l);Log[I(0xd2)](I(0xc5)),Log[I(0xd9)](A+'\x20'+i+'\x20for\x20'+l+I(0xdc)+h+'\x20'+i+I(0xcf));const B=await Actions[I(0xbb)](I(0xed));B&&await d[I(0xca)](z,c,parseInt(l),y);}}else throw Log[I(0xaf)](I(0xd0));}catch(D){console[I(0xaf)](D),process[I(0xae)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a14k=a14d;(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x13c;let f=c[d];return f;},a14d(a,b);}const a14k=a14d;function a14c(){const n=['1429992PSlKTB','toString','name','apply','1942ahOmBA','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','126xtrCHA','constructor','error','maka\x20aws:rkp','search','create','(((.+)+)+)+$','14yxhShk','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','deleteKeyPair','Deleting\x20a\x20','forEach','1041nkEtXi','641584mAJLRs','1636Wrxnib','success','9ZYgOSU','rkp','33NQTwQQ','2739610SrNLnY','1037770xUlEPT','575304ooRwGa','ask','exit'];a14c=function(){return n;};return a14c();}(function(a,b){const h=a14d,c=a();while(!![]){try{const d=-parseInt(h(0x142))/0x1*(parseInt(h(0x140))/0x2)+-parseInt(h(0x14e))/0x3*(-parseInt(h(0x150))/0x4)+parseInt(h(0x156))/0x5+parseInt(h(0x13c))/0x6+-parseInt(h(0x149))/0x7*(-parseInt(h(0x14f))/0x8)+-parseInt(h(0x152))/0x9*(parseInt(h(0x155))/0xa)+-parseInt(h(0x154))/0xb*(parseInt(h(0x157))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x32cc8));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a14d;if(c){const e=c[i(0x13f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const j=a14d;return a14a[j(0x13d)]()[j(0x146)](j(0x148))['toString']()[j(0x143)](a14a)['search'](j(0x148));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a14k(0x147)]({'name':'remove-key-pair','aliases':[a14k(0x153)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a14k(0x14a),'description':'\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':['maka\x20aws:remove-key-pair',a14k(0x145)]},async function(){const l=a14k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[l(0x158)]('Please\x20choose\x20a\x20key\x20to\x20delete:');b?.[l(0x14d)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x13e)]);});if(!c)throw Log[l(0x144)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const f=await Actions['confirm'](l(0x14c)+c+l(0x141),![]);f?(await a[l(0x14b)](c),Log[l(0x151)]('Deleted\x20'+c)):Log[l(0x144)]('Not\x20deleting\x20keypair'),process[l(0x159)](0x0);}catch(g){process[l(0x159)](0x1);}},a14e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15n=a15d;(function(a,b){const l=a15d,c=a();while(!![]){try{const d=-parseInt(l(0x1ac))/0x1*(parseInt(l(0x194))/0x2)+-parseInt(l(0x195))/0x3*(parseInt(l(0x1b4))/0x4)+-parseInt(l(0x18d))/0x5*(-parseInt(l(0x19a))/0x6)+parseInt(l(0x191))/0x7+-parseInt(l(0x1b2))/0x8+parseInt(l(0x1a7))/0x9+parseInt(l(0x190))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x4f2f7));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const m=a15d;return a15a[m(0x1b0)]()['search'](m(0x1a9))[m(0x1b0)]()[m(0x1ad)](a15a)['search'](m(0x1a9));});a15a();import a15e from'path';import a15f from'fs';function a15c(){const p=['maka\x20aws:sth\x20--env\x20prod','sep','error','45XJHhgw','public','utf8','4370440xeetMu','2702854KRFwIs','success','\x0aSaved\x20host\x20','14038gYFxBr','365133KqzsnR','writeFileSync','readFileSync','privateIp','getConfigPath','211458ZHGWzA','fsi','config/ssh.json','template','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','host','private','env','maka\x20aws\x20set-host','create','ssh.json','inherit','join','3436578LFIUsr','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','(((.+)+)+)+$','maka\x20aws:set-host\x20--env\x20dev','ask','67yDJqLE','constructor','getProjectConfig','\x20IP\x20to\x20','toString','chooseInstance','952192MPIPwj','set-host','20VErecb','publicIp','appName','isFile','\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'];a15c=function(){return p;};return a15c();}import{execSync}from'child_process';import a15g from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x18d;let f=c[d];return f;},a15d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a15n(0x1a3)]({'name':a15n(0x1b3),'aliases':['sth'],'usage':a15n(0x1a2),'mustBeInMakaProject':!![],'requiredOpts':[a15n(0x1a1)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a15n(0x1a8),'description':a15n(0x1b8),'examples':[a15n(0x1aa),a15n(0x1b9)]},async function(a,b){const o=a15n;try{const c=new AWS(),d=this[o(0x19b)][o(0x199)](b[o(0x1a1)]),f=this['fsi'][o(0x1ae)](),g=await c[o(0x1b1)](),h=a15e['join'](d,o(0x1a4));!this[o(0x19b)][o(0x1b7)](h)&&await this['fsi'][o(0x19d)]({'srcPath':o(0x19c),'destPath':h,'context':{'app':f[o(0x1b6)]},'config':f});const i=JSON['parse'](a15f[o(0x197)](h,o(0x18f))),j=await Actions[o(0x1ab)](o(0x19e))||o(0x18e);if(j){if(j===o(0x18e)||j===o(0x1a0)){if(j===o(0x18e))i[o(0x19f)]=g?.[o(0x1b5)];else j==='private'&&(i['host']=g?.[o(0x198)]);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[o(0x19f)]=g?.[o(0x198)];a15f[o(0x196)](a15e[o(0x1a6)](d,'ssh.json'),JSON['stringify'](i,null,0x2)),execSync('cat\x20'+a15e['join'](d,o(0x1a4)),{'stdio':o(0x1a5)}),Log[o(0x192)](o(0x193)+j+o(0x1af)+d+a15e[o(0x1ba)]+o(0x1a4));}catch(k){console[o(0x1bb)](k),process['exit'](0x0);}},a15g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16i=a16d;(function(a,b){const f=a16d,c=a();while(!![]){try{const d=-parseInt(f(0x75))/0x1+-parseInt(f(0x78))/0x2+parseInt(f(0x77))/0x3+parseInt(f(0x7d))/0x4*(-parseInt(f(0x6b))/0x5)+parseInt(f(0x6c))/0x6+parseInt(f(0x83))/0x7*(-parseInt(f(0x80))/0x8)+parseInt(f(0x7f))/0x9*(parseInt(f(0x6f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0xddbfc));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a16d;if(c){const e=c[g(0x7b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const h=a16d;return a16a[h(0x6d)]()[h(0x72)](h(0x79))[h(0x6d)]()[h(0x7e)](a16a)[h(0x72)](h(0x79));});a16a();import a16e from'./aws.command.js';import{Command}from'../../command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x6a;let f=c[d];return f;},a16d(a,b);}function a16c(){const k=['search','maka\x20aws:terminate-instance','\x20Ready?','1560586zOKDsF','chooseInstance','2945250bsfuWd','2535794caqXuV','(((.+)+)+)+$','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','apply','running','7248628xvOwaz','constructor','405SbPVcG','264HxfLaI','ec2terminateInstance','error','65457bvptea','name','5CvBqXh','5388162FhgKqw','toString','instanceId','883940AzWRDK','create','status'];a16c=function(){return k;};return a16c();}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a16i(0x70)]({'name':'terminate-instance','aliases':['ti'],'usage':a16i(0x73),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':'\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','examples':['maka\x20aws:terminate-instance','maka\x20aws:ti']},async function(){const j=a16i;try{const a=new AWS(),b=await a[j(0x76)]();if(b?.[j(0x6e)]&&b?.[j(0x71)]===j(0x7c)){const c=await Actions['confirm']('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x6a)]+j(0x74));c?a[j(0x81)]({'instanceId':b['instanceId']}):Log['error'](j(0x7a)+b[j(0x6a)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[j(0x82)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[j(0x82)](d),process['exit'](0x0);}},a16e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a17d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a17d,c=a();while(!![]){try{var d=-parseInt(f(0x84))/0x1*(-parseInt(f(0x80))/0x2)+parseInt(f(0x85))/0x3*(-parseInt(f(0x88))/0x4)+-parseInt(f(0x81))/0x5*(-parseInt(f(0x8c))/0x6)+parseInt(f(0x7f))/0x7+parseInt(f(0x8d))/0x8+parseInt(f(0x83))/0x9*(-parseInt(f(0x8b))/0xa)+-parseInt(f(0x89))/0xb*(parseInt(f(0x87))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x6557f));var a17b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a17d;if(c){var e=c[g(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){var h=a17d;return a17a['toString']()[h(0x8e)]('(((.+)+)+)+$')['toString']()[h(0x8a)](a17a)[h(0x8e)](h(0x86));});a17a();function a17d(a,b){var c=a17c();return a17d=function(d,e){d=d-0x7f;var f=c[d];return f;},a17d(a,b);}function a17c(){var i=['search','1203538PadlRu','934354GTpFBc','5035vHckRq','apply','27MHCBOS','1OLyyhT','75VXeHwN','(((.+)+)+)+$','32220izExBs','11092utYhdL','913zClgux','constructor','867590YVfaJY','1326WmQaOS','847216JtIYqH'];a17c=function(){return i;};return a17c();}import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d
|
|
1
|
+
const a18t=a18d;(function(a,b){const q=a18d,c=a();while(!![]){try{const d=-parseInt(q(0x203))/0x1*(parseInt(q(0x1e4))/0x2)+-parseInt(q(0x201))/0x3+parseInt(q(0x208))/0x4+-parseInt(q(0x1ff))/0x5*(-parseInt(q(0x1fe))/0x6)+-parseInt(q(0x1f1))/0x7+parseInt(q(0x1dd))/0x8+-parseInt(q(0x1f8))/0x9*(-parseInt(q(0x1fd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0xe72c3));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a18d;if(c){const e=c[r(0x1fc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const s=a18d;return a18a[s(0x1e7)]()['search'](s(0x1d9))['toString']()[s(0x206)](a18a)['search'](s(0x1d9));});a18a();import a18e from'path';function a18c(){const w=['6832840NZBhLQ','maka\x20build:docker','force','confirm','pathFromProject','splice','getGlobalMeteorVersion','49446KJyXbg','fsi','error','toString','invokeMeteorCommand','notice','join','installMeteorPackage','getProjectMeteorVersion','forEach',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','findSubCommand','Aborted.','3657122aQbOCP','update','findProjectDirectory','maka\x20build','--release','create','argv','54171nrVBGt',').\x20Update?','build','--force','apply','930caoHdF','12sVldJg','2199160pbzTUx','\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','4096944AWaqwE','Verifying\x20meteor\x20package\x20requirements\x20...','4wzbGrW','app.tar.gz','debug','constructor','existsSync','2561332aJtqny','autoupdate','This\x20project\x27s\x20meteor\x20version\x20(','slice','(((.+)+)+)+$','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','concat','exit'];a18c=function(){return w;};return a18c();}import a18f from'fs';import a18g from'semver';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a18d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a18t(0x1f6)]({'name':a18t(0x1fa),'usage':'maka\x20build\x20<opts>','validOpts':[a18t(0x1df),a18t(0x205)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':a18t(0x1da),'mustBeInMakaProject':!![],'description':a18t(0x200),'examples':[a18t(0x1f4),a18t(0x1de)]},async function(a,b){const u=a18t;try{const c=this[u(0x1e5)][u(0x1f3)]();!this[u(0x1e5)]['checkMeteorPackage'](u(0x1d6))&&(Log[u(0x1e9)](u(0x202)),await this[u(0x1e5)][u(0x1eb)](u(0x1d6),{'cwd':c}));const d=a[0x0],f=this[u(0x1ef)](d);if(f)this['runSubCommand'](d,a,b);else{const g=b['force'];if(!g){const j=this[u(0x1e5)][u(0x1e3)](),k=this['fsi'][u(0x1ec)](),l=a18g['gt'](j,k);if(l){const m=await Actions[u(0x1e0)](u(0x1d7)+k+u(0x1ee)+j+u(0x1f9));m&&this[u(0x1e5)][u(0x1e8)](u(0x1f2),[u(0x1f5),j]);}}const h=[this[u(0x1e5)]['pathFromProject']({'pathParts':[u(0x1fa)]})][u(0x1db)](process[u(0x1f7)][u(0x1d8)](0x3)),i=a18e[u(0x1ea)](this[u(0x1e5)][u(0x1e1)]({}),'build',u(0x204));if(a18f[u(0x207)](i)){const n=g??await Actions[u(0x1e0)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!n)throw Log['error'](u(0x1f0));}h[u(0x1ed)]((o,p)=>{const v=u;o===v(0x1fb)&&h[v(0x1e2)](p,0x2);}),this[u(0x1e5)][u(0x1e8)](u(0x1fa),h);}}catch(o){console[u(0x1e6)](o),process[u(0x1dc)](0x0);}});export default BuildCommand;
|