cli

package
v0.0.0-...-541f7c5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ScanDefaultString string
	ScanAllowEmpty    bool
)
View Source
var (
	ErrConfigEditor = errors.New("config.core.editor is not set")
)
View Source
var (
	SpinnerSymbol int = 14
)

Functions

func ErrorLog

func ErrorLog(err error)

func FileContent

func FileContent(file string) (content string, err error)

func Filter

func Filter(command string, r io.Reader, w io.Writer) error

func Open

func Open(link string) error

func Run

func Run(command string, args ...string) error

func Scan

func Scan(message string, allowEmpty bool) (string, error)

func TempFile

func TempFile(filename string) (*os.File, error)

func Underline

func Underline(message, target string)

Types

type Spinner

type Spinner struct {
	*spinner.Spinner
	// contains filtered or unexported fields
}

func NewSpinner

func NewSpinner(text string) *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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