tui

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderList

func RenderList[T Option](opts map[string]T, key string, message string) T

Types

type Cmd

type Cmd struct {
	Stdout io.Writer
	Stderr io.Writer
	Env    []string
	Dir    string
	// contains filtered or unexported fields
}

func Command

func Command(message string, name string, arg ...string) *Cmd

func (*Cmd) Run

func (s *Cmd) Run() error

type Complete

type Complete struct{}

type History

type History struct {
	Value string
}

type Item

type Item struct {
	Key  string
	Text string
}

func (Item) FilterValue

func (i Item) FilterValue() string

type Option

type Option interface {
	SetKey(string)
	Text() string
}

Jump to

Keyboard shortcuts

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