tui

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEnoughoptions = errors.New("At least one option is required")

Functions

func StringOption

func StringOption(desc string, continueAskingUntil func(string) bool) (string, error)

Types

type Option

type Option struct {
	Description string
	Action      func() error
	PrintFn     func(position int, noDefault bool)
}

func MakeMenu

func MakeMenu(noDefault bool, options ...Option) (*Option, error)

Jump to

Keyboard shortcuts

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