Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve path argument handling #438

Merged
merged 2 commits into from
Oct 12, 2024
Merged

Conversation

brianmcgee
Copy link
Member

@brianmcgee brianmcgee commented Oct 11, 2024

Changes how we handle paths which are provided as arguments:

  • if it's a file, we attempt to format it based on the matching options
  • if it's a directory, we traverse it using the provided walk type

This is more consistent with what a user expects and makes it easier to integrate with tools such as none-ls.

Close #435

Changes how we handle paths which are provided as arguments:

- if it's a file, we attempt to format it based on the matching options
- if it's a directory, we traverse it using the provided walk type

This is more consistent with what a user expects and makes it easier to integrate with tools such as `none-ls`.

Close #435
@brianmcgee brianmcgee force-pushed the feat/improve-paths-behaviour branch from d4327f7 to 57abb78 Compare October 12, 2024 10:00
@brianmcgee brianmcgee changed the title Feat/improve paths behaviour Improve path argument handling Oct 12, 2024
@brianmcgee brianmcgee marked this pull request as ready for review October 12, 2024 10:01
@brianmcgee brianmcgee requested a review from zimbatm October 12, 2024 10:01
@brianmcgee brianmcgee mentioned this pull request Oct 12, 2024
1 task
@brianmcgee brianmcgee merged commit 659aa0f into main Oct 12, 2024
27 checks passed
@brianmcgee brianmcgee deleted the feat/improve-paths-behaviour branch October 12, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

treefmt 2+ no longer formats gitignored files passed explicitly as arguments
2 participants