Fork me on GitHub

hirb by cldwalker

A mini view framework for console/irb that's easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree and menu.

Install

gem install hirb

Description

Hirb currently provides a mini view framework for console applications, designed to improve irb’s default output. Hirb improves console output by providing a smart pager and auto-formatting output. The smart pager detects when an output exceeds a screenful and thus only pages output as needed. Auto-formatting adds a view to an output’s class. This is helpful in separating views from content (MVC anyone?). The framework encourages reusing views by letting you package them in classes and associate them with any number of output classes. Hirb comes with tree views (see Hirb::Helpers::Tree) and table views (see Hirb::Helpers::Table). By default Hirb displays Rails’ model classes as tables. Hirb also sports a nice selection menu, Hirb::Menu.

Read documentation.

Download

You can download this project in either zip or tar formats, or clone the project with Git:

$ git clone git://github.com/cldwalker/hirb

Issues

Issues, bugs, feature requests? Please report them on github.

Links

Check out blog posts related to this project.

License

MIT

Authors

Gabriel Horner (gabriel.horner [AT] gmail.com)