@dsmrt/axiom-cli 0.2.3 → 0.3.1
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/CHANGELOG.md +15 -0
- package/README.md +2 -2
- package/dist/bin/axiom.js +1 -1
- package/dist/bin/axiom.mjs +1 -1
- package/dist/{chunk-FKMXG4JE.mjs → chunk-QT654PKF.mjs} +3 -3
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +22 -22
- package/vitest.config.mts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @dsmrt/axiom-cli
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f4c9e19: fix: remove debug and fix testing
|
|
8
|
+
- Updated dependencies [f4c9e19]
|
|
9
|
+
- @dsmrt/axiom-aws-sdk@0.2.2
|
|
10
|
+
- @dsmrt/axiom-config@0.2.3
|
|
11
|
+
|
|
12
|
+
## 0.3.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 9d383de: Updating the cli config command to print json
|
|
17
|
+
|
|
3
18
|
## 0.2.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -26,12 +26,12 @@ npm install @dsmrt/axiom-cli
|
|
|
26
26
|
- View rendered configs
|
|
27
27
|
- Manage SSM Parameters
|
|
28
28
|
|
|
29
|
-
```
|
|
29
|
+
```bash
|
|
30
30
|
axiom --help
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
## Acknowledgements
|
|
34
34
|
|
|
35
35
|
- [Nate Iler](https://github.com/nateiler)
|
|
36
|
+
- [Go Mondo](https://www.go-mondo.com)
|
|
36
37
|
- [Flipbox Digital](https://www.flipboxdigital.com)
|
|
37
|
-
- [Go Mondo](https://www.flipboxdigital.com)
|
package/dist/bin/axiom.js
CHANGED
|
@@ -38,7 +38,7 @@ var Config = class {
|
|
|
38
38
|
return args;
|
|
39
39
|
};
|
|
40
40
|
handler = async (args) => {
|
|
41
|
-
console.log(await this.loadConfig(args));
|
|
41
|
+
console.log(JSON.stringify(await this.loadConfig(args)));
|
|
42
42
|
};
|
|
43
43
|
loadConfig = async (args) => {
|
|
44
44
|
return (0, import_axiom_config.loadConfig)(args);
|
package/dist/bin/axiom.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "../chunk-
|
|
2
|
+
import "../chunk-QT654PKF.mjs";
|
|
@@ -13,7 +13,7 @@ var Config = class {
|
|
|
13
13
|
return args;
|
|
14
14
|
};
|
|
15
15
|
handler = async (args) => {
|
|
16
|
-
console.log(await this.loadConfig(args));
|
|
16
|
+
console.log(JSON.stringify(await this.loadConfig(args)));
|
|
17
17
|
};
|
|
18
18
|
loadConfig = async (args) => {
|
|
19
19
|
return loadConfig(args);
|
|
@@ -385,10 +385,10 @@ USAGE:
|
|
|
385
385
|
).demandCommand(1, "").alias("h", "help").argv;
|
|
386
386
|
|
|
387
387
|
export {
|
|
388
|
-
Config,
|
|
389
|
-
ParamsCommand,
|
|
390
388
|
commonOptions,
|
|
391
389
|
awsOptions,
|
|
390
|
+
Config,
|
|
391
|
+
ParamsCommand,
|
|
392
392
|
GetCommand,
|
|
393
393
|
SetCommand,
|
|
394
394
|
DeleteCommand
|
package/dist/index.js
CHANGED
|
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
Config: () => Config,
|
|
34
34
|
DeleteCommand: () => DeleteCommand,
|
|
35
35
|
GetCommand: () => GetCommand,
|
|
@@ -38,7 +38,7 @@ __export(src_exports, {
|
|
|
38
38
|
awsOptions: () => awsOptions,
|
|
39
39
|
commonOptions: () => commonOptions
|
|
40
40
|
});
|
|
41
|
-
module.exports = __toCommonJS(
|
|
41
|
+
module.exports = __toCommonJS(index_exports);
|
|
42
42
|
|
|
43
43
|
// src/cache.ts
|
|
44
44
|
var import_os = __toESM(require("os"));
|
|
@@ -130,7 +130,7 @@ var Config = class {
|
|
|
130
130
|
return args;
|
|
131
131
|
};
|
|
132
132
|
handler = async (args) => {
|
|
133
|
-
console.log(await this.loadConfig(args));
|
|
133
|
+
console.log(JSON.stringify(await this.loadConfig(args)));
|
|
134
134
|
};
|
|
135
135
|
loadConfig = async (args) => {
|
|
136
136
|
return (0, import_axiom_config.loadConfig)(args);
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmrt/axiom-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "axiom cli for managing configs including secrets",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -28,31 +28,31 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@changesets/cli": "^2.27.
|
|
32
|
-
"@types/inquirer": "^8.
|
|
33
|
-
"@types/node": "^20.
|
|
34
|
-
"@types/yargs": "^17.0.
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
36
|
-
"@typescript-eslint/parser": "^6.
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"vitest": "^1.
|
|
31
|
+
"@changesets/cli": "^2.27.11",
|
|
32
|
+
"@types/inquirer": "^8.2.10",
|
|
33
|
+
"@types/node": "^20.17.10",
|
|
34
|
+
"@types/yargs": "^17.0.33",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
36
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
37
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
38
|
+
"aws-sdk-client-mock": "^3.1.0",
|
|
39
|
+
"eslint": "^8.57.1",
|
|
40
|
+
"prettier": "^3.4.2",
|
|
41
|
+
"ts-node": "^10.9.2",
|
|
42
|
+
"tsup": "^8.3.5",
|
|
43
|
+
"typescript": "^5.7.2",
|
|
44
|
+
"vitest": "^1.6.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@aws-sdk/client-ssm": "^3.
|
|
48
|
-
"@aws-sdk/client-sts": "^3.
|
|
49
|
-
"@aws-sdk/credential-providers": "^3.
|
|
50
|
-
"@aws-sdk/types": "^3.
|
|
47
|
+
"@aws-sdk/client-ssm": "^3.716.0",
|
|
48
|
+
"@aws-sdk/client-sts": "^3.716.0",
|
|
49
|
+
"@aws-sdk/credential-providers": "^3.716.0",
|
|
50
|
+
"@aws-sdk/types": "^3.714.0",
|
|
51
51
|
"chalk": "^4.1.2",
|
|
52
|
-
"inquirer": "^8.
|
|
52
|
+
"inquirer": "^8.2.6",
|
|
53
53
|
"yargs": "^17.7.2",
|
|
54
|
-
"@dsmrt/axiom-aws-sdk": "^0.2.
|
|
55
|
-
"@dsmrt/axiom-config": "^0.2.
|
|
54
|
+
"@dsmrt/axiom-aws-sdk": "^0.2.2",
|
|
55
|
+
"@dsmrt/axiom-config": "^0.2.3"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"lint": "eslint ./src/ ./src/aws ./src/bin --ext .ts",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// vitest.config.ts
|
|
2
|
+
import { defineConfig } from "vitest/config";
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
test: {
|
|
6
|
+
include: ["src/**/*.test.ts"],
|
|
7
|
+
coverage: {
|
|
8
|
+
provider: "v8",
|
|
9
|
+
all: true,
|
|
10
|
+
exclude: ["lib/**/*", "src/__mocks__/**/*"],
|
|
11
|
+
reporter: ["text-summary", "json-summary"],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
});
|