Documentation
¶
Index ¶
- Variables
- func Bold(text string) string
- func Box(content string) string
- func Download(text string) string
- func Error(text string) string
- func FileCount(count int, noun string) string
- func Generate(text string) string
- func Info(text string) string
- func Progress(text string) string
- func ProgressBar(current, total int, width int) string
- func Subtle(text string) string
- func Success(text string) string
- func Title(text string) string
- func Upload(text string) string
- func Validate(text string) string
- func Version(pkg, version string) string
- func Warning(text string) string
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Colors SuccessColor = lipgloss.Color("#04B575") ErrorColor = lipgloss.Color("#FF5F56") WarningColor = lipgloss.Color("#FFBD2E") InfoColor = lipgloss.Color("#61AFEF") PrimaryColor = lipgloss.Color("#7B68EE") // Styles SuccessStyle = lipgloss.NewStyle(). Foreground(SuccessColor). Bold(true) ErrorStyle = lipgloss.NewStyle(). Foreground(ErrorColor). Bold(true) WarningStyle = lipgloss.NewStyle(). Foreground(WarningColor). Bold(true) InfoStyle = lipgloss.NewStyle(). Foreground(InfoColor). Bold(true) PrimaryStyle = lipgloss.NewStyle(). Foreground(PrimaryColor). Bold(true) TitleStyle = lipgloss.NewStyle(). Foreground(PrimaryColor). Bold(true). Underline(true) SubtleStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#666666")) BoldStyle = lipgloss.NewStyle(). Bold(true) // Box styles for important messages BoxStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(PrimaryColor). Padding(1). Margin(1) )
Functions ¶
func ProgressBar ¶
Progress bar for file operations
Types ¶
Click to show internal directories.
Click to hide internal directories.