rgb icon indicating copy to clipboard operation
rgb copied to clipboard

Command line support

Open mmaelzer opened this issue 11 years ago • 3 comments

Interested in a PR to add command line support? https://github.com/mmaelzer/rgb/commit/678411bb1d96d642ad7c3c9c5007a8c202f15ad3

Allows index.js to be called like

node index.js #fff // rgb(255,255,255)

or if you chmod +x the index.js file...

./index.js #fff // rgb(255,255,255)

mmaelzer avatar Mar 21 '14 22:03 mmaelzer

I think bin/rgb would be better suited for the purpose than embedding it in the main.

kamicane avatar Apr 14 '14 00:04 kamicane

That's reasonable. Would you accept https://github.com/mmaelzer/rgb/commit/b996165d857d7d92d2c75141304edae66434272d?

mmaelzer avatar Apr 16 '14 03:04 mmaelzer

Looks good, can you -x index.js and send a pull req?

Ty!

kamicane avatar Apr 16 '14 13:04 kamicane