2018-11-07 19:07:15 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
|
2019-09-01 10:27:06 +00:00
|
|
|
"github.com/Masterminds/semver"
|
2020-01-19 12:30:47 +00:00
|
|
|
"github.com/volker-raschek/flucky/cmd"
|
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() {
|
2019-09-01 10:27:06 +00:00
|
|
|
sversion, err := semver.NewVersion(version)
|
|
|
|
if err != nil {
|
2019-09-04 11:37:50 +00:00
|
|
|
log.Printf("The sematic versioning is invalid: %v", version)
|
2019-09-01 10:27:06 +00:00
|
|
|
os.Exit(1)
|
|
|
|
}
|
|
|
|
|
2020-01-13 21:26:41 +00:00
|
|
|
err = cmd.Execute(sversion)
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal(err)
|
|
|
|
}
|
2018-11-07 19:07:15 +00:00
|
|
|
}
|