selected

package
v0.0.0-...-a9c3101 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

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

func New

func New(bus commands.Bus) *Commands

func (*Commands) Render

func (c *Commands) Render(command commands.Command, code string) string

type Entry

type Entry struct {
	Code       string
	IsSelected bool
}

type Printer

type Printer interface {
	Selected(code string, pad int) string
	Unselected(code string, pad int) string
}

func PrinterDefault

func PrinterDefault() Printer

type Selection

type Selection interface {
	Render(command commands.Command, code string) string
}

Jump to

Keyboard shortcuts

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