mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-06 01:07:16 +08:00

Also improves migrations and updates the db schema docs. Signed-off-by: Michael Mayer <michael@photoprism.app>
16 lines
337 B
Go
16 lines
337 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
|
|
"github.com/photoprism/photoprism/internal/config"
|
|
"github.com/photoprism/photoprism/internal/get"
|
|
)
|
|
|
|
// InitConfig initializes the command config.
|
|
var InitConfig = func(ctx *cli.Context) (*config.Config, error) {
|
|
c := config.NewConfig(ctx)
|
|
get.SetConfig(c)
|
|
return c, c.Init()
|
|
}
|