anordal / shellharden

The corrective bash syntax highlighter
Mozilla Public License 2.0
4.63k stars 130 forks source link

Add STDIN support #17

Closed alok closed 6 years ago

alok commented 6 years ago

It would be nice if there was a way to filter input through STDIN and receive the transformed version back. This could be used for editor integrations (notably vim).

alok commented 6 years ago

Just realized I could use cat file | shellharden --transform '', but that's kind of awkward.

anordal commented 6 years ago

Yes, it's in the help text.

Unusual, but a conscious choice: The empty string is not valid as a filename.