Documentation
¶
Index ¶
- func Initialize(opts Options)
- type Manager
- func (m *Manager) FinishProgress(id string, success bool, message string)
- func (m *Manager) GetMemoryStats() (int, int)
- func (m *Manager) StartProgress(id, description string, total int)
- func (m *Manager) StartSpinner(id, description string)
- func (m *Manager) StopAll()
- func (m *Manager) StopSpinner(id string, success bool, message string)
- func (m *Manager) UpdateDescription(id, description string)
- func (m *Manager) UpdateProgress(id string, increment int)
- func (m *Manager) WithProgress(description string, total int, fn func(update func(int)) error) error
- func (m *Manager) WithSpinner(description string, fn func() error) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages progress indicators for the application
func (*Manager) FinishProgress ¶
FinishProgress completes a progress bar
func (*Manager) GetMemoryStats ¶
GetMemoryStats returns memory usage statistics for monitoring
func (*Manager) StartProgress ¶
StartProgress starts a determinate progress bar
func (*Manager) StartSpinner ¶
StartSpinner starts an indeterminate progress spinner
func (*Manager) StopSpinner ¶
StopSpinner stops a spinner and optionally shows a completion message
func (*Manager) UpdateDescription ¶
UpdateDescription updates the description of a progress bar or spinner
func (*Manager) UpdateProgress ¶
UpdateProgress updates a progress bar
Click to show internal directories.
Click to hide internal directories.