@knocklabs/cli 0.1.6 → 0.1.8
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 +74 -30
- package/dist/commands/commit/get.js +76 -0
- package/dist/commands/commit/list.js +99 -0
- package/dist/commands/commit/promote.js +36 -3
- package/dist/commands/layout/list.js +2 -2
- package/dist/commands/layout/pull.js +3 -3
- package/dist/commands/layout/push.js +2 -2
- package/dist/commands/translation/list.js +2 -2
- package/dist/commands/translation/pull.js +2 -2
- package/dist/commands/workflow/list.js +2 -2
- package/dist/commands/workflow/new.js +2 -2
- package/dist/commands/workflow/pull.js +3 -3
- package/dist/commands/workflow/push.js +2 -2
- package/dist/lib/api-v1.js +34 -18
- package/dist/lib/helpers/{object.js → object.isomorphic.js} +8 -1
- package/dist/lib/marshal/commit/helpers.js +13 -0
- package/dist/lib/marshal/commit/index.js +17 -0
- package/dist/lib/marshal/commit/types.js +5 -0
- package/dist/lib/marshal/email-layout/reader.js +7 -6
- package/dist/lib/marshal/email-layout/writer.js +12 -12
- package/dist/lib/marshal/shared/const.isomorphic.js +25 -0
- package/dist/lib/marshal/shared/helpers.js +0 -4
- package/dist/lib/marshal/workflow/generator.js +8 -8
- package/dist/lib/marshal/workflow/helpers.js +3 -6
- package/dist/lib/marshal/workflow/index.js +1 -0
- package/dist/lib/marshal/workflow/processor.isomorphic.js +272 -0
- package/dist/lib/marshal/workflow/reader.js +11 -9
- package/dist/lib/marshal/workflow/writer.js +7 -238
- package/oclif.manifest.json +111 -4
- package/package.json +8 -8
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.8",
|
|
3
3
|
"commands": {
|
|
4
4
|
"knock": {
|
|
5
5
|
"id": "knock",
|
|
@@ -86,6 +86,44 @@
|
|
|
86
86
|
},
|
|
87
87
|
"args": {}
|
|
88
88
|
},
|
|
89
|
+
"commit:get": {
|
|
90
|
+
"id": "commit:get",
|
|
91
|
+
"summary": "Display a single commit",
|
|
92
|
+
"strict": true,
|
|
93
|
+
"pluginName": "@knocklabs/cli",
|
|
94
|
+
"pluginAlias": "@knocklabs/cli",
|
|
95
|
+
"pluginType": "core",
|
|
96
|
+
"aliases": [],
|
|
97
|
+
"flags": {
|
|
98
|
+
"service-token": {
|
|
99
|
+
"name": "service-token",
|
|
100
|
+
"type": "option",
|
|
101
|
+
"summary": "The service token to authenticate with.",
|
|
102
|
+
"required": true,
|
|
103
|
+
"multiple": false
|
|
104
|
+
},
|
|
105
|
+
"api-origin": {
|
|
106
|
+
"name": "api-origin",
|
|
107
|
+
"type": "option",
|
|
108
|
+
"hidden": true,
|
|
109
|
+
"required": false,
|
|
110
|
+
"multiple": false
|
|
111
|
+
},
|
|
112
|
+
"json": {
|
|
113
|
+
"name": "json",
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"description": "Format output as json.",
|
|
116
|
+
"helpGroup": "GLOBAL",
|
|
117
|
+
"allowNo": false
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"args": {
|
|
121
|
+
"id": {
|
|
122
|
+
"name": "id",
|
|
123
|
+
"required": true
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
89
127
|
"commit": {
|
|
90
128
|
"id": "commit",
|
|
91
129
|
"summary": "Commit all changes in development environment.",
|
|
@@ -135,9 +173,73 @@
|
|
|
135
173
|
},
|
|
136
174
|
"args": {}
|
|
137
175
|
},
|
|
176
|
+
"commit:list": {
|
|
177
|
+
"id": "commit:list",
|
|
178
|
+
"summary": "Display all commits in an environment",
|
|
179
|
+
"strict": true,
|
|
180
|
+
"pluginName": "@knocklabs/cli",
|
|
181
|
+
"pluginAlias": "@knocklabs/cli",
|
|
182
|
+
"pluginType": "core",
|
|
183
|
+
"aliases": [],
|
|
184
|
+
"flags": {
|
|
185
|
+
"service-token": {
|
|
186
|
+
"name": "service-token",
|
|
187
|
+
"type": "option",
|
|
188
|
+
"summary": "The service token to authenticate with.",
|
|
189
|
+
"required": true,
|
|
190
|
+
"multiple": false
|
|
191
|
+
},
|
|
192
|
+
"api-origin": {
|
|
193
|
+
"name": "api-origin",
|
|
194
|
+
"type": "option",
|
|
195
|
+
"hidden": true,
|
|
196
|
+
"required": false,
|
|
197
|
+
"multiple": false
|
|
198
|
+
},
|
|
199
|
+
"environment": {
|
|
200
|
+
"name": "environment",
|
|
201
|
+
"type": "option",
|
|
202
|
+
"summary": "The environment to use.",
|
|
203
|
+
"multiple": false,
|
|
204
|
+
"default": "development"
|
|
205
|
+
},
|
|
206
|
+
"promoted": {
|
|
207
|
+
"name": "promoted",
|
|
208
|
+
"type": "boolean",
|
|
209
|
+
"summary": "Show only promoted or unpromoted changes between the given environment and the subsequent environment.",
|
|
210
|
+
"allowNo": true
|
|
211
|
+
},
|
|
212
|
+
"after": {
|
|
213
|
+
"name": "after",
|
|
214
|
+
"type": "option",
|
|
215
|
+
"summary": "The cursor after which to fetch the next page.",
|
|
216
|
+
"multiple": false
|
|
217
|
+
},
|
|
218
|
+
"before": {
|
|
219
|
+
"name": "before",
|
|
220
|
+
"type": "option",
|
|
221
|
+
"summary": "The cursor before which to fetch the previous page.",
|
|
222
|
+
"multiple": false
|
|
223
|
+
},
|
|
224
|
+
"limit": {
|
|
225
|
+
"name": "limit",
|
|
226
|
+
"type": "option",
|
|
227
|
+
"summary": "The total number of entries to fetch per page.",
|
|
228
|
+
"multiple": false
|
|
229
|
+
},
|
|
230
|
+
"json": {
|
|
231
|
+
"name": "json",
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"description": "Format output as json.",
|
|
234
|
+
"helpGroup": "GLOBAL",
|
|
235
|
+
"allowNo": false
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"args": {}
|
|
239
|
+
},
|
|
138
240
|
"commit:promote": {
|
|
139
241
|
"id": "commit:promote",
|
|
140
|
-
"summary": "Promote all
|
|
242
|
+
"summary": "Promote one or all commits to the subsequent environment.",
|
|
141
243
|
"strict": true,
|
|
142
244
|
"pluginName": "@knocklabs/cli",
|
|
143
245
|
"pluginAlias": "@knocklabs/cli",
|
|
@@ -161,8 +263,7 @@
|
|
|
161
263
|
"to": {
|
|
162
264
|
"name": "to",
|
|
163
265
|
"type": "option",
|
|
164
|
-
"summary": "The destination environment to promote changes from the preceding environment.",
|
|
165
|
-
"required": true,
|
|
266
|
+
"summary": "The destination environment to promote all changes from the preceding environment.",
|
|
166
267
|
"multiple": false
|
|
167
268
|
},
|
|
168
269
|
"force": {
|
|
@@ -170,6 +271,12 @@
|
|
|
170
271
|
"type": "boolean",
|
|
171
272
|
"summary": "Remove the confirmation prompt.",
|
|
172
273
|
"allowNo": false
|
|
274
|
+
},
|
|
275
|
+
"only": {
|
|
276
|
+
"name": "only",
|
|
277
|
+
"type": "option",
|
|
278
|
+
"summary": "The target commit id to promote to the subsequent environment",
|
|
279
|
+
"multiple": false
|
|
173
280
|
}
|
|
174
281
|
},
|
|
175
282
|
"args": {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knocklabs/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Knock CLI",
|
|
5
5
|
"author": "@knocklabs",
|
|
6
6
|
"bin": {
|
|
@@ -21,24 +21,24 @@
|
|
|
21
21
|
"@oclif/plugin-help": "^5",
|
|
22
22
|
"@oclif/plugin-plugins": "^3",
|
|
23
23
|
"@prantlf/jsonlint": "^14.0.3",
|
|
24
|
-
"axios": "^1.
|
|
24
|
+
"axios": "^1.5.1",
|
|
25
25
|
"date-fns": "^2.30.0",
|
|
26
26
|
"enquirer": "^2.4.1",
|
|
27
27
|
"fs-extra": "^11.1.1",
|
|
28
|
-
"liquidjs": "^10.
|
|
28
|
+
"liquidjs": "^10.9.3",
|
|
29
29
|
"locale-codes": "^1.3.1",
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
|
-
"yup": "^1.2
|
|
31
|
+
"yup": "^1.3.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@oclif/test": "^2.
|
|
34
|
+
"@oclif/test": "^2.5.6",
|
|
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": "^11.0.
|
|
39
|
+
"@types/fs-extra": "^11.0.3",
|
|
40
40
|
"@types/mocha": "^10.0.1",
|
|
41
|
-
"@types/node": "^20.
|
|
41
|
+
"@types/node": "^20.9.0",
|
|
42
42
|
"chai": "^4",
|
|
43
43
|
"eslint": "^7.32.0",
|
|
44
44
|
"eslint-config-oclif": "^4",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"eslint-plugin-prettier": "^4.2.1",
|
|
48
48
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
49
49
|
"mocha": "^10",
|
|
50
|
-
"nock": "^13.3.
|
|
50
|
+
"nock": "^13.3.8",
|
|
51
51
|
"oclif": "^3",
|
|
52
52
|
"prettier": "2.8.8",
|
|
53
53
|
"shx": "^0.3.4",
|