Open
Description
treefmt will be adding a Stdin Spec. See numtide/treefmt#586 for details.
We should implement it, which means deprecating and removing the current behavior:
- Read from stdin if no positional arguments are passed.
- Use the filename specified via
--filename
: Add--filename
flag for overriding the filename when using stdioTarget #264
The new behavior will (likely, wait for treefmt's spec to be approved) be to:
- Only read from stdin if the
--stdin
option is passed. - The user must specify a filename as a positional argument.
A benefit of deprecating the implicit read from stdin behavior is users won't get confused by nixfmt
"freezing", as reported in #301.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo