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

Function versionString

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

Source from the content-addressed store, hash-verified

80}
81
82func versionString() string {
83 s := fmt.Sprintf("open-code-review %s", Version)
84 if GitCommit != "" {
85 s += fmt.Sprintf(" (%s)", GitCommit)
86 }
87 s += fmt.Sprintf(" %s/%s\n", runtime.GOOS, runtime.GOARCH)
88 if BuildDate != "" {
89 s += fmt.Sprintf("built at: %s\n", BuildDate)
90 }
91 s += "https://github.com/alibaba/open-code-review\n"
92 return s
93}

Callers 1

printVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected