Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsTTY = isatty.IsTerminal(os.Stdout.Fd()) || isatty.IsCygwinTerminal(os.Stdout.Fd())
Functions ¶
func GetMilliseconds ¶ added in v0.14.0
func GetMillisecondsIfExists ¶ added in v0.14.0
Types ¶
type Format ¶ added in v0.14.0
type Format int
Format defines the option output format of a resource.
func NewFormatValue ¶ added in v0.14.0
NewFormatValue is used to define a flag that can be used to define a custom flag via the flagset.Var() method.
type Printer ¶ added in v0.14.0
type Printer struct {
// contains filtered or unexported fields
}
Printer is used to print information to the defined output.
func NewPrinter ¶ added in v0.14.0
NewPrinter returns a new Printer for the given output and format.
func (*Printer) Print ¶ added in v0.14.0
func (p *Printer) Print(i ...interface{})
Print is a convenience method to Print to the defined output.
func (*Printer) PrintProgress ¶ added in v0.14.0
PrintProgress starts a spinner with the relevant message. The returned function needs to be called in a defer or when it's decided to stop the spinner
func (*Printer) PrintResource ¶ added in v0.14.0
PrintResource prints the given resource in the format it was specified.
Click to show internal directories.
Click to hide internal directories.