28 lines
481 B
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)
|
|
}
|
|
}
|