Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Hk, The new Heroku Client written in Go. Parent comment
I use this route in one of my projects https://github.com/walle/gas/blob/development/bin/gas
Basically, all executables in your PATH that conforms to a naming convention is a plugin. If a match is found it's run.
So in my case you can call both ´$ gas list´ and ´$ gas-list´.
I don't know if this is the best way to do it, my inspiration was how git commands work.
There are no comments on this comment yet.
I use this route in one of my projects https://github.com/walle/gas/blob/development/bin/gas
Basically, all executables in your PATH that conforms to a naming convention is a plugin. If a match is found it's run.
So in my case you can call both ´$ gas list´ and ´$ gas-list´.
I don't know if this is the best way to do it, my inspiration was how git commands work.