mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-15 12:27:43 +08:00
31767f75e6
* feat: new migration system * use newFuncMigration * database version -> database schema version * column name * use path instead of filepath for goembed * simplified migrations, added backwards compatible migrations
30 lines
502 B
Go
30 lines
502 B
Go
package main
|
|
|
|
import (
|
|
"github.com/go-shiori/shiori/internal/cmd"
|
|
"github.com/go-shiori/shiori/internal/model"
|
|
"github.com/sirupsen/logrus"
|
|
|
|
// Add this to prevent it removed by go mod tidy
|
|
_ "github.com/shurcooL/vfsgen"
|
|
)
|
|
|
|
var (
|
|
version = "dev"
|
|
commit = "none"
|
|
date = "unknown"
|
|
)
|
|
|
|
func init() {
|
|
// Set globally
|
|
model.BuildVersion = version
|
|
model.BuildCommit = commit
|
|
model.BuildDate = date
|
|
}
|
|
|
|
func main() {
|
|
err := cmd.ShioriCmd().Execute()
|
|
if err != nil {
|
|
logrus.Fatalln(err)
|
|
}
|
|
}
|