Project

madCLIbs

0.0
No commit activity in last 3 years
No release in over 3 years
Seeks to mimic the familiar UX of HTML5 form elements, with placeholder attributes, in an ANSI-compatible 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 up & down arrow keys). On new line, returns the values of the blanks (treating placeholders as a default values if no editing occured)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6

Runtime

 Project Readme

MadCLIbs:
User-Friendly Fill-in-the-Blank(s) UX for your Terminal Application

Gem Version Code Climate Dependency Status

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

Demo Gif

Contributing

  1. Fork it ( https://github.com/donaldguy/madCLIbs/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request