term

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TerminalLineTypeTask = iota + 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

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

func NewTerminal

func NewTerminal() *Terminal

func (*Terminal) Box

func (t *Terminal) Box(text string)

func (*Terminal) Error

func (t *Terminal) Error(msg string, err error)

func (*Terminal) Fatal

func (t *Terminal) Fatal(msg string, err error)

func (*Terminal) InProgressTask

func (t *Terminal) InProgressTask(description string)

func (*Terminal) LineBreak

func (t *Terminal) LineBreak()

func (*Terminal) Section

func (t *Terminal) Section(title string)

func (*Terminal) Success

func (t *Terminal) Success(txt string)

func (*Terminal) TaskFailed

func (t *Terminal) TaskFailed(err error)

func (*Terminal) TaskSucceeded

func (t *Terminal) TaskSucceeded()

func (*Terminal) Text

func (t *Terminal) Text(txt string)

type TerminalLine

type TerminalLine struct {
	Type        int
	Description string
	Completed   bool
	Start       time.Time
	Duration    time.Duration
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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