Project

cinatra

0.01
No commit activity in last 3 years
No release in over 3 years
Cinatra is a library for command based console application. It is like Sinatra. :)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

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

command 'todos' do |arg|
  show_todos
end

sub command:

command 'todo add' do |arg|
  TODOS << arg
end

write help:

command 'todos', <<HELP do |arg|
list todos
HELP
  ...
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.