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-05-17 11:00:51 +00:00
|
|
|
"github.com/Masterminds/semver"
|
|
|
|
"github.com/volker-raschek/flucky/cli"
|
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
|
|
|
}
|