program

package
v2.0.0-...-38ad2e1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTeaProgram

func NewTeaProgram(model tea.Model, opts ...tea.ProgramOption) *tea.Program

NewTeaProgram will create a BubbleTea program that automatically sets the no input option if you are not on a TTY, so you can run the debugger. Call it just as you would call tea.NewProgram().

func RunProgram

func RunProgram(ctx context.Context, f func(p Program, ctx context.Context) error) error

Types

type Program

type Program interface {
	Start() error
	Send(msg tea.Msg)
	Quit()
}

Program An interface describing the parts of BubbleTea's Program that we actually use.

type ProgressMsg

type ProgressMsg *float64

type PsqlMsg

type PsqlMsg *string

type StatusMsg

type StatusMsg string

type StatusWriter

type StatusWriter struct {
	Program
}

func (StatusWriter) Write

func (t StatusWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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