form

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewField added in v1.3.0

func NewField(
	styler style.Style,
	label,
	description string,
	paramType appModel.ParameterType,
	options []string,
	fs afero.Fs,
) *fieldModel

func Show

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

Types

type FieldKeyMap added in v1.3.0

type FieldKeyMap struct {
	// Keybindings used when browsing the list.
	CursorUp   key.Binding
	CursorDown key.Binding
	Apply      key.Binding

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

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

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 WithFS added in v1.3.0

func WithFS(fs afero.Fs) Option

func WithIn

func WithIn(input io.Reader) Option

func WithOut

func WithOut(out io.Writer) Option

func WithStyler

func WithStyler(styler style.Style) Option

Jump to

Keyboard shortcuts

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