CLI: Flatten config options output when using the "--json" flag #5220

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-09-21 16:52:56 +02:00
parent 25253afcf2
commit f1c57c72d8
14 changed files with 106 additions and 84 deletions

View File

@@ -20,9 +20,9 @@ var ShowVideoSizesCommand = &cli.Command{
// showVideoSizesAction displays supported standard video sizes.
func showVideoSizesAction(ctx *cli.Context) error {
rows, cols := thumb.Report(thumb.VideoSizes, true)
format, ferr := report.CliFormatStrict(ctx)
if ferr != nil {
return ferr
format, formatErr := report.CliFormatStrict(ctx)
if formatErr != nil {
return formatErr
}
result, err := report.RenderFormat(rows, cols, format)
fmt.Println(result)