Documentation ¶
Index ¶
- Constants
- func GetProgram(ctx context.Context) *tea.Program
- func NewLogCore(opts logging.LogOpts, verbosity Verbosity, program *tea.Program) zapcore.Core
- func NewModel(verbosity Verbosity) *model
- func RenderLogo() string
- func WithProgram(ctx context.Context, p *tea.Program) context.Context
- func WithProgress(ctx context.Context, progress Progress) context.Context
- type ErrorMessage
- type LogCore
- type LogMessage
- type LogProgress
- type OutputMessage
- type Progress
- type RingBuffer
- func (r *RingBuffer[T]) Cap() int
- func (r *RingBuffer[T]) Clear()
- func (r *RingBuffer[T]) ForEach(f func(int, T))
- func (r *RingBuffer[T]) Get(i int) (T, bool)
- func (r *RingBuffer[T]) Len() int
- func (r *RingBuffer[T]) Pop() T
- func (r *RingBuffer[T]) Push(v T)
- func (r *RingBuffer[T]) Set(i int, v T) bool
- type TuiProgress
- type UpdateMessage
- type Verbosity
Constants ¶
View Source
const LogoColor = "#816FA6"
Variables ¶
This section is empty.
Functions ¶
func NewLogCore ¶
func RenderLogo ¶
func RenderLogo() string
Types ¶
type ErrorMessage ¶ added in v0.7.2
type ErrorMessage struct {
Message string
}
type LogCore ¶
func (*LogCore) Check ¶
func (c *LogCore) Check(e zapcore.Entry, ce *zapcore.CheckedEntry) *zapcore.CheckedEntry
type LogMessage ¶
type LogProgress ¶
func (LogProgress) Complete ¶
func (p LogProgress) Complete(status string)
func (LogProgress) Update ¶
func (p LogProgress) Update(status string, current, total int)
func (LogProgress) UpdateIndeterminate ¶
func (p LogProgress) UpdateIndeterminate(status string)
type OutputMessage ¶
type Progress ¶
type Progress interface { // Update updates the progress status with the current and total count. Update(status string, current, total int) UpdateIndeterminate(status string) Complete(status string) }
func GetProgress ¶
type RingBuffer ¶
type RingBuffer[T any] struct { // contains filtered or unexported fields }
func NewRingBuffer ¶
func NewRingBuffer[T any](size int) *RingBuffer[T]
func (*RingBuffer[T]) Cap ¶
func (r *RingBuffer[T]) Cap() int
func (*RingBuffer[T]) Clear ¶
func (r *RingBuffer[T]) Clear()
func (*RingBuffer[T]) ForEach ¶
func (r *RingBuffer[T]) ForEach(f func(int, T))
func (*RingBuffer[T]) Get ¶
func (r *RingBuffer[T]) Get(i int) (T, bool)
func (*RingBuffer[T]) Len ¶
func (r *RingBuffer[T]) Len() int
func (*RingBuffer[T]) Pop ¶
func (r *RingBuffer[T]) Pop() T
func (*RingBuffer[T]) Push ¶
func (r *RingBuffer[T]) Push(v T)
func (*RingBuffer[T]) Set ¶
func (r *RingBuffer[T]) Set(i int, v T) bool
type TuiProgress ¶
func (*TuiProgress) Complete ¶
func (p *TuiProgress) Complete(status string)
func (*TuiProgress) Update ¶
func (p *TuiProgress) Update(status string, current, total int)
func (*TuiProgress) UpdateIndeterminate ¶
func (p *TuiProgress) UpdateIndeterminate(status string)
type UpdateMessage ¶
type Verbosity ¶
type Verbosity int
func (Verbosity) CombineLogs ¶
CombineLogs controls whether to show all logs commingled in the TUI. In other words, sorted by timestamp, not grouped by construct.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.