shiori/main.go
chain710 888e59dabf
Add log args for root command (#565)
- log-level: specify log level, default info
- log-caller: whether log `file:lineno` or not, default false
- log FullTimestamp
2023-03-17 13:37:23 +01:00

22 lines
420 B
Go

//go:generate go run assets-generator.go
package main
import (
"github.com/go-shiori/shiori/internal/cmd"
"github.com/sirupsen/logrus"
// Database driver
_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
_ "modernc.org/sqlite"
// Add this to prevent it removed by go mod tidy
_ "github.com/shurcooL/vfsgen"
)
func main() {
err := cmd.ShioriCmd().Execute()
if err != nil {
logrus.Fatalln(err)
}
}