Documentation
¶
Overview ¶
Package message provides a rich set of functions for displaying messages to the user.
Index ¶
Constants ¶
View Source
const (
// TermWidth sets the width of full width elements like progressbars and headers
TermWidth = 100
)
Variables ¶
View Source
var ( // NoProgress tracks whether spinner/progress bars show updates. NoProgress bool // RuleLine creates a line of ━ as wide as the terminal RuleLine = strings.Repeat("━", TermWidth) // OutputWriter provides a default writer to Stdout for user-focused output like tables and yaml OutputWriter = os.Stdout )
Functions ¶
func ColorEnabled ¶
func ColorEnabled() bool
ColorEnabled returns true if color printing is enabled.
func HorizontalRule ¶
func HorizontalRule()
HorizontalRule prints a white horizontal rule to separate the terminal
func InitializePTerm ¶
InitializePTerm sets the default styles and output for pterm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.