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