The bean-format tool reads a file from the filename passed on the command line, then outputs the formatted file to STDOUT. The filename passed on the command line is a requirement, the bean-format tool does not read from STDIN at all. Another option would be to use ("bean-format" input "-o" output), but this way apheleia can avoid an extra file read that's not strictly necessary.
Fixes #309
The
bean-format
tool reads a file from the filename passed on the command line, then outputs the formatted file toSTDOUT
. The filename passed on the command line is a requirement, thebean-format
tool does not read fromSTDIN
at all. Another option would be to use("bean-format" input "-o" output)
, but this way apheleia can avoid an extra file read that's not strictly necessary.