Documentation ¶
Index ¶
- Constants
- func Ask(question string) string
- func BrightWhite(text string) string
- func CliError(ctx *cli.Context, err error) error
- func Colorize(text string, color Color) string
- func Confirm(question string, deflt bool) bool
- func ConfirmApply() bool
- func Green(text string) string
- func Grey(text string) string
- func Hyperlink(name, url string) string
- func Info(text string, a ...interface{})
- func Magenta(text string) string
- func PrintRepositories(repos []string)
- func PrintRepository(repository string, tags []string, params map[string]string)
- func Red(text string) string
- func Select(question string, options ...string) string
- func ShowError(err error)
- type Color
- type Listener
Constants ¶
View Source
const ( CheckMark string = "\u2714" XMark string = "\u2715" )
Variables ¶
This section is empty.
Functions ¶
func BrightWhite ¶
func Confirm ¶
Confirm ask you question and return true if the answer is 'yes' or false if answer is 'no'. You need to set also default value.
func ConfirmApply ¶
func ConfirmApply() bool
func Hyperlink ¶
Print Hyperlink via OSC 8 ansi sequence. The syntax is: 'OSC 8 ; params ; url ST text OSC 8 ; ; ST' for more info see https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
func Info ¶
func Info(text string, a ...interface{})
Info is used for regular messages they're print to terminal
func PrintRepositories ¶
func PrintRepositories(repos []string)
func PrintRepository ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.