package commands import ( "fmt" "github.com/urfave/cli/v2" "github.com/photoprism/photoprism/internal/entity" "github.com/photoprism/photoprism/pkg/txt/report" ) // ShowSourcesCommand configures the command name, flags, and action. var ShowSourcesCommand = &cli.Command{ Name: "sources", Usage: "Displays supported metadata sources and their priorities", Flags: append(report.CliFlags), Action: showSourcesAction, } // showSourcesAction displays supported metadata sources. func showSourcesAction(ctx *cli.Context) error { rows, cols := entity.SrcPriority.Report() result, err := report.RenderFormat(rows, cols, report.CliFormat(ctx)) fmt.Println(result) return err }