TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ruby terminal apps toolkit

285 pointsby pmurachover 8 years ago

12 comments

meow_mixover 8 years ago
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 未加载
niftichover 8 years ago
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 未加载
trishumeover 8 years ago
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 未加载
xuejieover 8 years ago
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 未加载
kondroover 8 years ago
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 未加载
PerusingAroundover 8 years ago
Is there something similar but for Python?
评论 #13514391 未加载
评论 #13513982 未加载
评论 #13514217 未加载
评论 #13513242 未加载
VeejayRampayover 8 years ago
Looks modular, well-built and well documented. I&#x27;ll definitely check it out next I need a terminal app or script. Thanks.
评论 #13511205 未加载
dkarapetyanover 8 years ago
I&#x27;ve used this toolkit. It&#x27;s pretty well done. The tabular ASCII capabilities tty-table are pretty neat.
transfireover 8 years ago
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>)
growtover 8 years ago
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 未加载
throw2016over 8 years ago
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 未加载
MrBraover 8 years ago
Ok neat, but Ruby needs a serious and modern GUI toolkit!