refresh

package
v0.0.0-...-62e5a7b Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliOutput

type CliOutput interface {
	Renderable
	NoColor() string
	WithColor() string
}

func Concat

func Concat(delim CliOutput, outputs ...CliOutput) CliOutput

func FromString

func FromString(s string) CliOutput

func FromStrings

func FromStrings(noColor, withColor string) CliOutput

func NoShow

func NoShow() CliOutput

func WithColors

func WithColors(s string, colors ...color.Attribute) CliOutput

type Printer

type Printer interface {
	Print(output CliOutput) error
}

TODO(rchew) spinner semantics work better I think

func NewPrinter

func NewPrinter(w io.Writer) Printer

type Renderable

type Renderable interface {
	Render() bool
}

Jump to

Keyboard shortcuts

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