MCPcopy Index your code
hub / github.com/cloudfoundry/cli / decorateVersionWithDeployed

Function decorateVersionWithDeployed

command/v7/revisions_command.go:126–133  ·  view source on GitHub ↗
(revision resources.Revision, deployedRevisions []resources.Revision)

Source from the content-addressed store, hash-verified

124}
125
126func decorateVersionWithDeployed(revision resources.Revision, deployedRevisions []resources.Revision) string {
127 for _, revDeployed := range deployedRevisions {
128 if revDeployed.GUID == revision.GUID {
129 return strconv.Itoa(revision.Version) + "(deployed)"
130 }
131 }
132 return strconv.Itoa(revision.Version)
133}

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected