Updated version command and main to handle building with version info

This commit is contained in:
David Allen 2024-08-28 13:19:21 -06:00
parent 1e1498206e
commit b4efe756b0
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC
2 changed files with 28 additions and 5 deletions

View file

@ -4,6 +4,13 @@ import (
"github.com/OpenCHAMI/magellan/cmd"
)
var (
version string
commit string
date string
)
func main() {
cmd.SetVersionInfo(version, commit, date)
cmd.Execute()
}