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 {
|
func renderEntryCLI(e creds.Entry, noColors bool) string {
|
||||||
manufacturerStyle := lipgloss.NewStyle().Bold(true)
|
manufacturerStyle := lipgloss.NewStyle()
|
||||||
nameStyle := lipgloss.NewStyle().Bold(true)
|
nameStyle := lipgloss.NewStyle()
|
||||||
versionStyle := lipgloss.NewStyle()
|
versionStyle := lipgloss.NewStyle()
|
||||||
credStyle := lipgloss.NewStyle()
|
credStyle := lipgloss.NewStyle()
|
||||||
commentStyle := lipgloss.NewStyle().Italic(true)
|
commentStyle := lipgloss.NewStyle()
|
||||||
tagStyle := lipgloss.NewStyle()
|
tagStyle := lipgloss.NewStyle()
|
||||||
|
|
||||||
if !noColors {
|
if !noColors {
|
||||||
manufacturerStyle = manufacturerStyle.Foreground(style.S.Subtle)
|
manufacturerStyle = manufacturerStyle.Bold(true).Foreground(style.S.Subtle)
|
||||||
nameStyle = nameStyle.Foreground(style.S.Primary)
|
nameStyle = nameStyle.Bold(true).Foreground(style.S.Primary)
|
||||||
versionStyle = versionStyle.Foreground(style.S.Subtle)
|
versionStyle = versionStyle.Foreground(style.S.Subtle)
|
||||||
credStyle = credStyle.Foreground(style.S.Success)
|
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)
|
tagStyle = tagStyle.Foreground(style.S.Subtle)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user