Add -v / --version command and appropriate build flags.

This commit is contained in:
2021-05-09 11:40:36 +01:00
parent 8bbde1f600
commit cbe73e16db
5 changed files with 22 additions and 4 deletions
+5
View File
@@ -17,6 +17,11 @@ package main
import "github.com/lukaszraczylo/semver-generator/cmd"
var (
PKG_VERSION string
)
func main() {
cmd.PKG_VERSION = PKG_VERSION
cmd.Execute()
}