Documentation ¶
Overview ¶
Package ui helps get user input from the terminal, and formats output.
Index ¶
- func Accept(question string) bool
- func Blue(in string) string
- func BlueBold(in string) string
- func GetInput(in *os.File) (string, error)
- func Green(in string) string
- func GreenBold(in string) string
- func Red(in string) string
- func RedBold(in string) string
- func RemoveColor(str string) string
- func SelectOption(title, usage string, options []string) (string, error)
- func SpinWhileThingsHappen(title string, f func() error) error
- func UserChoice(msg string, args ...interface{})
- func Yellow(in string) string
- func YellowUnderlined(in string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveColor ¶ added in v0.7.1
func SelectOption ¶
SelectOption among several, or input a new one, and return user input.
func SpinWhileThingsHappen ¶
SpinWhileThingsHappen is a way to launch a function and display a spinner while it is being executed.
func YellowUnderlined ¶
YellowUnderlined outputs a string in yellow, underlined.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.