move NewProgressPrinter to ui package

This commit is contained in:
Michael Eischer committed 2025-10-03 18:55:46 +02:00
1 parent ff5a0cc851
commit e753941ad3
39 files changed
+151 -148

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@ import (
"encoding/json"
"runtime"
"github.com/restic/restic/internal/ui"
"github.com/spf13/cobra"
)
@@ -23,7 +24,7 @@ Exit status is 1 if there was any error.
`,
DisableAutoGenTag: true,
Run: func(_ *cobra.Command, _ []string) {
printer := newTerminalProgressPrinter(globalOptions.JSON, globalOptions.verbosity, globalOptions.term)
printer := ui.NewProgressPrinter(globalOptions.JSON, globalOptions.verbosity, globalOptions.term)
if globalOptions.JSON {
type jsonVersion struct {