prompti is a collection of TUI blocks initially created to be used by sveltin and its use cases. We worked on it to allow customizations and make it available as standalone package. Here it is!
Install the latest version by using the go get command. Ensure to have (Go v1.18 or higher) installed on your machine.
go get github.com/sveltinio/prompti@latestinput is a terminal input prompt component supporting default values, validations (type ValidateFunc func(string) error), password input echo and customizable styles.
It also provides ready to use validation functions for some common use cases:
- alphanumeric
- digits only
- integers
- floats
- email address
- url
choose is a customizable component for browsing a set of items.
confirm is a customizable component to confirm an anction.
toggle is a customizable component to confirm an anction. It works like confirm but it renders the options inline and not in a box.
progressbar is a customizable component for progress meter.
prompti is free and open-source software licensed under the MIT License.
Made with Charm.










