Skip to content

Commit

Permalink
removed the filter option from tables of workflow and extension and r…
Browse files Browse the repository at this point in the history
…esolved content not overwritten in import backup folder
  • Loading branch information
cs-raj committed Mar 27, 2024
1 parent 96f1242 commit d3eb378
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/contentstack-audit/src/audit-base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export abstract class AuditBaseCommand extends BaseCommand<typeof AuditBaseComma
});
const mergedObject = Object.assign({}, ...arrayOfObjects);

ux.table(tableValues, mergedObject, { ...this.flags });
ux.table(tableValues, mergedObject);
this.log(''); // Adding a new line
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/contentstack-audit/src/modules/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default class Extensions {
this.fix &&
(this.config.flags['copy-dir'] ||
this.config.flags['external-config']?.skipConfirm ||
this.config.flags.yes ||
(await ux.confirm(commonMsg.FIX_CONFIRMATION)))
) {
writeFileSync(
Expand Down
7 changes: 4 additions & 3 deletions packages/contentstack-audit/src/modules/workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default class Workflows {
return {};
}


this.workflowPath = join(this.folderPath, this.fileName);
this.workflowSchema = existsSync(this.workflowPath)
? values(JSON.parse(readFileSync(this.workflowPath, 'utf8')) as Workflow[])
Expand Down Expand Up @@ -146,8 +145,10 @@ export default class Workflows {
async writeFixContent(newWorkflowSchema: Record<string, Workflow>) {
if (
this.fix &&
!(this.config.flags['copy-dir'] || this.config.flags['external-config']?.skipConfirm) &&
(this.config.flags.yes || (await ux.confirm(commonMsg.FIX_CONFIRMATION)))
(this.config.flags['copy-dir'] ||
this.config.flags['external-config']?.skipConfirm ||
this.config.flags.yes ||
(await ux.confirm(commonMsg.FIX_CONFIRMATION)))
) {
writeFileSync(
join(this.folderPath, this.config.moduleConfig[this.moduleName].fileName),
Expand Down

0 comments on commit d3eb378

Please sign in to comment.