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

feat: add exclude patterns support #133

Merged
merged 4 commits into from
Aug 1, 2024
Merged

Conversation

tetuaoro
Copy link
Contributor

@tetuaoro tetuaoro commented Jul 27, 2024

Description

This PR enhances the leptosfmt command to support excluding files or directories.

Usage

In my case, I need to exclude just one directory out of 5 directories, so instead of including specific directories, I simply use the exclude feature :

leptosfmt src/ -x src/first -x src/secundo/mod.rs

Changes

  • added --exclude (-x) argument
  • updated get_file_paths function.

I hope this feature is useful to everyone.

Copy link
Owner

@bram209 bram209 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment about reducing duplicate code, but other than that, LGTM.

Thank you for your contribution!

cli/src/main.rs Outdated Show resolved Hide resolved
cli/src/main.rs Outdated Show resolved Hide resolved
cli/src/main.rs Outdated Show resolved Hide resolved
cli/src/main.rs Outdated Show resolved Hide resolved
@bram209 bram209 merged commit 84a2f99 into bram209:main Aug 1, 2024
@bram209
Copy link
Owner

bram209 commented Aug 1, 2024

thanks!

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.

2 participants