Documentation
¶
Overview ¶
Package progress renders live, in-place progress for resource deployment and deletion. The interactive renderer is built on Bubble Tea and the Bubbles spinner component (both already used elsewhere in the CLI); when stdout is not a terminal it falls back to a no-op listener that simply drains the channel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener interface {
// Run consumes updates from the progress channel until it is closed. This
// should be called from a goroutine because it blocks.
Run()
}
Listener renders progress updates received on a channel until the channel is closed. Run blocks and is intended to be called from a goroutine.
func NewListener ¶
func NewListener(progressChan <-chan clients.ResourceProgress) Listener
NewListener returns an interactive spinner-based Listener when stdout is a terminal, or a no-op Listener that drains the channel otherwise.
Click to show internal directories.
Click to hide internal directories.