mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
15 lines
351 B
Go
15 lines
351 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
|
|
"github.com/photoprism/photoprism/internal/config"
|
|
"github.com/photoprism/photoprism/internal/photoprism/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()
|
|
}
|