Set BPM version using git

This commit is contained in:
2025-12-08 17:04:15 +02:00
parent 2c91a9332b
commit 879c832f60
3 changed files with 7 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
package config
var BpmVersion = "dev"
+2 -3
View File
@@ -14,6 +14,7 @@ import (
"sort"
"strings"
"git.enumerated.dev/bubble-package-manager/bpm/src/bpm/config"
"git.enumerated.dev/bubble-package-manager/bpm/src/bpmlib"
"github.com/lithammer/fuzzysearch/fuzzy"
@@ -25,8 +26,6 @@ import (
/* A simple-to-use package manager */
/* ------------------------------------------------------- */
var bpmVer = "0.6.1"
var currentFlagSet *flag.FlagSet
var exitCode = 0
@@ -46,7 +45,7 @@ func main() {
switch subcommand {
case "v", "version":
fmt.Println("Bubble Package Manager (BPM)")
fmt.Println("Version: " + bpmVer)
fmt.Println("Version: " + config.BpmVersion)
case "q", "query":
// Setup flags and help
currentFlagSet = flag.NewFlagSet("query", flag.ExitOnError)