menu

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Choice  search.Choice
	Hidden  bool
	Active  func() bool // Active returns true if the user has typed the choice directly in the terminal.
	Handler func() error
}
type Menu struct {
	Items []Item
}

func New

func New(a *app.App) (*Menu, error)

Jump to

Keyboard shortcuts

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