@maka/maka-cli 4.4.0 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundle/obf/package.json +29 -28
- package/bundle/obf/src/README.md +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.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/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/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/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/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/actions/actions.test.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/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 +28 -28
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Documentation has moved over to:
|
|
|
17
17
|
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
|
-
Copyright (C)
|
|
20
|
+
Copyright (C) 2023 Campbell Labs, LLC.
|
|
21
21
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
22
22
|
|
|
23
23
|
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
package/bundle/obf/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.1",
|
|
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.",
|
|
@@ -41,56 +41,57 @@
|
|
|
41
41
|
"cli-table": "^0.3.11",
|
|
42
42
|
"delete": "^1.1.0",
|
|
43
43
|
"dotenv": "^16.0.3",
|
|
44
|
-
"ejs": "^3.1.
|
|
44
|
+
"ejs": "^3.1.9",
|
|
45
45
|
"elegant-spinner": "^3.0.0",
|
|
46
|
-
"eslint": "^8.
|
|
46
|
+
"eslint": "^8.40.0",
|
|
47
47
|
"http-proxy": "^1.18.1",
|
|
48
48
|
"humps": "^2.0.1",
|
|
49
|
-
"inquirer": "^9.
|
|
50
|
-
"jsonwebtoken": "^
|
|
49
|
+
"inquirer": "^9.2.2",
|
|
50
|
+
"jsonwebtoken": "^9.0.0",
|
|
51
51
|
"latest-version": "^7.0.0",
|
|
52
|
-
"minimist": "^1.2.
|
|
52
|
+
"minimist": "^1.2.8",
|
|
53
53
|
"node-forge": "^1.3.1",
|
|
54
|
-
"rimraf": "^
|
|
55
|
-
"semver": "^7.
|
|
54
|
+
"rimraf": "^5.0.0",
|
|
55
|
+
"semver": "^7.5.0",
|
|
56
56
|
"single-line-log2": "^1.1.3",
|
|
57
|
-
"slash": "^5.
|
|
57
|
+
"slash": "^5.1.0",
|
|
58
58
|
"spawn-args": "0.2.0",
|
|
59
59
|
"xtend": "^4.0.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/types": "^3.
|
|
63
|
-
"@types/chai": "^4.3.
|
|
62
|
+
"@aws-sdk/types": "^3.329.0",
|
|
63
|
+
"@types/chai": "^4.3.5",
|
|
64
64
|
"@types/change-case": "^2.3.1",
|
|
65
65
|
"@types/cli-color": "^2.0.2",
|
|
66
66
|
"@types/cli-table": "^0.3.1",
|
|
67
|
-
"@types/ejs": "^3.1.
|
|
67
|
+
"@types/ejs": "^3.1.2",
|
|
68
68
|
"@types/fibers": "^3.1.1",
|
|
69
69
|
"@types/humps": "^2.0.2",
|
|
70
70
|
"@types/inquirer": "^9.0.3",
|
|
71
|
-
"@types/jsonwebtoken": "^
|
|
72
|
-
"@types/meteor": "^2.
|
|
71
|
+
"@types/jsonwebtoken": "^9.0.2",
|
|
72
|
+
"@types/meteor": "^2.9.2",
|
|
73
73
|
"@types/minimist": "^1.2.2",
|
|
74
74
|
"@types/mocha": "^10.0.1",
|
|
75
|
-
"@types/node": "^
|
|
76
|
-
"@types/react": "^18.
|
|
77
|
-
"@types/react-dom": "^18.
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
79
|
-
"@typescript-eslint/parser": "^5.
|
|
80
|
-
"aws-sdk": "^2.
|
|
75
|
+
"@types/node": "^20.1.1",
|
|
76
|
+
"@types/react": "^18.2.6",
|
|
77
|
+
"@types/react-dom": "^18.2.4",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
79
|
+
"@typescript-eslint/parser": "^5.59.5",
|
|
80
|
+
"aws-sdk": "^2.1375.0",
|
|
81
81
|
"chai": "^4.3.7",
|
|
82
82
|
"chdir": "^0.0.0",
|
|
83
83
|
"concat-stream": "^2.0.0",
|
|
84
|
-
"concurrently": "^
|
|
85
|
-
"esbuild": "^0.
|
|
84
|
+
"concurrently": "^8.0.1",
|
|
85
|
+
"esbuild": "^0.17.18",
|
|
86
86
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
87
|
-
"eslint-plugin-import": "^2.
|
|
88
|
-
"husky": "^8.0.
|
|
89
|
-
"javascript-obfuscator": "^4.0.
|
|
90
|
-
"mkdirp": "^
|
|
87
|
+
"eslint-plugin-import": "^2.27.5",
|
|
88
|
+
"husky": "^8.0.3",
|
|
89
|
+
"javascript-obfuscator": "^4.0.2",
|
|
90
|
+
"mkdirp": "^3.0.1",
|
|
91
91
|
"mocha": "^10.2.0",
|
|
92
|
-
"pkg": "^5.8.
|
|
93
|
-
"
|
|
92
|
+
"pkg": "^5.8.1",
|
|
93
|
+
"typescript": "^5.0.4",
|
|
94
|
+
"wait-on": "^7.0.1"
|
|
94
95
|
},
|
|
95
96
|
"keywords": [
|
|
96
97
|
"scaffolding",
|
package/bundle/obf/src/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Documentation has moved over to:
|
|
|
17
17
|
[maka-cli.com](https://www.maka-cli.com/documentation#documentation)
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
|
-
Copyright (C)
|
|
20
|
+
Copyright (C) 2023 Campbell Labs, LLC.
|
|
21
21
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
22
22
|
|
|
23
23
|
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(
|
|
1
|
+
const a0s=a0d;(function(a,b){const p=a0d,c=a();while(!![]){try{const d=-parseInt(p(0x1d4))/0x1*(-parseInt(p(0x1bf))/0x2)+-parseInt(p(0x197))/0x3+-parseInt(p(0x198))/0x4*(-parseInt(p(0x1d0))/0x5)+-parseInt(p(0x1c3))/0x6+parseInt(p(0x191))/0x7+parseInt(p(0x1a7))/0x8+parseInt(p(0x1d1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x4906e));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a0d;if(c){const e=c[q(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const r=a0d;return a0a[r(0x1c9)]()[r(0x19a)](r(0x1a1))[r(0x1c9)]()[r(0x1bd)](a0a)['search'](r(0x1a1));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x186;let f=c[d];return f;},a0d(a,b);}export class Command extends Tool{[a0s(0x189)];[a0s(0x1b4)];constructor(a,b){const t=a0s;super();if(!a)throw new Error(t(0x1c1));if(!a[t(0x199)])throw new Error(t(0x1b9));if(typeof b!==t(0x1c8))throw new Error(t(0x18a));this[t(0x189)]=Object[t(0x1cb)]({},a),this[t(0x199)]=this[t(0x189)][t(0x199)],this[t(0x1b4)]=[],this[t(0x1ae)]=b[t(0x190)](this);}static['create'](a,b,c){const u=a0s;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==u(0x1c8))throw new Error(u(0x188));const d=new Command(a,b);return c=c||a0f,Object[u(0x1cb)](d,{'parent':c?.[u(0x189)]?.[u(0x199)]}),c[u(0x19f)](d),d;}[a0s(0x19f)](a){const v=a0s;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[v(0x1b4)][v(0x193)](a);}async[a0s(0x1be)](a,b){const w=a0s,c=this[w(0x18d)](a[0x0]);if(c){const d=c?.[w(0x199)]||a[0x0],e=c?.[w(0x1c4)]||'',f=c?.[w(0x189)];if(f[w(0x1a2)])return;const g=a[0x0],h=Object['keys'](b),i=await this[w(0x186)][w(0x1a9)]();!i&&(Log[w(0x1bb)](w(0x18b)),process['exit'](0x1));const j=i?.[w(0x1a0)][w(0x1a5)](d)||i?.[w(0x1a0)]['includes'](e),k=i?.[w(0x192)][w(0x1a5)]('singleLicense')||i?.[w(0x192)]['includes'](w(0x19e)),l=!k;if(j&&l)throw w(0x1b6)+a[0x0]+w(0x1d5);if(h[w(0x1cd)]>0x0){const m=i?.[w(0x194)][w(0x1aa)](n=>h[w(0x1a5)](n));if(m&&m['length']>0x0&&l)throw w(0x1c2)+m?.['join'](',\x20')+w(0x1d5);}if(g===w(0x1a4)){const n=await this[w(0x186)][w(0x1a9)](),o=n?.[w(0x1a0)]['includes'](a[0x0]+'\x20'+a[0x1]);if(o&&l)throw w(0x1b6)+a[0x0]+w(0x1d5);}}}async[a0s(0x1b2)](a,b){const x=a0s;try{a=a||[],b=b||{};try{await this[x(0x1be)](a,b);}catch(c){Log['error'](c),process[x(0x1d2)](0x0);}await this[x(0x1ab)](a,b);}catch(d){process[x(0x1d2)](0x1);}}async[a0s(0x1ab)](a,b){const y=a0s,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![]}=this['options'];try{if(this[y(0x189)][y(0x199)]!=='generate'){if(!isRoot){const d=(a[0x0]===_prevCmd||a[y(0x1cd)]===0x0)&&this[y(0x1b4)][y(0x1cd)]>=0x0;if(d&&b[y(0x1a6)]){if(this[y(0x1b4)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!b[y(0x1a6)]){if(this[y(0x189)][y(0x1ba)]){const f=this[y(0x1d3)]();if(!f)throw new MustBeInProjectError();}if(this[y(0x189)][y(0x196)]){const g=this[y(0x1ac)]();if(!g)throw new NoMeteorFoundError();}if(typeof this[y(0x189)]['minArgLength']==='number'){if(a[y(0x1cd)]<this[y(0x189)][y(0x1d6)]){Log[y(0x1bb)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][y(0x1cf)]===y(0x1b7)){if(a['length']>=this[y(0x189)][y(0x1cf)]){Log[y(0x1bb)](y(0x19d));throw new UsageError();}}if(typeof this['options'][y(0x19c)]==='number'){if(Object['keys'](b)[y(0x1cd)]<this[y(0x189)][y(0x19c)]){Log[y(0x1bb)](y(0x1d9));throw new UsageError();}}if(typeof this['options'][y(0x187)]==='number'){if(Object[y(0x18f)](b)[y(0x1cd)]>=this[y(0x189)][y(0x187)]){Log['error'](y(0x1a3));throw new UsageError();}}}}this['validateParams'](a,b,this[y(0x189)]),_prevCmd=a[0x0];}await this['_handler'][y(0x19b)](this,a,b);}catch(h){Log['usage'](description,examples,usage,c);if(h instanceof UsageErrorWithSubs)Log[y(0x1d8)]('Sub-Commands:'),this[y(0x1b5)](this[y(0x1b4)]),Log[y(0x1d7)](y(0x18e));else{if(h instanceof MustBeInProjectError)Log[y(0x1bb)](y(0x1a8));else{if(h instanceof NoMeteorFoundError)Log[y(0x1bb)](y(0x1ce)),Log[y(0x1d8)](y(0x1c0));else{if(h instanceof NoMeteorAppFoundError)Log[y(0x1bb)](y(0x1c7));else throw h;}}}process[y(0x1d2)](0x1);}}[a0s(0x1b5)](a){const z=a0s,b=new a0e({});b['push']([z(0x1b8),z(0x1af),'Description']),a['sort']()[z(0x1c5)](c=>{const A=z;c['name']!==A(0x195)&&c[A(0x199)]!==A(0x1b0)&&b[A(0x193)]([c['name'],c['aliases'](),c[A(0x1c6)]()]);}),Log[z(0x1bc)](b[z(0x1c9)]());}[a0s(0x18d)](a){const B=a0s;return this['_commands'][B(0x1ca)](b=>b['match'](a));}[a0s(0x18c)](a){const C=a0s,b=a?.[C(0x1b1)](':');if(b)return a=b[0x0],this[C(0x18d)](a);else return;}async['runSubCommand'](a,b,c){const D=a0s;try{const d=a['split'](':');a=d[0x0];const f=d[0x1];f&&b[D(0x1ad)](0x0,0x0,f);const g=this['findCommand'](a);if(g)await g['run'](b,c);else throw D(0x1b3);}catch(h){throw Log[D(0x1bb)](h);}}}function a0c(){const E=['constructor','validateMakaSubscription','2EQeMom','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','To\x20use\x20these\x20pro\x20flags,\x20\x22','854028RQUbSU','parent','forEach','shortDesc','There\x20is\x20no\x20Meteor\x20application\x20here','function','toString','find','assign','apply','length','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','maxArgLength','186365ckHxRP','104220PkZFrh','exit','validateMakaProject','72609xCxujV','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','minArgLength','header','notice','Too\x20few\x20options','fsi','maxOptsLength','Command.create\x20requires\x20a\x20handler\x20function!','options','Command\x20requires\x20a\x20handler\x20function','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','findSubCommand','findCommand','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','keys','bind','2830359UVsnST','roles','push','proFlags','murder','mustHaveMeteorInstalled','1722474SpTWYd','20HJlhcB','name','search','call','minOptsLength','Too\x20many\x20arguments','domainLicense','addCommand','proCommands','(((.+)+)+)+$','disableAuthCheck','Too\x20many\x20options','deploy','includes','help','2725784MTVgfw','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','getPro','filter','invoke','validateMeteorInstall','splice','_handler','Alias','play','split','run','Command\x20not\x20found','_commands','tableList','To\x20use\x20this\x20command,\x20\x22','number','Name','Command\x20requires\x20a\x20name','mustBeInMakaProject','error','bright'];a0c=function(){return E;};return a0c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x15a))/0x1+parseInt(f(0x158))/0x2*(-parseInt(f(0x157))/0x3)+-parseInt(f(0x15b))/0x4+parseInt(f(0x15c))/0x5*(parseInt(f(0x15e))/0x6)+parseInt(f(0x153))/0x7+-parseInt(f(0x154))/0x8+parseInt(f(0x159))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x8cc4d));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0x156)]()[h(0x15f)](h(0x155))['toString']()['constructor'](a1a)[h(0x15f)](h(0x155));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x153;var f=c[d];return f;},a1d(a,b);}import'./run/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';function a1c(){var i=['apply','4578948DgbEQr','search','2147887RcjwfR','9188288bFSXBW','(((.+)+)+)+$','toString','3MqmEoU','197368tNRADT','8701803rfMYqp','417907RqheyN','2523856oqRmhQ','5JbGLiO'];a1c=function(){return i;};return a1c();}import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a2d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a2d,c=a();while(!![]){try{var d=parseInt(f(0x16a))/0x1+parseInt(f(0x16f))/0x2+parseInt(f(0x168))/0x3*(parseInt(f(0x16d))/0x4)+parseInt(f(0x16b))/0x5+parseInt(f(0x163))/0x6*(parseInt(f(0x16e))/0x7)+parseInt(f(0x165))/0x8*(-parseInt(f(0x169))/0x9)+-parseInt(f(0x167))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x51ec5));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a2d;if(c){var e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var h=a2d;return a2a[h(0x162)]()[h(0x164)](h(0x166))[h(0x162)]()['constructor'](a2a)[h(0x164)](h(0x166));});function a2c(){var i=['741574CpIKsB','toString','60VcDBBG','search','568fpmvlA','(((.+)+)+)+$','8738390yxrBIJ','6vpzNCP','73494vLnlUz','218954QmNzmB','1279325LPKiBG','apply','1077412TxHLCS','283409LanDYj'];a2c=function(){return i;};return a2c();}a2a();import'./aws.command.js';import'./ci.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x162;var f=c[d];return f;},a2d(a,b);}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';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a3c(){const j=['
|
|
1
|
+
const a3h=a3d;function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x11f;let f=c[d];return f;},a3d(a,b);}function a3c(){const j=['toString','error','50oGDElV','12xvbJEX','20050jMHcRS','search','587367DTVdAm','2288364rtDcAB','aws','maka\x20aws:<sub-command>','Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','1748769oRFytu','create','12HzopGW','903985iVfzAj','1720684YEPvRo','279FsusEE','constructor','13XPkEXh','\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','3bgjChH','27576VcWbbP'];a3c=function(){return j;};return a3c();}(function(a,b){const f=a3d,c=a();while(!![]){try{const d=parseInt(f(0x133))/0x1+-parseInt(f(0x131))/0x2*(parseInt(f(0x12b))/0x3)+parseInt(f(0x124))/0x4*(parseInt(f(0x125))/0x5)+-parseInt(f(0x130))/0x6*(-parseInt(f(0x126))/0x7)+parseInt(f(0x12c))/0x8*(-parseInt(f(0x127))/0x9)+parseInt(f(0x12f))/0xa*(-parseInt(f(0x122))/0xb)+-parseInt(f(0x134))/0xc*(parseInt(f(0x129))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x7eafc));const a3b=(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;};}()),a3a=a3b(this,function(){const g=a3d;return a3a['toString']()[g(0x132)]('(((.+)+)+)+$')[g(0x12d)]()[g(0x128)](a3a)['search']('(((.+)+)+)+$');});a3a();import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';const AWSCommand=Command[a3h(0x123)]({'name':a3h(0x11f),'usage':a3h(0x120),'minArgLength':0x1,'maxArgLength':0x2,'validOpts':[],'shortDesc':a3h(0x121),'description':a3h(0x12a)},async function(a,b){const i=a3h,c=a[0x0],d=this['findSubCommand'](c);if(d)this['runSubCommand'](c,a,b);else{Log[i(0x12e)]('Sub\x20Command\x20not\x20found');throw new UsageErrorWithSubs();}});export default AWSCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4a9=a4d;(function(a,b){const a6=a4d,c=a();while(!![]){try{const d=parseInt(a6(
|
|
1
|
+
const a4a9=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xb1;let f=c[d];return f;},a4d(a,b);}(function(a,b){const a6=a4d,c=a();while(!![]){try{const d=parseInt(a6(0xfb))/0x1*(parseInt(a6(0x103))/0x2)+parseInt(a6(0xf4))/0x3+parseInt(a6(0x107))/0x4+parseInt(a6(0xf6))/0x5*(-parseInt(a6(0xe7))/0x6)+-parseInt(a6(0xbf))/0x7*(-parseInt(a6(0xea))/0x8)+parseInt(a6(0xe6))/0x9*(-parseInt(a6(0xc2))/0xa)+parseInt(a6(0xfc))/0xb*(-parseInt(a6(0x101))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xd5d7c));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const a7=a4d;if(c){const e=c[a7(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const a8=a4d;return a4a[a8(0xf2)]()[a8(0xc4)]('(((.+)+)+)+$')[a8(0xf2)]()[a8(0xb7)](a4a)[a8(0xc4)]('(((.+)+)+)+$');});a4a();import a4e from'./aws.command.js';import{execSync}from'child_process';import a4f from'path';import a4g from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';function a4c(){const al=['env','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','parse','916nLcjnb','319BQNYlw','push','Creating\x20user\x20data\x20file\x20in\x20','success','subnetId','897432Aihhpf','desc','3054slEMFY','Desc','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','\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','2441328RPlTFx','**\x20Available\x20AMIs\x20**','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Please\x20choose\x20a\x20key\x20to\x20use:\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=*','**\x20Available\x20key-pairs\x20**','Instance\x20Count:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20DESCRIPTION:\x20','amiId','Instace\x20Type:\x20','fsi','Key-Pair:\x20','Setting\x20Subnet\x20ID\x20to\x20','\x20AZONE:\x20','string','split','constructor','apply','maka\x20aws:create-instance\x20--env\x20dev','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','date','Subnet:\x20','11102609vkaZTG','notice','*\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','130guIoXf','t3.micro','search','readFileSync','1:1','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','getTime','maka\x20aws:ci\x20--env\x20prod','number','Setting\x20the\x20key-pair\x20to:\x20','cider','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','cidr','Security\x20Group:\x20','sgId','join','exit','build\x20on\x20','22,80,443','confirm','alias','}]\x22','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','\x20:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','ImageID:','create-instance','\x20CIDR:\x20','log','user-data','chooseVPC','ask','error','getConfigFromShorthand','Would\x20you\x20like\x20to\x20include\x20user\x20data?','257994qcYdKb','8824002BmVZZR','ec2create','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','8toasMk','ID:\x20','forEach','bright','ec2createSG','createKeyPair','maka\x20aws:create-instance\x20<opts>','Create\x20new\x20AWS\x20instance','toString','create','3878604gvcLld','sort','5AhKlGw'];a4c=function(){return al;};return a4c();}import{Log}from'../../tools/log/log.class.js';Command[a4a9(0xf3)]({'name':a4a9(0xdd),'aliases':['ci'],'usage':a4a9(0xf0),'examples':[a4a9(0xb9),a4a9(0xc9)],'mustBeInMakaProject':!![],'requiredOpts':[a4a9(0xf7)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a4a9(0xf1),'description':a4a9(0x106)},async function(a,b){const aa=a4a9;try{const c=this[aa(0xb1)]['getProjectConfig'](),d=new AWS(),{appName:f}=c,g=this['fsi'][aa(0xe4)](b['env']),h=this['fsi']['getConfigPath'](g),i=f+'-'+g,j=await Actions['ask']('EC2\x20Name:\x20['+i+']\x20')||i;let k='',l='',m='',n='',o='',p='';const q=await Actions[aa(0xd5)](aa(0xf9));let r='';q&&(r=await d[aa(0xef)]({'env':g}));try{Log[aa(0xc0)](aa(0x10d));const w=r?r:j,x=d['ec2describeKeys']({'suggestion':w}),y=await Actions[aa(0xe2)](aa(0x10b))||'-1';if(parseInt(y)<0x0){Log[aa(0xe3)](aa(0x105)),Log[aa(0xc0)]('No\x20instance\x20has\x20been\x20created.');return;}x?.[aa(0xec)](function(z){const ab=aa;parseInt(y)===z['id']&&(k=z['name'],Log['success'](ab(0xcb)+k));});}catch(z){Log[aa(0xe3)](z);}l=await d['chooseVPC']();const s=await Actions[aa(0xd5)](aa(0xdb));let t;if(s){const A=l===''?d[aa(0xe1)]():l;t=await Actions[aa(0xe2)]('Security\x20Group\x20Name:\x20['+j+']')||j;const B=await Actions['ask'](aa(0xba))||aa(0xd4),C=B[aa(0xb6)](',');d[aa(0xee)]({'description':'\x22Web\x20App\x22','name':t,'vpcId':A,'sgPorts':C});}t=j;try{const D=await d['listSecurityGroups'](t),E=await Actions['ask'](aa(0xf8))||'0';D[aa(0xec)](function(F){const ac=aa;F['id']===parseInt(E)&&(m=F[ac(0xd0)],Log[ac(0xff)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a'));});if(m==='')throw Log['error'](aa(0xbb));}catch(F){Log[aa(0xe3)](F);}try{const G=0x7e6;Log[aa(0xc0)](aa(0x108));const H=execSync(aa(0x10c)+G+aa(0xc1))['toString'](),I=JSON[aa(0xfa)](H),J=[],K=[];I[aa(0xec)](function(M){const ad=aa;if(M[ad(0xd6)]==='amazon'){const N=M[ad(0x104)]['split'](ad(0xd3))[0x1];J['push']({'amiId':M['ID'],'desc':M[ad(0x104)],'date':N});}}),J[aa(0xf5)](function(M,N){const ae=aa;return new Date(N['date'])[ae(0xc8)]()-new Date(M[ae(0xbd)])['getTime']();}),J['forEach'](function(M,N){const af=aa;K[af(0xfd)]({'id':N,'amiId':M['amiId'],'desc':M[af(0x102)]});}),K['forEach'](function(M){const ag=aa;console['log'](ag(0xeb)+M['id']+'\x20AMIID:\x20'+M['amiId']+ag(0x110)+M[ag(0x102)]);});const L=await Actions[aa(0xe2)](aa(0xd8))||'0';K['forEach'](function(M){const ah=aa;M['id']===parseInt(L)&&(n=M[ah(0x111)],Log[ah(0xff)]('Setting\x20AMI\x20ID\x20to\x20'+n+ah(0xda)+M[ah(0x102)]));});if(n==='')throw Log[aa(0xe3)](aa(0xbb));}catch(M){Log[aa(0xe3)](M);}try{Log[aa(0xc0)]('**\x20Available\x20Subnets\x20**');const N=execSync(aa(0x109))[aa(0xf2)](),O=JSON[aa(0xfa)](N),P=[];O['forEach'](function(R,S){const ai=aa;P[ai(0xfd)]({'id':S,'cidr':R[ai(0xcc)],'az':R['az'],'subnetId':R[ai(0x100)]});}),P[aa(0xec)](function(R){const aj=aa;console[aj(0xdf)](aj(0xeb)+R['id']+aj(0xde)+R[aj(0xce)]+aj(0xb4)+R['az']+'\x20SUBNETID:\x20'+R[aj(0x100)]);});const Q=await Actions[aa(0xe2)](aa(0x10f))||'0';P[aa(0xec)](function(R){const ak=aa;R['id']===parseInt(Q)&&(p=R[ak(0x100)],Log['success'](ak(0xb3)+p));});if(p==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(R){Log[aa(0xe3)](R);}let u='1:1';try{const S=await Actions[aa(0xe2)](aa(0xc7))||aa(0xc6),T=S['split'](':')[0x0],U=S['split'](':')[0x1];typeof parseInt(T)==='number'&&typeof parseInt(U)===aa(0xca)&&(u=[T,U][aa(0xd1)](':'),Log[aa(0xff)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+u));}catch(V){Log[aa(0xe3)](V);}try{const W=await Actions[aa(0xe2)](aa(0xcd))||aa(0xc3);typeof W===aa(0xb5)&&(o=W);}catch(X){Log['error'](X);}let v;try{const Y=await Actions[aa(0xd5)](aa(0xe5),![]);Y&&(v=a4f[aa(0xd1)](h,aa(0xe0)),Log['notice'](aa(0xfe)+v),await this['fsi']['createFile']({'filePath':v,'data':''}),await Actions['confirm'](aa(0xe9)));}catch(Z){Log[aa(0xe3)](Z);}try{const a0=JSON[aa(0xfa)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+aa(0x10a))['toString']())[0x0]['subnet'];Log['notice'](aa(0xdc)+n),Log[aa(0xc0)](aa(0x10e)+u),Log[aa(0xc0)](aa(0x112)+o),Log[aa(0xc0)](aa(0xb2)+k),Log['notice'](aa(0xcf)+m),Log[aa(0xc0)](aa(0xbe)+a0);if(v){Log['notice']('User\x20Data:'+v);const a2=await a4g[aa(0xc5)](v);Log[aa(0xc0)](a2);}const a1=await Actions[aa(0xd5)](aa(0xd9));if(a1){const a3=d[aa(0xe8)]({'imageId':n,'count':u,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':aa(0xbc)+g+'},\x20{Key=Name,Value='+j+aa(0xd7),...v&&{'userData':v}});a3&&(Log[aa(0xff)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[aa(0xed)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}catch(a4){console[aa(0xdf)](a4),Log[aa(0xe3)](a4);}}catch(a5){console[aa(0xe3)](a5),process[aa(0xd2)](0x0);}},a4e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=parseInt(g(0x198))/0x1*(parseInt(g(0x194))/0x2)+-parseInt(g(0x1a4))/0x3+-parseInt(g(0x18c))/0x4*(parseInt(g(0x197))/0x5)+-parseInt(g(0x18f))/0x6+parseInt(g(0x196))/0x7+-parseInt(g(0x19a))/0x8+parseInt(g(0x18d))/0x9*(parseInt(g(0x190))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x26b16));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x1a3)]()[i(0x19c)](i(0x19f))[i(0x1a3)]()[i(0x19d)](a5a)[i(0x19c)](i(0x19f));});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x18c;let f=c[d];return f;},a5d(a,b);}a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';function a5c(){const l=['1360002ZlQoce','20zvtOjS','92420IZdOpc','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','2338176BSbLli','ckp','search','constructor','env','(((.+)+)+)+$','fsi','getConfigFromShorthand','maka\x20aws:create-key-pair\x20<opts>','toString','754041FKprmc','create','59076pXOvtE','6381voBhzx','apply','638676ElpAir','6890ynIogA','createKeyPair','\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','maka\x20aws:create-key-pair\x20--env\x20prod','4nVTrHN','maka\x20aws:ckp\x20--env\x20prod'];a5c=function(){return l;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a5j(0x1a5)]({'name':'create-key-pair','aliases':[a5j(0x19b)],'usage':a5j(0x1a2),'examples':[a5j(0x193),a5j(0x195)],'mustBeInMakaProject':!![],'requiredOpts':[a5j(0x19e)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a5j(0x199),'description':a5j(0x192)},async function(a,b){const k=a5j;try{const c=new AWS(),d=this[k(0x1a0)][k(0x1a1)](b[k(0x19e)]);c[k(0x191)]({'env':d});}catch(f){console['error'](f),process['exit'](0x0);}},a5e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a6p=a6d;function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xe5;let f=c[d];return f;},a6d(a,b);}(function(a,b){const m=a6d,c=a();while(!![]){try{const d=-parseInt(m(0xfb))/0x1+parseInt(m(0xe7))/0x2+-parseInt(m(0xf6))/0x3+parseInt(m(0xfa))/0x4+-parseInt(m(0x105))/0x5*(-parseInt(m(0xf1))/0x6)+-parseInt(m(0x100))/0x7+parseInt(m(0x104))/0x8*(-parseInt(m(0xf9))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xab1db));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a6d;if(c){const e=c[n(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const o=a6d;return a6a[o(0xff)]()[o(0xeb)](o(0xe9))['toString']()[o(0x103)](a6a)[o(0xeb)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a6c(){const s=['922292qXEULX','410325pPryEb','List\x20is\x20not\x20all\x20numbers','create-security-group','maka\x20aws\x20create-security-group','toString','734447mqbSRU','match','split','constructor','1568HTUjMy','171295IWaEtp','22,80,443','maka\x20aws:csg','2192830BQZpkc','exit','(((.+)+)+)+$','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','search','ec2createSG','error','chooseVPC','create','name','42fgujII','ask','\x22Web\x20App\x22','getProjectConfig','apply','695664CNwYZy','maka\x20aws:create-secuirty-group','Security\x20Group\x20Name:\x20[','5454UGQCts'];a6c=function(){return s;};return a6c();}Command[a6p(0xef)]({'name':a6p(0xfd),'aliases':['csg'],'usage':a6p(0xfe),'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':[a6p(0xf7),a6p(0xe6)]},async function(a,b){const q=a6p;try{const c=new AWS(),d=this['fsi'][q(0xf4)](),{appName:f}=d,g=await c[q(0xee)](),h=b[q(0xf0)]?b[q(0xf0)]:''+f,i=await Actions['ask'](q(0xf8)+h+']')||h,j=await Actions[q(0xf2)](q(0xea))||q(0xe5),k=j[q(0x102)](',');k['forEach'](l=>{const r=q;if(!l[r(0x101)](/^\d+$/))throw r(0xfc);}),c[q(0xec)]({'description':q(0xf3),'name':i,'vpcId':g,'sgPorts':k});}catch(l){Log[q(0xed)](l),process[q(0xe8)](0x1);}},a6e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a7i=a7d;(function(a,b){const f=a7d,c=a();while(!![]){try{const d=-parseInt(f(0x93))/0x1*(-parseInt(f(0x86))/0x2)+-parseInt(f(0x94))/0x3+parseInt(f(0x87))/0x4*(-parseInt(f(0x8e))/0x5)+-parseInt(f(0x89))/0x6+parseInt(f(0x98))/0x7*(parseInt(f(0x99))/0x8)+parseInt(f(0x8d))/0x9*(-parseInt(f(0x8b))/0xa)+parseInt(f(0x96))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x35dd6));function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x84;let f=c[d];return f;},a7d(a,b);}const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a7d;if(c){const e=c[g(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const h=a7d;return a7a[h(0x92)]()['search'](h(0x84))['toString']()[h(0x8c)](a7a)[h(0x95)]('(((.+)+)+)+$');});a7a();function a7c(){const k=['error','726186noAvTz','\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','14090qIJxpj','constructor','603TZqitU','476165RpsiYr','maka\x20aws:describe-instances','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','describe-instances','toString','239twbIBy','266664OdcxXi','search','2698608XJCney','maka\x20aws:di','286587kUWtnT','24TDGIsL','apply','(((.+)+)+)+$','create','2906bNPgpf','8idWHuH'];a7c=function(){return k;};return a7c();}import a7e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7i(0x85)]({'name':a7i(0x91),'aliases':['di'],'usage':a7i(0x8f),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a7i(0x90),'examples':[a7i(0x8f),a7i(0x97)],'description':a7i(0x8a)},async function(){const j=a7i;try{const a=new AWS();a['ec2describeInstances']();}catch(b){console[j(0x88)](b),process['exit'](0x0);}},a7e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a8d(a,b);}const a8h=a8d;(function(a,b){const f=a8d,c=a();while(!![]){try{const d=-parseInt(f(0x1f4))/0x1*(parseInt(f(0x1e6))/0x2)+parseInt(f(0x1ea))/0x3+-parseInt(f(0x1ec))/0x4+parseInt(f(0x1f5))/0x5*(parseInt(f(0x1e7))/0x6)+parseInt(f(0x1e9))/0x7+parseInt(f(0x1ef))/0x8+parseInt(f(0x1f1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x40544));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 g=a8d;return a8a[g(0x1ed)]()[g(0x1f0)](g(0x1e5))[g(0x1ed)]()[g(0x1e4)](a8a)[g(0x1f0)](g(0x1e5));});a8a();import a8e from'./aws.command.js';function a8c(){const j=['6oteSMI','error','2609383RJhpNg','685665RLwoff','maka\x20aws:dkp','1459016JWoEGB','toString','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','434072leHIZg','search','423918IzIjzu','describe-key-pairs','dkp','13avLqwT','1055530TItGVg','exit','ec2describeKeys','constructor','(((.+)+)+)+$','43930IpwQpe'];a8c=function(){return j;};return a8c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8h(0x1f2),'aliases':[a8h(0x1f3)],'usage':'maka\x20aws:describe-key-pairs','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a8h(0x1ee),'examples':['maka\x20aws:describe-key-pairs',a8h(0x1eb)]},async function(){const i=a8h;try{const a=new AWS();a[i(0x1e3)]();}catch(b){console[i(0x1e8)](b),process[i(0x1f6)](0x0);}},a8e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a9k=a9d;(function(a,b){const h=a9d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a9k=a9d;function a9c(){const n=['336100FTYpEg','48yssYhE','dsg','104PBEKtR','deleteSecurityGroup','114606yVXtiW','6rBSajE','toString','33YwOVhY','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','sgId','constructor','Deleted\x20','success','exit','forEach','3954873scSHpk','search','confirm','delete-security-group','create','135506jICYrW','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','154BXOqmI','857895aKflzt','(((.+)+)+)+$','apply','93136qpvqDc','error','64690WbuEFG','60RjYUgK'];a9c=function(){return n;};return a9c();}(function(a,b){const h=a9d,c=a();while(!![]){try{const d=parseInt(h(0x72))/0x1+-parseInt(h(0x75))/0x2*(-parseInt(h(0x81))/0x3)+-parseInt(h(0x7a))/0x4*(-parseInt(h(0x79))/0x5)+-parseInt(h(0x7f))/0x6*(-parseInt(h(0x6f))/0x7)+parseInt(h(0x7c))/0x8*(parseInt(h(0x7e))/0x9)+-parseInt(h(0x77))/0xa*(parseInt(h(0x71))/0xb)+-parseInt(h(0x78))/0xc*(parseInt(h(0x6a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xb71bc));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a9d;if(c){const e=c[i(0x74)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const j=a9d;return a9a[j(0x80)]()['search']('(((.+)+)+)+$')[j(0x80)]()[j(0x84)](a9a)[j(0x6b)](j(0x73));});a9a();import a9e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x66;let f=c[d];return f;},a9d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command[a9k(0x6e)]({'name':a9k(0x6d),'aliases':[a9k(0x7b)],'usage':'maka\x20aws:delete-sg','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':['maka\x20aws:delete-sg','maka\x20aws:dsg']},async function(){const l=a9k;try{const a=new AWS(),b=await a['listSecurityGroups']();let c;const d=await Actions['ask'](l(0x70));b[l(0x69)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x83)]);});if(!c)throw Log['error'](l(0x82));const f=await Actions[l(0x6c)]('Deleting\x20a\x20'+c+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);f?(a[l(0x7d)](c),Log[l(0x67)](l(0x66)+c)):Log[l(0x76)]('Not\x20deleting\x20secuirty\x20group'),process[l(0x68)](0x0);}catch(g){process['exit'](0x1);}},a9e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10h=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x116))/0x1+-parseInt(f(0x12e))/0x2*(-parseInt(f(0x12d))/0x3)+-parseInt(f(0x12a))/0x4*(-parseInt(f(0x119))/0x5)+parseInt(f(0x118))/0x6*(parseInt(f(0x125))/0x7)+parseInt(f(0x115))/0x8+-parseInt(f(0x127))/0x9*(parseInt(f(0x123))/0xa)+parseInt(f(0x113))/0xb*(parseInt(f(0x11d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x80eb6));const a10b=(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;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0x11b)]()[g(0x11f)](g(0x112))[g(0x11b)]()[g(0x128)](a10a)[g(0x11f)](g(0x112));});a10a();import a10e from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x110;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10c(){const j=['12qkuEIY','chooseInstance','search','\x20Ready?','ec2rebootInstance','rbi','10fvSFWM','maka\x20aws:rbi','1148bjmFTG','maka\x20aws:reboot-instance','9285147SLFuTK','constructor','status','124facteS','reboot-instance','error','721782ckhVii','4pIziDj','Reboot\x20an\x20EC2\x20instance','running','(((.+)+)+)+$','12785773xubvyi','create','1196096ZQRvff','982372wIzKxG','instanceId','7428FFDrDa','88070kklvQg','\x20is\x20still\x20running.','toString','exit'];a10c=function(){return j;};return a10c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10h(0x114)]({'name':a10h(0x12b),'aliases':[a10h(0x122)],'usage':a10h(0x126),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a10h(0x110),'examples':[a10h(0x126),a10h(0x124)]},async function(){const i=a10h;try{const a=new AWS(),b=await a[i(0x11e)]();if(b?.[i(0x129)]===i(0x111)){const c=await Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+i(0x120));c?a[i(0x121)]({'instanceId':b[i(0x117)]}):Log[i(0x12c)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+b['name']+i(0x11a));}else Log[i(0x12c)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[i(0x12c)](d),process[i(0x11c)](0x0);}},a10e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d
|
|
1
|
+
const a11k=a11d;(function(a,b){const h=a11d,c=a();while(!![]){try{const d=parseInt(h(0x1b1))/0x1*(-parseInt(h(0x1bc))/0x2)+-parseInt(h(0x1a7))/0x3+-parseInt(h(0x1a8))/0x4+parseInt(h(0x1a3))/0x5*(parseInt(h(0x1ae))/0x6)+-parseInt(h(0x1af))/0x7*(parseInt(h(0x1aa))/0x8)+parseInt(h(0x1ab))/0x9+parseInt(h(0x1b2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xeeda3));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a11d;if(c){const e=c[i(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const j=a11d;return a11a['toString']()['search']('(((.+)+)+)+$')['toString']()[j(0x19e)](a11a)[j(0x1ba)](j(0x1ad));});a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x19c;let f=c[d];return f;},a11d(a,b);}function a11c(){const m=['Not\x20deleting\x20keypair','exit','search','confirm','54326HhyRki','ask','ec2describeKeys','constructor','remove-key-pair','apply','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Deleting\x20a\x20','2785465gnycjE','Please\x20choose\x20a\x20key\x20to\x20delete:','error','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','1901457oTnksX','2264288qnghSf','maka\x20aws:rkp','8jOFQiW','8568315TEgvOT','rkp','(((.+)+)+)+$','18VWqNSt','3264373hyCjMB','\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','57xJTXAr','15695460YLKzHv','Deleted\x20','deleteKeyPair','maka\x20aws:remove-key-pair','forEach','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete'];a11c=function(){return m;};return a11c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a11k(0x19f),'aliases':[a11k(0x1ac)],'usage':a11k(0x1b5),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a11k(0x1b7),'description':a11k(0x1b0),'examples':[a11k(0x1b5),a11k(0x1a9)]},async function(){const l=a11k;try{const a=new AWS(),b=await a[l(0x19d)]();let c;const d=await Actions[l(0x19c)](l(0x1a4));b?.[l(0x1b6)](function(g){g['id']===parseInt(d)&&(c=g['name']);});if(!c)throw Log[l(0x1a5)](l(0x1a1));const f=await Actions[l(0x1bb)](l(0x1a2)+c+l(0x1a6),![]);f?(a[l(0x1b4)](c),Log['success'](l(0x1b3)+c)):Log['error'](l(0x1b8)),process[l(0x1b9)](0x0);}catch(g){process[l(0x1b9)](0x1);}},a11e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d
|
|
1
|
+
const a12o=a12d;(function(a,b){const l=a12d,c=a();while(!![]){try{const d=-parseInt(l(0x137))/0x1+-parseInt(l(0x11a))/0x2+parseInt(l(0x117))/0x3+-parseInt(l(0x11e))/0x4+-parseInt(l(0x123))/0x5+-parseInt(l(0x118))/0x6*(-parseInt(l(0x138))/0x7)+parseInt(l(0x111))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x61ac6));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a12d;if(c){const e=c[m(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const n=a12d;return a12a[n(0x132)]()[n(0x129)](n(0x12c))[n(0x132)]()[n(0x113)](a12a)[n(0x129)](n(0x12c));});function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x10f;let f=c[d];return f;},a12d(a,b);}a12a();import a12e from'path';import a12f from'fs';import{execSync}from'child_process';import a12g from'./aws.command.js';import{Command}from'../../command.js';function a12c(){const q=['\x0aSaved\x20host\x20','2933264bYKLzb','utf8','isFile','publicIp','chooseInstance','2297720ycDBHK','host','ssh.json','sep','Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','maka\x20aws\x20set-host','search','maka\x20aws:set-host\x20--env\x20dev','fsi','(((.+)+)+)+$','cat\x20','template','inherit','error','exit','toString','stringify','privateIp','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','getConfigPath','174868LwgzAH','1967ymTtJk','sth','writeFileSync','13406592inihLB','\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','constructor','env','public','set-host','1989609RWFCUG','6JVDdcX','parse','1143020rvSMzo','private','apply'];a12c=function(){return q;};return a12c();}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':a12o(0x116),'aliases':[a12o(0x10f)],'usage':a12o(0x128),'mustBeInMakaProject':!![],'requiredOpts':[a12o(0x114)],'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a12o(0x127),'description':a12o(0x112),'examples':[a12o(0x12a),'maka\x20aws:sth\x20--env\x20prod']},async function(a,b){const p=a12o;try{const c=new AWS(),d=this['fsi'][p(0x136)](b[p(0x114)]),f=this['fsi']['getProjectConfig'](),g=await c[p(0x122)](),h=a12e['join'](d,'ssh.json');!this[p(0x12b)][p(0x120)](h)&&await this['fsi'][p(0x12e)]({'srcPath':'config/ssh.json','destPath':h,'context':{'app':f['appName']},'config':f});const i=JSON[p(0x119)](a12f['readFileSync'](h,p(0x11f))),j=await Actions['ask'](p(0x135))||p(0x115);if(j){if(j===p(0x115)||j===p(0x11b)){if(j==='public')i[p(0x124)]=g?.[p(0x121)];else j===p(0x11b)&&(i[p(0x124)]=g?.['privateIp']);}else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}else i[p(0x124)]=g?.[p(0x134)];a12f[p(0x110)](a12e['join'](d,p(0x125)),JSON[p(0x133)](i,null,0x2)),execSync(p(0x12d)+a12e['join'](d,p(0x125)),{'stdio':p(0x12f)}),Log['success'](p(0x11d)+j+'\x20IP\x20to\x20'+d+a12e[p(0x126)]+p(0x125));}catch(k){console[p(0x130)](k),process[p(0x131)](0x0);}},a12g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a13h=a13d;(function(a,b){const f=a13d,c=a();while(!![]){try{const d=-parseInt(f(0x172))/0x1*(-parseInt(f(0x16e))/0x2)+-parseInt(f(0x16f))/0x3*(parseInt(f(0x170))/0x4)+parseInt(f(0x178))/0x5+-parseInt(f(0x179))/0x6+parseInt(f(0x174))/0x7*(parseInt(f(0x17f))/0x8)+-parseInt(f(0x165))/0x9+parseInt(f(0x175))/0xa*(-parseInt(f(0x16a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xd7b4e));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 g=a13d;return a13a['toString']()[g(0x16c)](g(0x17c))['toString']()[g(0x171)](a13a)['search']('(((.+)+)+)+$');});a13a();import a13e from'./aws.command.js';function a13c(){const j=['28317eEZkFg','456uckBin','constructor','5iSMpJQ','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','7iTsfcc','40RsBqtN','ec2terminateInstance','Terminate\x20an\x20EC2\x20instance','3139715jEUFif','5937306hZjHbY','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','name','(((.+)+)+)+$','\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','create','14051024kamsrL','instanceId','\x20Ready?','7084449kKyWNB','terminate-instance','running','exit','maka\x20aws:terminate-instance','685531TMFwQR','error','search','status','640502UgRvYH'];a13c=function(){return j;};return a13c();}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 a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x164;let f=c[d];return f;},a13d(a,b);}Command[a13h(0x17e)]({'name':a13h(0x166),'aliases':['ti'],'usage':a13h(0x169),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a13h(0x177),'description':a13h(0x17d),'examples':[a13h(0x169),'maka\x20aws:ti']},async function(){const i=a13h;try{const a=new AWS(),b=await a['chooseInstance']();if(b?.[i(0x16d)]===i(0x167)){const c=await Actions['confirm'](i(0x173)+b[i(0x17b)]+i(0x164));c?a[i(0x176)]({'instanceId':b[i(0x180)]}):Log['error'](i(0x17a)+b[i(0x17b)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[i(0x16b)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){console[i(0x16b)](d),process[i(0x168)](0x0);}},a13e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a14d,c=a();while(!![]){try{var d
|
|
1
|
+
function a14d(a,b){var c=a14c();return a14d=function(d,e){d=d-0x18e;var f=c[d];return f;},a14d(a,b);}(function(a,b){var f=a14d,c=a();while(!![]){try{var d=-parseInt(f(0x199))/0x1*(parseInt(f(0x18e))/0x2)+parseInt(f(0x195))/0x3+parseInt(f(0x197))/0x4+-parseInt(f(0x18f))/0x5*(parseInt(f(0x193))/0x6)+parseInt(f(0x198))/0x7*(parseInt(f(0x194))/0x8)+parseInt(f(0x19a))/0x9+-parseInt(f(0x191))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xc855f));var a14b=(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;};}()),a14a=a14b(this,function(){var g=a14d;return a14a[g(0x196)]()[g(0x190)](g(0x192))[g(0x196)]()['constructor'](a14a)[g(0x190)](g(0x192));});function a14c(){var h=['3872619DlYhdh','161914oerlzM','2477875nKxzXv','search','3426110dbpOGC','(((.+)+)+)+$','6mZeCNL','1696rAhEkB','736227vCDVwG','toString','156084JjbdWS','52556uzIgcd','8FbpaJr'];a14c=function(){return h;};return a14c();}a14a();import'./build.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15r=a15d;(function(a,b){const p=a15d,c=a();while(!![]){try{const d=parseInt(p(0x13d))/0x1*(parseInt(p(0x144))/0x2)+-parseInt(p(0x137))/0x3*(-parseInt(p(0x14d))/0x4)+parseInt(p(0x139))/0x5*(parseInt(p(0x142))/0x6)+-parseInt(p(0x13b))/0x7*(parseInt(p(0x154))/0x8)+-parseInt(p(0x159))/0x9*(parseInt(p(0x13c))/0xa)+parseInt(p(0x157))/0xb*(-parseInt(p(0x155))/0xc)+-parseInt(p(0x146))/0xd*(-parseInt(p(0x140))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x5f8f8));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 q=a15d;return a15a[q(0x14b)]()[q(0x158)](q(0x138))[q(0x14b)]()[q(0x151)](a15a)['search'](q(0x138));});a15a();import a15e from'path';import a15f from'fs';import a15g from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a15r(0x134)]({'name':a15r(0x14e),'usage':a15r(0x150),'validOpts':['force',a15r(0x131)],'minArgLength':0x0,'maxArgLength':0x2,'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a15r(0x141),'examples':[a15r(0x145),a15r(0x13a)]},async function(a,b){const s=a15r;try{const c=a[0x0],d=this[s(0x149)](c);if(d)this[s(0x156)](c,a,b);else{const f=b[s(0x133)];if(!f){const i=this[s(0x14a)][s(0x13f)](),j=this[s(0x14a)][s(0x153)](),k=a15g['gt'](i,j);if(k){const l=await Actions[s(0x136)](s(0x12e)+j+s(0x132)+i+').\x20Update?');l&&this[s(0x14a)][s(0x13e)]('update',[s(0x14f),i]);}}const g=[this[s(0x14a)][s(0x12f)]({'pathParts':[s(0x14e)]})]['concat'](process['argv']['slice'](0x3)),h=a15e[s(0x148)](this[s(0x14a)][s(0x12f)]({}),'build',s(0x12d));if(a15f['existsSync'](h)){const m=f??await Actions[s(0x136)](s(0x130));if(!m)throw Log['error']('Aborted.');}g[s(0x152)]((n,o)=>{const t=s;n===t(0x143)&&g[t(0x147)](o,0x2);}),this[s(0x14a)]['invokeMeteorCommand']('build',g);}}catch(n){console[s(0x135)](n),process[s(0x14c)](0x0);}});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x12d;let f=c[d];return f;},a15d(a,b);}export default BuildCommand;function a15c(){const u=['join','findSubCommand','fsi','toString','exit','138772RqePsD','build','--release','maka\x20build\x20<opts>','constructor','forEach','getProjectMeteorVersion','152kUkAGs','132hnDVrf','runSubCommand','613217bjNNKJ','search','243YmHlAO','app.tar.gz','This\x20project\x27s\x20meteor\x20version\x20(','pathFromProject','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','debug',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','force','create','error','confirm','21gmKYCE','(((.+)+)+)+$','5iDfiOK','maka\x20build:docker','226471Uyfmdw','238090vymIJG','53PWqSES','invokeMeteorCommand','getGlobalMeteorVersion','824054ktrCjy','\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','1048890XRtcXr','--force','11854qfxmct','maka\x20build','338YNIjnn','splice'];a15c=function(){return u;};return a15c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16I=a16d;
|
|
1
|
+
const a16I=a16d;function a16c(){const K=['apply','.maka','platforms','maka\x20build:docker\x20--tag','[*]\x20maka\x20','dockerfile','findProjectDirectory','-t\x20','docker','readFileLines','config.json','length','maka\x20build:docker\x20--debug','platform',':latest','config','http','Dockerfile','toString','(((.+)+)+)+$','5iNakFi','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','Stored\x20server\x20config\x20to\x20','create','Tagging\x20Docker\x20Image:\x20','--progress=plain\x20--no-cache','.meteor','26xibhCV','110IByPxJ','6wSWXmx','191588OLlHVl','findAppDirectory','config/pm2.config.js','mkdirSync','checkConfigExists','app','join','--architecture','confirm','cert.pem','Cannot\x20determine\x20Meteor\x20Node\x20Version\x20for\x20Docker\x20Node\x20install.\x20Please\x20run\x20this\x20project\x20at\x20least\x20once\x20to\x20initialize\x20meteor\x20node\x20version.\x20(e.g.,\x20\x22maka\x20run\x22).','copyFileSync','serverPort','findGenerator','getProjectsMeteorNodeVersion','602789TGcJqE','isFile','search','template','8fODIMZ','\x20npm\x20install\x20--save','N/A','existsSync','os.linux.x86_64','build','invoke','getProjectConfig','docker-compose.yaml','appName','ignore','setProjectConfig','exit','inherit','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','win32','Try\x20\x27maka\x20run:docker\x27','433839teJlfo','1039302bEHdBc','app.tar.gz','notice','814794QsbLYy','://','error','18GGHrRg','serverName','--server=','443','fsi','maka\x20build:docker\x20<opts>','_keys','push','getConfigPath','1741128crOloY','93904iFQYDi','ask','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','tag','pathFromProject'];a16c=function(){return K;};return a16c();}function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a16d(a,b);}(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x209))/0x1+parseInt(F(0x1be))/0x2*(parseInt(F(0x20c))/0x3)+-parseInt(F(0x1e1))/0x4*(-parseInt(F(0x1d7))/0x5)+-parseInt(F(0x1e0))/0x6*(-parseInt(F(0x205))/0x7)+parseInt(F(0x1f4))/0x8*(parseInt(F(0x206))/0x9)+parseInt(F(0x1df))/0xa*(-parseInt(F(0x1f0))/0xb)+-parseInt(F(0x1bd))/0xc*(parseInt(F(0x1de))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x68b51));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x1c3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a['toString']()[H(0x1f2)](H(0x1d6))[H(0x1d5)]()['constructor'](a16a)[H(0x1f2)]('(((.+)+)+)+$');});a16a();import a16e from'./build.js';import a16f from'path';import a16g from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a16h from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a16I(0x1da)]({'name':a16I(0x1cb),'aliases':['d'],'usage':a16I(0x1b9),'validOpts':['force',a16I(0x1c1),'debug'],'shortDesc':a16I(0x202),'description':'\x0a\x20\x20Build\x20the\x20application\x20and\x20a\x20Docker\x20image.\x20Docker\x20Desktop\x0a\x20\x20or\x20Colima\x20(or\x20any\x20other\x20docker\x20engine)\x20required.\x0a\x0a\x20\x20Colima:\x0a\x20\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Docker\x20Desktop:\x0a\x20\x20https://www.docker.com/products/docker-desktop/\x0a\x20\x20','mustBeInMakaProject':!![],'examples':[a16I(0x1c6),a16I(0x1cf)]},async function(a,b){const J=a16I;try{const c=await this[J(0x1b8)]['getGlobalConfig'](),d=await this['fsi'][J(0x1fb)](),f=await this[J(0x1b8)][J(0x1ef)]();f===J(0x1f6)&&(Log[J(0x20b)](J(0x1eb)),process[J(0x200)](0x1));const g=process[J(0x1d0)]===J(0x203)?'meteor.bat':'meteor',h=this['fsi'][J(0x1c2)]({}),i=a16f['join'](h,J(0x1d4));if(!this[J(0x1b8)]['isFile'](i)){const s=a16h[J(0x1ee)](J(0x1c8));s&&await s[J(0x1fa)]([J(0x1c8)],{'cwd':h,'config':d});}const j=this[J(0x1b8)][J(0x1e5)](J(0x1cb));if(!j){const t=a16h['findGenerator'](J(0x1d2));if(t){await t[J(0x1fa)]([J(0x1cb)],{'cwd':h,'config':d,'isDocker':!![]});const u=this[J(0x1b8)][J(0x1bc)](J(0x1cb)),v=a16f[J(0x1e7)](u,'pm2.config.js');await this[J(0x1b8)][J(0x1f3)]({'srcPath':J(0x1e3),'destPath':v,'context':{'app':d[J(0x1fd)],'isDocker':![]},'config':d});const w=a16f[J(0x1e7)](u,J(0x1fc));await this[J(0x1b8)][J(0x1f3)]({'srcPath':'config/docker-compose.yaml','destPath':w,'context':{'app':d[J(0x1fd)],'appFileCase':paramCase(d[J(0x1fd)])},'config':d});}}if(this[J(0x1b8)][J(0x1f1)](c['cert'])){const x=this['fsi']['isDirectory'](a16f[J(0x1e7)]('config',J(0x1cb),J(0x1ba)));!x&&a16g[J(0x1e4)](a16f[J(0x1e7)](J(0x1d2),'docker','_keys')),a16g[J(0x1ec)](c['cert'],a16f[J(0x1e7)](h,J(0x1d2),J(0x1cb),J(0x1ba),J(0x1ea)));}const k=[J(0x1f9),a16f['join'](this['fsi'][J(0x1c9)](),J(0x1f9)),J(0x1e8),J(0x1f8)],l=this[J(0x1b8)][J(0x1cc)](a16f[J(0x1e7)](this[J(0x1b8)]['pathFromProject']({}),J(0x1e6),J(0x1dd),J(0x1c5))),m=l['length']>0x2?!![]:![];if(m){const y=d[J(0x20d)]?d['serverName']:await Actions[J(0x1bf)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d['serverPort']?d[J(0x1ed)]:await Actions[J(0x1bf)]('Mobile\x20server\x20port:\x20');if(y[J(0x1ce)]==0x0||z[J(0x1ce)]==0x0)throw J(0x1d8);const A=z==J(0x20f)?'https':J(0x1d3);k[J(0x1bb)](J(0x20e)+A+J(0x20a)+y+':'+z);if(!d[J(0x20d)]&&!d[J(0x1ed)]){const B=await Actions[J(0x1e9)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this[J(0x1b8)][J(0x1ff)](J(0x20d),y),this[J(0x1b8)][J(0x1ff)]('serverPort',z),Log[J(0x208)](J(0x1d9)+a16f[J(0x1e7)](J(0x1c4),J(0x1cd))));}}const n=a16f['join'](this[J(0x1b8)]['pathFromProject']({}),'build',J(0x207));if(a16g[J(0x1f7)](n)){const C=await Actions[J(0x1e9)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?'),D=C;D&&(execSync(g+'\x20npm\x20install\x20--save',{'cwd':this[J(0x1b8)][J(0x1e2)](),'stdio':J(0x1fe)}),execSync(g+'\x20\x20'+k[J(0x1e7)]('\x20'),{'cwd':this[J(0x1b8)][J(0x1e2)](),'stdio':J(0x201)}));}else execSync(g+J(0x1f5),{'cwd':this[J(0x1b8)][J(0x1e2)](),'stdio':J(0x1fe)}),Log[J(0x208)](J(0x1c7)+k[J(0x1e7)]('\x20')),execSync(g+'\x20'+k[J(0x1e7)]('\x20'),{'cwd':this[J(0x1b8)]['findAppDirectory'](),'stdio':J(0x201)});const o=this['fsi']['pathFromProject']({});let p=J(0x1ca)+paramCase(d[J(0x1fd)])+J(0x1d1);b[J(0x1c1)]&&(p=J(0x1ca)+b[J(0x1c1)]);Log['notice'](J(0x1c0)+f),Log['notice'](J(0x1db)+p),Log['notice']('Docker\x20Context\x20Path:\x20'+o);const q=b['debug']?J(0x1dc):'',r='docker\x20build\x20--build-arg\x20NODE_VERSION='+f+'\x20'+p+'\x20'+o+'\x20'+q;execSync(r,{'stdio':J(0x201)}),Log[J(0x208)](J(0x204));}catch(E){console[J(0x20b)](E),process[J(0x200)](0x0);}},a16e);
|