mirror of
https://github.com/restic/restic.git
synced 2026-11-23 13:52:39 +00:00
replace globalOptions.stdout with termstatus.OutputWriter
This commit is contained in:
1 parent
c293736841
commit
76b2cdd4fb
29 files changed
+79
-85
No files matched your search
@@ -43,7 +43,7 @@ Exit status is 1 if there was any error.
|
||||
GoArch: runtime.GOARCH,
|
||||
}
|
||||
|
||||
err := json.NewEncoder(globalOptions.stdout).Encode(jsonS)
|
||||
err := json.NewEncoder(globalOptions.term.OutputWriter()).Encode(jsonS)
|
||||
if err != nil {
|
||||
printer.E("JSON encode failed: %v\n", err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user