Closed lassik closed 2 years ago
(For context, stdin->stdout is the best way for text editor plugins to call formatters.)
Thanks for the report!
As running echo '#lang racket' | raco fmt --stdin
with the latest source code.
The following error:
raco: unknown switch: --stdin
Oh, I took the @lassik's first suggestion where you don't provide any filename to enter the stdin mode. So that error is expected.
You mean echo '#lang racket' | raco fmt
?
Correct.
raco fmt
is now supported by the Emacs format-all package.
Thanks! :)
The following command line currently works:
echo '#lang racket' | raco fmt /dev/stdin
Can you make either
raco fmt
(with no filename) orraco fmt --stdin
format from stdin to stdout? This would avoid the Linux/BSD-specific/dev/stdin
.