package progress
import "github.com/bitrise-io/go-utils/progress"
Index ¶
- func OutputDeviceIsTerminal() bool
- func SimpleProgress(printChar string, tickInterval time.Duration, action func())
- func SimpleProgressE(printChar string, tickInterval time.Duration, action func() error) error
- type Spinner
- func NewDefaultSpinner(message string) Spinner
- func NewDefaultSpinnerWithOutput(message string, output io.Writer) Spinner
- func NewSpinner(message string, chars []string, delay time.Duration, writer io.Writer) Spinner
- func (s *Spinner) Start()
- func (s *Spinner) Stop()
- type Wrapper
Functions ¶
func OutputDeviceIsTerminal ¶
func OutputDeviceIsTerminal() bool
OutputDeviceIsTerminal ...
func SimpleProgress ¶
SimpleProgress ... action : have to be a synchronous action! tickInterval : e.g. : 5000 * time.Millisecond
func SimpleProgressE ¶
SimpleProgressE ...
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner ...
func NewDefaultSpinner ¶
NewDefaultSpinner ...
func NewDefaultSpinnerWithOutput ¶
NewDefaultSpinnerWithOutput ...
func NewSpinner ¶
NewSpinner ...
func (*Spinner) Start ¶
func (s *Spinner) Start()
Start ...
func (*Spinner) Stop ¶
func (s *Spinner) Stop()
Stop ...
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper ...
func NewDefaultWrapper ¶
NewDefaultWrapper ...
func NewDefaultWrapperWithOutput ¶
NewDefaultWrapperWithOutput ...
func NewWrapper ¶
NewWrapper ...
func (Wrapper) WrapAction ¶
func (w Wrapper) WrapAction(action func())
WrapAction ...
Source Files ¶
progress.go spinner.go wrapper.go
- Version
- v1.0.15 (latest)
- Published
- May 13, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 months ago –
Tools for package owners.