RubyFlow The Ruby and Rails community linklog

Terminal input with tty-prompt

I’m happy to introduce tty-prompt for gathering user input in terminal. You can ask user for a masked input, keypress, multiline text or to select a single or multiple options from a list. The library sports a robust validation mechanism that provides dynamic error messages. Finally, tty-prompt comes with many conversion methods for converting input to desired type. Give it a try and let me know what you think!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in