printVersionInfo prints version information to stdout
()
| 74 | |
| 75 | // printVersionInfo prints version information to stdout |
| 76 | func printVersionInfo() { |
| 77 | info := getVersionInfo() |
| 78 | fmt.Printf("Context-Space-Backend\n") |
| 79 | fmt.Printf("Version: %s\n", info.Version) |
| 80 | fmt.Printf("Git Commit: %s\n", info.GitCommit) |
| 81 | fmt.Printf("Build Time: %s\n", info.BuildTime) |
| 82 | fmt.Printf("Go Version: %s\n", info.GoVersion) |
| 83 | } |
| 84 | |
| 85 | // checkVersionFlag checks if version flag is provided |
| 86 | func checkVersionFlag() bool { |
no test coverage detected