inquirer.rb
Interactive user prompts on CLI for ruby.
Examples
idx = Ask.list "Look behind you...", [
"a three-headed monkey!",
"a pink pony",
"Godzilla"
]
# idx is the selected index

idx = Ask.checkbox "Monkey see, monkey...", [
"don't",
"eats Banana",
"do"
]
# idx is an array containing the selections

Installation
gem install inquirer
Compatibility
| Ruby | Linux | OS X | Windows |
|---|---|---|---|
| MRI 1.9.3 | ✔ | ✔ | ✘ |
| MRI 2.0.0 | ✔ | ✔ | ✘ |
| Rubinius 2.1.1 | ✔ | ✔ | ✘ |
| Rubinius 2.2.1 | ✔ | ✔ | ✘ |
| JRuby 1.7.x | ✘ | ✘ | ✘ |
Credit
This is basically the wonderful Inquirer.js, just done for ruby. I was unable to find a good gem to handle user interaction in ruby as well as this module does in JS.
License
Apache v2 Author: Dominik Richter
