Simple photo gallery
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
563 B

package main
import (
"git.artemix.space/go/gallery/internal/db/migrations"
"git.artemix.space/go/gallery/internal/log"
"git.artemix.space/go/gallery/web"
"github.com/urfave/cli/v2"
stdLog "log"
"os"
)
func main() {
log.Init()
gallery := cli.App{
Name: "gallery",
Flags: []cli.Flag{
&cli.StringFlag{
Name: "config",
Usage: "Path to the configuration file",
},
},
Commands: []*cli.Command{
web.ServerCommand(),
migrations.DbManagementCommand(),
},
}
if err := gallery.Run(os.Args); err != nil {
stdLog.Fatal(err)
}
}