make fancy logger dumb in ci

This commit is contained in:
Jacky Zhao
2025-03-16 14:12:43 -07:00
parent 40a72eba44
commit 1bb6f09db1
4 changed files with 20 additions and 2 deletions

View File

@@ -10,7 +10,9 @@ export class QuartzLogger {
private readonly spinnerChars = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]
constructor(verbose: boolean) {
this.verbose = verbose
const isInteractiveTerminal =
process.stdout.isTTY && process.env.TERM !== "dumb" && !process.env.CI
this.verbose = verbose || !isInteractiveTerminal
}
start(text: string) {