4
GitHub - cqroot/prompt: User-friendly interactive prompts for Go.
source link: https://github.com/cqroot/prompt
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Prompt
User-friendly interactive prompts for Go.
Based on Bubble Tea.
Inspired by Prompts
and Gum.
Table of Contents
Features
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
.
Screenshots
Choose
Theme Default
Theme Arrow
Theme Line
MultiChoose
Theme Default
Theme Dot
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
Show help message
All components support displaying help message for shortcut keys at the bottom.
Examples:
License
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK