2019-05-27 18:01:53 +08:00
|
|
|
//go:generate go run assets-generator.go
|
|
|
|
|
2018-01-26 18:40:01 +08:00
|
|
|
package main
|
|
|
|
|
2019-05-21 11:31:40 +08:00
|
|
|
import (
|
|
|
|
"github.com/go-shiori/shiori/internal/cmd"
|
|
|
|
"github.com/sirupsen/logrus"
|
2019-05-27 18:01:53 +08:00
|
|
|
|
2019-08-09 11:19:43 +08:00
|
|
|
// Database driver
|
|
|
|
_ "github.com/mattn/go-sqlite3"
|
|
|
|
|
2019-05-27 18:01:53 +08:00
|
|
|
// Add this to prevent it removed by go mod tidy
|
|
|
|
_ "github.com/shurcooL/vfsgen"
|
2019-05-21 11:31:40 +08:00
|
|
|
)
|
|
|
|
|
2019-05-22 00:24:11 +08:00
|
|
|
var dataDir = "dev-data"
|
|
|
|
|
2018-05-01 11:23:38 +08:00
|
|
|
func main() {
|
2019-08-09 11:19:43 +08:00
|
|
|
err := cmd.ShioriCmd().Execute()
|
2019-05-22 00:24:11 +08:00
|
|
|
if err != nil {
|
|
|
|
logrus.Fatalln(err)
|
|
|
|
}
|
2018-03-05 08:14:58 +08:00
|
|
|
}
|