A Hook CLI for Terminal goodness

I’ve created a command line utility called hook that brings a lot of Hooks power to the terminal. You can find it at https://github.com/ttscoff/hookapp where you’ll also find installation instructions. Spoiler, it’s a ruby gem and you can install it by simply running gem install hookapp (you may need sudo gem install hookapp depending on your setup).

The main command is hook and it’s built to use subcommands, a la git. All commands are detailed under hook help, and you can get details on a specific command using hook help COMMAND.

There’s some brief documentation on the GitHub page as well.

You can let me know how it goes here or in the Issues section of the GitHub repo.

6 Likes

Fantastic! CLI was one of my early internal feature request for Hook as SLC product ( Simple Lovable Complete product, as opposed to MVP.). How fitting that it should be Brett Terpstra himself who delivers the goods!

One of us here at CogSci Apps has tried your CLI and happily reports success! She notes , it return an error message when the url is invalid

error: no implicit conversion of false into String

I am looking forward to trying it too.

I will reply to the hook://email URL topic

A bit more feedback from a developer here:

I only tested files, web urls and emails.

I just did some test with other types of urls:

The following commands not working:
hook clip
“bear://x-callback-url/open-note?id=C24C1EEB-F5FF-4B06-B033-BB2A19BFA2EB-877-0000016BBABE4FFC”
hook clip nvalt://find//?NV=FGNrz%2BwTQlSmGLofWgauqQ%3D%3D

for the above types of urls, hook select , hook list also not working

more investigation from our side tomorrow.

I just pushed v0.0.3 to both the gem server and to GitHub. Should fix usage with all urls. I think it should fix the “conversion of false to string” issue as well, though I probably should have tested that further before this release. Next one!

-Brett

0.0.4 pushed, does actually fix that string conversion error now :).

1 Like