feat: .NET appsettings files in repos (#88)

Co-authored-by: Karl-Einar Bergstrøm <karl-einarb@outlook.com>
This commit was merged in pull request #88.
This commit is contained in:
keb authored and Karl-Einar Bergstrøm committed 2026-10-15 16:40:00 +02:00
1 parent 59c1222f4d
commit a7db795cbe
17 files changed
+224 -22

No files matched your search

+2
View File
@@ -36,6 +36,7 @@ type Styles struct {
KindRepo lipgloss.Style
Spring lipgloss.Style // Spring Boot config files
Compose lipgloss.Style // Docker Compose files
Dotnet lipgloss.Style // .NET appsettings files
// themed marks the selection colours as set by the theme, so
// OnBackground leaves them.
@@ -74,6 +75,7 @@ func Default() Styles {
KindRepo: lipgloss.NewStyle().Foreground(lipgloss.Magenta),
Spring: lipgloss.NewStyle().Foreground(lipgloss.Green),
Compose: lipgloss.NewStyle().Foreground(lipgloss.Blue),
Dotnet: lipgloss.NewStyle().Foreground(lipgloss.BrightMagenta),
}
}
+3
View File
@@ -44,6 +44,7 @@ var Roles = map[string]string{
"repoColor": "repos and their secret files (SOPS)",
"springColor": "Spring Boot config files",
"composeColor": "Docker Compose files",
"dotnetColor": ".NET appsettings files",
}
// FromTheme returns the default styles with the theme's roles applied, and
@@ -105,6 +106,8 @@ func FromTheme(theme map[string][]string) (Styles, color.Color, error) {
st.Spring = v.fg(lipgloss.NewStyle())
case "composeColor":
st.Compose = v.fg(lipgloss.NewStyle())
case "dotnetColor":
st.Dotnet = v.fg(lipgloss.NewStyle())
}
}
return st, fg, nil