prompt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIssuePrompt

func NewIssuePrompt(m *Model)

func NewTimeEntryPrompt

func NewTimeEntryPrompt(m *Model)

Types

type Model

type Model struct {
	Style      lipgloss.Style
	Kind       string
	Action     string
	FocusIndex int
	Inputs     map[string]*textinput.Model
	InputKeys  []string
	CursorMode textinput.CursorMode
}

func (*Model) Clear

func (model *Model) Clear()

func (*Model) Down

func (model *Model) Down()

func (*Model) GetInput

func (model *Model) GetInput() map[string]*textinput.Model

func (*Model) GetValues

func (model *Model) GetValues() map[string]string

return map with all collected values

func (*Model) NewPrompt

func (model *Model) NewPrompt(pane string)

func (*Model) SetInputs

func (model *Model) SetInputs(inputs map[string]*textinput.Model, order []string)

func (*Model) SetKind

func (model *Model) SetKind(kind, action string)

func (Model) SubmitSelected

func (model Model) SubmitSelected() bool

func (*Model) Up

func (model *Model) Up()

func (*Model) Update

func (m *Model) Update() tea.Cmd

func (*Model) UpdateInputs

func (m *Model) UpdateInputs(msg tea.Msg) tea.Cmd

func (Model) View

func (m Model) View() string

func (*Model) WrapIndex

func (model *Model) WrapIndex()

Jump to

Keyboard shortcuts

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