I rarely have the need to generate man pages for a project, but I realized they could be useful for spot(1). For those situations, the solution by TJ Holowaychuk is one
curl and handy Heroku-hosted web service away:
curl -s -F firstname.lastname@example.org http://mantastic.herokuapp.com > file.1
In my computer and slow connection at home, it took 1 second to run this task as measured by
time(1). Not bad for something that was already in my computer (
curl), that prevented me from needlessly having to run the
package manager of the day.
As a matter of fact, while installing a Python CLI utility the other day, I pressed tab to autocomplete and was met with a few options:
∞ easy_install easy_install easy_install-2.5 easy_install-2.6 easy_install-2.7
The reality is that a lot of the tools we use or could be using in our terminals could be run somewhere else, and their installation could consist in setting up an alias in your bash profile. Do you need to do syntax highlighting but don’t care for installing a bunch of things?
alias pygmentize="ru pygmentize"
My suggestion here is the creation of a
ru command (codename
remote unix) whose job would be to provide the same interface as the original command, but execute it remotely. If you pass it
-h to get help, it takes that to the web service and outputs its response.