Comment

Comment by walle_

Do you mean how to do plugins for your application?

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.

parent walle_ 13 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton