display

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgLevel

type MsgLevel int
const (
	MsgInfo MsgLevel = iota
	MsgNotice
	MsgWarn
	MsgError
)

func (MsgLevel) String

func (m MsgLevel) String() string

type Status

type Status int
const (
	StatusIdle Status = iota
	StatusRunning
	StatusWaiting
	StatusSucceeded
	StatusFailed
)

func (Status) String

func (s Status) String() string

type UI

type UI interface {
	UpdateStatus(s Status, msg string)
	Display(level MsgLevel, msg string)
	ClearStatus()
}
var (
	CLI  UI = _CLI{}
	NONE UI = _NONE{}
)

Jump to

Keyboard shortcuts

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