output

package
v0.0.0-...-20dd7c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL