Documentation ¶
Index ¶
- Variables
- func Domains(domains []string) string
- func Exit() tea.Msg
- func List[T any](items []ListItem[T]) list.Model
- func NewDriverTUI(ctx context.Context) (*Driver, Program)
- func WaitingSpinner() spinner.Model
- type Driver
- func (d *Driver) Activate(ctx context.Context, model tea.Model)
- func (d *Driver) ErrorView() string
- func (d *Driver) Golden() string
- func (d *Driver) Init() tea.Cmd
- func (d *Driver) Pause() chan<- struct{}
- func (d *Driver) Stop()
- func (d *Driver) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (d *Driver) View() string
- type Error
- type ListItem
- type MessageFunc
- type MessageLines
- type Program
- type Section
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Header = header.SetString("\n#").Render Skip = header.Faint(true).SetString("\n# Skipped:").Render Hint = hint.Render Underline = lipgloss.NewStyle().Underline(true).Render Warning = header.SetString(bgBanana(fgMidnight("!")) + fgBanana(" Warning:")).Render StepAlert = lipgloss.NewStyle().SetString(" " + Announce("!")).Render StepDone = lipgloss.NewStyle().SetString(" -").Render StepHint = hint.SetString(" |").Render StepNext = hint.SetString(" -").Render StepInProgress = lipgloss.NewStyle().SetString(" *").Render StepPrompt = lipgloss.NewStyle().SetString(" " + Prompt.Render("?")).Render StepWarning = header.SetString(" " + bgBanana(fgMidnight("!")) + fgBanana(" Warning:")).Render Accentuate = lipgloss.NewStyle().Italic(true).Render Action = lipgloss.NewStyle().Bold(true).Foreground(colorBrandPrimary).Render Announce = lipgloss.NewStyle().Background(colorBrandSecondary).Render Danger = lipgloss.NewStyle().Bold(true).Foreground(colorDanger).Render Emphasize = lipgloss.NewStyle().Bold(true).Render EmphasizeUnderline = lipgloss.NewStyle().Bold(true).Underline(true).Render Titlize = lipgloss.NewStyle().Bold(true).Render URL = lipgloss.NewStyle().Faint(true).Underline(true).Render Whisper = lipgloss.NewStyle().Faint(true).Render Prompt = lipgloss.NewStyle().Foreground(colorBrandPrimary) Waiting = spinner.MiniDot )
Functions ¶
func WaitingSpinner ¶ added in v0.0.10
Types ¶
type Driver ¶
type Driver struct { Program // TUI mode TTY termenv.File // contains filtered or unexported fields }
func NewDriverTTY ¶
func NewDriverTest ¶ added in v0.0.14
type ListItem ¶
func (ListItem[T]) FilterValue ¶
type MessageFunc ¶ added in v0.0.35
func (MessageFunc) Init ¶ added in v0.0.35
func (MessageFunc) Init() tea.Cmd
func (MessageFunc) View ¶ added in v0.0.35
func (m MessageFunc) View() string
type MessageLines ¶ added in v0.0.35
type MessageLines []string
func (MessageLines) Init ¶ added in v0.0.35
func (MessageLines) Init() tea.Cmd
func (MessageLines) View ¶ added in v0.0.35
func (m MessageLines) View() string
Click to show internal directories.
Click to hide internal directories.