prompt
prompt copied to clipboard
✔ User-friendly, highly customizable interactive prompts for Go.
✔ Prompt
User-friendly, highly customizable interactive prompts for Go.
Based on Bubble Tea.
Inspired by Prompts
and Gum.
Table of Contents
- Features
- Screenshots
- Choose
- AdvancedChoose
- MultiChoose
- Input
- Write
- Prompt Theme
- Customization
- License
Features
chooselets the user choose one of several strings using the terminal ui.multichooselets the user choose multiple strings from multiple strings using the terminal ui.inputlets 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.Promptand all child models implementtea.Model.
Screenshots
Choose

Modify the theme of choose:

AdvancedChoose

MultiChoose

Modify the theme of choose:

Input

Password input

Password input like linux (do not display any characters)

Only integers can be entered
Only numbers can be entered
Input with validation

Write

Prompt Theme
All model themes can be customized. The prompt's theme can also be customized.

Customization
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: