RubyGems Navigation menu

commandable 0.2.0

The easiest way to add command line control to your Ruby app. Stop wasting time writing WET (Write Everything Twice) command line interpreters, or repeatedly writing code for existing ones like optparser, then writing help/usage methods that you constantly have to update as your code changes. Now you can add a single line above an existing method and that method will be available from the command line. Best of all the help/usage instructions are automatically generated using the method itself! When you change your methods the help instructions change automajically! There's no extra effort needed on your part. The whole process can take as little as four lines of code: * You put a `command "I do something!"` line above your method. * Add a `require 'commandable'` line somewhere (I'd put it in my bin). * Then an `extend Commandable` inside your class. * And finally a call to `Commandable.execute(ARGV)` in your bin file. Don't think of Commandable as a way to add command line switches to your app but as a way to allow your app to be driven directly from the command line. No more confusing switches that mean one thing in one program and something completely different in another. (Can you believe some apps actually use `-v` for something other than "version" and `-h` for something other than "help?" Madness I say! Madness!) You can now "use your words" to let people interact with your apps in a natural way.

Gemfile:
= In die Zwischenablage kopieren Kopiert!

installieren:
=

Versionen:

  1. 0.3.2 - April 05, 2013 (29 KB)
  2. 0.3.1 - February 08, 2012 (28,5 KB)
  3. 0.2.3 - September 27, 2011 (29 KB)
  4. 0.2.2 - August 31, 2011 (29 KB)
  5. 0.2.1 - April 04, 2011 (28,5 KB)
  6. 0.2.0 - March 23, 2011 (26,5 KB)
Zeige alle Versionen (10 total)

Runtime Abhängigkeiten (1):

Development Abhängigkeiten (3):

aruba ~> 0.3
cucumber ~> 0.10
rspec ~> 2.5

Besitzer:

Autoren:

  • Mike Bethany

SHA 256-Prüfsumme:

12f6e4491d2fc8b4b1d042c17907b684c7525fe68f9e4a828238311b77f5e461

Downloads insgesamt 30.780

Für diese Version 3.791

Lizenzen:

k.A.

Erforderliche Ruby-Version: >= 1.9.2

Links: