@knocklabs/cli 0.1.0-rc.4 → 0.1.3
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 +172 -77
- package/dist/commands/commit/index.js +6 -3
- package/dist/commands/commit/promote.js +5 -2
- package/dist/commands/knock.js +102 -0
- package/dist/commands/ping.js +2 -4
- package/dist/commands/translation/get.js +128 -0
- package/dist/commands/translation/list.js +57 -9
- package/dist/commands/translation/pull.js +72 -21
- package/dist/commands/translation/push.js +23 -12
- package/dist/commands/translation/validate.js +12 -8
- package/dist/commands/whoami.js +31 -0
- package/dist/commands/workflow/activate.js +19 -8
- package/dist/commands/workflow/get.js +14 -10
- package/dist/commands/workflow/list.js +7 -3
- package/dist/commands/workflow/new.js +4 -5
- package/dist/commands/workflow/pull.js +18 -10
- package/dist/commands/workflow/push.js +60 -47
- package/dist/commands/workflow/run.js +58 -0
- package/dist/commands/workflow/validate.js +52 -48
- package/dist/lib/api-v1.js +32 -5
- package/dist/lib/base-command.js +8 -4
- package/dist/lib/helpers/flag.js +12 -1
- package/dist/lib/helpers/page.js +7 -2
- package/dist/lib/helpers/request.js +1 -1
- package/dist/lib/helpers/ux.js +2 -2
- package/dist/lib/marshal/translation/helpers.js +21 -7
- package/dist/lib/marshal/translation/reader.js +17 -14
- package/dist/lib/marshal/translation/types.js +1 -0
- package/dist/lib/marshal/translation/writer.js +26 -16
- package/dist/lib/marshal/workflow/helpers.js +64 -2
- package/dist/lib/marshal/workflow/reader.js +62 -0
- package/dist/lib/run-context/helpers.js +2 -2
- package/oclif.manifest.json +281 -24
- package/package.json +25 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knocklabs/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Knock CLI",
|
|
5
5
|
"author": "@knocklabs",
|
|
6
6
|
"bin": {
|
|
@@ -17,45 +17,45 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@oclif/core": "^
|
|
20
|
+
"@oclif/core": "^2",
|
|
21
21
|
"@oclif/plugin-help": "^5",
|
|
22
|
-
"@oclif/plugin-plugins": "^
|
|
23
|
-
"@prantlf/jsonlint": "^
|
|
22
|
+
"@oclif/plugin-plugins": "^3",
|
|
23
|
+
"@prantlf/jsonlint": "^14.0.3",
|
|
24
24
|
"axios": "^1.4.0",
|
|
25
|
-
"date-fns": "^2.
|
|
25
|
+
"date-fns": "^2.30.0",
|
|
26
26
|
"enquirer": "^2.3.6",
|
|
27
|
-
"fs-extra": "^
|
|
27
|
+
"fs-extra": "^11.1.1",
|
|
28
28
|
"liquidjs": "^10.7.1",
|
|
29
29
|
"locale-codes": "^1.3.1",
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
|
-
"yup": "^
|
|
31
|
+
"yup": "^1.1.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@oclif/test": "^2.3.
|
|
34
|
+
"@oclif/test": "^2.3.21",
|
|
35
35
|
"@swc/cli": "^0.1.62",
|
|
36
36
|
"@swc/core": "^1.3.37",
|
|
37
37
|
"@swc/helpers": "^0.4.14",
|
|
38
38
|
"@types/chai": "^4",
|
|
39
|
-
"@types/fs-extra": "^
|
|
40
|
-
"@types/mocha": "^
|
|
41
|
-
"@types/node": "^
|
|
39
|
+
"@types/fs-extra": "^11.0.1",
|
|
40
|
+
"@types/mocha": "^10.0.1",
|
|
41
|
+
"@types/node": "^20.2.5",
|
|
42
42
|
"chai": "^4",
|
|
43
43
|
"eslint": "^7.32.0",
|
|
44
44
|
"eslint-config-oclif": "^4",
|
|
45
45
|
"eslint-config-oclif-typescript": "^1.0.3",
|
|
46
|
-
"eslint-config-prettier": "^8.
|
|
46
|
+
"eslint-config-prettier": "^8.8.0",
|
|
47
47
|
"eslint-plugin-prettier": "^4.2.1",
|
|
48
|
-
"eslint-plugin-simple-import-sort": "^
|
|
49
|
-
"mocha": "^
|
|
50
|
-
"nock": "^13.3.
|
|
48
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
49
|
+
"mocha": "^10",
|
|
50
|
+
"nock": "^13.3.1",
|
|
51
51
|
"oclif": "^3",
|
|
52
52
|
"prettier": "2.8.8",
|
|
53
53
|
"shx": "^0.3.4",
|
|
54
|
-
"sinon": "^15.0
|
|
54
|
+
"sinon": "^15.1.0",
|
|
55
55
|
"ts-node": "^10.9.1",
|
|
56
56
|
"tsconfig-paths": "^4.2.0",
|
|
57
|
-
"tslib": "^2.5.
|
|
58
|
-
"typescript": "^
|
|
57
|
+
"tslib": "^2.5.2",
|
|
58
|
+
"typescript": "^5.0.4"
|
|
59
59
|
},
|
|
60
60
|
"oclif": {
|
|
61
61
|
"bin": "knock",
|
|
@@ -67,8 +67,14 @@
|
|
|
67
67
|
],
|
|
68
68
|
"topicSeparator": " ",
|
|
69
69
|
"topics": {
|
|
70
|
+
"commit": {
|
|
71
|
+
"description": "Commit or promote changes."
|
|
72
|
+
},
|
|
70
73
|
"workflow": {
|
|
71
|
-
"description": "
|
|
74
|
+
"description": "Manage notification workflows."
|
|
75
|
+
},
|
|
76
|
+
"translation": {
|
|
77
|
+
"description": "Manage translation files."
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
80
|
},
|