ui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssumeYes bool
View Source
var (
	Term = !color.NoColor
)

Functions

func AskForConfirmation

func AskForConfirmation(message string) bool

func AskForInput

func AskForInput(message, defaultValue string) (string, error)

func Bold

func Bold(msg string, args ...interface{})

func ConfirmCreateSite

func ConfirmCreateSite() bool

func ConfirmOverwriteSite

func ConfirmOverwriteSite() bool

func DoneCheck

func DoneCheck() string

func Error

func Error(err error)

func ErrorCheck

func ErrorCheck() string

func Track

func Track(process, success string, task func() error) (err error)

func WorldCheck

func WorldCheck() string

Types

type TaskTracker

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

func NewTaskTracker

func NewTaskTracker() *TaskTracker

func (*TaskTracker) Failure

func (t *TaskTracker) Failure(msg string)

func (*TaskTracker) Start

func (t *TaskTracker) Start(msg string)

func (*TaskTracker) Step

func (t *TaskTracker) Step(msg string)

func (*TaskTracker) Success

func (t *TaskTracker) Success(msg string)

Jump to

Keyboard shortcuts

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