ui

package
v0.0.0-...-3c4e54e Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

ui/app.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailModel

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

DetailModel displays a single LogRecord in structured or raw JSON format.

func NewDetailModel

func NewDetailModel(record logpkg.LogRecord, width, height int) DetailModel

NewDetailModel creates a DetailModel for the given record.

func (*DetailModel) SetSize

func (m *DetailModel) SetSize(width, height int)

SetSize updates the viewport dimensions.

func (DetailModel) Update

func (m DetailModel) Update(msg tea.Msg) (DetailModel, tea.Cmd)

Update handles key messages for the detail view.

func (DetailModel) View

func (m DetailModel) View() tea.View

View renders the detail view.

type JQInputModel

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

JQInputModel is a modal text input for entering jq expressions.

func NewJQInputModel

func NewJQInputModel(initialExpr string, width int, shape jq.Shape) JQInputModel

NewJQInputModel creates a new jq input modal with the given initial expression.

func (*JQInputModel) SetError

func (m *JQInputModel) SetError(errMsg string)

SetError displays an error message below the input.

func (JQInputModel) Update

func (m JQInputModel) Update(msg tea.Msg) (JQInputModel, tea.Cmd)

Update handles messages for the jq input modal.

func (JQInputModel) Value

func (m JQInputModel) Value() string

Value returns the current input text.

func (JQInputModel) View

func (m JQInputModel) View() string

View renders the jq input modal.

type Model

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

Model is the top-level bubbletea model for hustle.

func New

func New(records []logpkg.LogRecord, skipped int, formatName string) Model

New creates the top-level model with loaded records.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) Update

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

Update implements tea.Model.

func (Model) View

func (m Model) View() tea.View

View implements tea.Model.

Jump to

Keyboard shortcuts

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