watch

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run[Error error](ctx context.Context, fmter format.Interface, fn func(ctx context.Context) error, interval time.Duration) error

Run runs the watcher.

Types

type Format

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

func NewFormat

func NewFormat(fmter format.Interface) *Format

func (*Format) Error

func (m *Format) Error(ctx context.Context, v any) error

Error implements format.Interface.

func (*Format) Format

func (m *Format) Format(ctx context.Context, w io.Writer, v any) error

Format implements format.Interface. It does not display anything, as output is managed by Bubbletea through the View() method.

func (*Format) Init

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

Init implements tea.Model.

func (*Format) Update

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

Update implements tea.Model.

func (*Format) View

func (m *Format) View() string

View implements tea.Model.

type RefreshMsg

type RefreshMsg struct{}

Jump to

Keyboard shortcuts

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