(questionText string, projectId string, opts *CreateOptions)
| 162 | } |
| 163 | |
| 164 | func branchSelector(questionText string, projectId string, opts *CreateOptions) (*projects.GitReference, error) { |
| 165 | branches, err := opts.GetAllBranchesCallback(projectId) |
| 166 | if err != nil { |
| 167 | return nil, err |
| 168 | } |
| 169 | |
| 170 | return question.SelectMap(opts.Ask, questionText, branches, func(b *projects.GitReference) string { return b.CanonicalName }) |
| 171 | } |
no test coverage detected