Skip to content
/ prompt Public

✔ User-friendly, highly customizable interactive prompts for Go.

License

Notifications You must be signed in to change notification settings

cqroot/prompt

Repository files navigation

✔ Prompt

User-friendly, highly customizable interactive prompts for Go.
Based on Bubble Tea. Inspired by Prompts and Gum.

Action Status Codecov Go Report Card Go Reference Git tag Go Version

Table of Contents

Features

  1. choose lets the user choose one of several strings using the terminal ui.
  2. multichoose lets the user choose multiple strings from multiple strings using the terminal ui.
  3. input lets the user enter a string using the terminal ui. You can specify that only numbers or integers are allowed.
  4. Show help message for keymaps.
  5. Based on Bubble Tea. prompt.Prompt and all child models implement tea.Model.

Screenshots

Choose

example

choose

Modify the theme of choose:

example

choose-themes

AdvancedChoose

example

advancedchoose

MultiChoose

example

multichoose

Modify the theme of choose:

example

multichoose-themes

Input

example

input

Password input

example

input-echo-password

Password input like linux (do not display any characters)

example

input-echo-none

Only integers can be entered

example

Only numbers can be entered

example

Input with validation

example

input-with-validation

Write

example

write

Prompt Theme

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

example

prompt-themes

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:

License

MIT License.

About

✔ User-friendly, highly customizable interactive prompts for Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages