setup

package
v0.0.0-...-8bc2e50 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *model

Types

type Input

type Input struct {
	Description string
	Default     string
	Field       textinput.Model
	OnSubmit    func(*Input, *config.Config)
}

func NewInput

func NewInput(description, placeholder string, onSubmit func(*Input, *config.Config)) *Input

func (*Input) Blur

func (i *Input) Blur()

func (*Input) Focus

func (i *Input) Focus() tea.Cmd

func (*Input) Update

func (m *Input) Update(msg tea.Msg) (*Input, tea.Cmd)

func (*Input) View

func (i *Input) View() string

Jump to

Keyboard shortcuts

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