You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While doing a strace on the project I noticed that there are two commands being invoked that are not entirely necessary.
which: seems to be used by the which crate. This program is not installed on every system. Instead, we should use a native rust library to lookup the program path.
mkdir -p: I think this can be replaced with some native rust code as well.
This is not urgent as it doesn't change the design of the program. Replacing those with native rust code will just make the project a bit more resilient.
The text was updated successfully, but these errors were encountered:
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
Reviewed-on: https://git.numtide.com/numtide/treefmt/pulls/19
Reviewed-by: Jonas Chevalier <[email protected]>
Co-authored-by: Brian McGee <[email protected]>
Co-committed-by: Brian McGee <[email protected]>
While doing a strace on the project I noticed that there are two commands being invoked that are not entirely necessary.
which
: seems to be used by thewhich
crate. This program is not installed on every system. Instead, we should use a native rust library to lookup the program path.mkdir -p
: I think this can be replaced with some native rust code as well.This is not urgent as it doesn't change the design of the program. Replacing those with native rust code will just make the project a bit more resilient.
The text was updated successfully, but these errors were encountered: