MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / resolveValues

Function resolveValues

pkg/cmd/worker/view/view.go:202–212  ·  view source on GitHub ↗
(keys []string, lookup map[string]string)

Source from the content-addressed store, hash-verified

200}
201
202func resolveValues(keys []string, lookup map[string]string) []string {
203 var result []string
204 for _, key := range keys {
205 if value, exists := lookup[key]; exists {
206 result = append(result, value)
207 } else {
208 result = append(result, key)
209 }
210 }
211 return result
212}

Callers 3

getWorkerAsJsonFunction · 0.70
getWorkerAsTableRowFunction · 0.70
getWorkerAsBasicFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected