PKGBUILD/main.go

29 lines
504 B
Go
Raw Normal View History

2018-11-07 19:07:15 +00:00
package main
import (
"log"
"os"
2018-11-07 19:07:15 +00:00
2020-06-10 19:13:05 +00:00
"git.cryptic.systems/volker.raschek/flucky/cli"
"github.com/Masterminds/semver"
_ "github.com/golang-migrate/migrate/v4/database/postgres"
_ "github.com/golang-migrate/migrate/v4/database/sqlite3"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"
2018-11-07 19:07:15 +00:00
)
var (
version string
)
2018-11-07 19:07:15 +00:00
func main() {
sversion, err := semver.NewVersion(version)
if err != nil {
log.Printf("The sematic versioning is invalid: %v", version)
os.Exit(1)
}
cli.Execute(sversion)
2018-11-07 19:07:15 +00:00
}