support explicit paths and processing paths from stdin #21

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

Baked on top of #19

  • Fixes the command signature to match that of treefmt.rs
  • A user can specify a list of paths as arguments at the end of the command
  • A user can pipe a list of paths for formatting via stdin
Baked on top of https://git.numtide.com/numtide/treefmt/pulls/19 * Fixes the command signature to match that of `treefmt.rs` * A user can specify a list of paths as arguments at the end of the command * A user can pipe a list of paths for formatting via `stdin`
brianmcgee added 5 commits 2024-01-10 16:09:29 +00:00
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>
Signed-off-by: Brian McGee <brian@bmcgee.ie>
Signed-off-by: Brian McGee <brian@bmcgee.ie>
Signed-off-by: Brian McGee <brian@bmcgee.ie>
Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee force-pushed feat/explicit-paths from f9ec729862 to ab1d3624bd 2024-01-12 08:44:58 +00:00 Compare
brianmcgee changed title from WIP: support explicit paths and processing paths from stdin to support explicit paths and processing paths from stdin 2024-01-12 08:47:05 +00:00
Author
Member

Something went wrong with the rebase, opening a new branch.

Something went wrong with the rebase, opening a new branch.
brianmcgee closed this pull request 2024-01-12 08:49:16 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: numtide/treefmt#21
No description provided.