package
0.9.0
Repository: https://github.com/erikgeiser/promptkit.git
Documentation: pkg.go.dev

# Functions

New creates a new text input.
NewDefaultKeyMap returns a KeyMap with sensible default key mappings that can also be used as a starting point for customization.
NewModel returns a new model based on the provided confirmation prompt.
NewValue creates a Value from a bool.

# Constants

DefaultResultTemplate defines the default appearance with which the finale result of the prompt is presented.
DefaultTemplate defines the default appearance of the text input and can be copied as a starting point for a custom template.
ResultTemplateArrow is the ResultTemplate that matches TemplateArrow.
ResultTemplateYN is the ResultTemplate that matches TemplateYN.
TemplateArrow is a template where the current choice is indicated by an arrow.
TemplateYN is a classic template with ja [yn] indicator where the current value is capitalized and bold.

# Variables

No is a possible value of the confirmation prompt that corresponds to false.
Undecided is a possible value of the confirmation prompt that is used when neither Yes nor No are selected.
Yes is a possible value of the confirmation prompt that corresponds to true.

# Structs

Confirmation represents a configurable confirmation prompt.
KeyMap defines the keys that trigger certain actions.
Model implements the bubbletea.Model for a confirmation prompt.