Documentation
¶
Overview ¶
Package uxBlock provides building blocks for UX and communication with a user.
Index ¶
- func Run[T any](model tea.Model, get GetFunc[T], opts ...tea.ProgramOption) (T, error)
- func Void(tea.Model) (struct{}, error)
- type Blocks
- func (b *Blocks) GetDebugFileLogger() logger.Logger
- func (b *Blocks) GetOutputLogger() logger.Logger
- func (b *Blocks) LogDebug(message string)
- func (b *Blocks) PrintError(line styles.Line)
- func (b *Blocks) PrintErrorText(in string)
- func (b *Blocks) PrintErrorTextf(format string, args ...any)
- func (b *Blocks) PrintInfo(line styles.Line)
- func (b *Blocks) PrintInfoText(in string)
- func (b *Blocks) PrintInfoTextf(format string, args ...any)
- func (b *Blocks) PrintSuccessText(in string)
- func (b *Blocks) PrintSuccessTextf(format string, args ...any)
- func (b *Blocks) PrintWarning(line styles.Line)
- func (b *Blocks) PrintWarningText(in string)
- func (b *Blocks) PrintWarningTextf(format string, args ...any)
- func (b *Blocks) RunSpinners(ctx context.Context, spinners []*Spinner) (func(), func(msg tea.Msg))
- type GetFunc
- type Spinner
- type UxBlocks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blocks ¶ added in v1.0.38
type Blocks struct {
TerminalWidth int
TerminalHeight int
// contains filtered or unexported fields
}
func (*Blocks) GetDebugFileLogger ¶ added in v1.0.40
func (*Blocks) GetOutputLogger ¶ added in v1.0.40
func (*Blocks) PrintError ¶ added in v1.0.38
func (*Blocks) PrintErrorText ¶ added in v1.0.44
func (*Blocks) PrintErrorTextf ¶ added in v1.0.55
func (*Blocks) PrintInfoText ¶ added in v1.0.44
func (*Blocks) PrintInfoTextf ¶ added in v1.0.55
func (*Blocks) PrintSuccessText ¶ added in v1.0.46
func (*Blocks) PrintSuccessTextf ¶ added in v1.0.55
func (*Blocks) PrintWarning ¶ added in v1.0.38
func (*Blocks) PrintWarningText ¶ added in v1.0.44
func (*Blocks) PrintWarningTextf ¶ added in v1.0.55
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func (*Spinner) FinishWithLine ¶ added in v1.0.46
type UxBlocks ¶
type UxBlocks interface {
GetOutputLogger() logger.Logger
GetDebugFileLogger() logger.Logger
LogDebug(message string)
PrintInfo(line styles.Line)
PrintInfoText(string)
PrintWarning(line styles.Line)
PrintWarningText(string)
PrintError(line styles.Line)
PrintErrorText(string)
RunSpinners(ctx context.Context, spinners []*Spinner) (func(), func(msg tea.Msg))
}
Click to show internal directories.
Click to hide internal directories.