2020-09-30 00:27:23 +02:00
|
|
|
package presentation
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/commands/models"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/theme"
|
|
|
|
)
|
|
|
|
|
|
|
|
func GetSubmoduleListDisplayStrings(submodules []*models.SubmoduleConfig) [][]string {
|
|
|
|
lines := make([][]string, len(submodules))
|
|
|
|
|
|
|
|
for i := range submodules {
|
|
|
|
lines[i] = getSubmoduleDisplayStrings(submodules[i])
|
|
|
|
}
|
|
|
|
|
|
|
|
return lines
|
|
|
|
}
|
|
|
|
|
|
|
|
func getSubmoduleDisplayStrings(s *models.SubmoduleConfig) []string {
|
2021-07-27 15:00:37 +02:00
|
|
|
return []string{theme.DefaultTextColor.Sprint(s.Name)}
|
2020-09-30 00:27:23 +02:00
|
|
|
}
|