@contentstack/cli-audit 1.9.0 → 1.11.0

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.
@@ -5,4 +5,5 @@ import Workflows from './workflows';
5
5
  import Extensions from './extensions';
6
6
  import CustomRoles from './custom-roles';
7
7
  import Assets from './assets';
8
- export { Entries, GlobalField, ContentType, Workflows, Extensions, Assets, CustomRoles };
8
+ import FieldRule from './field_rules';
9
+ export { Entries, GlobalField, ContentType, Workflows, Extensions, Assets, CustomRoles, FieldRule };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomRoles = exports.Assets = exports.Extensions = exports.Workflows = exports.ContentType = exports.GlobalField = exports.Entries = void 0;
3
+ exports.FieldRule = exports.CustomRoles = exports.Assets = exports.Extensions = exports.Workflows = exports.ContentType = exports.GlobalField = exports.Entries = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const entries_1 = tslib_1.__importDefault(require("./entries"));
6
6
  exports.Entries = entries_1.default;
@@ -16,3 +16,5 @@ const custom_roles_1 = tslib_1.__importDefault(require("./custom-roles"));
16
16
  exports.CustomRoles = custom_roles_1.default;
17
17
  const assets_1 = tslib_1.__importDefault(require("./assets"));
18
18
  exports.Assets = assets_1.default;
19
+ const field_rules_1 = tslib_1.__importDefault(require("./field_rules"));
20
+ exports.FieldRule = field_rules_1.default;
@@ -106,7 +106,7 @@ class Workflows {
106
106
  const { name, uid } = workflow;
107
107
  const warningMessage = (0, messages_1.$t)(messages_1.commonMsg.WORKFLOW_FIX_WARN, { name, uid });
108
108
  this.log(warningMessage, { color: 'yellow' });
109
- if (this.config.flags.yes || (await cli_utilities_1.ux.confirm(messages_1.commonMsg.WORKFLOW_FIX_CONFIRMATION))) {
109
+ if (this.config.flags.yes || (await cli_utilities_1.cliux.confirm(messages_1.commonMsg.WORKFLOW_FIX_CONFIRMATION))) {
110
110
  delete newWorkflowSchema[workflow.uid];
111
111
  }
112
112
  }
@@ -120,7 +120,7 @@ class Workflows {
120
120
  (this.config.flags['copy-dir'] ||
121
121
  ((_a = this.config.flags['external-config']) === null || _a === void 0 ? void 0 : _a.skipConfirm) ||
122
122
  this.config.flags.yes ||
123
- (await cli_utilities_1.ux.confirm(messages_1.commonMsg.FIX_CONFIRMATION)))) {
123
+ (await cli_utilities_1.cliux.confirm(messages_1.commonMsg.FIX_CONFIRMATION)))) {
124
124
  (0, fs_1.writeFileSync)((0, path_1.join)(this.folderPath, this.config.moduleConfig[this.moduleName].fileName), JSON.stringify(newWorkflowSchema));
125
125
  }
126
126
  }
@@ -1,8 +1,6 @@
1
- import { ux } from "@contentstack/cli-utilities";
2
- type IFlags = typeof ux.table.Flags;
3
1
  type IncludeFlags<T, K extends keyof T> = Pick<T, K>;
4
2
  type CommandNames = 'cm:stacks:audit' | 'cm:stacks:audit:fix';
5
3
  interface AnyProperty {
6
4
  [propName: string]: any;
7
5
  }
8
- export { IFlags, IncludeFlags, CommandNames, AnyProperty };
6
+ export { IncludeFlags, CommandNames, AnyProperty };
@@ -1,13 +1,15 @@
1
1
  import config from '../config';
2
2
  import { AnyProperty } from './common';
3
3
  import { ConfigType, LogFn } from './utils';
4
- type ContentTypeSchemaType = ReferenceFieldDataType | GlobalFieldDataType | ExtensionOrAppFieldDataType | JsonRTEFieldDataType | GroupFieldDataType | ModularBlocksDataType | SelectFeildStruct;
4
+ type ContentTypeSchemaType = ReferenceFieldDataType | GlobalFieldDataType | ExtensionOrAppFieldDataType | JsonRTEFieldDataType | GroupFieldDataType | ModularBlocksDataType | SelectFeildStruct | any;
5
5
  type ContentTypeStruct = {
6
+ field_rules: any;
6
7
  uid: string;
7
8
  title: string;
8
9
  description: string;
9
10
  schema?: ContentTypeSchemaType[];
10
11
  mandatory: boolean;
12
+ multiple: boolean;
11
13
  };
