This repository has been archived on 2023-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
imagini/main.go

28 lines
481 B
Go

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)
}
}