@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.
Files changed (34) hide show
  1. package/README.md +172 -77
  2. package/dist/commands/commit/index.js +6 -3
  3. package/dist/commands/commit/promote.js +5 -2
  4. package/dist/commands/knock.js +102 -0
  5. package/dist/commands/ping.js +2 -4
  6. package/dist/commands/translation/get.js +128 -0
  7. package/dist/commands/translation/list.js +57 -9
  8. package/dist/commands/translation/pull.js +72 -21
  9. package/dist/commands/translation/push.js +23 -12
  10. package/dist/commands/translation/validate.js +12 -8
  11. package/dist/commands/whoami.js +31 -0
  12. package/dist/commands/workflow/activate.js +19 -8
  13. package/dist/commands/workflow/get.js +14 -10
  14. package/dist/commands/workflow/list.js +7 -3
  15. package/dist/commands/workflow/new.js +4 -5
  16. package/dist/commands/workflow/pull.js +18 -10
  17. package/dist/commands/workflow/push.js +60 -47
  18. package/dist/commands/workflow/run.js +58 -0
  19. package/dist/commands/workflow/validate.js +52 -48
  20. package/dist/lib/api-v1.js +32 -5
  21. package/dist/lib/base-command.js +8 -4
  22. package/dist/lib/helpers/flag.js +12 -1
  23. package/dist/lib/helpers/page.js +7 -2
  24. package/dist/lib/helpers/request.js +1 -1
  25. package/dist/lib/helpers/ux.js +2 -2
  26. package/dist/lib/marshal/translation/helpers.js +21 -7
  27. package/dist/lib/marshal/translation/reader.js +17 -14
  28. package/dist/lib/marshal/translation/types.js +1 -0
  29. package/dist/lib/marshal/translation/writer.js +26 -16
  30. package/dist/lib/marshal/workflow/helpers.js +64 -2
  31. package/dist/lib/marshal/workflow/reader.js +62 -0
  32. package/dist/lib/run-context/helpers.js +2 -2
  33. package/oclif.manifest.json +281 -24
  34. package/package.json +25 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knocklabs/cli",
3
- "version": "0.1.0-rc.4",
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": "^1.26.2",
20
+ "@oclif/core": "^2",
21
21
  "@oclif/plugin-help": "^5",
22
- "@oclif/plugin-plugins": "^2.4.7",
23
- "@prantlf/jsonlint": "^11.7.2",
22
+ "@oclif/plugin-plugins": "^3",
23
+ "@prantlf/jsonlint": "^14.0.3",
24
24
  "axios": "^1.4.0",
25
- "date-fns": "^2.29.3",
25
+ "date-fns": "^2.30.0",
26
26
  "enquirer": "^2.3.6",
27
- "fs-extra": "^10.1.0",
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": "^0.32.11"
31
+ "yup": "^1.1.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@oclif/test": "^2.3.15",
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": "^9.0.13",
40
- "@types/mocha": "^9.0.0",
41
- "@types/node": "^16.18.24",
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.6.0",
46
+ "eslint-config-prettier": "^8.8.0",
47
47
  "eslint-plugin-prettier": "^4.2.1",
48
- "eslint-plugin-simple-import-sort": "^8.0.0",
49
- "mocha": "^9",
50
- "nock": "^13.3.0",
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.4",
54
+ "sinon": "^15.1.0",
55
55
  "ts-node": "^10.9.1",
56
56
  "tsconfig-paths": "^4.2.0",
57
- "tslib": "^2.5.0",
58
- "typescript": "^4.9.5"
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": "interact with and manage workflows"
74
+ "description": "Manage notification workflows."
75
+ },
76
+ "translation": {
77
+ "description": "Manage translation files."
72
78
  }
73
79
  }
74
80
  },