mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
CLI: Flatten config options output when using the "--json" flag #5220
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user