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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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