package main
import (
"os"
"log"
"reichard.io/imagini/cmd"
"reichard.io/imagini/internal/sessions"
"github.com/urfave/cli/v2"
)
var globalSessions *sessions.Manager
func main() {
app := &cli.App{
Name: "Imagini",
Usage: "A self hosted photo library.",
Commands: []*cli.Command{
&cmd.CmdServe,
&cmd.CmdDBTest,
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)