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
Click to show internal directories.
Click to hide internal directories.