Does Atom CLI support stdin?


#1

Didn’t see this elsewhere so I thought I’d ask:

How do I pipe stdin into the atom cli command? I.e. when I run

echo "foo" | subl

It does as expected, opens a sublime text window with “foo” as the editor’s text. But when I do the same with atom cli, I just get atom to open the current folder.

This may seem odd as a concern, but textmate and sublime both handle this just fine. Do I need a flag for the atom cli or is atom cli broken?

Thanks,

– Owen


#2

Duplicate of …

To answer your question, last I checked, no it doesn’t.


#3