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:
Michael Eischer committed 2025-09-21 15:38:29 +02:00
1 parent f71278138f
commit 2d7611373e
15 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -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 {