ui

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Printf

func Printf(format string, args ...interface{})

func Warnf

func Warnf(format string, args ...interface{})

Types

type CLI

type CLI struct {
	Stdout io.Writer
	Stderr io.Writer
}

func (*CLI) Errorf

func (c *CLI) Errorf(format string, args ...interface{})

func (*CLI) Infof

func (c *CLI) Infof(format string, args ...interface{})

func (*CLI) Printf

func (c *CLI) Printf(format string, args ...interface{})

func (*CLI) Warnf

func (c *CLI) Warnf(format string, args ...interface{})

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

Spinner is a spinner for CLI

func NewSpinner

func NewSpinner(text string) *Spinner

NewSpinner instantiate Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop()

type TableWriter

type TableWriter struct {
	// contains filtered or unexported fields
}

func NewTableWriter

func NewTableWriter(writer io.Writer) *TableWriter

func (*TableWriter) Show

func (t *TableWriter) Show(plugins plugin.Plugins)

type UI

type UI interface {
	Printf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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