Skip to content

Commit 18d8bea

Browse files
committed
updated flags
1 parent 285db7d commit 18d8bea

File tree

10 files changed

+193
-283
lines changed

10 files changed

+193
-283
lines changed

package-lock.json

Lines changed: 45 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-audit/README.md

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,28 @@ Perform audits and find possible errors in the exported Contentstack data
5353
```
5454
USAGE
5555
$ csdx audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
56-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets...] [-c <value>] [--sort <value>]
57-
[--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
56+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets...] [--columns <value>] [--sort
57+
<value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
5858
5959
FLAGS
6060
--modules=<option>... Provide the list of modules to be audited
6161
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets>
6262
--report-path=<value> Path to store the audit reports
6363
64-
TABLE FLAGS
65-
-c, --columns=<value> Specify columns to display, comma-separated.
66-
--csv Output results in CSV format.
67-
--filter=<value> Filter rows by a column value (e.g., name=foo).
68-
--no-header Hide table headers in output.
69-
--no-truncate Prevent truncation of long text in columns.
70-
--output=<option> Specify output format: csv, json, or yaml.
71-
<options: csv|json|yaml>
72-
--sort=<value> Sort the table by a column. Use "-" for descending.
73-
7464
COMMON FLAGS
7565
-c, --config=<value> Path of the external config
7666
-d, --data-dir=<value> Path where the data is stored
7767
68+
TABLE FLAGS
69+
--columns=<value> Specify columns to display, comma-separated.
70+
--csv Output results in CSV format.
71+
--filter=<value> Filter rows by a column value (e.g., name=foo).
72+
--no-header Hide table headers in output.
73+
--no-truncate Prevent truncation of long text in columns.
74+
--output=<option> Specify output format: csv, json, or yaml.
75+
<options: csv|json|yaml>
76+
--sort=<value> Sort the table by a column. Use "-" for descending.
77+
7878
DESCRIPTION
7979
Perform audits and find possible errors in the exported Contentstack data
8080
@@ -102,8 +102,8 @@ Perform audits and fix possible errors in the exported Contentstack data.
102102
USAGE
103103
$ csdx audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
104104
content-types|global-fields|entries|extensions|workflows|custom-roles|assets...] [--copy-path <value> --copy-dir]
105-
[--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [-c <value>] [--sort
106-
<value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
105+
[--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value>]
106+
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
107107
108108
FLAGS
109109
--copy-dir Create backup from the original data.
@@ -114,20 +114,20 @@ FLAGS
114114
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets>
115115
--report-path=<value> Path to store the audit reports
116116
117-
TABLE FLAGS
118-
-c, --columns=<value> Specify columns to display, comma-separated.
119-
--csv Output results in CSV format.
120-
--filter=<value> Filter rows by a column value (e.g., name=foo).
121-
--no-header Hide table headers in output.
122-
--no-truncate Prevent truncation of long text in columns.
123-
--output=<option> Specify output format: csv, json, or yaml.
124-
<options: csv|json|yaml>
125-
--sort=<value> Sort the table by a column. Use "-" for descending.
126-
127117
COMMON FLAGS
128118
-c, --config=<value> Path of the external config
129119
-d, --data-dir=<value> Path where the data is stored
130120
121+
TABLE FLAGS
122+
--columns=<value> Specify columns to display, comma-separated.
123+
--csv Output results in CSV format.
124+
--filter=<value> Filter rows by a column value (e.g., name=foo).
125+
--no-header Hide table headers in output.
126+
--no-truncate Prevent truncation of long text in columns.
127+
--output=<option> Specify output format: csv, json, or yaml.
128+
<options: csv|json|yaml>
129+
--sort=<value> Sort the table by a column. Use "-" for descending.
130+
131131
DESCRIPTION
132132
Perform audits and fix possible errors in the exported Contentstack data.
133133
@@ -156,28 +156,28 @@ Perform audits and find possible errors in the exported Contentstack data
156156
```
157157
USAGE
158158
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
159-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets...] [-c <value>] [--sort <value>]
160-
[--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
159+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets...] [--columns <value>] [--sort
160+
<value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
161161
162162
FLAGS
163163
--modules=<option>... Provide the list of modules to be audited
164164
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets>
165165
--report-path=<value> Path to store the audit reports
166166
167-
TABLE FLAGS
168-
-c, --columns=<value> Specify columns to display, comma-separated.
169-
--csv Output results in CSV format.
170-
--filter=<value> Filter rows by a column value (e.g., name=foo).
171-
--no-header Hide table headers in output.
172-
--no-truncate Prevent truncation of long text in columns.
173-
--output=<option> Specify output format: csv, json, or yaml.
174-
<options: csv|json|yaml>
175-
--sort=<value> Sort the table by a column. Use "-" for descending.
176-
177167
COMMON FLAGS
178168
-c, --config=<value> Path of the external config
179169
-d, --data-dir=<value> Path where the data is stored
180170
171+
TABLE FLAGS
172+
--columns=<value> Specify columns to display, comma-separated.
173+
--csv Output results in CSV format.
174+
--filter=<value> Filter rows by a column value (e.g., name=foo).
175+
--no-header Hide table headers in output.
176+
--no-truncate Prevent truncation of long text in columns.
177+
--output=<option> Specify output format: csv, json, or yaml.
178+
<options: csv|json|yaml>
179+
--sort=<value> Sort the table by a column. Use "-" for descending.
180+
181181
DESCRIPTION
182182
Perform audits and find possible errors in the exported Contentstack data
183183
@@ -207,8 +207,8 @@ Perform audits and fix possible errors in the exported Contentstack data.
207207
USAGE
208208
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
209209
content-types|global-fields|entries|extensions|workflows|custom-roles|assets...] [--copy-path <value> --copy-dir]
210-
[--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [-c <value>] [--sort
211-
<value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
210+
[--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value>]
211+
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
212212
213213
FLAGS
214214
--copy-dir Create backup from the original data.
@@ -219,20 +219,20 @@ FLAGS
219219
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets>
220220
--report-path=<value> Path to store the audit reports
221221
222-
TABLE FLAGS
223-
-c, --columns=<value> Specify columns to display, comma-separated.
224-
--csv Output results in CSV format.
225-
--filter=<value> Filter rows by a column value (e.g., name=foo).
226-
--no-header Hide table headers in output.
227-
--no-truncate Prevent truncation of long text in columns.
228-
--output=<option> Specify output format: csv, json, or yaml.
229-
<options: csv|json|yaml>
230-
--sort=<value> Sort the table by a column. Use "-" for descending.
231-
232222
COMMON FLAGS
233223
-c, --config=<value> Path of the external config
234224
-d, --data-dir=<value> Path where the data is stored
235225
226+
TABLE FLAGS
227+
--columns=<value> Specify columns to display, comma-separated.
228+
--csv Output results in CSV format.
229+
--filter=<value> Filter rows by a column value (e.g., name=foo).
230+
--no-header Hide table headers in output.
231+
--no-truncate Prevent truncation of long text in columns.
232+
--output=<option> Specify output format: csv, json, or yaml.
233+
<options: csv|json|yaml>
234+
--sort=<value> Sort the table by a column. Use "-" for descending.
235+
236236
DESCRIPTION
237237
Perform audits and fix possible errors in the exported Contentstack data.
238238

packages/contentstack-audit/src/commands/cm/stacks/audit/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import config from '../../../../config';
44
import { auditMsg } from '../../../../messages';
55
import { AuditBaseCommand } from '../../../../audit-base-command';
66
import { tableFlags } from '../../../../util';
7-
// import { getTableFlags } from '../../../../util';
87

98
export default class Audit extends AuditBaseCommand {
109
static aliases: string[] = ['audit', 'cm:stacks:audit'];

packages/contentstack-audit/src/types/common.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// import { ux } from '@contentstack/cli-utilities';
2-
3-
// type IFlags = typeof ux.table.Flags;
41
type IncludeFlags<T, K extends keyof T> = Pick<T, K>;
52

63
type CommandNames = 'cm:stacks:audit' | 'cm:stacks:audit:fix';

packages/contentstack-audit/test/unit/util/flags.test.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)