progress

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachProgressFlag

func AttachProgressFlag(cmd *cobra.Command)

func GetProgressBarWidth

func GetProgressBarWidth(desiredSize int) int

Returns -1 if unable to compute terminal width

func SProgressPrint

func SProgressPrint(progressType ProgressType, colorAttr color.Attribute) func(a ...interface{}) string

Types

type ProgressType

type ProgressType string
const (
	PlainProgress ProgressType = "plain"
	TtyProgress   ProgressType = "tty"
)

func ValidateAndRetrieveProgressFlag

func ValidateAndRetrieveProgressFlag(cmd *cobra.Command) (ProgressType, error)

Jump to

Keyboard shortcuts

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