Thor
Thor is a toolkit for building powerful command-line interfaces. (by erikhuda)
TTY
Toolkit for developing sleek command line apps. (by piotrmurach)
Our great sponsors
Thor | TTY | |
---|---|---|
10 | 7 | |
5,077 | 2,465 | |
0.1% | - | |
7.3 | 0.0 | |
6 days ago | about 1 year ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Thor
Posts with mentions or reviews of Thor.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-14.
-
CLI tools at Aha!
Ruby has always been a great general-purpose scripting language and is often used to create command-line utilities. Many of these use the excellent Thor gem to parse command-line options, but there's no escaping one fact: command-line utilities just aren't interesting. Never have been, never will be.
-
How to Build Your Own Rails Generator
All public methods in the generator will be called one after the other. Private methods will not be called but are available in your public methods like regular Ruby classes.
-
Any opinionated tool / framework for creating binary CLI tools?
ruby: http://whatisthor.com
-
Seeking recommendations or suggestions for learning Ruby to maintain the home directory?
I will add that if you want to develop a CLI tool that gives you various commands that you can run, I would have a look at something like thor to keep it organised and documented. But this is completely unnecessary as a first step - you can simply create a Ruby file that does a thing you want and invoke it directly.
-
Bootstrapping with Ruby on Rails Generators and Templates
Not to be confused with generator functions (which you might be familiar with from Python or Javascript), Rails generators are custom Thor commands that focus on, well, generating things.
- Don't make me think, or why I switched to Rails from JavaScript SPAs
-
Building a Dot Matrix Animator
I wanted to provide a command-line interface for the user that was easy to use, and I also wanted to provide the flexibility with the options used to render the animation. After looking around online I found that Thor was a good tool to utilize. It allowed me to easily create a number of options that make this program much more versatile. An example below shows how a user can select which folder the source images are in, as well as what the background and foreground colors should be:
TTY
Posts with mentions or reviews of TTY.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-22.
-
Ncurses in Ruby style?
Not curses but something Ruby style: https://ttytoolkit.org/. No C dependencies, I think...
-
What library can I use to create a TUI
TUI? Terminal UI? If so, check out https://ttytoolkit.org/ and https://github.com/Shopify/cli-ui
-
Looking for a tutorial or a resource to write good looking CLI applications
Saw just now. Cobra is huge and offers a lot. Btw, I've used this https://github.com/piotrmurach/tty for a Ruby project a while ago and was looking for something similar. I guess Cobra it is. Thanks again!
-
How to get better at Ruby scripting?
If you're interested in taking things further, maybe have a look at Build Awesome Command-Line Applications in Ruby 2. If you're not ready to buy a book, check out the Ruby TTY Toolkit page.
-
Building Rich terminal dashboards
The tty suite of tools are a good shout, although I've never used them in anger. https://ttytoolkit.org
-
26 most popular Ruby/Rails repositories on GitHub in July-August 2020
TTY::Box provides box drawing component for TTY toolkit. 142 stars by now
What are some alternatives?
When comparing Thor and TTY you can also consider the following projects:
Rake - A make-like build utility for Ruby.
GLI - Make awesome command-line applications the easy way
Commander - The complete solution for Ruby command-line executables
dry-cli - General purpose Command Line Interface (CLI) framework for Ruby
Trollop - Optimist is a commandline option parser for Ruby that just gets out of your way.
Slop - Simple Lightweight Option Parsing - ✨ new contributors welcome ✨
Clamp - a Ruby command-line application framework
Cocaine
Ru - Ruby in your shell!