huhext

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package huhext extends the standard charm/huh package with some additional input types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoopedInput

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

func NewLoopedInput

func NewLoopedInput() *LoopedInput

func (*LoopedInput) Blur

func (l *LoopedInput) Blur() tea.Cmd

Blur implements huh.Field.

func (*LoopedInput) Description

func (l *LoopedInput) Description(v string) *LoopedInput

func (*LoopedInput) Error

func (l *LoopedInput) Error() error

Error implements huh.Field.

func (*LoopedInput) Focus

func (l *LoopedInput) Focus() tea.Cmd

Focus implements huh.Field.

func (*LoopedInput) GetKey

func (l *LoopedInput) GetKey() string

GetKey implements huh.Field.

func (*LoopedInput) GetValue

func (l *LoopedInput) GetValue() any

GetValue implements huh.Field.

func (*LoopedInput) Init

func (l *LoopedInput) Init() tea.Cmd

Init implements huh.Field.

func (*LoopedInput) Key

func (l *LoopedInput) Key(v string) *LoopedInput

func (*LoopedInput) KeyBinds

func (l *LoopedInput) KeyBinds() []key.Binding

KeyBinds implements huh.Field.

func (*LoopedInput) Run

func (l *LoopedInput) Run() error

Run implements huh.Field.

func (*LoopedInput) Skip

func (l *LoopedInput) Skip() bool

Skip implements huh.Field.

func (*LoopedInput) Title

func (l *LoopedInput) Title(v string) *LoopedInput

func (*LoopedInput) Update

func (l *LoopedInput) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements huh.Field.

func (*LoopedInput) Validate added in v0.3.0

func (l *LoopedInput) Validate(fn func(v []string) error) *LoopedInput

func (*LoopedInput) Value

func (l *LoopedInput) Value(v []string) *LoopedInput

func (*LoopedInput) View

func (l *LoopedInput) View() string

View implements huh.Field.

func (*LoopedInput) WithAccessible

func (l *LoopedInput) WithAccessible(b bool) huh.Field

WithAccessible implements huh.Field.

func (*LoopedInput) WithHeight

func (l *LoopedInput) WithHeight(h int) huh.Field

WithHeight implements huh.Field.

func (*LoopedInput) WithKeyMap

func (l *LoopedInput) WithKeyMap(mp *huh.KeyMap) huh.Field

WithKeyMap implements huh.Field.

func (*LoopedInput) WithPosition

func (l *LoopedInput) WithPosition(v huh.FieldPosition) huh.Field

WithPosition implements huh.Field.

func (*LoopedInput) WithTheme

func (l *LoopedInput) WithTheme(v *huh.Theme) huh.Field

WithTheme implements huh.Field.

func (*LoopedInput) WithWidth

func (l *LoopedInput) WithWidth(v int) huh.Field

WithWidth implements huh.Field.

func (*LoopedInput) Zoom added in v0.2.0

func (l *LoopedInput) Zoom() bool

Zoom implements huh.Field.

Jump to

Keyboard shortcuts

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