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

Function formatScopeList

pkg/cmd/project/variables/view/view.go:305–310  ·  view source on GitHub ↗
(values []*resources.ReferenceDataItem, displaySelector func(item *resources.ReferenceDataItem) string)

Source from the content-addressed store, hash-verified

303}
304
305func formatScopeList(values []*resources.ReferenceDataItem, displaySelector func(item *resources.ReferenceDataItem) string) string {
306 if displaySelector == nil {
307 displaySelector = func(item *resources.ReferenceDataItem) string { return item.Name }
308 }
309 return strings.Join(util.SliceTransform(values, displaySelector), ", ")
310}
311
312func formatProcessList(processes []*resources.ProcessReferenceDataItem) string {
313 return strings.Join(util.SliceTransform(processes, func(item *resources.ProcessReferenceDataItem) string {

Callers 1

Calls 1

SliceTransformFunction · 0.92

Tested by

no test coverage detected