Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我应该使用什么Ruby库来构建基于控制台的应用程序?_Ruby_Shell_Console - Fatal编程技术网

我应该使用什么Ruby库来构建基于控制台的应用程序?

我应该使用什么Ruby库来构建基于控制台的应用程序?,ruby,shell,console,Ruby,Shell,Console,我想用Ruby构建一个基于控制台的应用程序。我很快在谷歌上找到了下面所有的库。请有人建议我该用哪一种。多谢各位 选项分析器(http://ruby-doc.org/stdlib-1.9.3/libdoc/optparse/rdoc/OptionParser.html) 雷神(https://github.com/wycats/thor) 鲁比康(http://koraktor.de/rubikon/) 特罗洛普(http://trollop.rubyforge.org/) 夹钳(https:/

我想用Ruby构建一个基于控制台的应用程序。我很快在谷歌上找到了下面所有的库。请有人建议我该用哪一种。多谢各位

  • 选项分析器(http://ruby-doc.org/stdlib-1.9.3/libdoc/optparse/rdoc/OptionParser.html)
  • 雷神(https://github.com/wycats/thor)
  • 鲁比康(http://koraktor.de/rubikon/)
  • 特罗洛普(http://trollop.rubyforge.org/)
  • 夹钳(https://github.com/mdub/clamp)
  • 选择(http://choice.rubyforge.org/)
  • 美沙酮(https://github.com/davetron5000/methadone)
  • 格利(https://github.com/davetron5000/gli)
  • 指挥官(http://rdoc.info/github/visionmedia/commander/master/frames)
  • 主要(https://github.com/ahoward/main)
  • 拍手(https://github.com/soveran/clap)
  • Optiflag(http://optiflag.rubyforge.org/)
  • Hirb(http://tagaholic.me/hirb/)
  • 玻色子(http://tagaholic.me/2009/10/14/boson-command-your-ruby-universe.html)

    • Ruby Toolbox是一个比较不同宝石的网站。你可能想用它来评估哪些宝石比较受欢迎


      您可能也会觉得有用。

      您能描述一下您的应用程序的具体需求吗?这些图书馆中的每一个都有其不同用途的优点。例如,如果您想要接受许多不同的命令行参数和选项,那么OptionParser可以很好地实现这一点。如果您希望使用默认选项快速着色输出或轻松输入,那么highline是一个很好的库。如果你不知道这个应用会做什么,那么现在就决定它的实现还为时过早。美沙酮或雷神是迄今为止最酷的名字。因为你不想分享你的应用程序需要做什么,所以除了用一个很酷的名字推荐之外,任何人都做不了什么。管理来自多个源的设置:静态常量、简单配置文件、环境变量、命令行选项、纯ruby