mirror of
https://github.com/anotherhadi/default-creds-tui.git
synced 2026-10-05 10:58:25 +02:00
@@ -42,19 +42,19 @@ func runSearchCLI(mode creds.Mode, apiURL, query string, noColors bool) error {
|
||||
}
|
||||
|
||||
func renderEntryCLI(e creds.Entry, noColors bool) string {
|
||||
manufacturerStyle := lipgloss.NewStyle().Bold(true)
|
||||
nameStyle := lipgloss.NewStyle().Bold(true)
|
||||
manufacturerStyle := lipgloss.NewStyle()
|
||||
nameStyle := lipgloss.NewStyle()
|
||||
versionStyle := lipgloss.NewStyle()
|
||||
credStyle := lipgloss.NewStyle()
|
||||
commentStyle := lipgloss.NewStyle().Italic(true)
|
||||
commentStyle := lipgloss.NewStyle()
|
||||
tagStyle := lipgloss.NewStyle()
|
||||
|
||||
if !noColors {
|
||||
manufacturerStyle = manufacturerStyle.Foreground(style.S.Subtle)
|
||||
nameStyle = nameStyle.Foreground(style.S.Primary)
|
||||
manufacturerStyle = manufacturerStyle.Bold(true).Foreground(style.S.Subtle)
|
||||
nameStyle = nameStyle.Bold(true).Foreground(style.S.Primary)
|
||||
versionStyle = versionStyle.Foreground(style.S.Subtle)
|
||||
credStyle = credStyle.Foreground(style.S.Success)
|
||||
commentStyle = commentStyle.Foreground(style.S.Muted)
|
||||
commentStyle = commentStyle.Italic(true).Foreground(style.S.Muted)
|
||||
tagStyle = tagStyle.Foreground(style.S.Subtle)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user