Documentation ¶
Index ¶
- func Blue(t ...string) string
- func Bluef(t string, args ...interface{}) string
- func Bold(t ...string) string
- func Boldf(t string, args ...interface{}) string
- func Cyan(t ...string) string
- func Cyanf(t string, args ...interface{}) string
- func FailureIcon() string
- 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 HasHomebrew() bool
- func IsCI() bool
- func IsColorDisabled() bool
- func IsTTY() bool
- func IsUnderHomebrew(binpath string) bool
- func Italic(t ...string) string
- func Italicf(t string, args ...interface{}) string
- func Magenta(t ...string) string
- func Magentaf(t string, args ...interface{}) string
- func OpenBrowser(goos, url string) *exec.Cmd
- func Red(t ...string) string
- func Redf(t string, args ...interface{}) string
- func SuccessIcon() string
- func WarningIcon() string
- func Yellow(t ...string) string
- func Yellowf(t string, args ...interface{}) string
- type ColorScheme
- type ErrClosedPagerPipe
- type Pager
- type Theme
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailureIcon ¶
func FailureIcon() string
func IsColorDisabled ¶
func IsColorDisabled() bool
func IsUnderHomebrew ¶
IsUnderHomebrew checks whether the given binary is under the homebrew path.
func OpenBrowser ¶
OpenBrowser opens a web browser at the specified url.
func SuccessIcon ¶
func SuccessIcon() string
func WarningIcon ¶
func WarningIcon() string
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.
type ErrClosedPagerPipe ¶
type ErrClosedPagerPipe struct {
// contains filtered or unexported fields
}
ErrClosedPagerPipe is the error returned when writing to a pager that has been closed.
Click to show internal directories.
Click to hide internal directories.