Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecWithProgress ¶
func ExecWithProgress(cmd CommandWithProgress) (err error)
func InitFilesProgressBarIfPossible ¶
func InitFilesProgressBarIfPossible(showLogFilePath bool) (ioUtils.ProgressMgr, error)
Initializes progress bar if possible (all conditions in 'shouldInitProgressBar' are met). Returns nil, nil, err if failed.
Types ¶
type CommandWithProgress ¶
type CommandWithProgress interface { commands.Command SetProgress(ioUtils.ProgressMgr) }
type ReaderProgressBar ¶
type ReaderProgressBar struct { Id int // contains filtered or unexported fields }
func (*ReaderProgressBar) Abort ¶
func (p *ReaderProgressBar) Abort()
Abort aborts a progress indicator. Called on both successful and unsuccessful operations
func (*ReaderProgressBar) ActionWithProgress ¶
func (p *ReaderProgressBar) ActionWithProgress(reader io.Reader) (results io.Reader)
Used to update the progress bar progress.
func (*ReaderProgressBar) GetId ¶
func (p *ReaderProgressBar) GetId() (Id int)
GetId Returns the ProgressBar ID
func (*ReaderProgressBar) SetProgress ¶ added in v2.49.0
func (p *ReaderProgressBar) SetProgress(progress int64)
type SimpleProgressBar ¶
type SimpleProgressBar struct { Id int // contains filtered or unexported fields }
func (*SimpleProgressBar) Abort ¶
func (p *SimpleProgressBar) Abort()
Abort aborts a progress indicator. Called on both successful and unsuccessful operations
func (*SimpleProgressBar) ActionWithProgress ¶
func (p *SimpleProgressBar) ActionWithProgress(reader io.Reader) (results io.Reader)
Used to update the progress bar progress.
func (*SimpleProgressBar) GetId ¶
func (p *SimpleProgressBar) GetId() (Id int)
GetId Returns the ProgressBar ID
func (*SimpleProgressBar) SetProgress ¶ added in v2.49.0
func (p *SimpleProgressBar) SetProgress(progress int64)
Click to show internal directories.
Click to hide internal directories.