New
v2.2.0
Features
- we now traverse untracked files in the git walker.
- a new
-q|--quietflag has been added which will suppress all output except for errors. - for users who don't quiet need
treefmt-nixbut still want to configuretreefmtwith nix, there are nowtreefmt.withConfigandtreefmt.buildConfighelper functions exposed directly from the package itself (https://github.com/NixOS/nixpkgs/pull/390147).
Bugfixes
- we now ignore symlinks when traversing.
- static shell completions should now work for
bash,zshandfish, and can be generated withtreefmt --completion <bash|zsh|fish>. - improved error reporting if a formatter command cannot be found.
- we no longer hang for 10 seconds when
stderris a dumbtty.
Nixpkgs PR Tracker
https://nixpkgs-tracker.ocfox.me/?pr=394906
Changelog
- 621144f040f1a585b6159902f250db9af971ccd7: better error if command cannot be found (@Mic92)
- 855eb9aaa83367fac451069adc9f91a96ae588a9: docs(README): update motivation (@zimbatm)
- f4336fd6b967e757e09d58ed72966e06ba82a78a: feat(docs): auto-generate usage snippet (@brianmcgee)
- 583681d0794690c2544bf65db057245e50a130fb: feat(docs): improve docs package (@brianmcgee)
- 5861604b32db03a1ff6fdf06e9d8594d76c33274: feat(docs): refine setup (@brianmcgee)
- 3828aaf226c1d3673d809704938931315c819a75: feat(docs): rename content directory to site (@brianmcgee)
- b0731a2b8a9cd7cc3d28a21efdf35990c3745f3e: feat: add
withConfig&buildConfigfrom nixpkgs (@MattSturgeon) - 10c9a72c0b28e9bcef2f0166c006136ac0141fa9: feat: add a quiet flag to suppress all output except for errors (@brianmcgee)
- b76d83959153845ffcea6bd95d346814ac7e04a9: feat: change default log level for unmatched to INFO instead of WARN (@brianmcgee)
- 43f943f8c37b15ad7382c8fd85f516794b89a1b4: feat: enforce formatter name format (@brianmcgee)
- 30e1ecd6fba32471ce0f932c2f4476a29595044e: feat: improve error handling in format Run method (@brianmcgee)
- d182c6d3c9763cac3c4f1365bd69c54741e00725: feat: log the config file used at DEBUG level instead of INFO (@brianmcgee)
- 21cefd77ad2587235ea4cf144d960f8dbf3cab55: feat: print stats to stderr instead of stdout (@brianmcgee)
- 9662ee657c9e6c52f1758b13da98ad2391304c48: feat: traverse untracked files in git walker (@brianmcgee)
- d17a8d6325e1b437a3682d5ba48c2a5234d919a2: feat: update to go 1.24 (@brianmcgee)
- e90b9520ce33af6cdaa07a69fbb7fb655b7d1f21: fix(go): update termenv to v0.16.0 (@zimbatm)
- d82a9fc200de65ce12e9ce3fc41bf44d3aef4ed1: fix: bad usage of require.Errorf (@brianmcgee)
- ce65379baa288c35220a2cf6ae0a4835a195fb18: fix: ignoring symlinks (#528) (@gabyx)
- bbf3177a6a51480dd5b46b4bb5565cc01e1f3ec2: fix: move path resolution logging to debug instead of error (@brianmcgee)
- 2503227d61964aa977e7ad3b3e37ccd430cd95f5: fix: shell completions (@brianmcgee)