@saltcorn/cli 0.5.5-beta.1 → 0.5.6-beta.2
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 +29 -29
- package/npm-shrinkwrap.json +83 -81
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
- package/src/commands/localize-plugin.js +9 -4
- package/src/commands/run-tests.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.5.
|
|
23
|
+
@saltcorn/cli/0.5.6-beta.2 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.5.
|
|
71
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/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.5.
|
|
87
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/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.5.
|
|
105
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/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.5.
|
|
123
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/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.5.
|
|
141
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/fixtures.js)_
|
|
142
142
|
|
|
143
143
|
## `saltcorn help [COMMAND]`
|
|
144
144
|
|
|
@@ -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.5.
|
|
179
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/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.5.
|
|
195
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/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.5.
|
|
211
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/install-plugin.js)_
|
|
212
212
|
|
|
213
213
|
## `saltcorn list-tenants`
|
|
214
214
|
|
|
@@ -219,22 +219,22 @@ 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.5.
|
|
222
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/list-tenants.js)_
|
|
223
223
|
|
|
224
224
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
225
225
|
|
|
226
|
-
Convert
|
|
226
|
+
Convert plugin to local plugin
|
|
227
227
|
|
|
228
228
|
```
|
|
229
229
|
USAGE
|
|
230
230
|
$ saltcorn localize-plugin PLUGIN PATH
|
|
231
231
|
|
|
232
232
|
ARGUMENTS
|
|
233
|
-
PLUGIN Current
|
|
233
|
+
PLUGIN Current plugin name
|
|
234
234
|
PATH path to local plugin
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
237
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/localize-plugin.js)_
|
|
238
238
|
|
|
239
239
|
## `saltcorn make-migration`
|
|
240
240
|
|
|
@@ -250,7 +250,7 @@ DESCRIPTION
|
|
|
250
250
|
unless you are a developer.
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
253
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/make-migration.js)_
|
|
254
254
|
|
|
255
255
|
## `saltcorn saltcorn migrate`
|
|
256
256
|
|
|
@@ -272,7 +272,7 @@ DESCRIPTION
|
|
|
272
272
|
servers and need to control when the migrations are run.
|
|
273
273
|
```
|
|
274
274
|
|
|
275
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
275
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/migrate.js)_
|
|
276
276
|
|
|
277
277
|
## `saltcorn plugins`
|
|
278
278
|
|
|
@@ -299,7 +299,7 @@ EXAMPLES
|
|
|
299
299
|
plugins -u -f - force plugin update
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
302
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/plugins.js)_
|
|
303
303
|
|
|
304
304
|
## `saltcorn release VERSION`
|
|
305
305
|
|
|
@@ -313,7 +313,7 @@ ARGUMENTS
|
|
|
313
313
|
VERSION New version number
|
|
314
314
|
```
|
|
315
315
|
|
|
316
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
316
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/release.js)_
|
|
317
317
|
|
|
318
318
|
## `saltcorn reset-schema`
|
|
319
319
|
|
|
@@ -332,7 +332,7 @@ DESCRIPTION
|
|
|
332
332
|
This will delete all existing information
|
|
333
333
|
```
|
|
334
334
|
|
|
335
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
335
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/reset-schema.js)_
|
|
336
336
|
|
|
337
337
|
## `saltcorn restore FILE`
|
|
338
338
|
|
|
@@ -349,7 +349,7 @@ OPTIONS
|
|
|
349
349
|
-t, --tenant=tenant tenant
|
|
350
350
|
```
|
|
351
351
|
|
|
352
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
352
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/restore.js)_
|
|
353
353
|
|
|
354
354
|
## `saltcorn rm-tenant TENANT`
|
|
355
355
|
|
|
@@ -363,7 +363,7 @@ ARGUMENTS
|
|
|
363
363
|
TENANT Tenant to remove
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
366
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/rm-tenant.js)_
|
|
367
367
|
|
|
368
368
|
## `saltcorn run-benchmark [BASEURL]`
|
|
369
369
|
|
|
@@ -382,7 +382,7 @@ OPTIONS
|
|
|
382
382
|
-t, --token=token API Token for reporting results
|
|
383
383
|
```
|
|
384
384
|
|
|
385
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
385
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/run-benchmark.js)_
|
|
386
386
|
|
|
387
387
|
## `saltcorn run-tests [PACKAGE]`
|
|
388
388
|
|
|
@@ -400,7 +400,7 @@ OPTIONS
|
|
|
400
400
|
-f, --forever Run forever till failure
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
403
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/run-tests.js)_
|
|
404
404
|
|
|
405
405
|
## `saltcorn scheduler`
|
|
406
406
|
|
|
@@ -414,7 +414,7 @@ OPTIONS
|
|
|
414
414
|
-v, --verbose Verbose
|
|
415
415
|
```
|
|
416
416
|
|
|
417
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
417
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/scheduler.js)_
|
|
418
418
|
|
|
419
419
|
## `saltcorn serve`
|
|
420
420
|
|
|
@@ -433,7 +433,7 @@ OPTIONS
|
|
|
433
433
|
-v, --verbose Verbose
|
|
434
434
|
```
|
|
435
435
|
|
|
436
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
436
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/serve.js)_
|
|
437
437
|
|
|
438
438
|
## `saltcorn set-cfg KEY VALUE`
|
|
439
439
|
|
|
@@ -452,7 +452,7 @@ OPTIONS
|
|
|
452
452
|
-t, --tenant=tenant tenant
|
|
453
453
|
```
|
|
454
454
|
|
|
455
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
455
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/set-cfg.js)_
|
|
456
456
|
|
|
457
457
|
## `saltcorn setup`
|
|
458
458
|
|
|
@@ -471,7 +471,7 @@ DESCRIPTION
|
|
|
471
471
|
configuration file
|
|
472
472
|
```
|
|
473
473
|
|
|
474
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
474
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/setup.js)_
|
|
475
475
|
|
|
476
476
|
## `saltcorn setup-benchmark`
|
|
477
477
|
|
|
@@ -485,7 +485,7 @@ OPTIONS
|
|
|
485
485
|
-t, --tenant=tenant tenant
|
|
486
486
|
```
|
|
487
487
|
|
|
488
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
488
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/setup-benchmark.js)_
|
|
489
489
|
|
|
490
490
|
## `saltcorn test-plugin PATH`
|
|
491
491
|
|
|
@@ -503,7 +503,7 @@ DESCRIPTION
|
|
|
503
503
|
Extra documentation goes here
|
|
504
504
|
```
|
|
505
505
|
|
|
506
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
506
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/test-plugin.js)_
|
|
507
507
|
|
|
508
508
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
509
509
|
|
|
@@ -520,5 +520,5 @@ ARGUMENTS
|
|
|
520
520
|
TENANT tenant name
|
|
521
521
|
```
|
|
522
522
|
|
|
523
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.5.
|
|
523
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.5.6-beta.2/src/commands/transform-field.js)_
|
|
524
524
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6-beta.2",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -728,24 +728,24 @@
|
|
|
728
728
|
}
|
|
729
729
|
},
|
|
730
730
|
"@saltcorn/base-plugin": {
|
|
731
|
-
"version": "0.5.
|
|
732
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.5.
|
|
733
|
-
"integrity": "sha512-
|
|
731
|
+
"version": "0.5.6-beta.2",
|
|
732
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.5.6-beta.2.tgz",
|
|
733
|
+
"integrity": "sha512-NI1n3Sp6LK+60U1ZQk/s3+YCm8dbWKQ0rrJ24u02C2Dr057kxgzhzaoTpQWm+i5ZDTx1ZvK48fnim1uYmOIjUw==",
|
|
734
734
|
"requires": {
|
|
735
|
-
"@saltcorn/data": "0.5.
|
|
735
|
+
"@saltcorn/data": "0.5.6-beta.2"
|
|
736
736
|
}
|
|
737
737
|
},
|
|
738
738
|
"@saltcorn/builder": {
|
|
739
|
-
"version": "0.5.
|
|
740
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.5.
|
|
741
|
-
"integrity": "sha512-
|
|
739
|
+
"version": "0.5.6-beta.2",
|
|
740
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.5.6-beta.2.tgz",
|
|
741
|
+
"integrity": "sha512-ZQe5UKQcOP5W7NU3ze9cahwx3RopI5mdtyYn+DieInSLNRFnqDEvAc6yMO7sqpaQ7jJMaKfeY9PcjcDjXhiqhQ=="
|
|
742
742
|
},
|
|
743
743
|
"@saltcorn/data": {
|
|
744
|
-
"version": "0.5.
|
|
745
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.5.
|
|
746
|
-
"integrity": "sha512-
|
|
744
|
+
"version": "0.5.6-beta.2",
|
|
745
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.5.6-beta.2.tgz",
|
|
746
|
+
"integrity": "sha512-MCQTGgISrzbFQj7Px+c06YlNlAFYOb90VJzF/wpg8rsz7EnmAGwt44H2MIwXdDOxZhoU0VTYwIg8872ayJ6U4g==",
|
|
747
747
|
"requires": {
|
|
748
|
-
"@saltcorn/markup": "0.5.
|
|
748
|
+
"@saltcorn/markup": "0.5.6-beta.2",
|
|
749
749
|
"acorn": "^8.0.3",
|
|
750
750
|
"adm-zip": "0.5.5",
|
|
751
751
|
"astring": "^1.4.3",
|
|
@@ -765,7 +765,7 @@
|
|
|
765
765
|
"latest-version": "^5.1.0",
|
|
766
766
|
"moment": "^2.27.0",
|
|
767
767
|
"moment-timezone": "^0.5.33",
|
|
768
|
-
"node-fetch": "
|
|
768
|
+
"node-fetch": "2.6.2",
|
|
769
769
|
"nodemailer": "^6.4.17",
|
|
770
770
|
"pg": "^8.2.1",
|
|
771
771
|
"pg-copy-streams": "^5.1.1",
|
|
@@ -776,9 +776,9 @@
|
|
|
776
776
|
}
|
|
777
777
|
},
|
|
778
778
|
"@saltcorn/markup": {
|
|
779
|
-
"version": "0.5.
|
|
780
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.5.
|
|
781
|
-
"integrity": "sha512-
|
|
779
|
+
"version": "0.5.6-beta.2",
|
|
780
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.5.6-beta.2.tgz",
|
|
781
|
+
"integrity": "sha512-j8ZgfIQ130RoeW2dLYSylS6sXawgsLdk4qv8u+wcUMScYngLnPWdHatuEbxR9Y40Y7Q4/oKxygLQdHJOc27C5Q==",
|
|
782
782
|
"requires": {
|
|
783
783
|
"contractis": "^0.1.0",
|
|
784
784
|
"escape-html": "^1.0.3",
|
|
@@ -786,25 +786,25 @@
|
|
|
786
786
|
}
|
|
787
787
|
},
|
|
788
788
|
"@saltcorn/sbadmin2": {
|
|
789
|
-
"version": "0.5.
|
|
790
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.5.
|
|
791
|
-
"integrity": "sha512-
|
|
789
|
+
"version": "0.5.6-beta.2",
|
|
790
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.5.6-beta.2.tgz",
|
|
791
|
+
"integrity": "sha512-xjWP7deqU7gK/kJ8QnylC4kNvf4fpSmn1PuM75tstc/wSK3gEnU0Y/dkiytWi8/cdrPuWxl0kh5DcmR+cApAdg==",
|
|
792
792
|
"requires": {
|
|
793
|
-
"@saltcorn/data": "0.5.
|
|
794
|
-
"@saltcorn/markup": "0.5.
|
|
793
|
+
"@saltcorn/data": "0.5.6-beta.2",
|
|
794
|
+
"@saltcorn/markup": "0.5.6-beta.2",
|
|
795
795
|
"startbootstrap-sb-admin-2": "^4.1.4"
|
|
796
796
|
}
|
|
797
797
|
},
|
|
798
798
|
"@saltcorn/server": {
|
|
799
|
-
"version": "0.5.
|
|
800
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.5.
|
|
801
|
-
"integrity": "sha512-
|
|
802
|
-
"requires": {
|
|
803
|
-
"@saltcorn/base-plugin": "0.5.
|
|
804
|
-
"@saltcorn/builder": "0.5.
|
|
805
|
-
"@saltcorn/data": "0.5.
|
|
806
|
-
"@saltcorn/markup": "0.5.
|
|
807
|
-
"@saltcorn/sbadmin2": "0.5.
|
|
799
|
+
"version": "0.5.6-beta.2",
|
|
800
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.5.6-beta.2.tgz",
|
|
801
|
+
"integrity": "sha512-6wAY/UchDAzDWWjR4avsxBp89DBoa4ChminpuRGpP/VKGpnrKnkwDRpvHOwFjBK63wKcdbSo92jlKGHPHBwGOg==",
|
|
802
|
+
"requires": {
|
|
803
|
+
"@saltcorn/base-plugin": "0.5.6-beta.2",
|
|
804
|
+
"@saltcorn/builder": "0.5.6-beta.2",
|
|
805
|
+
"@saltcorn/data": "0.5.6-beta.2",
|
|
806
|
+
"@saltcorn/markup": "0.5.6-beta.2",
|
|
807
|
+
"@saltcorn/sbadmin2": "0.5.6-beta.2",
|
|
808
808
|
"@socket.io/cluster-adapter": "^0.1.0",
|
|
809
809
|
"@socket.io/sticky": "^1.0.1",
|
|
810
810
|
"connect-flash": "^0.1.1",
|
|
@@ -824,16 +824,16 @@
|
|
|
824
824
|
"greenlock-express": "^4.0.3",
|
|
825
825
|
"helmet": "^3.23.3",
|
|
826
826
|
"i18n": "^0.13.2",
|
|
827
|
-
"live-plugin-manager": "^0.
|
|
827
|
+
"live-plugin-manager": "^0.16.0",
|
|
828
828
|
"moment": "^2.27.0",
|
|
829
|
-
"node-fetch": "
|
|
829
|
+
"node-fetch": "2.6.2",
|
|
830
830
|
"passport": "^0.4.1",
|
|
831
831
|
"passport-custom": "^1.1.1",
|
|
832
832
|
"passport-http-bearer": "^1.0.1",
|
|
833
833
|
"pg": "^8.2.1",
|
|
834
834
|
"pluralize": "^8.0.0",
|
|
835
835
|
"sd-notify": "^2.8.0",
|
|
836
|
-
"socket.io": "4.
|
|
836
|
+
"socket.io": "4.2.0",
|
|
837
837
|
"tmp-promise": "^3.0.2"
|
|
838
838
|
}
|
|
839
839
|
},
|
|
@@ -904,9 +904,9 @@
|
|
|
904
904
|
"dev": true
|
|
905
905
|
},
|
|
906
906
|
"@types/fs-extra": {
|
|
907
|
-
"version": "
|
|
908
|
-
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-
|
|
909
|
-
"integrity": "sha512-
|
|
907
|
+
"version": "9.0.13",
|
|
908
|
+
"resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz",
|
|
909
|
+
"integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",
|
|
910
910
|
"requires": {
|
|
911
911
|
"@types/node": "*"
|
|
912
912
|
}
|
|
@@ -997,9 +997,9 @@
|
|
|
997
997
|
}
|
|
998
998
|
},
|
|
999
999
|
"@types/url-join": {
|
|
1000
|
-
"version": "4.0.
|
|
1001
|
-
"resolved": "https://registry.npmjs.org/@types/url-join/-/url-join-4.0.
|
|
1002
|
-
"integrity": "sha512-
|
|
1000
|
+
"version": "4.0.1",
|
|
1001
|
+
"resolved": "https://registry.npmjs.org/@types/url-join/-/url-join-4.0.1.tgz",
|
|
1002
|
+
"integrity": "sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ=="
|
|
1003
1003
|
},
|
|
1004
1004
|
"abab": {
|
|
1005
1005
|
"version": "2.0.5",
|
|
@@ -1209,11 +1209,6 @@
|
|
|
1209
1209
|
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
|
1210
1210
|
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
|
1211
1211
|
},
|
|
1212
|
-
"at-least-node": {
|
|
1213
|
-
"version": "1.0.0",
|
|
1214
|
-
"resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
|
|
1215
|
-
"integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg=="
|
|
1216
|
-
},
|
|
1217
1212
|
"aws-sign2": {
|
|
1218
1213
|
"version": "0.7.0",
|
|
1219
1214
|
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
|
|
@@ -2384,9 +2379,9 @@
|
|
|
2384
2379
|
}
|
|
2385
2380
|
},
|
|
2386
2381
|
"engine.io": {
|
|
2387
|
-
"version": "5.
|
|
2388
|
-
"resolved": "https://registry.npmjs.org/engine.io/-/engine.io-5.
|
|
2389
|
-
"integrity": "sha512-
|
|
2382
|
+
"version": "5.2.0",
|
|
2383
|
+
"resolved": "https://registry.npmjs.org/engine.io/-/engine.io-5.2.0.tgz",
|
|
2384
|
+
"integrity": "sha512-d1DexkQx87IFr1FLuV+0f5kAm1Hk1uOVijLOb+D1sDO2QMb7YjE02VHtZtxo7xIXMgcWLb+vl3HRT0rI9tr4jQ==",
|
|
2390
2385
|
"requires": {
|
|
2391
2386
|
"accepts": "~1.3.4",
|
|
2392
2387
|
"base64id": "2.0.0",
|
|
@@ -3873,23 +3868,23 @@
|
|
|
3873
3868
|
"dev": true
|
|
3874
3869
|
},
|
|
3875
3870
|
"live-plugin-manager": {
|
|
3876
|
-
"version": "0.
|
|
3877
|
-
"resolved": "https://registry.npmjs.org/live-plugin-manager/-/live-plugin-manager-0.
|
|
3878
|
-
"integrity": "sha512-
|
|
3879
|
-
"requires": {
|
|
3880
|
-
"@types/debug": "^4.1.
|
|
3881
|
-
"@types/fs-extra": "^
|
|
3882
|
-
"@types/lockfile": "^1.0.
|
|
3883
|
-
"@types/node-fetch": "^2.5.
|
|
3884
|
-
"@types/semver": "^7.
|
|
3885
|
-
"@types/tar": "^4.0.
|
|
3886
|
-
"@types/url-join": "4.0.
|
|
3887
|
-
"debug": "^4.
|
|
3888
|
-
"fs-extra": "^
|
|
3871
|
+
"version": "0.16.0",
|
|
3872
|
+
"resolved": "https://registry.npmjs.org/live-plugin-manager/-/live-plugin-manager-0.16.0.tgz",
|
|
3873
|
+
"integrity": "sha512-5SBjoKFShEOmp+hi67ksbpM7KHyhY4T6VftNSLy6jjbykArCE1DWRPWfpTLG5u+L/m4l/x/CpVcFH1jzbHWkNA==",
|
|
3874
|
+
"requires": {
|
|
3875
|
+
"@types/debug": "^4.1.7",
|
|
3876
|
+
"@types/fs-extra": "^9.0.12",
|
|
3877
|
+
"@types/lockfile": "^1.0.2",
|
|
3878
|
+
"@types/node-fetch": "^2.5.12",
|
|
3879
|
+
"@types/semver": "^7.3.8",
|
|
3880
|
+
"@types/tar": "^4.0.5",
|
|
3881
|
+
"@types/url-join": "4.0.1",
|
|
3882
|
+
"debug": "^4.3.2",
|
|
3883
|
+
"fs-extra": "^10.0.0",
|
|
3889
3884
|
"lockfile": "^1.0.4",
|
|
3890
|
-
"node-fetch": "^2.6.
|
|
3891
|
-
"semver": "^7.3.
|
|
3892
|
-
"tar": "^6.
|
|
3885
|
+
"node-fetch": "^2.6.1",
|
|
3886
|
+
"semver": "^7.3.5",
|
|
3887
|
+
"tar": "^6.1.10",
|
|
3893
3888
|
"url-join": "^4.0.1"
|
|
3894
3889
|
},
|
|
3895
3890
|
"dependencies": {
|
|
@@ -3898,12 +3893,19 @@
|
|
|
3898
3893
|
"resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
|
|
3899
3894
|
"integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="
|
|
3900
3895
|
},
|
|
3896
|
+
"debug": {
|
|
3897
|
+
"version": "4.3.2",
|
|
3898
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz",
|
|
3899
|
+
"integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==",
|
|
3900
|
+
"requires": {
|
|
3901
|
+
"ms": "2.1.2"
|
|
3902
|
+
}
|
|
3903
|
+
},
|
|
3901
3904
|
"fs-extra": {
|
|
3902
|
-
"version": "
|
|
3903
|
-
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-
|
|
3904
|
-
"integrity": "sha512-
|
|
3905
|
+
"version": "10.0.0",
|
|
3906
|
+
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz",
|
|
3907
|
+
"integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==",
|
|
3905
3908
|
"requires": {
|
|
3906
|
-
"at-least-node": "^1.0.0",
|
|
3907
3909
|
"graceful-fs": "^4.2.0",
|
|
3908
3910
|
"jsonfile": "^6.0.1",
|
|
3909
3911
|
"universalify": "^2.0.0"
|
|
@@ -4729,9 +4731,9 @@
|
|
|
4729
4731
|
}
|
|
4730
4732
|
},
|
|
4731
4733
|
"nth-check": {
|
|
4732
|
-
"version": "2.0.
|
|
4733
|
-
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.
|
|
4734
|
-
"integrity": "sha512-
|
|
4734
|
+
"version": "2.0.1",
|
|
4735
|
+
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz",
|
|
4736
|
+
"integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==",
|
|
4735
4737
|
"requires": {
|
|
4736
4738
|
"boolbase": "^1.0.0"
|
|
4737
4739
|
}
|
|
@@ -5837,18 +5839,18 @@
|
|
|
5837
5839
|
"integrity": "sha1-vQSN23TefRymkV+qSldXCzVQwtc="
|
|
5838
5840
|
},
|
|
5839
5841
|
"socket.io": {
|
|
5840
|
-
"version": "4.
|
|
5841
|
-
"resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.
|
|
5842
|
-
"integrity": "sha512-
|
|
5842
|
+
"version": "4.2.0",
|
|
5843
|
+
"resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.2.0.tgz",
|
|
5844
|
+
"integrity": "sha512-sjlGfMmnaWvTRVxGRGWyhd9ctpg4APxWAxu85O/SxekkxHhfxmePWZbaYCkeX5QQX0z1YEnKOlNt6w82E4Nzug==",
|
|
5843
5845
|
"requires": {
|
|
5844
|
-
"@types/cookie": "^0.4.
|
|
5845
|
-
"@types/cors": "^2.8.
|
|
5846
|
+
"@types/cookie": "^0.4.1",
|
|
5847
|
+
"@types/cors": "^2.8.12",
|
|
5846
5848
|
"@types/node": ">=10.0.0",
|
|
5847
5849
|
"accepts": "~1.3.4",
|
|
5848
5850
|
"base64id": "~2.0.0",
|
|
5849
|
-
"debug": "~4.3.
|
|
5850
|
-
"engine.io": "~5.
|
|
5851
|
-
"socket.io-adapter": "~2.3.
|
|
5851
|
+
"debug": "~4.3.2",
|
|
5852
|
+
"engine.io": "~5.2.0",
|
|
5853
|
+
"socket.io-adapter": "~2.3.2",
|
|
5852
5854
|
"socket.io-parser": "~4.0.4"
|
|
5853
5855
|
},
|
|
5854
5856
|
"dependencies": {
|
|
@@ -6151,9 +6153,9 @@
|
|
|
6151
6153
|
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw=="
|
|
6152
6154
|
},
|
|
6153
6155
|
"systeminformation": {
|
|
6154
|
-
"version": "5.9.
|
|
6155
|
-
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.9.
|
|
6156
|
-
"integrity": "sha512-
|
|
6156
|
+
"version": "5.9.3",
|
|
6157
|
+
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.9.3.tgz",
|
|
6158
|
+
"integrity": "sha512-FmifqCPDU5uJZeORt1jCiATBTHwpX7luDzeFo8lojYbEiJk6oR3mtAZBOayCo3iEmgSILzmbcO855OXPHCeU+g=="
|
|
6157
6159
|
},
|
|
6158
6160
|
"tar": {
|
|
6159
6161
|
"version": "2.2.2",
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.5.5-beta.1","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"zip":{"name":"zip","type":"boolean","char":"z","description":"zip format","allowNo":false}},"args":[]},"create-tenant":{"id":"create-tenant","description":"Create a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"email":{"name":"email","type":"option","char":"e","description":"Email of owner of tenant"},"description":{"name":"description","type":"option","char":"d","description":"Description of tenant"}},"args":[{"name":"tenant","description":"Tenant subdomain to create","required":true}]},"create-user":{"id":"create-user","description":"Create a new user","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"Admin user","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"email"},"role":{"name":"role","type":"option","char":"r","description":"role"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"fixtures":{"id":"fixtures","description":"Load fixtures for testing\n...\nThis manual step it is never required for users and rarely required for developers\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"reset":{"name":"reset","type":"boolean","char":"r","description":"Also reset schema","allowNo":false}},"args":[]},"info":{"id":"info","description":"Show paths\n...\nShow configuration and file store paths\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":["paths"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"install-pack":{"id":"install-pack","description":"Install a pack","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Pack name in store"},"file":{"name":"file","type":"option","char":"f","description":"File with pack JSON"}},"args":[]},"install-plugin":{"id":"install-plugin","description":"Install a plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store"},"directory":{"name":"directory","type":"option","char":"d","description":"Directory with local plugin"}},"args":[]},"list-tenants":{"id":"list-tenants","description":"List tenants in CSV format","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"localize-plugin":{"id":"localize-plugin","description":"Convert npm to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"plugin","description":"Current (npm) plugin name","required":true},{"name":"path","description":"path to local plugin","required":true}]},"make-migration":{"id":"make-migration","description":"Create a new blank Database structure migration file.\nThese migrations update database structure.\nYou should not normally need to run this\nunless you are a developer.\n","usage":"make-migration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"migrate":{"id":"migrate","description":"Run Database structure migrations\n...\nNOTE!\n- Please stop Saltcorn before run DB migrations.\n- Please make db backup before migration.\n- There are no way to rollback migration if you doesn't make backup.\n\nThis is not normally required as migrations will be run when the server starts.\nHowever, this command may be useful if you are running multiple application\nservers and need to control when the migrations are run.\n","usage":"saltcorn migrate","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"plugins":{"id":"plugins","description":"List and upgrade plugins for tenants\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"examples":["plugins -v - verbose output of commands","plugins -u -d - dry-run for plugin update","plugins -u -f - force plugin update"],"flags":{"upgrade":{"name":"upgrade","type":"boolean","char":"u","description":"Upgrade","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"Upgrade dry-run","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force update","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"Plugin name"}},"args":[]},"release":{"id":"release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"reset-schema":{"id":"reset-schema","description":"Reset the database\n...\nThis will delete all existing information\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"restore":{"id":"restore","description":"Restore a previously backed up database (zip or sqlc format)","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"file","description":"backup file to restore","required":true}]},"rm-tenant":{"id":"rm-tenant","description":"Remove a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"tenant","description":"Tenant to remove","required":true}]},"run-benchmark":{"id":"run-benchmark","description":"Run benchmark","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"token":{"name":"token","type":"option","char":"t","description":"API Token for reporting results"},"benchmark":{"name":"benchmark","type":"option","char":"b","description":"Which benchmark to run"},"delay":{"name":"delay","type":"option","char":"d","description":"delay between runs (s)","default":30}},"args":[{"name":"baseurl","description":"Base URL","required":false}]},"run-tests":{"id":"run-tests","description":"Run test suites","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false},"forever":{"name":"forever","type":"boolean","char":"f","description":"Run forever till failure","allowNo":false}},"args":[{"name":"package","description":"which package to run tests for"}]},"scheduler":{"id":"scheduler","description":"Run the Saltcorn scheduler","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"serve":{"id":"serve","description":"Start the Saltcorn server","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"port":{"name":"port","type":"option","char":"p","description":"port","default":3000},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"watchReaper":{"name":"watchReaper","type":"boolean","char":"r","description":"Watch reaper","allowNo":false},"addschema":{"name":"addschema","type":"boolean","char":"a","description":"Add schema if missing","allowNo":false},"nomigrate":{"name":"nomigrate","type":"boolean","char":"n","description":"No migrations","allowNo":false},"noscheduler":{"name":"noscheduler","type":"boolean","char":"s","description":"No scheduler","allowNo":false}},"args":[]},"set-cfg":{"id":"set-cfg","description":"Set a configuration value","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"}},"args":[{"name":"key","description":"Configuration key","required":true},{"name":"value","description":"Configuration value (JSON or string)","required":true}]},"setup-benchmark":{"id":"setup-benchmark","description":"Setup an instance for benchmarking","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"setup":{"id":"setup","description":"Set up a new system\n...\nThis will attempt to install or connect a database, and set up a \nconfiguration file\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false}},"args":[]},"test-plugin":{"id":"test-plugin","description":"Test a plugin\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin package","required":true}]},"transform-field":{"id":"transform-field","description":"transform an existing field by applying a calculated expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"expression","description":"expression to calculate field","required":true},{"name":"field","description":"field name","required":true},{"name":"table","description":"table name","required":true},{"name":"tenant","description":"tenant name","required":false}]}}}
|
|
1
|
+
{"version":"0.5.6-beta.2","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"zip":{"name":"zip","type":"boolean","char":"z","description":"zip format","allowNo":false}},"args":[]},"create-tenant":{"id":"create-tenant","description":"Create a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"email":{"name":"email","type":"option","char":"e","description":"Email of owner of tenant"},"description":{"name":"description","type":"option","char":"d","description":"Description of tenant"}},"args":[{"name":"tenant","description":"Tenant subdomain to create","required":true}]},"create-user":{"id":"create-user","description":"Create a new user","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"Admin user","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"email"},"role":{"name":"role","type":"option","char":"r","description":"role"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"fixtures":{"id":"fixtures","description":"Load fixtures for testing\n...\nThis manual step it is never required for users and rarely required for developers\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"reset":{"name":"reset","type":"boolean","char":"r","description":"Also reset schema","allowNo":false}},"args":[]},"info":{"id":"info","description":"Show paths\n...\nShow configuration and file store paths\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":["paths"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"install-pack":{"id":"install-pack","description":"Install a pack","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Pack name in store"},"file":{"name":"file","type":"option","char":"f","description":"File with pack JSON"}},"args":[]},"install-plugin":{"id":"install-plugin","description":"Install a plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store"},"directory":{"name":"directory","type":"option","char":"d","description":"Directory with local plugin"}},"args":[]},"list-tenants":{"id":"list-tenants","description":"List tenants in CSV format","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"localize-plugin":{"id":"localize-plugin","description":"Convert plugin to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"plugin","description":"Current plugin name","required":true},{"name":"path","description":"path to local plugin","required":true}]},"make-migration":{"id":"make-migration","description":"Create a new blank Database structure migration file.\nThese migrations update database structure.\nYou should not normally need to run this\nunless you are a developer.\n","usage":"make-migration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"migrate":{"id":"migrate","description":"Run Database structure migrations\n...\nNOTE!\n- Please stop Saltcorn before run DB migrations.\n- Please make db backup before migration.\n- There are no way to rollback migration if you doesn't make backup.\n\nThis is not normally required as migrations will be run when the server starts.\nHowever, this command may be useful if you are running multiple application\nservers and need to control when the migrations are run.\n","usage":"saltcorn migrate","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"plugins":{"id":"plugins","description":"List and upgrade plugins for tenants\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"examples":["plugins -v - verbose output of commands","plugins -u -d - dry-run for plugin update","plugins -u -f - force plugin update"],"flags":{"upgrade":{"name":"upgrade","type":"boolean","char":"u","description":"Upgrade","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"Upgrade dry-run","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force update","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"Plugin name"}},"args":[]},"release":{"id":"release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"reset-schema":{"id":"reset-schema","description":"Reset the database\n...\nThis will delete all existing information\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"restore":{"id":"restore","description":"Restore a previously backed up database (zip or sqlc format)","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"file","description":"backup file to restore","required":true}]},"rm-tenant":{"id":"rm-tenant","description":"Remove a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"tenant","description":"Tenant to remove","required":true}]},"run-benchmark":{"id":"run-benchmark","description":"Run benchmark","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"token":{"name":"token","type":"option","char":"t","description":"API Token for reporting results"},"benchmark":{"name":"benchmark","type":"option","char":"b","description":"Which benchmark to run"},"delay":{"name":"delay","type":"option","char":"d","description":"delay between runs (s)","default":30}},"args":[{"name":"baseurl","description":"Base URL","required":false}]},"run-tests":{"id":"run-tests","description":"Run test suites","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false},"forever":{"name":"forever","type":"boolean","char":"f","description":"Run forever till failure","allowNo":false}},"args":[{"name":"package","description":"which package to run tests for"}]},"scheduler":{"id":"scheduler","description":"Run the Saltcorn scheduler","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"serve":{"id":"serve","description":"Start the Saltcorn server","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"port":{"name":"port","type":"option","char":"p","description":"port","default":3000},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"watchReaper":{"name":"watchReaper","type":"boolean","char":"r","description":"Watch reaper","allowNo":false},"addschema":{"name":"addschema","type":"boolean","char":"a","description":"Add schema if missing","allowNo":false},"nomigrate":{"name":"nomigrate","type":"boolean","char":"n","description":"No migrations","allowNo":false},"noscheduler":{"name":"noscheduler","type":"boolean","char":"s","description":"No scheduler","allowNo":false}},"args":[]},"set-cfg":{"id":"set-cfg","description":"Set a configuration value","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"}},"args":[{"name":"key","description":"Configuration key","required":true},{"name":"value","description":"Configuration value (JSON or string)","required":true}]},"setup-benchmark":{"id":"setup-benchmark","description":"Setup an instance for benchmarking","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"setup":{"id":"setup","description":"Set up a new system\n...\nThis will attempt to install or connect a database, and set up a \nconfiguration file\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false}},"args":[]},"test-plugin":{"id":"test-plugin","description":"Test a plugin\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin package","required":true}]},"transform-field":{"id":"transform-field","description":"transform an existing field by applying a calculated expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"expression","description":"expression to calculate field","required":true},{"name":"field","description":"field name","required":true},{"name":"table","description":"table name","required":true},{"name":"tenant","description":"tenant name","required":false}]}}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
3
|
"description": "Command-line interface for Saltcorn, open-source no-code platform",
|
|
4
4
|
"homepage": "https://saltcorn.com",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.6-beta.2",
|
|
6
6
|
"author": "Tom Nielsen @glutamate",
|
|
7
7
|
"bin": {
|
|
8
8
|
"saltcorn": "./bin/saltcorn"
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
"@oclif/command": "^1.8.0",
|
|
13
13
|
"@oclif/config": "^1.17.0",
|
|
14
14
|
"@oclif/plugin-help": "^3.2.3",
|
|
15
|
-
"@saltcorn/data": "0.5.
|
|
16
|
-
"@saltcorn/server": "0.5.
|
|
15
|
+
"@saltcorn/data": "0.5.6-beta.2",
|
|
16
|
+
"@saltcorn/server": "0.5.6-beta.2",
|
|
17
17
|
"cli-ux": "^5.6.3",
|
|
18
18
|
"contractis": "^0.1.0",
|
|
19
19
|
"dateformat": "^3.0.3",
|
|
20
20
|
"inquirer": "^7.3.3",
|
|
21
21
|
"js-yaml": "^4.1.0",
|
|
22
|
-
"node-fetch": "
|
|
22
|
+
"node-fetch": "2.6.2",
|
|
23
23
|
"sudo": "^1.0.3",
|
|
24
|
-
"systeminformation": "^5.9.
|
|
24
|
+
"systeminformation": "^5.9.3",
|
|
25
25
|
"tcp-port-used": "^1.0.2",
|
|
26
26
|
"wrk": "^1.2.1"
|
|
27
27
|
},
|
|
@@ -5,9 +5,14 @@ class LocalizePluginCommand extends Command {
|
|
|
5
5
|
const db = require("@saltcorn/data/db");
|
|
6
6
|
const Plugin = require("@saltcorn/data/models/plugin");
|
|
7
7
|
const { args } = this.parse(LocalizePluginCommand);
|
|
8
|
-
const plugin = await Plugin.findOne({ name: args.plugin
|
|
8
|
+
const plugin = await Plugin.findOne({ name: args.plugin });
|
|
9
|
+
if (!plugin || plugin.source === "local") {
|
|
10
|
+
console.error("Localisable plugin not found");
|
|
11
|
+
this.exit(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
plugin.name = plugin.source === "npm" ? plugin.location : args.plugin;
|
|
9
15
|
plugin.source = "local";
|
|
10
|
-
plugin.name = plugin.location;
|
|
11
16
|
plugin.location = args.path;
|
|
12
17
|
await plugin.upsert();
|
|
13
18
|
console.log("Plugin saved", plugin);
|
|
@@ -16,11 +21,11 @@ class LocalizePluginCommand extends Command {
|
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
LocalizePluginCommand.args = [
|
|
19
|
-
{ name: "plugin", required: true, description: "Current
|
|
24
|
+
{ name: "plugin", required: true, description: "Current plugin name" },
|
|
20
25
|
{ name: "path", required: true, description: "path to local plugin" },
|
|
21
26
|
];
|
|
22
27
|
|
|
23
|
-
LocalizePluginCommand.description = `Convert
|
|
28
|
+
LocalizePluginCommand.description = `Convert plugin to local plugin`;
|
|
24
29
|
|
|
25
30
|
LocalizePluginCommand.flags = {};
|
|
26
31
|
|
|
@@ -16,6 +16,11 @@ class RunTestsCommand extends Command {
|
|
|
16
16
|
return res;
|
|
17
17
|
}
|
|
18
18
|
async e2etest(env) {
|
|
19
|
+
spawnSync("packages/saltcorn-cli/bin/saltcorn", ["fixtures", "-r"], {
|
|
20
|
+
stdio: "inherit",
|
|
21
|
+
env,
|
|
22
|
+
});
|
|
23
|
+
|
|
19
24
|
const server = spawn(
|
|
20
25
|
"packages/saltcorn-cli/bin/saltcorn",
|
|
21
26
|
["serve", "-p", "2987"],
|