PKGBUILD/main.go

27 lines
357 B
Go
Raw Normal View History

2018-11-07 19:07:15 +00:00
package main
import (
"log"
"os"
"github.com/Masterminds/semver"
2019-06-15 13:58:41 +00:00
"github.com/go-flucky/flucky/cmd"
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)
}
err = cmd.Execute(sversion)
if err != nil {
log.Fatal(err)
}
2018-11-07 19:07:15 +00:00
}