ui

package
v6.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AbortedColor = color.New(color.FgMagenta)
View Source
var ErroredColor = color.New(color.FgRed, color.Bold)
View Source
var FailedColor = color.New(color.FgRed)
View Source
var OffColor = color.New(color.Faint)
View Source
var OnColor = color.New(color.FgCyan)
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 PresentVersion

func PresentVersion(version atc.Version) string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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