ui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DispatchFn

type DispatchFn func(string, model.Finding) (handled, doQuit bool, err error)

DispatchFn performs action with the finding based on the pressed key.

type Program

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

Program displays list of findings and calls DispatchFn on key presses.

func NewProgram

func NewProgram(d DispatchFn) *Program

NewProgram returns Program instance using [d] for dispatching actions.

func (*Program) Run

func (p *Program) Run(ctx context.Context, findings []model.Finding) error

Run executes the Program.

Jump to

Keyboard shortcuts

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