prompt

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmModel

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

func NewConfirmModel

func NewConfirmModel(v recipe.Variable, styles style.Styles) ConfirmModel

func (ConfirmModel) Init

func (m ConfirmModel) Init() tea.Cmd

func (ConfirmModel) IsSubmitted

func (m ConfirmModel) IsSubmitted() bool

func (ConfirmModel) Name

func (m ConfirmModel) Name() string

func (ConfirmModel) Update

func (m ConfirmModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ConfirmModel) Value

func (m ConfirmModel) Value() interface{}

func (ConfirmModel) View

func (m ConfirmModel) View() string

type Model

type Model interface {
	tea.Model
	IsSubmitted() bool
	Name() string
	Value() interface{}
}

type SelectModel

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

func NewSelectModel

func NewSelectModel(v recipe.Variable, styles style.Styles) SelectModel

func (SelectModel) Init

func (m SelectModel) Init() tea.Cmd

func (SelectModel) IsSubmitted

func (m SelectModel) IsSubmitted() bool

func (SelectModel) Name

func (m SelectModel) Name() string

func (SelectModel) Update

func (m SelectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (SelectModel) Value

func (m SelectModel) Value() interface{}

func (SelectModel) View

func (m SelectModel) View() string

type StringModel

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

func NewStringModel

func NewStringModel(v recipe.Variable, styles style.Styles) StringModel

func (StringModel) Init

func (m StringModel) Init() tea.Cmd

func (StringModel) IsSubmitted

func (m StringModel) IsSubmitted() bool

func (StringModel) Name

func (m StringModel) Name() string

func (StringModel) Update

func (m StringModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (StringModel) Validate

func (m StringModel) Validate() error

func (StringModel) Value

func (m StringModel) Value() interface{}

func (StringModel) View

func (m StringModel) View() string

type TableModel

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

func NewTableModel

func NewTableModel(v recipe.Variable, styles style.Styles) TableModel

func (TableModel) Init

func (m TableModel) Init() tea.Cmd

func (TableModel) IsEmpty added in v1.8.0

func (m TableModel) IsEmpty() bool

func (TableModel) IsSubmitted

func (m TableModel) IsSubmitted() bool

func (TableModel) Name

func (m TableModel) Name() string

func (TableModel) Update

func (m TableModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TableModel) Value

func (m TableModel) Value() interface{}

func (TableModel) ValueAsCSV

func (m TableModel) ValueAsCSV() string

func (TableModel) View

func (m TableModel) View() string

Jump to

Keyboard shortcuts

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