MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / versionStringAttFinal

Function versionStringAttFinal

app/cli/cmd/attestation_status.go:352–362  ·  view source on GitHub ↗

Final state The pre-release is still a pre-release The pre-release is released

(p *action.ProjectVersion)

Source from the content-addressed store, hash-verified

350// The pre-release is still a pre-release
351// The pre-release is released
352func versionStringAttFinal(p *action.ProjectVersion) string {
353 if p == nil {
354 return ""
355 }
356
357 if p.Prerelease && !p.MarkAsReleased {
358 return fmt.Sprintf("%s (prerelease)", p.Version)
359 }
360
361 return p.Version
362}
363
364// ansiPattern matches ANSI escape codes.
365// Credits to: https://github.com/acarl005/stripansi

Callers 1

versionStringAttestationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected