2018-02-23 17:51:06 +08:00
|
|
|
//go:generate fileb0x filebox.json
|
2018-01-26 18:40:01 +08:00
|
|
|
package main
|
|
|
|
|
2018-01-28 14:55:43 +08:00
|
|
|
import (
|
|
|
|
"github.com/RadhiFadlillah/shiori/cmd"
|
|
|
|
db "github.com/RadhiFadlillah/shiori/database"
|
|
|
|
_ "github.com/mattn/go-sqlite3"
|
|
|
|
)
|
2018-01-26 18:40:01 +08:00
|
|
|
|
|
|
|
func main() {
|
2018-01-28 14:55:43 +08:00
|
|
|
sqliteDB, err := db.OpenSQLiteDatabase()
|
2018-01-26 21:33:26 +08:00
|
|
|
checkError(err)
|
2018-01-28 14:55:43 +08:00
|
|
|
|
|
|
|
cmd.DB = sqliteDB
|
|
|
|
cmd.Execute()
|
2018-01-26 21:33:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func checkError(err error) {
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2018-01-26 18:40:01 +08:00
|
|
|
}
|