tui

package
v0.0.309 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(ctx context.Context, title, description, placeholder string) (string, error)

func AskSecret

func AskSecret(ctx context.Context, title, desc, placeholder string) ([]byte, error)

func ListSelect added in v0.0.168

func ListSelect[V list.DefaultItem](ctx context.Context, title string, items []V) (list.DefaultItem, error)

func SelectTable added in v0.0.168

func SelectTable(ctx context.Context, cols []Column, rows []Row) (table.Row, error)

func StaticTable added in v0.0.168

func StaticTable(ctx context.Context, cols []Column, rows []Row) error

func Table added in v0.0.168

func Table(ctx context.Context, cols []Column, rows []Row, selectRow bool) (table.Row, error)

Types

type Column added in v0.0.174

type Column struct {
	Key                ColumnKey
	Title              string
	MinWidth, MaxWidth int
}

type ColumnKey added in v0.0.174

type ColumnKey string

type Row added in v0.0.174

type Row map[ColumnKey]string

Jump to

Keyboard shortcuts

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