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

Function getEnvironmentMap

pkg/cmd/tenant/variables/update/update.go:1128–1138  ·  view source on GitHub ↗
(getAllEnvironments selectors.GetAllEnvironmentsCallback)

Source from the content-addressed store, hash-verified

1126}
1127
1128func getEnvironmentMap(getAllEnvironments selectors.GetAllEnvironmentsCallback) (map[string]string, error) {
1129 environmentMap := make(map[string]string)
1130 allEnvs, err := getAllEnvironments()
1131 if err != nil {
1132 return nil, err
1133 }
1134 for _, e := range allEnvs {
1135 environmentMap[e.GetID()] = e.GetName()
1136 }
1137 return environmentMap, nil
1138}
1139
1140func getVariableTypeOptions() []*selectors.SelectOption[string] {
1141 return []*selectors.SelectOption[string]{

Callers 3

updateRunV1Function · 0.70
updateRunFunction · 0.70
PromptForEnvironmentV1Function · 0.70

Calls 1

GetNameMethod · 0.65

Tested by

no test coverage detected