mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-14 11:23:09 +02:00
17 lines
456 B
Go
17 lines
456 B
Go
package presentation
|
|
|
|
import (
|
|
"github.com/jesseduffield/generics/slices"
|
|
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
|
)
|
|
|
|
func GetSuggestionListDisplayStrings(suggestions []*types.Suggestion) [][]string {
|
|
return slices.Map(suggestions, func(suggestion *types.Suggestion) []string {
|
|
return getSuggestionDisplayStrings(suggestion)
|
|
})
|
|
}
|
|
|
|
func getSuggestionDisplayStrings(suggestion *types.Suggestion) []string {
|
|
return []string{suggestion.Label}
|
|
}
|