Documentation ¶
Index ¶
- Variables
- func CheckColors(fn func(string, ...any) string, format string, a ...any) string
- func FatalIfError(err error)
- func GetHostnameFromPath(path string) string
- func GetIdealConcurrency() uint
- func NewInterrupt() *interrupt
- func PathExists(path string) bool
- func PathSanitize(paths ...*string)
- func TablePrinter() *tablePrinter
- func UseColors() bool
- type Progressbar
- func (p *Progressbar) Add(i int) *Progressbar
- func (p *Progressbar) ChangeMax(max int) *Progressbar
- func (p *Progressbar) Clear() *Progressbar
- func (p *Progressbar) Describe(format string, a ...any) *Progressbar
- func (p *Progressbar) Inc() *Progressbar
- func (p *Progressbar) Print()
- func (p *Progressbar) SetMessageOnCompletion(msg string) *Progressbar
- type ProgressbarOption
- type RegexList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClearOnFinish = progressbar.OptionClearOnFinish EnableColorCodes = progressbar.OptionEnableColorCodes FullWidth = progressbar.OptionFullWidth OnCompletion = progressbar.OptionOnCompletion SetDescription = progressbar.OptionSetDescription SetElapsedTime = progressbar.OptionSetElapsedTime SetItsString = progressbar.OptionSetItsString SetPredictTime = progressbar.OptionSetPredictTime SetRenderBlankState = progressbar.OptionSetRenderBlankState SetTheme = progressbar.OptionSetTheme SetVisibility = progressbar.OptionSetVisibility SetWidth = progressbar.OptionSetWidth SetWriter = progressbar.OptionSetWriter ShowBytes = progressbar.OptionShowBytes ShowCount = progressbar.OptionShowCount ShowDescriptionAtLineEnd = progressbar.OptionShowDescriptionAtLineEnd ShowElapsedTimeOnFinish = progressbar.OptionShowElapsedTimeOnFinish ShowIts = progressbar.OptionShowIts SpinnerCustom = progressbar.OptionSpinnerCustom SpinnerType = progressbar.OptionSpinnerType Throttle = progressbar.OptionThrottle UseANSICodes = progressbar.OptionUseANSICodes )
Functions ¶
func CheckColors ¶ added in v1.0.5
func FatalIfError ¶
func FatalIfError(err error)
func GetHostnameFromPath ¶ added in v1.1.3
func GetIdealConcurrency ¶
func GetIdealConcurrency() uint
func NewInterrupt ¶ added in v1.1.3
func NewInterrupt() *interrupt
func PathExists ¶
func PathSanitize ¶ added in v1.2.3
func PathSanitize(paths ...*string)
func TablePrinter ¶
func TablePrinter() *tablePrinter
Types ¶
type Progressbar ¶ added in v1.1.0
type Progressbar struct { *progressbar.ProgressBar // contains filtered or unexported fields }
func NewProgressbar ¶ added in v1.1.0
func NewProgressbar(m int, options ...ProgressbarOption) *Progressbar
func (*Progressbar) Add ¶ added in v1.1.0
func (p *Progressbar) Add(i int) *Progressbar
func (*Progressbar) ChangeMax ¶ added in v1.1.0
func (p *Progressbar) ChangeMax(max int) *Progressbar
func (*Progressbar) Clear ¶ added in v1.1.0
func (p *Progressbar) Clear() *Progressbar
func (*Progressbar) Describe ¶ added in v1.1.0
func (p *Progressbar) Describe(format string, a ...any) *Progressbar
func (*Progressbar) Inc ¶ added in v1.1.0
func (p *Progressbar) Inc() *Progressbar
func (*Progressbar) Print ¶ added in v1.1.0
func (p *Progressbar) Print()
func (*Progressbar) SetMessageOnCompletion ¶ added in v1.1.0
func (p *Progressbar) SetMessageOnCompletion(msg string) *Progressbar
type ProgressbarOption ¶ added in v1.1.0
type ProgressbarOption = progressbar.Option
Click to show internal directories.
Click to hide internal directories.