ghorg/cmd/version.go
gabrie30 bf87e26c49
Bump version to v1.11.4 and update changelog
Updated the version constant in cmd/version.go to v1.11.4 and added a new unreleased section for 1.11.4 in CHANGELOG.md.
2025-07-04 04:29:22 -07:00

27 lines
416 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
const ghorgVersion = "v1.11.4"
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Ghorg",
Long: `All software has versions. This is Ghorg's`,
Run: func(cmd *cobra.Command, args []string) {
PrintVersion()
},
}
func PrintVersion() {
fmt.Println(ghorgVersion)
}
func GetVersion() string {
return ghorgVersion
}