2020-11-28 04:14:48 +02:00
|
|
|
package presentation
|
|
|
|
|
2020-11-28 10:53:39 +02:00
|
|
|
import (
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
2023-07-24 05:06:42 +02:00
|
|
|
"github.com/samber/lo"
|
2020-11-28 10:53:39 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func GetSuggestionListDisplayStrings(suggestions []*types.Suggestion) [][]string {
|
2023-07-24 05:06:42 +02:00
|
|
|
return lo.Map(suggestions, func(suggestion *types.Suggestion, _ int) []string {
|
2022-03-19 10:12:58 +02:00
|
|
|
return getSuggestionDisplayStrings(suggestion)
|
|
|
|
})
|
2020-11-28 04:14:48 +02:00
|
|
|
}
|
|
|
|
|
2020-11-28 10:53:39 +02:00
|
|
|
func getSuggestionDisplayStrings(suggestion *types.Suggestion) []string {
|
|
|
|
return []string{suggestion.Label}
|
2020-11-28 04:14:48 +02:00
|
|
|
}
|