a8m / a8m/pb

progress bars are always displayed, also on TERM=dumb

Offen Anfängerfreundlich
#82 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
600
Forks
59
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

This leads to lots of noise in logs files in my tools, since I am running some progress bars on kubernetes clusters.

It would be great if ProgressBar would output either nothing or a line-by-line progress report (without using `\r`) when it cannot detect a terminal.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Look for terminal detection logic in the library, likely in a module handling TTY checks or environment variables like TERM. The issue is about suppressing or changing progress bar output when TERM=dumb. Find where the progress bar decides to use carriage returns (\r) for updates. Test by running a simple example with TERM=dumb set and see the current noisy output. The fix involves checking the TERM environment variable and either outputting line-by-line progress or nothing.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
65/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.