Skip to content

Commit

Permalink
doc: update usage with info about walkers.
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGee <brian@bmcgee.ie>
  • Loading branch information
brianmcgee committed May 2, 2024
1 parent 352dfff commit e3fabb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ treefmt [FLAGS] [OPTIONS] [--] [paths]...

## Flags

`--walk <auto|git|filesystem>`

> The method used to traverse the files within `<tree-root>`.
> Default is `auto`, where we will detect if the `<tree-root>` is a git repository and use the `git` walker for
> traversal. If not we will fall back to the `filesystem` walker.
`--allow-missing-formatter`

> Do not exit with an error if some of the configured formatters are missing.
Expand Down

0 comments on commit e3fabb1

Please sign in to comment.