TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ruby terminal apps toolkit

285 点作者 pmurach超过 8 年前

12 条评论

meow_mix超过 8 年前
Ruby is a fantastic language for writing command line tools. String interpolation and regex are great on it, easy to use OO principles as well as functional principals, etc. Definitely going to be writing wrappers over some of my favorite unix commands with this!
评论 #13514623 未加载
niftich超过 8 年前
A great toolkit -- there's a bunch of goodies here, but tty-table is amazing, from the sensible API to the configurable ASCII to Unicode renderer. It compares favorably with Hirb, the only other library I know of that draws console tables and supports Unicode box drawing characters.
评论 #13514649 未加载
trishume超过 8 年前
The progress bar gem looks pretty nice. I&#x27;ve been using the similar <a href="https:&#x2F;&#x2F;github.com&#x2F;toy&#x2F;progress" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;toy&#x2F;progress</a> for a long time and it&#x27;s super useful.<p>One thing I prefer about progress is that the default config includes an ETA, which is generally the thing I care most about. It&#x27;s interface is also a little nicer. It&#x27;s really nice to have an estimate on when a script might complete, so I know if I have to optimize it or if I can just leave it running for a while.
评论 #13510852 未加载
评论 #13514679 未加载
xuejie超过 8 年前
I wonder how easy it is to port all those libraries to mruby&#x27;s mrbgems, so we can easily pack the Ruby-based CLI program as a single binary to get Go-like benefits.
评论 #13511332 未加载
评论 #13514987 未加载
评论 #13514715 未加载
评论 #13543534 未加载
kondro超过 8 年前
What does everyone suggest for command-line options parsing? This seems to be missing from the gemset and I&#x27;ve never found any of the existing solutions to be very intuitive.
评论 #13514836 未加载
评论 #13511292 未加载
评论 #13511442 未加载
评论 #13511535 未加载
评论 #13512556 未加载
评论 #13511756 未加载
评论 #13513287 未加载
评论 #13519206 未加载
评论 #13512883 未加载
评论 #13511061 未加载
PerusingAround超过 8 年前
Is there something similar but for Python?
评论 #13514391 未加载
评论 #13513982 未加载
评论 #13514217 未加载
评论 #13513242 未加载
VeejayRampay超过 8 年前
Looks modular, well-built and well documented. I&#x27;ll definitely check it out next I need a terminal app or script. Thanks.
评论 #13511205 未加载
dkarapetyan超过 8 年前
I&#x27;ve used this toolkit. It&#x27;s pretty well done. The tabular ASCII capabilities tty-table are pretty neat.
transfire超过 8 年前
Looks promising -- definitely a lot of work went into it. The closest other gem I know of is Ruby ANSI (<a href="http:&#x2F;&#x2F;rubyworks.github.io&#x2F;ansi&#x2F;#" rel="nofollow">http:&#x2F;&#x2F;rubyworks.github.io&#x2F;ansi&#x2F;#</a>)
growt超过 8 年前
Not sure if it&#x27;s welche here, but I wrote a Seminar lib for PHP:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;grothkopp&#x2F;PHPCliWrapper" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;grothkopp&#x2F;PHPCliWrapper</a>
评论 #13516331 未加载
评论 #13513104 未加载
throw2016超过 8 年前
Ruby apps are by far the most time consuming to configure and install. Nothing is simple. Nothing just works.<p>The whole idea of exposing end users to your apps&#x27;s depencies and compilation is a broken user hostile model. The potential rabbit hole of versions incompatibilities and mismatches is a time sink that cannot be justified.<p>Go is by far the simplest hassle free deploy followed by PHP and Python. For a unix command line tool that seeks a userbase beyond Ruby users Go or Python would be the most user friendly choice.
评论 #13514893 未加载
MrBra超过 8 年前
Ok neat, but Ruby needs a serious and modern GUI toolkit!