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

Documentation of --reduce-only glob syntax #72

Open
JohanEngelen opened this issue Dec 19, 2021 · 1 comment
Open

Documentation of --reduce-only glob syntax #72

JohanEngelen opened this issue Dec 19, 2021 · 1 comment

Comments

@JohanEngelen
Copy link

I am not a glob guru, and it is not easy to check whether indeed dustmite is only reducing the files one wants to reduce: it would greatly help me if there'd be some examples of how to use --reduce-only.
In my current case, I want to only reduce files in the fs directory, which is inside a subdirectory, and also contains subdirectories itself. I'm guessing --reduce-only="**/fs/*" will do the trick, but I really don't know.

Thanks :)

@CyberShadow
Copy link
Owner

Yep, documentation in DustMite was lacking. It's addressed in the successor reduce (see the section "SELECTION" in the man page), but the implementation doesn't match the documentation yet there :)

I believe your guess is correct, except the double asterisk is redundant - only one is needed (i.e. */fs/*). The matching function is globMatch.

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

No branches or pull requests

2 participants