ghorg/cmd/version.go
gabrie30 2830b89c8f
Bump version to v1.11.10
Update the ghorgVersion constant to v1.11.10 and add an unreleased [1.11.10] section to CHANGELOG.md with placeholder subsections. Prepares repository for the upcoming release.
2026-02-07 12:56:06 -08:00

27 lines
417 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
const ghorgVersion = "v1.11.10"
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
}