status

package
v0.0.0-...-00ab8b8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusManager

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

StatusManager's job is to handle queuing of loading states and toast notifications that you see at the bottom left of the screen.

func NewStatusManager

func NewStatusManager() *StatusManager

func (*StatusManager) AddToastStatus

func (self *StatusManager) AddToastStatus(message string, kind types.ToastKind) int

func (*StatusManager) GetStatusString

func (self *StatusManager) GetStatusString() (string, gocui.Attribute)

func (*StatusManager) HasStatus

func (self *StatusManager) HasStatus() bool

func (*StatusManager) WithWaitingStatus

func (self *StatusManager) WithWaitingStatus(message string, renderFunc func(), f func(*WaitingStatusHandle))

type WaitingStatusHandle

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

Can be used to manipulate a waiting status while it is running (e.g. pause and resume it)

func (*WaitingStatusHandle) Hide

func (self *WaitingStatusHandle) Hide()

func (*WaitingStatusHandle) Show

func (self *WaitingStatusHandle) Show()

Jump to

Keyboard shortcuts

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