12
14
  type ModuleConstructorParam = {
13
15
  log: LogFn;
@@ -28,6 +30,7 @@ type CommonDataTypeStruct = {
28
30
  allow_json_rte: boolean;
29
31
  } & AnyProperty;
30
32
  mandatory: boolean;
33
+ multiple: boolean;
31
34
  };
32
35
  type RefErrorReturnType = {
33
36
  name: string;
@@ -114,6 +117,22 @@ declare enum OutputColumn {
114
117
  'publish_environment' = "publish_environment",
115
118
  'asset_uid' = "asset_uid",
116
119
  'selectedValue' = "selectedValue",
117
- 'fixStatus' = "fixStatus"
120
+ 'fixStatus' = "fixStatus",
121
+ 'Content_type_uid' = "ct_uid",
122
+ 'action' = "action",
123
+ 'field_uid' = "field_uid",
124
+ 'multiple' = "multiple"
118
125
  }
119
- export { CtConstructorParam, ContentTypeStruct, ModuleConstructorParam, ReferenceFieldDataType, GlobalFieldDataType, ExtensionOrAppFieldDataType, JsonRTEFieldDataType, GroupFieldDataType, ModularBlocksDataType, RefErrorReturnType, ModularBlocksSchemaTypes, ModularBlockType, OutputColumn, ContentTypeSchemaType, GlobalFieldSchemaTypes, WorkflowExtensionsRefErrorReturnType, SelectFeildStruct, };
126
+ export { CtConstructorParam, ContentTypeStruct, ModuleConstructorParam, ReferenceFieldDataType, GlobalFieldDataType, ExtensionOrAppFieldDataType, JsonRTEFieldDataType, GroupFieldDataType, ModularBlocksDataType, RefErrorReturnType, ModularBlocksSchemaTypes, ModularBlockType, OutputColumn, ContentTypeSchemaType, GlobalFieldSchemaTypes, WorkflowExtensionsRefErrorReturnType, SelectFeildStruct, FieldRuleStruct, };
127
+ type FieldRuleStruct = {
128
+ match_type: string;
129
+ actions: Array<{
130
+ action: string;
131
+ target_field: string;
132
+ }> | undefined;
133
+ conditions: Array<{
134
+ value: string;
135
+ operand_field: string;
136
+ operator: string;
137
+ }> | undefined;
138
+ };
@@ -31,5 +31,8 @@ var OutputColumn;
31
31
  OutputColumn["asset_uid"] = "asset_uid";
32
32
  OutputColumn["selectedValue"] = "selectedValue";
33
33
  OutputColumn["fixStatus"] = "fixStatus";
34
- })(OutputColumn || (OutputColumn = {}));
35
- exports.OutputColumn = OutputColumn;
34
+ OutputColumn["Content_type_uid"] = "ct_uid";
35
+ OutputColumn["action"] = "action";
36
+ OutputColumn["field_uid"] = "field_uid";
37
+ OutputColumn["multiple"] = "multiple";
38
+ })(OutputColumn || (exports.OutputColumn = OutputColumn = {}));
@@ -1,13 +1,5 @@
1
1
  import { FlagDefinition } from '@contentstack/cli-utilities';
2
- import { IFlags, IncludeFlags, JSONFlagOptions } from '../types';
3
- /**
4
- * The function `getTableFlags` returns a set of table flags based on the specified columns, with
5
- * updated descriptions and help groups.
6
- * @param {(keyof IFlags)[]} columns - An optional array of column keys from the IFlags interface. The
7
- * default value is ['columns', 'sort', 'filter', 'csv', 'no-truncate'].
8
- * @returns an object of type `IncludeFlags<IFlags, keyof IFlags>`.
9
- */
10
- declare function getTableFlags(columns?: (keyof IFlags)[]): IncludeFlags<IFlags, keyof IFlags>;
2
+ import { JSONFlagOptions } from '../types';
11
3
  /**
12
4
  * The function `getJsonInputFlags` returns a flag definition for parsing JSON input.
13
5
  * @param {JSONFlagOptions} options - The `options` parameter is an object that contains the following
@@ -15,4 +7,5 @@ declare function getTableFlags(columns?: (keyof IFlags)[]): IncludeFlags<IFlags,
15
7
  * @returns a `FlagDefinition` object.
16
8
  */
