RubyGems Navigation menu

command-set 0.10.4

CommandSet is a user interface framework. Its focus is a DSL for defining commands, much like Rake or RSpec. A default readline based terminal interpreter (complete with context sensitive tab completion, and the amenities of readline: history editing, etc) is included. It could very well be adapted to interact with CGI or a GUI - both are planned. CommandSet has a lot of very nice features. First is the domain-specific language for defining commands and sets of commands. Those sets can further be neatly composed into larger interfaces, so that useful or standard commands can be resued. Optional application modes, much like Cisco's IOS, with a little bit more flexibility. Arguments have their own sub-language, that allows them to provide interface hints (like tab completion) as well as input validation. On the output side of things, CommandSet has a very flexible output capturing mechanism, which generates a tree of data as it's generated, even capturing writes to multiple places at once (even from multiple threads) and keeping everything straight. Methods that normally write to stdout are interposed and fed into the tree, so you can hack in existing scripts with minimal adjustment. The final output can be presented to the user in a number of formats, including contextual coloring and indentation, or even progress hashes. XML is also provided, although it needs some work. Templates are on the way. While you're developing your application, you might find the record and playback utilities useful. cmdset-record will start up with your defaults for your command set, and spit out an interaction script. Then you can replay the script against the live set with cmdset-playback. Great for ad hoc testing, usability surveys and general demos.

Versions:

  1. 0.10.4 - March 10, 2008 (47.5 KB)
  2. 0.10.2 - February 19, 2008 (44.5 KB)
  3. 0.10.1 - February 12, 2008 (44 KB)
  4. 0.10.0 - February 6, 2008 (44 KB)
  5. 0.9.2 - January 15, 2008 (41.5 KB)
Show all versions (12 total)

Runtime Dependencies:

Authors:

  • Judson Lester

Owners:

818d425c0610469184fe5bb3ee4c15b2

Sha 256 checksum:

03b003d6da0d884fb7a4ff149f8b82c8cc10f9034444f3eae1610a194b2148d5

Total downloads 23,106

For this version 2,221

Show all versions (12 total)

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: