Versions in this module Expand all Collapse all v0 v0.0.2 Apr 23, 2022 v0.0.1 Apr 23, 2022 Changes in this version + const DefaultWidth + func EnvColorDisabled() bool + func EnvColorForced() bool + func Is256ColorSupported() bool + func IsTrueColorSupported() bool + type ColorScheme struct + func NewColorScheme(enabled, is256enabled bool) *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) ColorFromString(s string) func(string) string + func (c *ColorScheme) Cyan(t string) string + func (c *ColorScheme) CyanBold(t string) string + func (c *ColorScheme) Cyanf(t string, args ...interface{}) string + func (c *ColorScheme) FailureIcon() string + func (c *ColorScheme) FailureIconWithColor(colo func(string) string) string + func (c *ColorScheme) Gray(t string) string + func (c *ColorScheme) Grayf(t string, args ...interface{}) string + func (c *ColorScheme) Green(t string) string + func (c *ColorScheme) Greenf(t string, args ...interface{}) string + func (c *ColorScheme) HexToRGB(hex string, x string) 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) SuccessIconWithColor(colo func(string) string) string + func (c *ColorScheme) WarningIcon() string + func (c *ColorScheme) Yellow(t string) string + func (c *ColorScheme) Yellowf(t string, args ...interface{}) string + type IOStreams struct + ErrOut io.Writer + In io.ReadCloser + Out io.Writer + TempFileOverride *os.File + func System() *IOStreams + func Test() (*IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer) + func (s *IOStreams) CanPrompt() bool + func (s *IOStreams) ColorEnabled() bool + func (s *IOStreams) ColorScheme() *ColorScheme + func (s *IOStreams) ColorSupport256() bool + func (s *IOStreams) DetectTerminalTheme() string + func (s *IOStreams) EnableVirtualTerminalProcessing() error + func (s *IOStreams) ForceTerminal(spec string) + func (s *IOStreams) GetNeverPrompt() bool + func (s *IOStreams) GetPager() string + func (s *IOStreams) HasTrueColor() bool + func (s *IOStreams) IsStderrTTY() bool + func (s *IOStreams) IsStdinTTY() bool + func (s *IOStreams) IsStdoutTTY() bool + func (s *IOStreams) ProcessTerminalWidth() int + func (s *IOStreams) ReadUserFile(fn string) ([]byte, error) + func (s *IOStreams) SetColorEnabled(colorEnabled bool) + func (s *IOStreams) SetNeverPrompt(v bool) + func (s *IOStreams) SetPager(cmd string) + func (s *IOStreams) SetStderrTTY(isTTY bool) + func (s *IOStreams) SetStdinTTY(isTTY bool) + func (s *IOStreams) SetStdoutTTY(isTTY bool) + func (s *IOStreams) StartPager() error + func (s *IOStreams) StartProgressIndicator() + func (s *IOStreams) StopPager() + func (s *IOStreams) StopProgressIndicator() + func (s *IOStreams) TempFile(dir, pattern string) (*os.File, error) + func (s *IOStreams) TerminalTheme() string + func (s *IOStreams) TerminalWidth() int