Skip to content

Commit b4e176c

Browse files
committed
feat: Improved log output (add strip ansi)
1 parent 4d4e8d5 commit b4e176c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ui/reporters/default-reporter.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { CommandRequestData } from '@codifycli/schemas';
33
import { render } from 'ink';
44
import { EventEmitter } from 'node:events';
55
import React from 'react';
6+
import stripAnsi from 'strip-ansi'
67

78
import { Plan } from '../../entities/plan.js';
89
import { ResourceConfig } from '../../entities/resource-config.js';
@@ -269,7 +270,7 @@ export class DefaultReporter implements Reporter {
269270
private log(log: string): void {
270271
if (this.silent) return;
271272

272-
this.inkWrite?.(this.rawOutput ? log : chalk.cyan(log));
273+
this.inkWrite?.(this.rawOutput ? log : chalk.cyan(stripAnsi(log)));
273274
}
274275

275276
private onProcessStartEvent(name: ProcessName): void {

0 commit comments

Comments
 (0)