任何好的Ruby控制台应用程序宝石在那里? [英] Any good Ruby console application gems out there?

查看:148
本文介绍了任何好的Ruby控制台应用程序宝石在那里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力寻找一套用于创建控制台应用程序的工具,因为我期望在未来几个月内使用Ruby的大多数设置不会是webapps,而是服务器端脚本。 p>

我知道 highline ,我计划使用它为用户和可能的密码提示,但我知道控制台应用程序世界应该充满其他宝石,以协助和/或丰富您的纯粹的命令行应用程序。



有没有人有一些好的建议?我不太确定我真正想要什么,但是如果Ruby中有宝石可以帮助着色 ascii样艺术用户互动(类似于bash-completion),手册页类似工具(或生成器)或只是帮助创建更丰富的控制台应用程序的工作

解决方案

这里有一些控制台相关的宝石我写了你可能喜欢:





这些区域中红宝石宝石的列表:




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.

解决方案

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.

I also have some delicious tag lists of ruby gems in these areas:

这篇关于任何好的Ruby控制台应用程序宝石在那里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