17
9
  declare function getJsonInputFlags(options?: JSONFlagOptions): FlagDefinition<Record<string, unknown>, Record<string, unknown>>;
18
- export { getTableFlags, getJsonInputFlags };
10
+ declare const tableFlags: import("@contentstack/cli-utilities").FlagInput<import("@contentstack/cli-utilities").TableFlags>;
11
+ export { getJsonInputFlags, tableFlags };
package/lib/util/flags.js CHANGED
@@ -1,30 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getJsonInputFlags = exports.getTableFlags = void 0;
3
+ exports.tableFlags = void 0;
4
+ exports.getJsonInputFlags = getJsonInputFlags;
4
5
  const cli_utilities_1 = require("@contentstack/cli-utilities");
5
- const messages_1 = require("../messages");
6
6
  const defaultJSONOptions = { description: 'Provide JSON input' };
7
- /**
8
- * The function `getTableFlags` returns a set of table flags based on the specified columns, with
9
- * updated descriptions and help groups.
10
- * @param {(keyof IFlags)[]} columns - An optional array of column keys from the IFlags interface. The
11
- * default value is ['columns', 'sort', 'filter', 'csv', 'no-truncate'].
12
- * @returns an object of type `IncludeFlags<IFlags, keyof IFlags>`.
13
- */
14
- function getTableFlags(columns = ['columns', 'sort', 'filter', 'csv', 'no-truncate']) {
15
- const flags = cli_utilities_1.ux.table.flags({
16
- only: columns,
17
- });
18
- // NOTE Assign group and update Descriptions
19
- columns.forEach((element) => {
20
- var _a;
21
- flags[element].helpGroup = 'TABLE';
22
- const descriptionKey = `TABLE_${element.toUpperCase()}`;
23
- flags[element].description = (_a = messages_1.tableColumnDescriptions[descriptionKey]) !== null && _a !== void 0 ? _a : flags[element].description;
24
- });
25
- return flags;
26
- }
27
- exports.getTableFlags = getTableFlags;
28
7
  /**
29
8
  * The function `getJsonInputFlags` returns a flag definition for parsing JSON input.
30
9
  * @param {JSONFlagOptions} options - The `options` parameter is an object that contains the following
@@ -46,4 +25,5 @@ function getJsonInputFlags(options = defaultJSONOptions) {
46
25
  },
47
26
  });
48
27
  }
49
- exports.getJsonInputFlags = getJsonInputFlags;
28
+ const tableFlags = cli_utilities_1.CLITable.getTableFlags(['columns', 'sort', 'filter', 'csv', 'no-truncate', 'no-header', 'output']);
29
+ exports.tableFlags = tableFlags;
package/lib/util/log.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.print = void 0;
3
+ exports.print = print;
4
4
  const tslib_1 = require("tslib");
5
5
  const map_1 = tslib_1.__importDefault(require("lodash/map"));
6
6
  const winston_1 = tslib_1.__importDefault(require("winston"));
@@ -150,4 +150,3 @@ function print(printInput) {
150
150
  }).join(' ');
151
151
  cli_utilities_1.cliux.print(str);
152
152
  }
153
- exports.print = print;
@@ -1,18 +1,12 @@
1
1
  {
2
- "version": "1.9.0",
3
2
  "commands": {
4
3
  "cm:stacks:audit:fix": {
5
- "id": "cm:stacks:audit:fix",
6
- "description": "Perform audits and fix possible errors in the exported Contentstack data.",
7
- "strict": true,
8
- "pluginName": "@contentstack/cli-audit",
9
- "pluginAlias": "@contentstack/cli-audit",
10
- "pluginType": "core",
11
4
  "aliases": [
12
5
  "audit:fix",
13
6
  "cm:stacks:audit:fix"
14
7
  ],
15
- "hiddenAliases": [],
8
+ "args": {},
9
+ "description": "Perform audits and fix possible errors in the exported Contentstack data.",
16
10
  "examples": [
17
11
  "$ <%= config.bin %> <%= command.id %> --copy-dir",
18
12
  "$ <%= config.bin %> <%= command.id %> --report-path=<path> --copy-dir",
@@ -22,23 +16,42 @@
22
16
  "$ <%= config.bin %> <%= command.id %> --report-path=<path> --modules=content-types --filter=\"name=\"<filter-value>\" --copy-dir --copy-path=<path>"
23
17
  ],
24
18
  "flags": {
19
+ "config": {
20
+ "char": "c",
21
+ "description": "Path of the external config",
22
+ "helpGroup": "COMMON",
23
+ "name": "config",
24
+ "hasDynamicHelp": false,
25
+ "multiple": false,
26
+ "type": "option"
27
+ },
28
+ "data-dir": {
29
+ "char": "d",
30
+ "description": "Path where the data is stored",
31
+ "helpGroup": "COMMON",
32
+ "name": "data-dir",
33
+ "hasDynamicHelp": false,
34
+ "multiple": false,
35
+ "type": "option"
36
+ },
25
37
  "report-path": {
26
- "name": "report-path",
27
- "type": "option",
28
38
  "description": "Path to store the audit reports",
29
- "multiple": false
39
+ "name": "report-path",
40
+ "hasDynamicHelp": false,
41
+ "multiple": false,
42
+ "type": "option"
30
43
  },
31
44
  "reference-only": {
32
- "name": "reference-only",
33
- "type": "boolean",
34
45
  "description": "Checks only for missing references.",
35
46
  "hidden": true,
36
- "allowNo": false
47
+ "name": "reference-only",
48
+ "allowNo": false,
49
+ "type": "boolean"
37
50
  },
38
51
  "modules": {
39
- "name": "modules",
40
- "type": "option",
41
52
  "description": "Provide the list of modules to be audited",
53
+ "name": "modules",
54
+ "hasDynamicHelp": false,
42
55
  "multiple": true,
43
56
  "options": [
44
57
  "content-types",
@@ -47,28 +60,31 @@
47
60
  "extensions",
48
61
  "workflows",
49
62
  "custom-roles",
50
- "assets"
51
- ]
63
+ "assets",
64
+ "field-rules"
65
+ ],
66
+ "type": "option"
52
67
  },
53
68
  "copy-dir": {
54
- "name": "copy-dir",
55
- "type": "boolean",
56
69
  "description": "Create backup from the original data.",
57
- "allowNo": false
70
+ "name": "copy-dir",
71
+ "allowNo": false,
72
+ "type": "boolean"
58
73
  },
59
74
  "copy-path": {
60
- "name": "copy-path",
61
- "type": "option",
62
- "description": "Provide the path to backup the copied data",
63
- "multiple": false,
64
75
  "dependsOn": [
65
76
  "copy-dir"
66
- ]
77
+ ],
78
+ "description": "Provide the path to backup the copied data",
79
+ "name": "copy-path",
80
+ "hasDynamicHelp": false,
81
+ "multiple": false,
82
+ "type": "option"
67
83
  },
68
84
  "fix-only": {
69
- "name": "fix-only",
70
- "type": "option",
71
85
  "description": "Provide the list of fix options",
86
+ "name": "fix-only",
87
+ "hasDynamicHelp": false,
72
88
  "multiple": true,
73
89
  "options": [
74
90
  "reference",
@@ -78,82 +94,108 @@
78
94
  "blocks",
79
95
  "group",
80
96
  "content_types"
81
- ]
97
+ ],
98
+ "type": "option"
82
99
  },
83
100
  "yes": {
84
- "name": "yes",
85
- "type": "boolean",
86
101
  "char": "y",
87
102
  "description": "Use this flag to skip confirmation",
88
103
  "hidden": true,
89
- "allowNo": false
104
+ "name": "yes",
105
+ "allowNo": false,
106
+ "type": "boolean"
90
107
  },
91
108
  "external-config": {
92
- "name": "external-config",
93
- "type": "option",
94
109
  "description": "Provide JSON input",
95
110
  "hidden": true,
96
- "multiple": false
111
+ "name": "external-config",
112
+ "hasDynamicHelp": false,
113
+ "multiple": false,
114
+ "type": "option"
97
115
  },
98
116
  "columns": {
99
- "name": "columns",
100
- "type": "option",
101
- "description": "Show only the specified columns (comma-separated)",
117
+ "description": "Specify columns to display, comma-separated.",
102
118
  "helpGroup": "TABLE",
119
+ "name": "columns",
120
+ "hasDynamicHelp": false,
103
121
  "multiple": false,
104
- "exclusive": [
105
- "extended"
106
- ]
122
+ "type": "option"
107
123
  },
108
124
  "sort": {
109
- "name": "sort",
110
- "type": "option",
111
- "description": "Property to sort by (prepend '-' for descending)",
125
+ "description": "Sort the table by a column. Use \"-\" for descending.",
112
126
  "helpGroup": "TABLE",
113
- "multiple": false
127
+ "name": "sort",
128
+ "hasDynamicHelp": false,
129
+ "multiple": false,
130
+ "type": "option"
114
131
  },
115
132
  "filter": {
116
- "name": "filter",
117
- "type": "option",
118
- "description": "Filter property by partial string matching. For example: name=foo",
133
+ "description": "Filter rows by a column value (e.g., name=foo).",
119
134
  "helpGroup": "TABLE",
120
- "multiple": false
135
+ "name": "filter",
136
+ "hasDynamicHelp": false,
137
+ "multiple": false,
138
+ "type": "option"
121
139
  },
122
140
  "csv": {
123
- "name": "csv",
124
- "type": "boolean",
125
- "description": "The output is in the CSV format [alias: --output=csv]",
141
+ "description": "Output results in CSV format.",
126
142
  "helpGroup": "TABLE",
143
+ "name": "csv",
127
144
  "allowNo": false,
128
- "exclusive": [
129
- "no-truncate"
130
- ]
145
+ "type": "boolean"
131
146
  },
132
147
  "no-truncate": {
148
+ "description": "Prevent truncation of long text in columns.",
149
+ "helpGroup": "TABLE",
133
150
  "name": "no-truncate",
134
- "type": "boolean",
135
- "description": "The output is not truncated to fit the screen",
151
+ "allowNo": false,
152
+ "type": "boolean"
153
+ },
154
+ "no-header": {
155
+ "description": "Hide table headers in output.",
136
156
  "helpGroup": "TABLE",
157
+ "name": "no-header",
137
158
  "allowNo": false,
138
- "exclusive": [
139
- "csv"
140
- ]
159
+ "type": "boolean"
160
+ },
161
+ "output": {
162
+ "description": "Specify output format: csv, json, or yaml.",
163
+ "helpGroup": "TABLE",
164
+ "name": "output",
165
+ "hasDynamicHelp": false,
166
+ "multiple": false,
167
+ "options": [
168
+ "csv",
169
+ "json",
170
+ "yaml"
171
+ ],
172
+ "type": "option"
141
173
  }
142
174
  },
143
- "args": {}
144
- },
145
- "cm:stacks:audit": {
146
- "id": "cm:stacks:audit",
147
- "description": "Perform audits and find possible errors in the exported Contentstack data",
148
- "strict": true,
149
- "pluginName": "@contentstack/cli-audit",
175
+ "hasDynamicHelp": false,
176
+ "hiddenAliases": [],
177
+ "id": "cm:stacks:audit:fix",
150
178
  "pluginAlias": "@contentstack/cli-audit",
179
+ "pluginName": "@contentstack/cli-audit",
151
180
  "pluginType": "core",
181
+ "strict": true,
182
+ "isESM": false,
183
+ "relativePath": [
184
+ "lib",
185
+ "commands",
186
+ "cm",
187
+ "stacks",
188
+ "audit",
189
+ "fix.js"
190
+ ]
191
+ },
192
+ "cm:stacks:audit": {
152
193
  "aliases": [
153
194
  "audit",
154
195
  "cm:stacks:audit"
155
196
  ],
156
- "hiddenAliases": [],
197
+ "args": {},
198
+ "description": "Perform audits and find possible errors in the exported Contentstack data",
157
199
  "examples": [
158
200
  "$ <%= config.bin %> <%= command.id %>",
159
201
  "$ <%= config.bin %> <%= command.id %> --report-path=<path>",
@@ -162,23 +204,42 @@
162
204
  "$ <%= config.bin %> <%= command.id %> --report-path=<path> --modules=content-types --filter=\"name=\"<filter-value>\""
163
205
  ],
164
206
  "flags": {
207
+ "config": {
208
+ "char": "c",
209
+ "description": "Path of the external config",
210
+ "helpGroup": "COMMON",
211
+ "name": "config",
212
+ "hasDynamicHelp": false,
213
+ "multiple": false,
214
+ "type": "option"
215
+ },
216
+ "data-dir": {
217
+ "char": "d",
218
+ "description": "Path where the data is stored",
219
+ "helpGroup": "COMMON",
220
+ "name": "data-dir",
221
+ "hasDynamicHelp": false,
222
+ "multiple": false,
223
+ "type": "option"
224
+ },
165
225
  "report-path": {
166
- "name": "report-path",
167
- "type": "option",
168
226
  "description": "Path to store the audit reports",
169
- "multiple": false
227
+ "name": "report-path",
228
+ "hasDynamicHelp": false,
229
+ "multiple": false,
230
+ "type": "option"
170
231
  },
171
232
  "reference-only": {
172
- "name": "reference-only",
173
- "type": "boolean",
174
233
  "description": "Checks only for missing references.",
175
234
  "hidden": true,
176
- "allowNo": false
235
+ "name": "reference-only",
236
+ "allowNo": false,
237
+ "type": "boolean"
177
238
  },
178
239
  "modules": {
179
- "name": "modules",
180
- "type": "option",
181
240
  "description": "Provide the list of modules to be audited",
241
+ "name": "modules",
242
+ "hasDynamicHelp": false,
182
243
  "multiple": true,
183
244
  "options": [
184
245
  "content-types",
@@ -187,55 +248,87 @@
187
248
  "extensions",
188
249
  "workflows",
189
250
  "custom-roles",
190
- "assets"
191
- ]
251
+ "assets",
252
+ "field-rules"
253
+ ],
254
+ "type": "option"
192
255
  },
193
256
  "columns": {
194
- "name": "columns",
195
- "type": "option",
196
- "description": "Show only the specified columns (comma-separated)",
257
+ "description": "Specify columns to display, comma-separated.",
197
258
  "helpGroup": "TABLE",
259
+ "name": "columns",
260
+ "hasDynamicHelp": false,
198
261
  "multiple": false,
199
- "exclusive": [
200
- "extended"
201
- ]
262
+ "type": "option"
202
263
  },
203
264
  "sort": {
204
- "name": "sort",
205
- "type": "option",
206
- "description": "Property to sort by (prepend '-' for descending)",
265
+ "description": "Sort the table by a column. Use \"-\" for descending.",
207
266
  "helpGroup": "TABLE",
208
- "multiple": false
267
+ "name": "sort",
268
+ "hasDynamicHelp": false,
269
+ "multiple": false,
270
+ "type": "option"
209
271
  },
210
272
  "filter": {
211
- "name": "filter",
212
- "type": "option",
213
- "description": "Filter property by partial string matching. For example: name=foo",
273
+ "description": "Filter rows by a column value (e.g., name=foo).",
214
274
  "helpGroup": "TABLE",
215
- "multiple": false
275
+ "name": "filter",
276
+ "hasDynamicHelp": false,
277
+ "multiple": false,
278
+ "type": "option"
216
279
  },
217
280
  "csv": {
218
- "name": "csv",
219
- "type": "boolean",
220
- "description": "The output is in the CSV format [alias: --output=csv]",
281
+ "description": "Output results in CSV format.",
221
282
  "helpGroup": "TABLE",
283
+ "name": "csv",
222
284
  "allowNo": false,
223
- "exclusive": [
224
- "no-truncate"
225
- ]
285
+ "type": "boolean"
226
286
  },
227
287
  "no-truncate": {
288
+ "description": "Prevent truncation of long text in columns.",
289
+ "helpGroup": "TABLE",
228
290
  "name": "no-truncate",
229
- "type": "boolean",
230
- "description": "The output is not truncated to fit the screen",
291
+ "allowNo": false,
292
+ "type": "boolean"
293
+ },
294
+ "no-header": {
295
+ "description": "Hide table headers in output.",
231
296
  "helpGroup": "TABLE",
297
+ "name": "no-header",
232
298
  "allowNo": false,
233
- "exclusive": [
234
- "csv"
235
- ]
299
+ "type": "boolean"
300
+ },
301
+ "output": {
302
+ "description": "Specify output format: csv, json, or yaml.",
303
+ "helpGroup": "TABLE",
304
+ "name": "output",
305
+ "hasDynamicHelp": false,
306
+ "multiple": false,
307
+ "options": [
308
+ "csv",
309
+ "json",
310
+ "yaml"
311
+ ],
312
+ "type": "option"
236
313
  }
237
314
  },
238
- "args": {}
315
+ "hasDynamicHelp": false,
316
+ "hiddenAliases": [],
317
+ "id": "cm:stacks:audit",
318
+ "pluginAlias": "@contentstack/cli-audit",
319
+ "pluginName": "@contentstack/cli-audit",
320
+ "pluginType": "core",
321
+ "strict": true,
322
+ "isESM": false,
323
+ "relativePath": [
324
+ "lib",
325
+ "commands",
326
+ "cm",
327
+ "stacks",
328
+ "audit",
329
+ "index.js"
330
+ ]
239
331
  }
240
- }
332
+ },
333
+ "version": "1.11.0"
241
334
  }