retirement-radar 0.1.1 → 0.2.0
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/package.json +6 -2
- package/src/cli.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "retirement-radar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Read-only scan of your AWS account for EKS, RDS and Lambda versions near end of support.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"retirement-radar": "src/cli.js"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "node --test",
|
|
14
|
+
"hooks": "git config core.hooksPath .githooks",
|
|
14
15
|
"prepublishOnly": "node --test"
|
|
15
16
|
},
|
|
16
17
|
"engines": {
|
|
@@ -25,7 +26,10 @@
|
|
|
25
26
|
"deprecation",
|
|
26
27
|
"devops"
|
|
27
28
|
],
|
|
28
|
-
"repository":
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/Het101/retirement-radar.git"
|
|
32
|
+
},
|
|
29
33
|
"homepage": "https://hetops.dev",
|
|
30
34
|
"license": "MIT",
|
|
31
35
|
"dependencies": {
|
package/src/cli.js
CHANGED
|
@@ -5,6 +5,7 @@ const { execFile } = require('node:child_process');
|
|
|
5
5
|
const { SEVERITY, loadRetirements, evaluate, sortFindings, failsAt } = require('./radar');
|
|
6
6
|
|
|
7
7
|
const HELP = `Usage: retirement-radar scan [options]
|
|
8
|
+
retirement-radar --version
|
|
8
9
|
|
|
9
10
|
Options:
|
|
10
11
|
--region a,b Regions to scan (default: every enabled region)
|
|
@@ -97,6 +98,7 @@ function table(findings) {
|
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
async function main(argv = process.argv.slice(2)) {
|
|
101
|
+
if (argv[0] === '--version' || argv[0] === '-v') { console.log(require('../package.json').version); return 0; }
|
|
100
102
|
let o;
|
|
101
103
|
try { o = parseArgs(argv); } catch (e) { console.error(e.message + '\n\n' + HELP); return 2; }
|
|
102
104
|
if (o.cmd !== 'scan') { console.log(HELP); return o.cmd ? 2 : 0; }
|