logs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	viewport.KeyMap
	Top    key.Binding
	Bottom key.Binding
}

KeyMap extends the viewport keys with jumps to the start and end.

type Model

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

Model is the logs pane. It holds no client and performs no I/O; lines are appended by the caller as they arrive.

func New

func New() Model

func (Model) Append

func (m Model) Append(lines ...string) Model

Append adds lines to the end of the log. The view follows new lines while it is scrolled to the bottom and otherwise stays where it is.

func (Model) KeyMap

func (m Model) KeyMap() KeyMap

KeyMap returns the pane's key bindings for the help footer.

func (Model) SetSize

func (m Model) SetSize(w, h int) Model

SetSize sets the outer size of the pane, including its border.

func (Model) Start

func (m Model) Start() Model

Start clears the pane for a new log session.

func (Model) Update

func (m Model) Update(msg tea.Msg) (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