Documentation
¶
Index ¶
- Variables
- func Basic(format string, a ...any)
- func Debug(format string, a ...any)
- func DisplayLogEntry(logEntry logging.LogEntry, prefix string)
- func Error(format string, a ...any)
- func Info(format string, a ...any)
- func Prompt(message string) (string, error)
- func Section(title string, textLines []string)
- func Success(format string, a ...any)
- func Table(headers []string, rows [][]string)
- func Warn(format string, a ...any)
- type PrefixedUI
- type ProgressBar
- type ProgressBarConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Amber = lipgloss.Color("#F59E0B") Blue = lipgloss.Color("#3B82F6") White = lipgloss.Color("#fafafa") Gray = lipgloss.Color("#6B7280") Green = lipgloss.Color("#10B981") LightGray = lipgloss.Color("241") Red = lipgloss.Color("#f87171") Purple = lipgloss.Color("#8B5CF6") )
Colors
Functions ¶
func DisplayLogEntry ¶
Types ¶
type PrefixedUI ¶
type PrefixedUI struct {
Prefix string
}
func (*PrefixedUI) Error ¶
func (p *PrefixedUI) Error(format string, a ...any)
func (*PrefixedUI) Info ¶
func (p *PrefixedUI) Info(format string, a ...any)
func (*PrefixedUI) Success ¶
func (p *PrefixedUI) Success(format string, a ...any)
func (*PrefixedUI) Warn ¶
func (p *PrefixedUI) Warn(format string, a ...any)
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
ProgressBar displays an aggregate progress bar that can be updated from multiple goroutines
func NewProgressBar ¶
func NewProgressBar(cfg ProgressBarConfig) *ProgressBar
NewProgressBar creates a new aggregate progress bar
func (*ProgressBar) Add ¶
func (p *ProgressBar) Add(n int64)
Add adds bytes to the progress (thread-safe)
func (*ProgressBar) CompleteItem ¶
func (p *ProgressBar) CompleteItem()
CompleteItem marks one item as complete (thread-safe)
func (*ProgressBar) Finish ¶
func (p *ProgressBar) Finish()
Finish completes the progress bar and moves to next line
Click to show internal directories.
Click to hide internal directories.