PKGBUILD/main.go

27 lines
362 B
Go

package main
import (
"log"
"os"
"github.com/Masterminds/semver"
"github.com/volker-raschek/flucky/cmd"
)
var (
version string
)
func main() {
sversion, err := semver.NewVersion(version)
if err != nil {
log.Printf("The sematic versioning is invalid: %v", version)
os.Exit(1)
}
err = cmd.Execute(sversion)
if err != nil {
log.Fatal(err)
}
}