MCPcopy Index your code
hub / github.com/helm/helm / formatVersion

Function formatVersion

pkg/cmd/version.go:92–101  ·  view source on GitHub ↗
(short bool)

Source from the content-addressed store, hash-verified

90}
91
92func formatVersion(short bool) string {
93 v := version.Get()
94 if short {
95 if len(v.GitCommit) >= 7 {
96 return fmt.Sprintf("%s+g%s", v.Version, v.GitCommit[:7])
97 }
98 return version.GetVersion()
99 }
100 return fmt.Sprintf("%#v", v)
101}

Callers 1

runMethod · 0.85

Calls 2

GetFunction · 0.92
GetVersionFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…