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