@knocklabs/cli 0.1.23 → 0.2.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/README.md +128 -102
- package/bin/dev.js +4 -4
- package/dist/commands/branch/create.js +56 -0
- package/dist/commands/branch/delete.js +60 -0
- package/dist/commands/branch/list.js +89 -0
- package/dist/commands/knock.js +3 -0
- package/dist/commands/login.js +50 -0
- package/dist/commands/logout.js +48 -0
- package/dist/commands/whoami.js +9 -6
- package/dist/lib/api-v1.js +30 -7
- package/dist/lib/auth.js +256 -0
- package/dist/lib/base-command.js +85 -12
- package/dist/lib/helpers/arg.js +23 -0
- package/dist/lib/helpers/browser.js +25 -0
- package/dist/lib/helpers/request.js +48 -2
- package/dist/lib/marshal/index.isomorphic.js +8 -4
- package/dist/lib/marshal/reusable-step/helpers.js +72 -0
- package/dist/lib/marshal/reusable-step/index.js +19 -0
- package/dist/lib/marshal/reusable-step/processor.isomorphic.js +86 -0
- package/dist/lib/marshal/reusable-step/types.js +4 -0
- package/dist/lib/types.js +4 -0
- package/dist/lib/urls.js +32 -0
- package/dist/lib/user-config.js +69 -31
- package/oclif.manifest.json +393 -146
- package/package.json +11 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knocklabs/cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Knock CLI",
|
|
5
5
|
"author": "@knocklabs",
|
|
6
6
|
"bin": {
|
|
@@ -17,18 +17,20 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"@knocklabs/mgmt": "^0.5.0",
|
|
20
21
|
"@oclif/core": "^3",
|
|
21
22
|
"@oclif/plugin-help": "^6",
|
|
22
23
|
"@prantlf/jsonlint": "^14.1.0",
|
|
23
|
-
"axios": "^1.
|
|
24
|
+
"axios": "^1.11.0",
|
|
24
25
|
"date-fns": "^2.30.0",
|
|
25
26
|
"enquirer": "^2.4.1",
|
|
26
27
|
"fs-extra": "^11.3.1",
|
|
27
28
|
"liquidjs": "^10.21.1",
|
|
28
29
|
"locale-codes": "^1.3.1",
|
|
29
30
|
"lodash": "^4.17.21",
|
|
31
|
+
"open": "8.4.2",
|
|
30
32
|
"quicktype-core": "^23.2.6",
|
|
31
|
-
"
|
|
33
|
+
"zod": "^4.1.8"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
36
|
"@oclif/test": "^3",
|
|
@@ -38,13 +40,13 @@
|
|
|
38
40
|
"@types/chai": "^4",
|
|
39
41
|
"@types/fs-extra": "^11.0.4",
|
|
40
42
|
"@types/mocha": "^10.0.10",
|
|
41
|
-
"@types/node": "^20.19.
|
|
43
|
+
"@types/node": "^20.19.14",
|
|
42
44
|
"chai": "^4",
|
|
43
45
|
"eslint": "^7.32.0",
|
|
44
46
|
"eslint-config-oclif": "^4",
|
|
45
47
|
"eslint-config-oclif-typescript": "^1.0.3",
|
|
46
48
|
"eslint-config-prettier": "^8.10.2",
|
|
47
|
-
"eslint-plugin-prettier": "^4.2.
|
|
49
|
+
"eslint-plugin-prettier": "^4.2.5",
|
|
48
50
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
49
51
|
"mocha": "^10",
|
|
50
52
|
"nock": "^13.5.6",
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
"ts-node": "^10.9.1",
|
|
56
58
|
"tsconfig-paths": "^4.2.0",
|
|
57
59
|
"tslib": "^2.8.1",
|
|
58
|
-
"typescript": "^5.
|
|
60
|
+
"typescript": "^5.9.2"
|
|
59
61
|
},
|
|
60
62
|
"oclif": {
|
|
61
63
|
"bin": "knock",
|
|
@@ -90,8 +92,9 @@
|
|
|
90
92
|
"type.check": "tsc",
|
|
91
93
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
92
94
|
"prepack": "yarn build && oclif manifest && oclif readme",
|
|
93
|
-
"test": "mocha
|
|
94
|
-
"version": "oclif readme && git add README.md"
|
|
95
|
+
"test": "mocha \"test/**/*.test.ts\"",
|
|
96
|
+
"version": "oclif readme && git add README.md",
|
|
97
|
+
"check": "yarn run lint && yarn run format.check && yarn run type.check"
|
|
95
98
|
},
|
|
96
99
|
"engines": {
|
|
97
100
|
"node": ">=18.17.0"
|