Documentation ¶
Index ¶
- Variables
- type CLI
- func (c CLI) Confirmation(actionText, cancellationMessage, successMessage string) (bool, error)
- func (CLI) Input() (string, error)
- func (CLI) PrintColorizedLine(title, content string, level ergo.MessageLevel)
- func (CLI) PrintLine(content ...interface{})
- func (CLI) PrintTable(header []string, values [][]string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InfoType defines the info type color. InfoType ergo.MessageLevel = "blue" // WarningType defines the warning color. WarningType ergo.MessageLevel = "yellow" // ErrorType defines the error color. ErrorType ergo.MessageLevel = "red" // SuccessType defines the success color. SuccessType ergo.MessageLevel = "green" )
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { }
CLI struct prints the message to console.
func (CLI) Confirmation ¶
Confirmation will return true if user press ok otherwise will return false.
func (CLI) PrintColorizedLine ¶
func (CLI) PrintColorizedLine(title, content string, level ergo.MessageLevel)
PrintColorizedLine print a colorized line.
func (CLI) PrintTable ¶
PrintTable is responsible to print a table view to terminal.
Click to show internal directories.
Click to hide internal directories.