Documentation ¶
Index ¶
- func FromContext(ctx context.Context) *logrus.Entry
- func Initialize(debug bool, skipredact bool)
- func WithoutContext() *logrus.Entry
- type BufferedStdout
- func (p *BufferedStdout) Print(s string)
- func (p *BufferedStdout) PrintUpdatable(id, s string)
- func (p *BufferedStdout) PrintUpdatablef(id, format string, a ...interface{})
- func (p *BufferedStdout) Printf(format string, a ...interface{})
- func (p *BufferedStdout) Println()
- func (p *BufferedStdout) String() string
- type TaskIDKeyType
- type UpdatableStdout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func WithoutContext ¶
Types ¶
type BufferedStdout ¶ added in v0.6.0
type BufferedStdout struct {
// contains filtered or unexported fields
}
func NewBufferedStdout ¶ added in v0.6.0
func NewBufferedStdout() *BufferedStdout
func (*BufferedStdout) Print ¶ added in v0.6.0
func (p *BufferedStdout) Print(s string)
Print outputs the specified string as-is on the current line
func (*BufferedStdout) PrintUpdatable ¶ added in v0.6.0
func (p *BufferedStdout) PrintUpdatable(id, s string)
PrintUpdatable outputs the specified string on the current line, or updates it in place
func (*BufferedStdout) PrintUpdatablef ¶ added in v0.6.0
func (p *BufferedStdout) PrintUpdatablef(id, format string, a ...interface{})
PrintUpdatablef formats and outputs the format string on the current line, or updates it in place
func (*BufferedStdout) Printf ¶ added in v0.6.0
func (p *BufferedStdout) Printf(format string, a ...interface{})
Printf formats and outputs the format string on the current line
func (*BufferedStdout) Println ¶ added in v0.6.0
func (p *BufferedStdout) Println()
Println outputs an empty line
func (*BufferedStdout) String ¶ added in v0.6.0
func (p *BufferedStdout) String() string
type UpdatableStdout ¶
UpdatableStdout is used to print and update text to stdout. Use this instead of fmt.Print to support updating already output text like progress percentage.
func NewUpdatableStdout ¶
func NewUpdatableStdout() *UpdatableStdout
NewUpdatableStdout creates a new UpdatableStdout instance that can be used to print and update text to stdout
func (*UpdatableStdout) Print ¶
func (p *UpdatableStdout) Print(s string)
Print outputs the specified string as-is on the current line
func (*UpdatableStdout) PrintUpdatable ¶
func (p *UpdatableStdout) PrintUpdatable(id, s string)
PrintUpdatable outputs the specified string on the current line, or updates it in place
func (*UpdatableStdout) PrintUpdatablef ¶
func (p *UpdatableStdout) PrintUpdatablef(id, format string, a ...interface{})
PrintUpdatablef formats and outputs the format string on the current line, or updates it in place
func (*UpdatableStdout) Printf ¶
func (p *UpdatableStdout) Printf(format string, a ...interface{})
Printf formats and outputs the format string on the current line