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

Function getEnvironmentMap

pkg/cmd/tenant/variables/list/list.go:429–439  ·  view source on GitHub ↗
(client *client.Client)

Source from the content-addressed store, hash-verified

427}
428
429func getEnvironmentMap(client *client.Client) (map[string]string, error) {
430 environmentMap := make(map[string]string)
431 allEnvs, err := selectors.GetAllEnvironments(client)
432 if err != nil {
433 return nil, err
434 }
435 for _, e := range allEnvs {
436 environmentMap[e.GetID()] = e.GetName()
437 }
438 return environmentMap, nil
439}
440
441func getDisplayValue(value *core.PropertyValue) string {
442 var actualValue string

Callers 1

listRunFunction · 0.70

Calls 2

GetAllEnvironmentsFunction · 0.92
GetNameMethod · 0.65

Tested by

no test coverage detected