mirror of
https://github.com/restic/restic.git
synced 2026-11-06 07:19:21 +00:00
ignore JSON flag for fully unsupported commands
Considering the flag would result in a mostly empty terminal output, which is probably worse than text output instead of JSON.
This commit is contained in:
1 parent
f71278138f
commit
2d7611373e
15 files changed
+16
-16
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 ui.Terminal) error {
|
||||
printer := newTerminalProgressPrinter(gopts.JSON, gopts.verbosity, term)
|
||||
printer := newTerminalProgressPrinter(false, gopts.verbosity, term)
|
||||
|
||||
ctx, repo, unlock, err := openWithExclusiveLock(ctx, gopts, false, printer)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user