ui

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

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

func NewPrompt

func NewPrompt(text string) *Prompt

func (*Prompt) Mask

func (p *Prompt) Mask() *Prompt

func (*Prompt) Value

func (p *Prompt) Value() string

type Prompter

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

func NewPrompter

func NewPrompter(prompts []*Prompt) *Prompter

func (*Prompter) Init

func (p *Prompter) Init() tea.Cmd

func (*Prompter) Update

func (p *Prompter) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Prompter) View

func (p *Prompter) View() string

Jump to

Keyboard shortcuts

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