User-friendly, highly customizable interactive prompts for Go.
Based on Bubble Tea.
Inspired by Prompts
and Gum.
choose
lets the user choose one of several strings using the terminal ui.multichoose
lets the user choose multiple strings from multiple strings using the terminal ui.input
lets the user enter a string using the terminal ui. You can specify that only numbers or integers are allowed.- Show help message for keymaps.
- Based on Bubble Tea.
prompt.Prompt
and all child models implementtea.Model
.
Modify the theme of choose:
Modify the theme of choose:
Password input
Password input like linux (do not display any characters)
Only integers can be entered
Only numbers can be entered
Input with validation
All model themes can be customized. The prompt's theme can also be customized.
Some options can be passed when using these models, such as whether to display help information, etc.
All available options and examples can be seen in the following files: