dtolnay / dtolnay/oqueue

How to make a sequencer that covers both stderr and stdout?

Offen
#2 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
79
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I have a program that:

* Loops over a set of files doing some operation
* Writes results as CSV rows to stdout
* Writes progress and error information to stderr

Example usage of the program would be: `my-tool --some-flags -- /path/to/files/* > output/findings.csv`

To keep findings comparable, I'd like to avoid interleaving CSV rows from different files, and I'd like the stderr output to avoid being interleaved to make troubleshooting straightforward. Is there a way to create a `Sequencer` that handles both?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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