task

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Unlicense Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

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

func New

func New(category string, description string, f func(t *Task) error) *Task

New creates a new task

func (*Task) Run

func (t *Task) Run() error

Run runs the task, providing animated output as it does so. If the task fails, the error from the task function will be returned here.

func (*Task) Skip

func (t *Task) Skip()

func (*Task) StopAnimation

func (t *Task) StopAnimation()

Jump to

Keyboard shortcuts

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