Skip to content

Commit bf2033b

Browse files
author
naman-contentstack
committed
chore: fix summary message
1 parent 2865389 commit bf2033b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/contentstack-utilities/src/progress-summary/cli-progress-manager.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ export default class CLIProgressManager {
103103
return;
104104
}
105105

106-
if (configHandler.get('log')?.showConsoleLogs) {
107-
return;
108-
}
109-
110106
// Apply strategy-based corrections before printing
111107
CLIProgressManager.applyStrategyCorrections();
112108

@@ -541,7 +537,11 @@ export default class CLIProgressManager {
541537
: getChalk().cyan(`${this.successCount}${this.failureCount}✗`);
542538

543539
const labelColor =
544-
totalProcessed >= this.total ? (this.failureCount === 0 ? getChalk().green : getChalk().yellow) : getChalk().cyan;
540+
totalProcessed >= this.total
541+
? this.failureCount === 0
542+
? getChalk().green
543+
: getChalk().yellow
544+
: getChalk().cyan;
545545

546546
const formattedName = this.formatModuleName(this.moduleName);
547547
const displayName = formattedName.length > 20 ? formattedName.substring(0, 17) + '...' : formattedName;
@@ -617,10 +617,10 @@ export default class CLIProgressManager {
617617
process.status === 'completed'
618618
? '✓'
619619
: process.status === 'failed'
620-
? '✗'
621-
: process.status === 'active'
622-
? '●'
623-
: '○';
620+
? '✗'
621+
: process.status === 'active'
622+
? '●'
623+
: '○';
624624

625625
this.log(
626626
` ${status} ${processName}: ${process.successCount}${process.failureCount}✗ (${process.current}/${process.total})`,

0 commit comments

Comments
 (0)