()
| 216 | } |
| 217 | |
| 218 | func (m multiSelectModel) selectedLabels() []string { |
| 219 | var out []string |
| 220 | for _, item := range m.items { |
| 221 | if item.selected { |
| 222 | out = append(out, item.label) |
| 223 | } |
| 224 | } |
| 225 | return out |
| 226 | } |
| 227 | |
| 228 | // runMultiSelect runs a bubbletea multi-select picker and returns the |
| 229 | // selected labels. Returns nil if the user aborted. |