input

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiSelect

type MultiSelect[T comparable] struct {
	// contains filtered or unexported fields
}

func NewMultiSelect

func NewMultiSelect[T comparable](title string) *MultiSelect[T]

func (*MultiSelect[T]) FetchOptions

func (i *MultiSelect[T]) FetchOptions(fn func() ([]huh.Option[T], error)) error

func (*MultiSelect[T]) Len

func (i *MultiSelect[T]) Len() int

func (*MultiSelect[T]) Render

func (i *MultiSelect[T]) Render() *huh.MultiSelect[T]

func (*MultiSelect[T]) String

func (i *MultiSelect[T]) String() string

func (*MultiSelect[T]) Value

func (i *MultiSelect[T]) Value() []T

type SelectInput

type SelectInput[T comparable] struct {
	// contains filtered or unexported fields
}

func NewSelect

func NewSelect[T comparable](title string) *SelectInput[T]

func (*SelectInput[T]) FetchOptions

func (i *SelectInput[T]) FetchOptions(fn func() ([]huh.Option[T], error)) error

func (*SelectInput[T]) Len

func (i *SelectInput[T]) Len() int

func (*SelectInput[T]) Render

func (i *SelectInput[T]) Render() *huh.Select[T]

func (*SelectInput[T]) Value

func (i *SelectInput[T]) Value() T

type Text

type Text struct {
	Text string
	// contains filtered or unexported fields
}

func NewText

func NewText(title string) *Text

func (*Text) Render

func (i *Text) Render() *huh.Text

func (*Text) String

func (i *Text) String() string

func (*Text) WithLines added in v0.2.5

func (i *Text) WithLines(lines int) *Text

Jump to

Keyboard shortcuts

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