Documentation
¶
Overview ¶
Package prompt provides interactive prompt functionality using Bubble Tea.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextPrompt ¶
type TextPrompt struct {
Value string
Default interface{}
// contains filtered or unexported fields
}
TextPrompt is a simple text input prompt
func NewTextPrompt ¶
func NewTextPrompt(prompt string, defaultValue interface{}) TextPrompt
NewTextPrompt creates a new text prompt with the given prompt text and optional default value
func (TextPrompt) Init ¶
func (m TextPrompt) Init() tea.Cmd
Init initializes the prompt (returns no command)
Click to show internal directories.
Click to hide internal directories.