Documentation ¶
Index ¶
- Variables
- func AskForConfirmation(message string) bool
- func AskForInput(message, defaultValue string) (string, error)
- func Bold(msg string, args ...interface{})
- func ConfirmCreateSite() bool
- func ConfirmOverwriteSite() bool
- func DoneCheck() string
- func Error(err error)
- func ErrorCheck() string
- func Track(process, success string, task func() error) error
- func TrackWithTracker(process, success string, tt *TaskTracker, task func() error) (err error)
- func Warning(warn string)
- func WorldCheck() string
- type TaskTracker
Constants ¶
This section is empty.
Variables ¶
View Source
var AssumeYes bool
View Source
var (
Term = !color.NoColor
)
Functions ¶
func AskForConfirmation ¶
func AskForInput ¶
func ConfirmCreateSite ¶
func ConfirmCreateSite() bool
func ConfirmOverwriteSite ¶
func ConfirmOverwriteSite() bool
func ErrorCheck ¶
func ErrorCheck() string
func TrackWithTracker ¶ added in v0.3.3
func TrackWithTracker(process, success string, tt *TaskTracker, 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 NewTaskTrackerWithTerm ¶ added in v0.3.3
func NewTaskTrackerWithTerm(term bool) *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)
Click to show internal directories.
Click to hide internal directories.