Documentation ¶
Overview ¶
simple ui - TODO use something more sophisticated :)
Index ¶
- Constants
- Variables
- func CommandOutput(output []byte, command string, params ...string)
- func Completed(main string, sub ...string)
- func Err(err error)
- func Errf(err string, params ...interface{})
- func ExitOnError(item string, errors ...error)
- func Fail(err error)
- func Failf(err string, params ...interface{})
- func GroupCompleted(main string, sub ...string)
- func Info(message string, subMessages ...string)
- func InfoGrid(table map[string]string)
- func JSONTable(tableData TableData, writer io.Writer) error
- func Logo()
- func LogoNoColor()
- func Medal()
- func NL()
- func PrintOnError(item string, errors ...error)
- func ShellCommand(title string, commands ...string)
- func Success(message string, subMessages ...string)
- func Table(tableData TableData, writer io.Writer)
- func Vector(table []string)
- func Warn(message string, subMessages ...string)
- func WarnOnError(item string, errors ...error)
- type ArrayTable
- type TableData
Constants ¶
View Source
const IconError = "💔"
IconError emoji
View Source
const IconMedal = "🥇"
IconMedal emoji
Variables ¶
View Source
var Verbose = false
Verbose adds additional info messages e.g. in case of checking errors
Functions ¶
func CommandOutput ¶
func ExitOnError ¶
func GroupCompleted ¶
func LogoNoColor ¶
func LogoNoColor()
func PrintOnError ¶
func ShellCommand ¶
Warn shows warning in terminal
func WarnOnError ¶
Types ¶
type ArrayTable ¶
type ArrayTable [][]string
func NewArrayTable ¶
func NewArrayTable(a [][]string) ArrayTable
func (ArrayTable) Table ¶
func (a ArrayTable) Table() (header []string, data [][]string)
Click to show internal directories.
Click to hide internal directories.