@contentstack/cli-audit 2.0.0-beta → 2.0.0-beta.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
CHANGED
|
@@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
|
|
|
19
19
|
$ csdx COMMAND
|
|
20
20
|
running command...
|
|
21
21
|
$ csdx (--version|-v)
|
|
22
|
-
@contentstack/cli-audit/2.0.0-beta linux-x64 node-v22.21.1
|
|
22
|
+
@contentstack/cli-audit/2.0.0-beta.1 linux-x64 node-v22.21.1
|
|
23
23
|
$ csdx --help [COMMAND]
|
|
24
24
|
USAGE
|
|
25
25
|
$ csdx COMMAND
|
|
@@ -30,128 +30,9 @@ USAGE
|
|
|
30
30
|
# Commands
|
|
31
31
|
|
|
32
32
|
<!-- commands -->
|
|
33
|
-
* [`csdx audit`](#csdx-audit)
|
|
34
|
-
* [`csdx audit:fix`](#csdx-auditfix)
|
|
35
33
|
* [`csdx cm:stacks:audit`](#csdx-cmstacksaudit)
|
|
36
34
|
* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
|
|
37
35
|
* [`csdx help [COMMAND]`](#csdx-help-command)
|
|
38
|
-
* [`csdx plugins`](#csdx-plugins)
|
|
39
|
-
* [`csdx plugins:add PLUGIN`](#csdx-pluginsadd-plugin)
|
|
40
|
-
* [`csdx plugins:inspect PLUGIN...`](#csdx-pluginsinspect-plugin)
|
|
41
|
-
* [`csdx plugins:install PLUGIN`](#csdx-pluginsinstall-plugin)
|
|
42
|
-
* [`csdx plugins:link PATH`](#csdx-pluginslink-path)
|
|
43
|
-
* [`csdx plugins:remove [PLUGIN]`](#csdx-pluginsremove-plugin)
|
|
44
|
-
* [`csdx plugins:reset`](#csdx-pluginsreset)
|
|
45
|
-
* [`csdx plugins:uninstall [PLUGIN]`](#csdx-pluginsuninstall-plugin)
|
|
46
|
-
* [`csdx plugins:unlink [PLUGIN]`](#csdx-pluginsunlink-plugin)
|
|
47
|
-
* [`csdx plugins:update`](#csdx-pluginsupdate)
|
|
48
|
-
|
|
49
|
-
## `csdx audit`
|
|
50
|
-
|
|
51
|
-
Perform audits and find possible errors in the exported Contentstack data
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
USAGE
|
|
55
|
-
$ csdx audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
56
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--columns <value>]
|
|
57
|
-
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
|
|
58
|
-
|
|
59
|
-
FLAGS
|
|
60
|
-
--modules=<option>... Provide the list of modules to be audited
|
|
61
|
-
<options:
|
|
62
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules>
|
|
63
|
-
--report-path=<value> Path to store the audit reports
|
|
64
|
-
|
|
65
|
-
COMMON FLAGS
|
|
66
|
-
-c, --config=<value> Path of the external config
|
|
67
|
-
-d, --data-dir=<value> Path where the data is stored
|
|
68
|
-
--show-console-output Display the audit and audit fix result for individual modules
|
|
69
|
-
|
|
70
|
-
TABLE FLAGS
|
|
71
|
-
--columns=<value> Specify columns to display, comma-separated.
|
|
72
|
-
--csv Output results in CSV format.
|
|
73
|
-
--filter=<value> Filter rows by a column value (e.g., name=foo).
|
|
74
|
-
--no-header Hide table headers in output.
|
|
75
|
-
--no-truncate Prevent truncation of long text in columns.
|
|
76
|
-
--output=<option> Specify output format: csv, json, or yaml.
|
|
77
|
-
<options: csv|json|yaml>
|
|
78
|
-
--sort=<value> Sort the table by a column. Use "-" for descending.
|
|
79
|
-
|
|
80
|
-
DESCRIPTION
|
|
81
|
-
Perform audits and find possible errors in the exported Contentstack data
|
|
82
|
-
|
|
83
|
-
ALIASES
|
|
84
|
-
$ csdx audit
|
|
85
|
-
$ csdx cm:stacks:audit
|
|
86
|
-
|
|
87
|
-
EXAMPLES
|
|
88
|
-
$ csdx audit
|
|
89
|
-
|
|
90
|
-
$ csdx audit --report-path=<path>
|
|
91
|
-
|
|
92
|
-
$ csdx audit --report-path=<path> --csv
|
|
93
|
-
|
|
94
|
-
$ csdx audit --report-path=<path> --filter="name=<filter-value>"
|
|
95
|
-
|
|
96
|
-
$ csdx audit --report-path=<path> --modules=content-types --filter="name="<filter-value>"
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## `csdx audit:fix`
|
|
100
|
-
|
|
101
|
-
Perform audits and fix possible errors in the exported Contentstack data.
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
USAGE
|
|
105
|
-
$ csdx audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
106
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--copy-path <value>
|
|
107
|
-
--copy-dir] [--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns
|
|
108
|
-
<value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
|
|
109
|
-
|
|
110
|
-
FLAGS
|
|
111
|
-
--copy-dir Create backup from the original data.
|
|
112
|
-
--copy-path=<value> Provide the path to backup the copied data
|
|
113
|
-
--fix-only=<option>... Provide the list of fix options
|
|
114
|
-
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
|
|
115
|
-
--modules=<option>... Provide the list of modules to be audited
|
|
116
|
-
<options:
|
|
117
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules>
|
|
118
|
-
--report-path=<value> Path to store the audit reports
|
|
119
|
-
|
|
120
|
-
COMMON FLAGS
|
|
121
|
-
-c, --config=<value> Path of the external config
|
|
122
|
-
-d, --data-dir=<value> Path where the data is stored
|
|
123
|
-
--show-console-output Display the audit and audit fix result for individual modules
|
|
124
|
-
|
|
125
|
-
TABLE FLAGS
|
|
126
|
-
--columns=<value> Specify columns to display, comma-separated.
|
|
127
|
-
--csv Output results in CSV format.
|
|
128
|
-
--filter=<value> Filter rows by a column value (e.g., name=foo).
|
|
129
|
-
--no-header Hide table headers in output.
|
|
130
|
-
--no-truncate Prevent truncation of long text in columns.
|
|
131
|
-
--output=<option> Specify output format: csv, json, or yaml.
|
|
132
|
-
<options: csv|json|yaml>
|
|
133
|
-
--sort=<value> Sort the table by a column. Use "-" for descending.
|
|
134
|
-
|
|
135
|
-
DESCRIPTION
|
|
136
|
-
Perform audits and fix possible errors in the exported Contentstack data.
|
|
137
|
-
|
|
138
|
-
ALIASES
|
|
139
|
-
$ csdx audit:fix
|
|
140
|
-
$ csdx cm:stacks:audit:fix
|
|
141
|
-
|
|
142
|
-
EXAMPLES
|
|
143
|
-
$ csdx audit:fix --copy-dir
|
|
144
|
-
|
|
145
|
-
$ csdx audit:fix --report-path=<path> --copy-dir
|
|
146
|
-
|
|
147
|
-
$ csdx audit:fix --report-path=<path> --copy-dir --csv
|
|
148
|
-
|
|
149
|
-
$ csdx audit:fix --fix-only=reference,global_field --copy-dir
|
|
150
|
-
|
|
151
|
-
$ csdx audit:fix --report-path=<path> --filter="name=<filter-value>"
|
|
152
|
-
|
|
153
|
-
$ csdx audit:fix --report-path=<path> --modules=content-types --filter="name="<filter-value>" --copy-dir --copy-path=<path>
|
|
154
|
-
```
|
|
155
36
|
|
|
156
37
|
## `csdx cm:stacks:audit`
|
|
157
38
|
|
|
@@ -187,10 +68,6 @@ TABLE FLAGS
|
|
|
187
68
|
DESCRIPTION
|
|
188
69
|
Perform audits and find possible errors in the exported Contentstack data
|
|
189
70
|
|
|
190
|
-
ALIASES
|
|
191
|
-
$ csdx audit
|
|
192
|
-
$ csdx cm:stacks:audit
|
|
193
|
-
|
|
194
71
|
EXAMPLES
|
|
195
72
|
$ csdx cm:stacks:audit
|
|
196
73
|
|
|
@@ -244,10 +121,6 @@ TABLE FLAGS
|
|
|
244
121
|
DESCRIPTION
|
|
245
122
|
Perform audits and fix possible errors in the exported Contentstack data.
|
|
246
123
|
|
|
247
|
-
ALIASES
|
|
248
|
-
$ csdx audit:fix
|
|
249
|
-
$ csdx cm:stacks:audit:fix
|
|
250
|
-
|
|
251
124
|
EXAMPLES
|
|
252
125
|
$ csdx cm:stacks:audit:fix --copy-dir
|
|
253
126
|
|
|
@@ -283,294 +156,4 @@ DESCRIPTION
|
|
|
283
156
|
```
|
|
284
157
|
|
|
285
158
|
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
|
|
286
|
-
|
|
287
|
-
## `csdx plugins`
|
|
288
|
-
|
|
289
|
-
List installed plugins.
|
|
290
|
-
|
|
291
|
-
```
|
|
292
|
-
USAGE
|
|
293
|
-
$ csdx plugins [--json] [--core]
|
|
294
|
-
|
|
295
|
-
FLAGS
|
|
296
|
-
--core Show core plugins.
|
|
297
|
-
|
|
298
|
-
GLOBAL FLAGS
|
|
299
|
-
--json Format output as json.
|
|
300
|
-
|
|
301
|
-
DESCRIPTION
|
|
302
|
-
List installed plugins.
|
|
303
|
-
|
|
304
|
-
EXAMPLES
|
|
305
|
-
$ csdx plugins
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/index.ts)_
|
|
309
|
-
|
|
310
|
-
## `csdx plugins:add PLUGIN`
|
|
311
|
-
|
|
312
|
-
Installs a plugin into csdx.
|
|
313
|
-
|
|
314
|
-
```
|
|
315
|
-
USAGE
|
|
316
|
-
$ csdx plugins:add PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
317
|
-
|
|
318
|
-
ARGUMENTS
|
|
319
|
-
PLUGIN... Plugin to install.
|
|
320
|
-
|
|
321
|
-
FLAGS
|
|
322
|
-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
323
|
-
-h, --help Show CLI help.
|
|
324
|
-
-s, --silent Silences npm output.
|
|
325
|
-
-v, --verbose Show verbose npm output.
|
|
326
|
-
|
|
327
|
-
GLOBAL FLAGS
|
|
328
|
-
--json Format output as json.
|
|
329
|
-
|
|
330
|
-
DESCRIPTION
|
|
331
|
-
Installs a plugin into csdx.
|
|
332
|
-
|
|
333
|
-
Uses npm to install plugins.
|
|
334
|
-
|
|
335
|
-
Installation of a user-installed plugin will override a core plugin.
|
|
336
|
-
|
|
337
|
-
Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
338
|
-
Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
|
|
339
|
-
|
|
340
|
-
ALIASES
|
|
341
|
-
$ csdx plugins:add
|
|
342
|
-
|
|
343
|
-
EXAMPLES
|
|
344
|
-
Install a plugin from npm registry.
|
|
345
|
-
|
|
346
|
-
$ csdx plugins:add myplugin
|
|
347
|
-
|
|
348
|
-
Install a plugin from a github url.
|
|
349
|
-
|
|
350
|
-
$ csdx plugins:add https://github.com/someuser/someplugin
|
|
351
|
-
|
|
352
|
-
Install a plugin from a github slug.
|
|
353
|
-
|
|
354
|
-
$ csdx plugins:add someuser/someplugin
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
## `csdx plugins:inspect PLUGIN...`
|
|
358
|
-
|
|
359
|
-
Displays installation properties of a plugin.
|
|
360
|
-
|
|
361
|
-
```
|
|
362
|
-
USAGE
|
|
363
|
-
$ csdx plugins:inspect PLUGIN...
|
|
364
|
-
|
|
365
|
-
ARGUMENTS
|
|
366
|
-
PLUGIN... [default: .] Plugin to inspect.
|
|
367
|
-
|
|
368
|
-
FLAGS
|
|
369
|
-
-h, --help Show CLI help.
|
|
370
|
-
-v, --verbose
|
|
371
|
-
|
|
372
|
-
GLOBAL FLAGS
|
|
373
|
-
--json Format output as json.
|
|
374
|
-
|
|
375
|
-
DESCRIPTION
|
|
376
|
-
Displays installation properties of a plugin.
|
|
377
|
-
|
|
378
|
-
EXAMPLES
|
|
379
|
-
$ csdx plugins:inspect myplugin
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/inspect.ts)_
|
|
383
|
-
|
|
384
|
-
## `csdx plugins:install PLUGIN`
|
|
385
|
-
|
|
386
|
-
Installs a plugin into csdx.
|
|
387
|
-
|
|
388
|
-
```
|
|
389
|
-
USAGE
|
|
390
|
-
$ csdx plugins:install PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
391
|
-
|
|
392
|
-
ARGUMENTS
|
|
393
|
-
PLUGIN... Plugin to install.
|
|
394
|
-
|
|
395
|
-
FLAGS
|
|
396
|
-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
397
|
-
-h, --help Show CLI help.
|
|
398
|
-
-s, --silent Silences npm output.
|
|
399
|
-
-v, --verbose Show verbose npm output.
|
|
400
|
-
|
|
401
|
-
GLOBAL FLAGS
|
|
402
|
-
--json Format output as json.
|
|
403
|
-
|
|
404
|
-
DESCRIPTION
|
|
405
|
-
Installs a plugin into csdx.
|
|
406
|
-
|
|
407
|
-
Uses npm to install plugins.
|
|
408
|
-
|
|
409
|
-
Installation of a user-installed plugin will override a core plugin.
|
|
410
|
-
|
|
411
|
-
Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
412
|
-
Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
|
|
413
|
-
|
|
414
|
-
ALIASES
|
|
415
|
-
$ csdx plugins:add
|
|
416
|
-
|
|
417
|
-
EXAMPLES
|
|
418
|
-
Install a plugin from npm registry.
|
|
419
|
-
|
|
420
|
-
$ csdx plugins:install myplugin
|
|
421
|
-
|
|
422
|
-
Install a plugin from a github url.
|
|
423
|
-
|
|
424
|
-
$ csdx plugins:install https://github.com/someuser/someplugin
|
|
425
|
-
|
|
426
|
-
Install a plugin from a github slug.
|
|
427
|
-
|
|
428
|
-
$ csdx plugins:install someuser/someplugin
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/install.ts)_
|
|
432
|
-
|
|
433
|
-
## `csdx plugins:link PATH`
|
|
434
|
-
|
|
435
|
-
Links a plugin into the CLI for development.
|
|
436
|
-
|
|
437
|
-
```
|
|
438
|
-
USAGE
|
|
439
|
-
$ csdx plugins:link PATH [-h] [--install] [-v]
|
|
440
|
-
|
|
441
|
-
ARGUMENTS
|
|
442
|
-
PATH [default: .] path to plugin
|
|
443
|
-
|
|
444
|
-
FLAGS
|
|
445
|
-
-h, --help Show CLI help.
|
|
446
|
-
-v, --verbose
|
|
447
|
-
--[no-]install Install dependencies after linking the plugin.
|
|
448
|
-
|
|
449
|
-
DESCRIPTION
|
|
450
|
-
Links a plugin into the CLI for development.
|
|
451
|
-
|
|
452
|
-
Installation of a linked plugin will override a user-installed or core plugin.
|
|
453
|
-
|
|
454
|
-
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
455
|
-
command will override the user-installed or core plugin implementation. This is useful for development work.
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
EXAMPLES
|
|
459
|
-
$ csdx plugins:link myplugin
|
|
460
|
-
```
|
|
461
|
-
|
|
462
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/link.ts)_
|
|
463
|
-
|
|
464
|
-
## `csdx plugins:remove [PLUGIN]`
|
|
465
|
-
|
|
466
|
-
Removes a plugin from the CLI.
|
|
467
|
-
|
|
468
|
-
```
|
|
469
|
-
USAGE
|
|
470
|
-
$ csdx plugins:remove [PLUGIN...] [-h] [-v]
|
|
471
|
-
|
|
472
|
-
ARGUMENTS
|
|
473
|
-
[PLUGIN...] plugin to uninstall
|
|
474
|
-
|
|
475
|
-
FLAGS
|
|
476
|
-
-h, --help Show CLI help.
|
|
477
|
-
-v, --verbose
|
|
478
|
-
|
|
479
|
-
DESCRIPTION
|
|
480
|
-
Removes a plugin from the CLI.
|
|
481
|
-
|
|
482
|
-
ALIASES
|
|
483
|
-
$ csdx plugins:unlink
|
|
484
|
-
$ csdx plugins:remove
|
|
485
|
-
|
|
486
|
-
EXAMPLES
|
|
487
|
-
$ csdx plugins:remove myplugin
|
|
488
|
-
```
|
|
489
|
-
|
|
490
|
-
## `csdx plugins:reset`
|
|
491
|
-
|
|
492
|
-
Remove all user-installed and linked plugins.
|
|
493
|
-
|
|
494
|
-
```
|
|
495
|
-
USAGE
|
|
496
|
-
$ csdx plugins:reset [--hard] [--reinstall]
|
|
497
|
-
|
|
498
|
-
FLAGS
|
|
499
|
-
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
|
|
500
|
-
--reinstall Reinstall all plugins after uninstalling.
|
|
501
|
-
```
|
|
502
|
-
|
|
503
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/reset.ts)_
|
|
504
|
-
|
|
505
|
-
## `csdx plugins:uninstall [PLUGIN]`
|
|
506
|
-
|
|
507
|
-
Removes a plugin from the CLI.
|
|
508
|
-
|
|
509
|
-
```
|
|
510
|
-
USAGE
|
|
511
|
-
$ csdx plugins:uninstall [PLUGIN...] [-h] [-v]
|
|
512
|
-
|
|
513
|
-
ARGUMENTS
|
|
514
|
-
[PLUGIN...] plugin to uninstall
|
|
515
|
-
|
|
516
|
-
FLAGS
|
|
517
|
-
-h, --help Show CLI help.
|
|
518
|
-
-v, --verbose
|
|
519
|
-
|
|
520
|
-
DESCRIPTION
|
|
521
|
-
Removes a plugin from the CLI.
|
|
522
|
-
|
|
523
|
-
ALIASES
|
|
524
|
-
$ csdx plugins:unlink
|
|
525
|
-
$ csdx plugins:remove
|
|
526
|
-
|
|
527
|
-
EXAMPLES
|
|
528
|
-
$ csdx plugins:uninstall myplugin
|
|
529
|
-
```
|
|
530
|
-
|
|
531
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/uninstall.ts)_
|
|
532
|
-
|
|
533
|
-
## `csdx plugins:unlink [PLUGIN]`
|
|
534
|
-
|
|
535
|
-
Removes a plugin from the CLI.
|
|
536
|
-
|
|
537
|
-
```
|
|
538
|
-
USAGE
|
|
539
|
-
$ csdx plugins:unlink [PLUGIN...] [-h] [-v]
|
|
540
|
-
|
|
541
|
-
ARGUMENTS
|
|
542
|
-
[PLUGIN...] plugin to uninstall
|
|
543
|
-
|
|
544
|
-
FLAGS
|
|
545
|
-
-h, --help Show CLI help.
|
|
546
|
-
-v, --verbose
|
|
547
|
-
|
|
548
|
-
DESCRIPTION
|
|
549
|
-
Removes a plugin from the CLI.
|
|
550
|
-
|
|
551
|
-
ALIASES
|
|
552
|
-
$ csdx plugins:unlink
|
|
553
|
-
$ csdx plugins:remove
|
|
554
|
-
|
|
555
|
-
EXAMPLES
|
|
556
|
-
$ csdx plugins:unlink myplugin
|
|
557
|
-
```
|
|
558
|
-
|
|
559
|
-
## `csdx plugins:update`
|
|
560
|
-
|
|
561
|
-
Update installed plugins.
|
|
562
|
-
|
|
563
|
-
```
|
|
564
|
-
USAGE
|
|
565
|
-
$ csdx plugins:update [-h] [-v]
|
|
566
|
-
|
|
567
|
-
FLAGS
|
|
568
|
-
-h, --help Show CLI help.
|
|
569
|
-
-v, --verbose
|
|
570
|
-
|
|
571
|
-
DESCRIPTION
|
|
572
|
-
Update installed plugins.
|
|
573
|
-
```
|
|
574
|
-
|
|
575
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/update.ts)_
|
|
576
159
|
<!-- commandsstop -->
|
|
@@ -2,7 +2,6 @@ import { FlagInput } from '@contentstack/cli-utilities';
|
|
|
2
2
|
import { ConfigType } from '../../../../types';
|
|
3
3
|
import { AuditBaseCommand } from '../../../../audit-base-command';
|
|
4
4
|
export default class AuditFix extends AuditBaseCommand {
|
|
5
|
-
static aliases: string[];
|
|
6
5
|
static description: string;
|
|
7
6
|
static examples: string[];
|
|
8
7
|
static flags: FlagInput;
|
|
@@ -27,7 +27,6 @@ class AuditFix extends audit_base_command_1.AuditBaseCommand {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
AuditFix.aliases = ['audit:fix', 'cm:stacks:audit:fix'];
|
|
31
30
|
AuditFix.description = messages_1.auditFixMsg.AUDIT_FIX_CMD_DESCRIPTION;
|
|
32
31
|
AuditFix.examples = [
|
|
33
32
|
'$ <%= config.bin %> <%= command.id %> --copy-dir',
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FlagInput } from '@contentstack/cli-utilities';
|
|
2
2
|
import { AuditBaseCommand } from '../../../../audit-base-command';
|
|
3
3
|
export default class Audit extends AuditBaseCommand {
|
|
4
|
-
static aliases: string[];
|
|
5
4
|
static description: string;
|
|
6
5
|
static examples: string[];
|
|
7
6
|
static flags: FlagInput;
|
package/oclif.manifest.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
3
|
"cm:stacks:audit:fix": {
|
|
4
|
-
"aliases": [
|
|
5
|
-
"audit:fix",
|
|
6
|
-
"cm:stacks:audit:fix"
|
|
7
|
-
],
|
|
4
|
+
"aliases": [],
|
|
8
5
|
"args": {},
|
|
9
6
|
"description": "Perform audits and fix possible errors in the exported Contentstack data.",
|
|
10
7
|
"examples": [
|
|
@@ -197,10 +194,7 @@
|
|
|
197
194
|
]
|
|
198
195
|
},
|
|
199
196
|
"cm:stacks:audit": {
|
|
200
|
-
"aliases": [
|
|
201
|
-
"audit",
|
|
202
|
-
"cm:stacks:audit"
|
|
203
|
-
],
|
|
197
|
+
"aliases": [],
|
|
204
198
|
"args": {},
|
|
205
199
|
"description": "Perform audits and find possible errors in the exported Contentstack data",
|
|
206
200
|
"examples": [
|
|
@@ -344,5 +338,5 @@
|
|
|
344
338
|
]
|
|
345
339
|
}
|
|
346
340
|
},
|
|
347
|
-
"version": "2.0.0-beta"
|
|
341
|
+
"version": "2.0.0-beta.1"
|
|
348
342
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-audit",
|
|
3
|
-
"version": "2.0.0-beta",
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "Contentstack audit plugin",
|
|
5
5
|
"author": "Contentstack CLI",
|
|
6
6
|
"homepage": "https://github.com/contentstack/cli",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"@contentstack/cli-utilities": "~1.15.0",
|
|
23
23
|
"@oclif/core": "^4.3.0",
|
|
24
24
|
"@oclif/plugin-help": "^6.2.28",
|
|
25
|
-
"@oclif/plugin-plugins": "^5.4.38",
|
|
26
25
|
"chalk": "^4.1.2",
|
|
27
26
|
"fast-csv": "^4.3.6",
|
|
28
27
|
"fs-extra": "^11.3.0",
|
|
@@ -53,8 +52,7 @@
|
|
|
53
52
|
"bin": "csdx",
|
|
54
53
|
"commands": "./lib/commands",
|
|
55
54
|
"plugins": [
|
|
56
|
-
"@oclif/plugin-help"
|
|
57
|
-
"@oclif/plugin-plugins"
|
|
55
|
+
"@oclif/plugin-help"
|
|
58
56
|
],
|
|
59
57
|
"topicSeparator": ":",
|
|
60
58
|
"additionalHelpFlags": [
|