prompt

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Confirmed

type Confirmed struct {
	Value bool
}

type Done

type Done struct {
	Value string
}

type InputModel

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

func NewInputModel

func NewInputModel(ip InputParams) InputModel

func (InputModel) Focus

func (m InputModel) Focus() tea.Cmd

func (InputModel) Init

func (m InputModel) Init() tea.Cmd

func (InputModel) Update

func (m InputModel) Update(msg tea.Msg) (InputModel, tea.Cmd)

func (InputModel) View

func (m InputModel) View() string

type InputParams added in v1.2.1

type InputParams struct {
	Label       string
	Value       string
	PlaceHolder string
}

type QuestionModel

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

func NewQuestionModel

func NewQuestionModel(text string) QuestionModel

func (QuestionModel) Focus

func (m QuestionModel) Focus() tea.Cmd

func (QuestionModel) Init

func (m QuestionModel) Init() tea.Cmd

func (QuestionModel) Update

func (m QuestionModel) Update(msg tea.Msg) (QuestionModel, tea.Cmd)

func (QuestionModel) View

func (m QuestionModel) View() string

Jump to

Keyboard shortcuts

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