1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-14 11:23:09 +02:00
lazygit/pkg/gui/presentation/suggestions.go

17 lines
439 B
Go
Raw Normal View History

package presentation
import (
"github.com/jesseduffield/lazygit/pkg/gui/types"
"github.com/samber/lo"
)
func GetSuggestionListDisplayStrings(suggestions []*types.Suggestion) [][]string {
return lo.Map(suggestions, func(suggestion *types.Suggestion, _ int) []string {
2022-03-19 10:12:58 +02:00
return getSuggestionDisplayStrings(suggestion)
})
}
func getSuggestionDisplayStrings(suggestion *types.Suggestion) []string {
return []string{suggestion.Label}
}