Documentation
¶
Index ¶
- Variables
- func NewDownloadProgressBarCB() func(*rpc.DownloadProgress)
- func NewNullDownloadProgressCB() func(*rpc.DownloadProgress)
- func NewNullTaskProgressCB() func(curr *rpc.TaskProgress)
- func NewTaskProgressCB() func(curr *rpc.TaskProgress)
- func ProgressBar() rpc.DownloadProgressCB
- func TaskProgress() rpc.TaskProgressCB
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OutputFormat can be "text" or "json" OutputFormat string )
Functions ¶
func NewDownloadProgressBarCB ¶
func NewDownloadProgressBarCB() func(*rpc.DownloadProgress)
NewDownloadProgressBarCB creates a progress bar callback that outputs a progress bar on the terminal
func NewNullDownloadProgressCB ¶
func NewNullDownloadProgressCB() func(*rpc.DownloadProgress)
NewNullDownloadProgressCB returns a progress bar callback that outputs nothing.
func NewNullTaskProgressCB ¶
func NewNullTaskProgressCB() func(curr *rpc.TaskProgress)
NewNullTaskProgressCB returns a progress bar callback that outputs nothing.
func NewTaskProgressCB ¶
func NewTaskProgressCB() func(curr *rpc.TaskProgress)
NewTaskProgressCB returns a commands.TaskProgressCB progress listener that outputs to terminal
func ProgressBar ¶
func ProgressBar() rpc.DownloadProgressCB
ProgressBar returns a DownloadProgressCB that prints a progress bar. If JSON output format has been selected, the callback outputs nothing.
func TaskProgress ¶
func TaskProgress() rpc.TaskProgressCB
TaskProgress returns a TaskProgressCB that prints the task progress. If JSON output format has been selected, the callback outputs nothing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.