Open hackonteur opened 11 years ago
I would like coderay to take the input from STDIN if one is not given on the command-line.
Actually, it should already do that.
I get this with CodeRay 1.0.x:
> echo 'puts "Hello, world!"' | coderay -ruby
puts "Hello, world!"
What do you get?
Many UNIX utilities allow you to give an input filename on the command line or just pipe to STDIN. For example, these are equivalent:
I would like coderay to take the input from STDIN if one is not given on the command-line. This would be particularly helpful with diff output:
This would be useful in conjunction with #111: Add smart detection of input language