Documentation
¶
Index ¶
- Constants
- type Output
- func (o *Output) Bold(text string) string
- func (o *Output) Dim(text string) string
- func (o *Output) Divider()
- func (o *Output) EmptyLine()
- func (o *Output) Error(format string, args ...interface{})
- func (o *Output) Info(format string, args ...interface{})
- func (o *Output) KeyValue(key, value string)
- func (o *Output) List(items ...string)
- func (o *Output) NumberedList(items ...string)
- func (o *Output) Plain(format string, args ...interface{})
- func (o *Output) Progress(current, total int, format string, args ...interface{})
- func (o *Output) Section(title string)
- func (o *Output) Spinner(format string, args ...interface{})
- func (o *Output) Step(format string, args ...interface{})
- func (o *Output) Subsection(title string)
- func (o *Output) Success(format string, args ...interface{})
- func (o *Output) Table(headers []string, rows [][]string)
- func (o *Output) Verbose(format string, args ...interface{})
- func (o *Output) Warning(format string, args ...interface{})
Constants ¶
View Source
const ( ColorReset = "\033[0m" ColorRed = "\033[31m" ColorGreen = "\033[32m" ColorYellow = "\033[33m" ColorBlue = "\033[34m" ColorPurple = "\033[35m" ColorCyan = "\033[36m" ColorGray = "\033[37m" ColorWhite = "\033[97m" ColorBold = "\033[1m" ColorDim = "\033[2m" ColorUnderline = "\033[4m" )
Color codes for terminal output
View Source
const ( IconSuccess = "✓" IconError = "✗" IconWarning = "⚠️" IconInfo = "→" IconPackage = "📦" IconTrash = "🗑️" IconTools = "🔧" IconRocket = "🚀" IconClock = "⏰" IconCheck = "✅" IconCross = "❌" IconQuestion = "❓" )
Icons for different message types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output provides formatted output methods
func (*Output) NumberedList ¶
NumberedList prints a numbered list
func (*Output) Subsection ¶
Subsection prints a subsection header
Click to show internal directories.
Click to hide internal directories.