@saltcorn/cli 0.6.0 → 0.6.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 +35 -30
- package/npm-shrinkwrap.json +324 -496
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/src/commands/add-schema.js +15 -0
- package/src/commands/backup.js +18 -0
- package/src/commands/create-tenant.js +21 -0
- package/src/commands/create-user.js +18 -0
- package/src/commands/fixtures.js +18 -0
- package/src/commands/info.js +37 -2
- package/src/commands/install-pack.js +18 -0
- package/src/commands/install-plugin.js +18 -0
- package/src/commands/list-tenants.js +19 -0
- package/src/commands/localize-plugin.js +38 -12
- package/src/commands/make-migration.js +21 -0
- package/src/commands/migrate.js +22 -1
- package/src/commands/plugins.js +22 -0
- package/src/commands/release.js +24 -1
- package/src/commands/reset-schema.js +18 -0
- package/src/commands/restore.js +34 -0
- package/src/commands/rm-tenant.js +21 -0
- package/src/commands/run-benchmark.js +36 -0
- package/src/commands/run-tests.js +88 -16
- package/src/commands/scheduler.js +19 -0
- package/src/commands/serve.js +18 -0
- package/src/commands/set-cfg.js +23 -0
- package/src/commands/setup-benchmark.js +23 -0
- package/src/commands/setup.js +82 -0
- package/src/commands/test-plugin.js +23 -0
- package/src/commands/transform-field.js +21 -0
- package/src/common.js +18 -0
- package/src/index.js +5 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @saltcorn/cli
|
|
|
20
20
|
$ saltcorn COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ saltcorn (-v|--version|version)
|
|
23
|
-
@saltcorn/cli/0.6.
|
|
23
|
+
@saltcorn/cli/0.6.1 darwin-x64 node-v14.16.1
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -68,7 +68,7 @@ USAGE
|
|
|
68
68
|
$ saltcorn add-schema
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
71
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/add-schema.js)_
|
|
72
72
|
|
|
73
73
|
## `saltcorn backup`
|
|
74
74
|
|
|
@@ -84,7 +84,7 @@ OPTIONS
|
|
|
84
84
|
-z, --zip zip format
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
87
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/backup.js)_
|
|
88
88
|
|
|
89
89
|
## `saltcorn create-tenant TENANT`
|
|
90
90
|
|
|
@@ -102,7 +102,7 @@ OPTIONS
|
|
|
102
102
|
-e, --email=email Email of owner of tenant
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
105
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/create-tenant.js)_
|
|
106
106
|
|
|
107
107
|
## `saltcorn create-user`
|
|
108
108
|
|
|
@@ -120,7 +120,7 @@ OPTIONS
|
|
|
120
120
|
-t, --tenant=tenant tenant
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
123
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/create-user.js)_
|
|
124
124
|
|
|
125
125
|
## `saltcorn fixtures`
|
|
126
126
|
|
|
@@ -138,7 +138,7 @@ DESCRIPTION
|
|
|
138
138
|
This manual step it is never required for users and rarely required for developers
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
141
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/fixtures.js)_
|
|
142
142
|
|
|
143
143
|
## `saltcorn help [COMMAND]`
|
|
144
144
|
|
|
@@ -155,7 +155,7 @@ OPTIONS
|
|
|
155
155
|
--all see all commands in CLI
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.
|
|
158
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.5/src/commands/help.ts)_
|
|
159
159
|
|
|
160
160
|
## `saltcorn info`
|
|
161
161
|
|
|
@@ -176,7 +176,7 @@ ALIASES
|
|
|
176
176
|
$ saltcorn paths
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
179
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/info.js)_
|
|
180
180
|
|
|
181
181
|
## `saltcorn install-pack`
|
|
182
182
|
|
|
@@ -192,7 +192,7 @@ OPTIONS
|
|
|
192
192
|
-t, --tenant=tenant tenant
|
|
193
193
|
```
|
|
194
194
|
|
|
195
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
195
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/install-pack.js)_
|
|
196
196
|
|
|
197
197
|
## `saltcorn install-plugin`
|
|
198
198
|
|
|
@@ -208,7 +208,7 @@ OPTIONS
|
|
|
208
208
|
-t, --tenant=tenant tenant
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
211
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/install-plugin.js)_
|
|
212
212
|
|
|
213
213
|
## `saltcorn list-tenants`
|
|
214
214
|
|
|
@@ -219,7 +219,7 @@ USAGE
|
|
|
219
219
|
$ saltcorn list-tenants
|
|
220
220
|
```
|
|
221
221
|
|
|
222
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
222
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/list-tenants.js)_
|
|
223
223
|
|
|
224
224
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
225
225
|
|
|
@@ -232,9 +232,12 @@ USAGE
|
|
|
232
232
|
ARGUMENTS
|
|
233
233
|
PLUGIN Current plugin name
|
|
234
234
|
PATH path to local plugin
|
|
235
|
+
|
|
236
|
+
OPTIONS
|
|
237
|
+
-t, --tenant=tenant tenant
|
|
235
238
|
```
|
|
236
239
|
|
|
237
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
240
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/localize-plugin.js)_
|
|
238
241
|
|
|
239
242
|
## `saltcorn make-migration`
|
|
240
243
|
|
|
@@ -250,7 +253,7 @@ DESCRIPTION
|
|
|
250
253
|
unless you are a developer.
|
|
251
254
|
```
|
|
252
255
|
|
|
253
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
256
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/make-migration.js)_
|
|
254
257
|
|
|
255
258
|
## `saltcorn saltcorn migrate`
|
|
256
259
|
|
|
@@ -272,7 +275,7 @@ DESCRIPTION
|
|
|
272
275
|
servers and need to control when the migrations are run.
|
|
273
276
|
```
|
|
274
277
|
|
|
275
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
278
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/migrate.js)_
|
|
276
279
|
|
|
277
280
|
## `saltcorn plugins`
|
|
278
281
|
|
|
@@ -299,7 +302,7 @@ EXAMPLES
|
|
|
299
302
|
plugins -u -f - force plugin update
|
|
300
303
|
```
|
|
301
304
|
|
|
302
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
305
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/plugins.js)_
|
|
303
306
|
|
|
304
307
|
## `saltcorn release VERSION`
|
|
305
308
|
|
|
@@ -313,7 +316,7 @@ ARGUMENTS
|
|
|
313
316
|
VERSION New version number
|
|
314
317
|
```
|
|
315
318
|
|
|
316
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
319
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/release.js)_
|
|
317
320
|
|
|
318
321
|
## `saltcorn reset-schema`
|
|
319
322
|
|
|
@@ -332,7 +335,7 @@ DESCRIPTION
|
|
|
332
335
|
This will delete all existing information
|
|
333
336
|
```
|
|
334
337
|
|
|
335
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
338
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/reset-schema.js)_
|
|
336
339
|
|
|
337
340
|
## `saltcorn restore FILE`
|
|
338
341
|
|
|
@@ -349,7 +352,7 @@ OPTIONS
|
|
|
349
352
|
-t, --tenant=tenant tenant
|
|
350
353
|
```
|
|
351
354
|
|
|
352
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
355
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/restore.js)_
|
|
353
356
|
|
|
354
357
|
## `saltcorn rm-tenant TENANT`
|
|
355
358
|
|
|
@@ -363,7 +366,7 @@ ARGUMENTS
|
|
|
363
366
|
TENANT Tenant to remove
|
|
364
367
|
```
|
|
365
368
|
|
|
366
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
369
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/rm-tenant.js)_
|
|
367
370
|
|
|
368
371
|
## `saltcorn run-benchmark [BASEURL]`
|
|
369
372
|
|
|
@@ -382,7 +385,7 @@ OPTIONS
|
|
|
382
385
|
-t, --token=token API Token for reporting results
|
|
383
386
|
```
|
|
384
387
|
|
|
385
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
388
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/run-benchmark.js)_
|
|
386
389
|
|
|
387
390
|
## `saltcorn run-tests [PACKAGE]`
|
|
388
391
|
|
|
@@ -396,11 +399,13 @@ ARGUMENTS
|
|
|
396
399
|
PACKAGE which package to run tests for
|
|
397
400
|
|
|
398
401
|
OPTIONS
|
|
399
|
-
-c, --coverage
|
|
400
|
-
-
|
|
402
|
+
-c, --coverage Coverage
|
|
403
|
+
-t, --testFilter=testFilter Filter tests by suite or test name
|
|
404
|
+
--watch Watch files for changes and rerun tests related to changed files.
|
|
405
|
+
--watchAll Watch files for changes and rerun all tests.
|
|
401
406
|
```
|
|
402
407
|
|
|
403
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
408
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/run-tests.js)_
|
|
404
409
|
|
|
405
410
|
## `saltcorn scheduler`
|
|
406
411
|
|
|
@@ -414,7 +419,7 @@ OPTIONS
|
|
|
414
419
|
-v, --verbose Verbose
|
|
415
420
|
```
|
|
416
421
|
|
|
417
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
422
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/scheduler.js)_
|
|
418
423
|
|
|
419
424
|
## `saltcorn serve`
|
|
420
425
|
|
|
@@ -433,7 +438,7 @@ OPTIONS
|
|
|
433
438
|
-v, --verbose Verbose
|
|
434
439
|
```
|
|
435
440
|
|
|
436
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
441
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/serve.js)_
|
|
437
442
|
|
|
438
443
|
## `saltcorn set-cfg KEY VALUE`
|
|
439
444
|
|
|
@@ -452,7 +457,7 @@ OPTIONS
|
|
|
452
457
|
-t, --tenant=tenant tenant
|
|
453
458
|
```
|
|
454
459
|
|
|
455
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
460
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/set-cfg.js)_
|
|
456
461
|
|
|
457
462
|
## `saltcorn setup`
|
|
458
463
|
|
|
@@ -471,7 +476,7 @@ DESCRIPTION
|
|
|
471
476
|
configuration file
|
|
472
477
|
```
|
|
473
478
|
|
|
474
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
479
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/setup.js)_
|
|
475
480
|
|
|
476
481
|
## `saltcorn setup-benchmark`
|
|
477
482
|
|
|
@@ -485,7 +490,7 @@ OPTIONS
|
|
|
485
490
|
-t, --tenant=tenant tenant
|
|
486
491
|
```
|
|
487
492
|
|
|
488
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
493
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/setup-benchmark.js)_
|
|
489
494
|
|
|
490
495
|
## `saltcorn test-plugin PATH`
|
|
491
496
|
|
|
@@ -503,7 +508,7 @@ DESCRIPTION
|
|
|
503
508
|
Extra documentation goes here
|
|
504
509
|
```
|
|
505
510
|
|
|
506
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
511
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/test-plugin.js)_
|
|
507
512
|
|
|
508
513
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
509
514
|
|
|
@@ -520,5 +525,5 @@ ARGUMENTS
|
|
|
520
525
|
TENANT tenant name
|
|
521
526
|
```
|
|
522
527
|
|
|
523
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
528
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/transform-field.js)_
|
|
524
529
|
<!-- commandsstop -->
|