Documentation ¶
Index ¶
- func EnvColorDisabled() bool
- func EnvColorForced() bool
- func Is256ColorSupported() bool
- func NewAskopts(opt *survey.AskOptions) error
- type ColorScheme
- func (c *ColorScheme) Blue(t string) string
- func (c *ColorScheme) BlueBold(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) Bullet() string
- func (c *ColorScheme) BulletSpace() string
- func (c *ColorScheme) ColorFromString(s string) func(string) string
- func (c *ColorScheme) ColorStatus(status 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) Dimmed(t string) 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) GreenBold(s string) string
- func (c *ColorScheme) Greenf(t string, args ...interface{}) string
- func (c *ColorScheme) HyperLink(title, href string) string
- func (c *ColorScheme) InfoIcon() string
- func (c *ColorScheme) Magenta(t string) string
- func (c *ColorScheme) Magentaf(t string, args ...interface{}) string
- func (c *ColorScheme) Orange(t string) string
- func (c *ColorScheme) Red(t string) string
- func (c *ColorScheme) RedBold(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) Underline(t 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
- func (s *IOStreams) ColorEnabled() bool
- func (s *IOStreams) ColorScheme() *ColorScheme
- func (s *IOStreams) ColorSupport256() bool
- func (s *IOStreams) IsStdoutTTY() bool
- func (s *IOStreams) SetColorEnabled(colorEnabled bool)
- func (s *IOStreams) SetStderrTTY(isTTY bool)
- func (s *IOStreams) SetStdoutTTY(isTTY bool)
- type PacCliOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvColorDisabled ¶
func EnvColorDisabled() bool
func EnvColorForced ¶
func EnvColorForced() bool
func Is256ColorSupported ¶
func Is256ColorSupported() bool
func NewAskopts ¶ added in v0.13.0
func NewAskopts(opt *survey.AskOptions) error
Types ¶
type ColorScheme ¶
type ColorScheme struct {
// contains filtered or unexported fields
}
func NewColorScheme ¶
func NewColorScheme(enabled, is256enabled bool) *ColorScheme
func (*ColorScheme) Blue ¶
func (c *ColorScheme) Blue(t string) string
func (*ColorScheme) BlueBold ¶
func (c *ColorScheme) BlueBold(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) Bullet ¶
func (c *ColorScheme) Bullet() string
func (*ColorScheme) BulletSpace ¶
func (c *ColorScheme) BulletSpace() string
func (*ColorScheme) ColorFromString ¶
func (c *ColorScheme) ColorFromString(s string) func(string) string
func (*ColorScheme) ColorStatus ¶
func (c *ColorScheme) ColorStatus(status string) string
func (*ColorScheme) Cyan ¶
func (c *ColorScheme) Cyan(t string) string
func (*ColorScheme) CyanBold ¶
func (c *ColorScheme) CyanBold(t string) string
func (*ColorScheme) Cyanf ¶
func (c *ColorScheme) Cyanf(t string, args ...interface{}) string
func (*ColorScheme) Dimmed ¶
func (c *ColorScheme) Dimmed(t string) string
func (*ColorScheme) FailureIcon ¶
func (c *ColorScheme) FailureIcon() string
func (*ColorScheme) FailureIconWithColor ¶
func (c *ColorScheme) FailureIconWithColor(colo func(string) string) string
func (*ColorScheme) Gray ¶
func (c *ColorScheme) Gray(t string) string
func (*ColorScheme) Grayf ¶
func (c *ColorScheme) Grayf(t string, args ...interface{}) string
func (*ColorScheme) Green ¶
func (c *ColorScheme) Green(t string) string
func (*ColorScheme) GreenBold ¶
func (c *ColorScheme) GreenBold(s string) string
func (*ColorScheme) Greenf ¶
func (c *ColorScheme) Greenf(t string, args ...interface{}) string
func (*ColorScheme) HyperLink ¶
func (c *ColorScheme) HyperLink(title, href string) string
func (*ColorScheme) InfoIcon ¶
func (c *ColorScheme) InfoIcon() 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) Orange ¶ added in v0.13.0
func (c *ColorScheme) Orange(t string) string
func (*ColorScheme) Red ¶
func (c *ColorScheme) Red(t string) string
func (*ColorScheme) RedBold ¶
func (c *ColorScheme) RedBold(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) SuccessIconWithColor ¶
func (c *ColorScheme) SuccessIconWithColor(colo func(string) string) string
func (*ColorScheme) Underline ¶
func (c *ColorScheme) Underline(t string) 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
type IOStreams ¶
type IOStreams struct { In io.ReadCloser Out io.Writer ErrOut io.Writer // contains filtered or unexported fields }
func NewIOStreams ¶
func NewIOStreams() *IOStreams
func (*IOStreams) ColorEnabled ¶
func (*IOStreams) ColorScheme ¶
func (s *IOStreams) ColorScheme() *ColorScheme
func (*IOStreams) ColorSupport256 ¶
func (*IOStreams) IsStdoutTTY ¶
func (*IOStreams) SetColorEnabled ¶
func (*IOStreams) SetStderrTTY ¶
func (*IOStreams) SetStdoutTTY ¶
type PacCliOpts ¶
type PacCliOpts struct { NoColoring bool AllNameSpaces bool Namespace string UseRealTime bool AskOpts survey.AskOpt NoHeaders bool }
func NewCliOptions ¶
func NewCliOptions(cmd *cobra.Command) *PacCliOpts
Click to show internal directories.
Click to hide internal directories.