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

29 lines
455 B
Go
Raw Normal View History

2021-01-03 03:21:11 +00:00
package main
import (
2021-01-04 06:55:41 +00:00
"os"
"log"
2021-01-08 02:45:59 +00:00
"github.com/urfave/cli/v2"
2021-01-03 03:21:11 +00:00
"reichard.io/imagini/cmd"
2021-01-06 19:36:09 +00:00
"reichard.io/imagini/internal/sessions"
2021-01-03 03:21:11 +00:00
)
2021-01-06 19:36:09 +00:00
var globalSessions *sessions.Manager
2021-01-03 03:21:11 +00:00
func main() {
2021-01-03 22:31:16 +00:00
app := &cli.App{
Name: "Imagini",
Usage: "A self hosted photo library.",
Commands: []*cli.Command{
&cmd.CmdServe,
},
2021-01-03 03:21:11 +00:00
}
2021-01-03 15:27:22 +00:00
2021-01-03 22:31:16 +00:00
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
2021-01-03 03:21:11 +00:00
}