Files
photoprism/internal/commands/edition.go
2024-12-06 09:08:38 +01:00

27 lines
503 B
Go

package commands
import (
"fmt"
"github.com/urfave/cli/v2"
"github.com/photoprism/photoprism/internal/config"
)
// EditionCommand configures the "photoprism edition" command.
var EditionCommand = &cli.Command{
Name: "edition",
Usage: "Shows edition information",
Hidden: true,
Action: editionAction,
}
// editionAction displays information about the current edition.
func editionAction(ctx *cli.Context) error {
conf := config.NewConfig(ctx)
fmt.Println(conf.Edition())
return nil
}