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

Function GetSelectOptions

pkg/question/shared/variables/variables.go:262–271  ·  view source on GitHub ↗
(t *actiontemplates.ActionTemplateParameter)

Source from the content-addressed store, hash-verified

260}
261
262func GetSelectOptions(t *actiontemplates.ActionTemplateParameter) []*selectors.SelectOption[string] {
263 var selectionOptions []*selectors.SelectOption[string]
264 options := t.DisplaySettings["Octopus.SelectOptions"]
265 for _, l := range strings.Split(options, "\n") {
266 o := strings.Split(l, "|")
267 selectionOptions = append(selectionOptions, selectors.NewSelectOption[string](o[0], o[1]))
268 }
269
270 return selectionOptions
271}

Callers 1

PromptValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected