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

+1 -1
View File
@@ -169,7 +169,7 @@ func runStats(ctx context.Context, opts StatsOptions, gopts GlobalOptions, args
}
if gopts.JSON {
err = json.NewEncoder(gopts.stdout).Encode(stats)
err = json.NewEncoder(gopts.term.OutputWriter()).Encode(stats)
if err != nil {
return fmt.Errorf("encoding output: %v", err)
}