MCPcopy Create free account
hub / github.com/context-space/context-space / printVersionInfo

Function printVersionInfo

backend/cmd/server/main.go:76–83  ·  view source on GitHub ↗

printVersionInfo prints version information to stdout

()

Source from the content-addressed store, hash-verified

74
75// printVersionInfo prints version information to stdout
76func 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
86func checkVersionFlag() bool {

Callers 1

mainFunction · 0.85

Calls 1

getVersionInfoFunction · 0.85

Tested by

no test coverage detected