Documentation
¶
Index ¶
- func Blue(t ...string) string
- func Bluef(t string, args ...interface{}) string
- func Bold(t ...string)
- func Boldf(t string, args ...interface{})
- func Boldln(t ...string)
- func Cyan(t ...string) string
- func Cyanf(t string, args ...interface{}) string
- func Error(t ...string)
- func ErrorIcon()
- func Errorf(t string, args ...interface{})
- func Errorln(t ...string)
- func FailureIcon() string
- func File(data interface{}, format string) (err error)
- func Green(t ...string) string
- func Greenf(t string, args ...interface{}) string
- func Grey(t ...string) string
- func Greyf(t string, args ...interface{}) string
- func Info(t ...string)
- func InfoIcon()
- func Infof(t string, args ...interface{})
- func Infoln(t ...string)
- func Italic(t ...string)
- func Italicf(t string, args ...interface{})
- func Italicln(t ...string)
- func JSON(data interface{}) error
- func Magenta(t ...string) string
- func Magentaf(t string, args ...interface{}) string
- func Markdown(text string) (string, error)
- func MarkdownWithWrap(text string, wrap int) (string, error)
- func PrettyJSON(data interface{}) error
- func Progress(max int, description string) *progressbar.ProgressBar
- func Red(t ...string) string
- func Redf(t string, args ...interface{}) string
- func Space()
- func Success(t ...string)
- func SuccessIcon()
- func Successf(t string, args ...interface{})
- func Successln(t ...string)
- func Table(target io.Writer, rows [][]string)
- func Text(t ...string)
- func Textf(t string, args ...interface{})
- func Textln(t ...string)
- func Warning(t ...string)
- func WarningIcon()
- func Warningf(t string, args ...interface{})
- func Warningln(t ...string)
- func YAML(data interface{}) error
- func Yellow(t ...string) string
- func Yellowf(t string, args ...interface{}) string
- type ColorScheme
- type Indicator
- type RenderOpts
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailureIcon ¶ added in v0.4.0
func FailureIcon() string
func PrettyJSON ¶
func PrettyJSON(data interface{}) error
PrettyJSON prints the data as pretty JSON.
func Progress ¶
func Progress(max int, description string) *progressbar.ProgressBar
func SuccessIcon ¶
func SuccessIcon()
func WarningIcon ¶
func WarningIcon()
Types ¶
type ColorScheme ¶ added in v0.4.0
type ColorScheme struct {
// contains filtered or unexported fields
}
ColorScheme is a color scheme.
func NewColorScheme ¶ added in v0.4.0
func NewColorScheme() *ColorScheme
NewColorScheme returns a new ColorScheme with the given theme.
type RenderOpts ¶
type RenderOpts []glamour.TermRendererOption
Click to show internal directories.
Click to hide internal directories.