Documentation
¶
Overview ¶
Package reporter implements the console reporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOutputModeFlag ¶ added in v1.13.0
func NewOutputModeFlag() flags.PflagExtended[OutputMode]
NewOutputModeFlag returns a pflag.Value for the output mode.
Types ¶
type Option ¶ added in v1.13.0
type Option func(*Reporter)
Option represents an option for configuring the Reporter.
func WithOutputMode ¶ added in v1.13.0
func WithOutputMode(mode OutputMode) Option
WithOutputMode returns an Option that sets the output mode of the Reporter.
type OutputMode ¶ added in v1.13.0
type OutputMode int32
OutputMode represents the output mode of the reporter.
const ( // OutputModeAuto represents the automatic output mode, which detects if the output is a terminal. OutputModeAuto OutputMode = iota // OutputModePlain represents the plain output mode, which disables colorization and spinner. OutputModePlain )
func (OutputMode) String ¶ added in v1.13.0
func (o OutputMode) String() string
String implements the fmt.Stringer interface for OutputMode.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is a console reporter with stderr output.
func (*Reporter) IsColorized ¶ added in v1.13.0
IsColorized returns true if the reporter is colorized.
Click to show internal directories.
Click to hide internal directories.