Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good Ruby console application gems out there? [closed]

I'm digging around trying to find a good set of tools for creating console applications, as most of the settings I expect to be using Ruby in the coming months won't be webapps, but server-side scripts.

I know of highline, and I do plan on using that for user and possible password prompts, but I know that the Console application world should be chock-full of other gems to assist and/or enrich your plain 'ol command-line apps.

Does anyone have some good suggestions? I'm not exactly sure what I'm really looking for, but I wouldn't be surprised if there were gems in Ruby to help with colorizing, ascii-like art, user-interaction (similar to bash-completion), man-page similar tools (or generators) or just helpers for making the work of creating a richer console app not come across as being so difficult to understand, or plain and cryptic.

like image 608
Nick Klauer Avatar asked Jul 30 '09 16:07

Nick Klauer


People also ask

How do I know if a ruby gem is installed?

Using gem search -r , you can search RubyGems' repository. For instance, gem search -r rails will return a list of Rails-related gems. With the --local ( -l ) option, you would perform a local search through your installed gems.

What is Rails gem?

Gems in Rails are libraries that allow any Ruby on Rails developer to add functionalities without writing code. You can also call Ruby on Rails gems as plugins for adding features. A Ruby gem enables adding features without creating the code again and again.


2 Answers

Here's some console related gems I've written you may like:

  • bond - Custom readline autocompletion of methods, arguments and more.
  • hirb - Framework for formatting ruby objects. Comes with tables, trees, selection menus and a smart pager.
  • alias - Creates, manages and saves aliases for class methods, instance methods, constants, delegated methods.
like image 135
cldwalker Avatar answered Jan 01 '23 08:01

cldwalker


My table_print gem lets you see IRB output in easy-to-scan table format. Super simple, lightweight, customizable. http://tableprintgem.com

like image 39
Chris Doyle Avatar answered Jan 01 '23 08:01

Chris Doyle