Cinatra
Cinatra is a library for command based console application. It is like Sinatra.
Feature
- Easy to define commands
- Easy to run
- Completion for commands
- Similar to Sinatra :)
Usage
require 'cinatra'
command 'todos' do |arg|
show_todos
end
sub command:
require 'cinatra'
command 'todo add' do |arg|
TODOS << arg
end
Run
% ruby app.rb
Default Commands
help:
> help
help Show help
exit Exit
...
exit:
> exit
%
Installation
gem install cinatra
Copyright
Copyright (c) 2009 jugyo. See LICENSE for details.