Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachProgressFlag ¶
func GetProgressBarWidth ¶
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)
Click to show internal directories.
Click to hide internal directories.