Files
git-automation-cli/internal/version/version.go
Dev 15bbfdcda2 feat: initial commit of Git Automation CLI
- Add comprehensive Git workflow automation tools
- Include branch management utilities
- Add commit helpers with conventional commit support
- Implement GitHub integration for PR management
- Add configuration management system
- Include comprehensive test coverage
- Add professional documentation and examples
2025-09-11 17:02:12 +03:00

22 lines
463 B
Go

package version
var (
// Version is the current version of the application
Version = "0.1.0"
// GitCommit is the git commit hash
GitCommit = ""
// BuildDate is the date when the binary was built
BuildDate = ""
)
// GetVersion returns the complete version information
func GetVersion() string {
version := Version
if GitCommit != "" {
version += " (" + GitCommit + ")"
}
if BuildDate != "" {
version += " built on " + BuildDate
}
return version
}