MadCLIbs:
User-Friendly Fill-in-the-Blank(s) UX for your Terminal Application
Seeks to mimic the familiar UX of HTML5 form elements, with placeholders, in the terminal.
Allows a program to present a line with one or more "blanks" which can be edited and cycled between
at will (with Tab
& Shift-Tab
or ⬆️ & ⬇️ keys). On Return
/new line, returns the values of the blanks (treating placeholders as a default values if no editing occured)
The name is supposed to be Mad Libs with a CLI in it, but you might also reasonably call it "Mad CLI BS" 😄
You could, in fact, use it to make a sweet Mad Libs app, but its also pretty useful for things like Dramaturg (for which it was created)
Usage
See examples for example code
Here's a quick UX demo
Contributing
- Fork it ( https://github.com/donaldguy/madCLIbs/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request