Documentation
¶
Index ¶
- func Confirm(prompt string, defaultYes bool) (bool, error)
- func Error(format string, a ...interface{}) string
- func Info(format string, a ...interface{}) string
- func PrintError(err error, format string, a ...interface{})
- func PrintInfo(format string, a ...interface{})
- func PrintSuccess(format string, a ...interface{})
- func PrintWarning(format string, a ...interface{})
- func Success(format string, a ...interface{}) string
- func Warning(format string, a ...interface{}) string
- type ProgressBar
- type Spinner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintError ¶
PrintError prints an error message
func PrintSuccess ¶
func PrintSuccess(format string, a ...interface{})
PrintSuccess prints a success message
func PrintWarning ¶
func PrintWarning(format string, a ...interface{})
PrintWarning prints a warning message
Types ¶
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
ProgressBar is a simple progress bar implementation
func NewProgressBar ¶
func NewProgressBar(max int, description string) *ProgressBar
NewProgressBar creates a new progress bar
Click to show internal directories.
Click to hide internal directories.