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

Method getSpaceList

cf/commands/target.go:139–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func (cmd Target) getSpaceList() ([]models.Space, error) {
140 spaceList := []models.Space{}
141 apiErr := cmd.spaceRepo.ListSpaces(
142 func(space models.Space) bool {
143 spaceList = append(spaceList, space)
144 return true
145 })
146 return spaceList, apiErr
147}

Callers 1

ExecuteMethod · 0.95

Calls 1

ListSpacesMethod · 0.65

Tested by

no test coverage detected