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

Feature request: extended glob for --filter #91

Closed
lettertwo opened this issue May 19, 2020 · 1 comment
Closed

Feature request: extended glob for --filter #91

lettertwo opened this issue May 19, 2020 · 1 comment
Assignees

Comments

@lettertwo
Copy link

In a yarn workspace setup, it would be nice to be able to target multiple, specific packages using extended globbing:

$ ultra -r --filter "@scope/(app|docs)" pwd

It is currently possible to use the --filter option to target a specific package:

$ ultra -r --filter "@scope/app" pwd

Or all packages under a scope or directory:

$ ultra -r --filter "@scope/*" pwd

Assuming this is a useful feature, maybe it would be as simple as adding config for globrex here?

@folke
Copy link
Owner

folke commented May 25, 2020

Added in v3.5.0!

The extended syntax is a bit different than in your example. You need to prefix the (app|docs) with a + as in:

$ ultra -r --filter "@scope/+(app|docs)" pwd

@folke folke closed this as completed May 25, 2020
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