tui

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package tui hosts the Bubble Tea TUI for prowl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(dataDir, profile string) error

Run boots the TUI against the real config + store + GitHub client.

func RunWatch added in v0.3.0

func RunWatch(dataDir, profile string, interval time.Duration) error

RunWatch behaves like Run but auto-refreshes the PR list every interval. A non-positive interval disables auto-refresh (same as Run).

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the Bubble Tea state for prowl's TUI.

func New

func New(cfg *config.Config, s *store.Store, client data.PRClient) *Model

New builds an unstarted Model.

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) SetRefreshInterval added in v0.3.0

func (m *Model) SetRefreshInterval(d time.Duration)

SetRefreshInterval enables `prowl watch`-style auto-refresh by scheduling a background fetch every d. A non-positive d disables auto-refresh.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

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