form

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(parameters []internalModel.Parameter, okButton string, options ...Option) ([]string, bool)

Types

type KeyMap

type KeyMap struct {
	// Keybindings used when browsing the list.
	CursorUp   key.Binding
	CursorDown key.Binding
	Yes        key.Binding
	No         key.Binding
	Apply      key.Binding
	Next       key.Binding

	// The quit keybinding. This won't be caught when filtering.
	Quit key.Binding
}

KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which is used to render the menu menu.

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithIn

func WithIn(input io.Reader) Option

func WithOut

func WithOut(out io.Writer) Option

func WithStyler

func WithStyler(styler style.Style) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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