numtide / treefmt

one CLI to format your repo
https://treefmt.com
MIT License
534 stars 32 forks source link

cli: search for the tree root by default #309

Closed zimbatm closed 1 month ago

zimbatm commented 1 month ago

Restore the treefmt 1.x behaviour where it would search for the tree root by recursively searching for the treefmt.toml file up the filesystem, starting from the current directory.

The --tree-root-file option will be useful to remove this bash wrapper: https://github.com/numtide/treefmt-nix/blob/2fba33a182602b9d49f0b2440513e5ee091d838b/module-options.nix#L116-L135

Fixes #308

brianmcgee commented 1 month ago

@mergify queue

mergify[bot] commented 1 month ago

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at *2454542a3692cdc617eabdc20d460ea4f0f3f417*