mirror of
https://github.com/restic/restic.git
synced 2026-10-11 20:47:12 +00:00
ui, termstatus: Move WrapStdio
Saves some imports. ui still needs to import ui/termstatus from message.go.
This commit is contained in:
1 parent
0b56214473
commit
66d03c797e
3 files changed
+4
-7
No files matched your search
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"sync"
|
||||
|
||||
"github.com/restic/restic/internal/ui"
|
||||
"github.com/restic/restic/internal/ui/termstatus"
|
||||
)
|
||||
|
||||
@@ -31,7 +30,7 @@ func setupTermstatus() (*termstatus.Terminal, func()) {
|
||||
|
||||
// use the termstatus for stdout/stderr
|
||||
prevStdout, prevStderr := globalOptions.stdout, globalOptions.stderr
|
||||
globalOptions.stdout, globalOptions.stderr = ui.WrapStdio(term)
|
||||
globalOptions.stdout, globalOptions.stderr = termstatus.WrapStdio(term)
|
||||
|
||||
return term, func() {
|
||||
// shutdown termstatus
|
||||
|
||||
Reference in new issue
Block a user