-
-
Notifications
You must be signed in to change notification settings - Fork 66
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--filenameflag 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-filepath <path>option is passed (<path>must be specified).
A benefit of deprecating the implicit read from stdin behavior is users won't get confused by nixfmt "freezing", as reported in #301.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Approved