-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11438 from zimbatm/nix-fmt-pwd
fix(nix fmt): remove the default "." argument
- Loading branch information
Showing
4 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
synopsis: Removing the default argument passed to the `nix fmt` formatter | ||
issues: [] | ||
prs: [11438] | ||
--- | ||
|
||
The underlying formatter no longer receives the ". " default argument when `nix fmt` is called with no arguments. | ||
|
||
This change was necessary as the formatter wasn't able to distinguish between | ||
a user wanting to format the current folder with `nix fmt .` or the generic | ||
`nix fmt`. | ||
|
||
The default behaviour is now the responsibility of the formatter itself, and | ||
allows tools such as treefmt to format the whole tree instead of only the | ||
current directory and below. | ||
|
||
Author: [**@zimbatm**](https://github.com/zimbatm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
echo Formatting: "${@}" | ||
#!/usr/bin/env bash | ||
echo "Formatting(${#}):" "${@}" |