MCPcopy Create free account
hub / github.com/alibaba/open-code-review / versionString

Function versionString

cmd/opencodereview/root.go:48–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func versionString() string {
49 s := fmt.Sprintf("open-code-review %s", Version)
50 if GitCommit != "" {
51 s += fmt.Sprintf(" (%s)", GitCommit)
52 }
53 s += fmt.Sprintf(" %s/%s\n", runtime.GOOS, runtime.GOARCH)
54 if BuildDate != "" {
55 s += fmt.Sprintf("built at: %s\n", BuildDate)
56 }
57 s += "https://github.com/alibaba/open-code-review\n"
58 return s
59}

Callers 1

printVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected