25 lines
535 B
Go
25 lines
535 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/charmbracelet/lipgloss"
|
|
)
|
|
|
|
// For commands & names.
|
|
func Aqua(str string) string {
|
|
return lipgloss.NewStyle().Foreground(lipgloss.Color("14")).Render(str)
|
|
}
|
|
|
|
func Yellow(str string) string {
|
|
return lipgloss.NewStyle().Foreground(lipgloss.Color("11")).Render(str)
|
|
}
|
|
|
|
// For errors.
|
|
func Red(str string) string {
|
|
return lipgloss.NewStyle().Foreground(lipgloss.Color("9")).Render(str)
|
|
}
|
|
|
|
// For paths & filenames.
|
|
func Bold(str string) string {
|
|
return lipgloss.NewStyle().Bold(true).Render(str)
|
|
}
|