support explicit paths and processing paths from stdin #21

Closed
brianmcgee wants to merge 5 commits from feat/explicit-paths into main

5 Commits

Author SHA1 Message Date
ab1d3624bd
feat: support reading paths from stdin
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-01-12 08:44:42 +00:00
5e53e38a52
feat: support explicit list of path arguments
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-01-12 08:44:42 +00:00
a0ec1c5e9e
feat: refine walking into a separate package
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-01-12 08:44:42 +00:00
7abc58a347
chore: minor cleanup
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-01-12 08:44:41 +00:00
e3713a785a
feat: support traversing the filesystem using git
Introduces a `--walk` flag which can be used to tell `treefmt` how to traverse the directory specified by `--tree-root`.

By default, it will attempt to use `git ls-files`. If this fails, it falls back to using the filesystem.

You can explicitly traverse the filesystem instead of using git by providing `--walk filesystem`.

Close #1

Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-01-12 08:44:38 +00:00