mirror of
https://github.com/restic/restic.git
synced 2026-11-21 04:52:42 +00:00
drop unused stderr from GlobalOptions
This commit is contained in:
1 parent
1939cff334
commit
c293736841
26 files changed
+109
-117
No files matched your search
@@ -6,10 +6,10 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
// WrapStdio returns line-buffering replacements for os.Stdout and os.Stderr.
|
||||
// WrapStdout returns line-buffering replacements for os.Stdout.
|
||||
// On Close, the remaining bytes are written, followed by a line break.
|
||||
func WrapStdio(term *Terminal) (stdout, stderr io.WriteCloser) {
|
||||
return newLineWriter(term.Print), newLineWriter(term.Error)
|
||||
func WrapStdout(term *Terminal) (stdout io.WriteCloser) {
|
||||
return newLineWriter(term.Print)
|
||||
}
|
||||
|
||||
type lineWriter struct {
|
||||
|
||||
Reference in new issue
Block a user