(t *actiontemplates.ActionTemplateParameter)
| 260 | } |
| 261 | |
| 262 | func 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 | } |