(p EditPrompter, title string, opts []string)
| 644 | } |
| 645 | |
| 646 | func milestoneSurvey(p EditPrompter, title string, opts []string) (result string, err error) { |
| 647 | if len(opts) == 0 { |
| 648 | return "", nil |
| 649 | } |
| 650 | var selected int |
| 651 | selected, err = p.Select("Milestone", title, opts) |
| 652 | if err != nil { |
| 653 | return |
| 654 | } |
| 655 | |
| 656 | result = opts[selected] |
| 657 | return |
| 658 | } |
| 659 | |
| 660 | // AssigneeSearchFunc returns a search function for MultiSelectWithSearch that |
| 661 | // dynamically fetches assignable actors for the given assignable (Issue/PR) node ID. |
no test coverage detected