ui

package
Version: v2.8.0-rc.24+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbortedColor = color.New(color.FgMagenta)
View Source
var FailedColor = color.New(color.FgRed)
View Source
var PausedColor = color.New(color.FgCyan)
View Source
var PendingColor = color.New(color.FgWhite)
View Source
var StartedColor = color.New(color.FgYellow)
View Source
var SucceededColor = color.New(color.FgGreen)

Functions

func Embolden

func Embolden(message string, params ...interface{}) string

func ForTTY

func ForTTY(dst io.Writer) (io.Writer, bool)

func WarningColor

func WarningColor(message string, params ...interface{}) string

Types

type Data

type Data []TableRow

func (Data) Len

func (d Data) Len() int

func (Data) Less

func (d Data) Less(i int, j int) bool

func (Data) Swap

func (d Data) Swap(i int, j int)

type Table

type Table struct {
	Headers TableRow
	Data    Data
}

func (Table) Render

func (table Table) Render(dst io.Writer, isPrintHeader bool) error

type TableCell

type TableCell struct {
	Contents string
	Color    *color.Color
}

type TableRow

type TableRow []TableCell

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL