Documentation
¶
Index ¶
- func HasHomebrew() bool
- func IsCI() bool
- func IsColorDisabled() bool
- func IsTTY() bool
- func IsUnderHomebrew(binpath string) bool
- type ColorScheme
- func (c *ColorScheme) Blue(t string) string
- func (c *ColorScheme) Bluef(t string, args ...interface{}) string
- func (c *ColorScheme) Bold(t string) string
- func (c *ColorScheme) Boldf(t string, args ...interface{}) string
- func (c *ColorScheme) Cyan(t string) string
- func (c *ColorScheme) Cyanf(t string, args ...interface{}) string
- func (c *ColorScheme) FailureIcon() string
- func (c *ColorScheme) Green(t string) string
- func (c *ColorScheme) Greenf(t string, args ...interface{}) string
- func (c *ColorScheme) Grey(t string) string
- func (c *ColorScheme) Greyf(t string, args ...interface{}) string
- func (c *ColorScheme) Italic(t string) string
- func (c *ColorScheme) Italicf(t string, args ...interface{}) string
- func (c *ColorScheme) Magenta(t string) string
- func (c *ColorScheme) Magentaf(t string, args ...interface{}) string
- func (c *ColorScheme) Red(t string) string
- func (c *ColorScheme) Redf(t string, args ...interface{}) string
- func (c *ColorScheme) SuccessIcon() string
- func (c *ColorScheme) WarningIcon() string
- func (c *ColorScheme) Yellow(t string) string
- func (c *ColorScheme) Yellowf(t string, args ...interface{}) string
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsColorDisabled ¶
func IsColorDisabled() bool
func IsUnderHomebrew ¶
IsUnderHomebrew checks whether the given binary is under the homebrew path.
Types ¶
type ColorScheme ¶
type ColorScheme struct {
// contains filtered or unexported fields
}
ColorScheme is a color scheme.
func NewColorScheme ¶
func NewColorScheme() *ColorScheme
NewColorScheme returns a new ColorScheme with the given theme.
func (*ColorScheme) Blue ¶
func (c *ColorScheme) Blue(t string) string
func (*ColorScheme) Bluef ¶
func (c *ColorScheme) Bluef(t string, args ...interface{}) string
func (*ColorScheme) Bold ¶
func (c *ColorScheme) Bold(t string) string
func (*ColorScheme) Boldf ¶
func (c *ColorScheme) Boldf(t string, args ...interface{}) string
func (*ColorScheme) Cyan ¶
func (c *ColorScheme) Cyan(t string) string
func (*ColorScheme) Cyanf ¶
func (c *ColorScheme) Cyanf(t string, args ...interface{}) string
func (*ColorScheme) FailureIcon ¶
func (c *ColorScheme) FailureIcon() string
func (*ColorScheme) Green ¶
func (c *ColorScheme) Green(t string) string
func (*ColorScheme) Greenf ¶
func (c *ColorScheme) Greenf(t string, args ...interface{}) string
func (*ColorScheme) Grey ¶
func (c *ColorScheme) Grey(t string) string
func (*ColorScheme) Greyf ¶
func (c *ColorScheme) Greyf(t string, args ...interface{}) string
func (*ColorScheme) Italic ¶
func (c *ColorScheme) Italic(t string) string
func (*ColorScheme) Italicf ¶
func (c *ColorScheme) Italicf(t string, args ...interface{}) string
func (*ColorScheme) Magenta ¶
func (c *ColorScheme) Magenta(t string) string
func (*ColorScheme) Magentaf ¶
func (c *ColorScheme) Magentaf(t string, args ...interface{}) string
func (*ColorScheme) Red ¶
func (c *ColorScheme) Red(t string) string
func (*ColorScheme) Redf ¶
func (c *ColorScheme) Redf(t string, args ...interface{}) string
func (*ColorScheme) SuccessIcon ¶
func (c *ColorScheme) SuccessIcon() string
func (*ColorScheme) WarningIcon ¶
func (c *ColorScheme) WarningIcon() string
func (*ColorScheme) Yellow ¶
func (c *ColorScheme) Yellow(t string) string
func (*ColorScheme) Yellowf ¶
func (c *ColorScheme) Yellowf(t string, args ...interface{}) string
Click to show internal directories.
Click to hide internal directories.