mirror of
https://github.com/restic/restic.git
synced 2026-11-02 13:35:33 +00:00
consider JSON flag in newTerminalProgressPrinter
This commit is contained in:
1 parent
81fe559222
commit
6cdb9a75e6
8 files changed
+11
-12
No files matched your search
@@ -136,7 +136,7 @@ func applyMigrations(ctx context.Context, opts MigrateOptions, gopts GlobalOptio
|
||||
}
|
||||
|
||||
func runMigrate(ctx context.Context, opts MigrateOptions, gopts GlobalOptions, args []string, term *termstatus.Terminal) error {
|
||||
printer := newTerminalProgressPrinter(gopts.verbosity, term)
|
||||
printer := newTerminalProgressPrinter(gopts.JSON, gopts.verbosity, term)
|
||||
|
||||
ctx, repo, unlock, err := openWithExclusiveLock(ctx, gopts, false)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user