Synthetica9 / nix-linter

Linter for the Nix expression language
BSD 3-Clause "New" or "Revised" License
158 stars 16 forks source link

Allow read file contents from stdin #27

Closed marsam closed 5 years ago

marsam commented 5 years ago

It would be nice to allow nix-linter read from stdin:

IDE_pipe_file_contents | nix-linter | back_to_IDE
Synthetica9 commented 5 years ago

Agreed, implementing!

However, to avoid confusion, the syntax will be as follows:

IDE_pipe_file_contents | nix-linter - | back_to_IDE
Synthetica9 commented 5 years ago

Feel free to open another issue if this doesn't behave as you expected.