replace globalOptions.stdout with termstatus.OutputWriter

This commit is contained in:
Michael Eischer committed 2025-10-03 18:55:46 +02:00
1 parent c293736841
commit 76b2cdd4fb
29 files changed
+79 -85

No files matched your search

-6
View File
@@ -6,12 +6,6 @@ import (
"sync"
)
// WrapStdout returns line-buffering replacements for os.Stdout.
// On Close, the remaining bytes are written, followed by a line break.
func WrapStdout(term *Terminal) (stdout io.WriteCloser) {
return newLineWriter(term.Print)
}
type lineWriter struct {
m sync.Mutex
buf bytes.Buffer