Documentation
¶
Overview ¶
Package tui provides the shared BubbleTea TUI widget used by every OctalWeb CLI for the `up` and `down` commands. Styles live here so callers can reference them for post-TUI output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( StyleBrand = lipgloss.NewStyle().Foreground(styles.Purple).Bold(true) StyleStep = lipgloss.NewStyle().Foreground(styles.Mint) StyleMuted = lipgloss.NewStyle().Foreground(styles.Muted) StyleError = lipgloss.NewStyle().Foreground(styles.Error) StyleSuccess = lipgloss.NewStyle().Foreground(styles.Mint) StyleSpinner = lipgloss.NewStyle().Foreground(styles.Purple) StyleLog = lipgloss.NewStyle().Foreground(styles.Fg) StyleStatusRunning = lipgloss.NewStyle().Foreground(styles.Mint) StyleTabActive = lipgloss.NewStyle().Foreground(styles.Mint).Bold(true) StyleTab = lipgloss.NewStyle().Foreground(styles.Muted) StyleWarn = lipgloss.NewStyle().Foreground(styles.Warn) )
Exported styles - available to callers for post-TUI output.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
Finder is satisfied by any type that can locate a project / module root. Both the Foreman's RootFinder and every Brigadier's ModuleFinder satisfy it.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the BubbleTea model shared by every OctalWeb CLI's up / down command. It shows a spinner during pre-flight checks, then streams Tilt output into a bounded, scrollable viewport with a key-hint bar below it.
func NewDownModel ¶
NewDownModel constructs the TUI model for the `down` command.
func (Model) FinalErr ¶
FinalErr returns the tilt process exit error. Returns nil when the stop was user-initiated (Ctrl+C) - that is not an error.
func (Model) LegacyMode ¶
LegacyMode reports whether the user pressed 't' to switch to tilt's legacy terminal mode.