ux

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFormInput

func GetFormInput(
	inputForm forms.InputForm,
	title, heading string,
	indentSpaces, width int,
	tags ...string,
) error

Types

type FieldShowOption

type FieldShowOption int

Field show options

const (
	DescOnly FieldShowOption = iota
	DescAndValues
	DescAndDefaults
)

type TextForm

type TextForm struct {
	// contains filtered or unexported fields
}

func NewTextForm

func NewTextForm(
	title, heading string,
	input forms.Input,
) (*TextForm, error)

func (*TextForm) GetInput

func (tf *TextForm) GetInput(
	indentSpaces, width int,
	tags ...string,
) error

func (*TextForm) ShowInputReference

func (tf *TextForm) ShowInputReference(
	fieldShowOption FieldShowOption,
	startIndent, indentSpaces, width int,
	tags ...string,
)

Jump to

Keyboard shortcuts

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