-
-
Notifications
You must be signed in to change notification settings - Fork 422
[💡 FEATURE REQUEST]: Recursive grpc.proto glob wildcards #2220
Copy link
Copy link
Closed
Copy link
Labels
C-feature-requestCategory: feature requested, but need to be discussedCategory: feature requested, but need to be discussedhelp-heeded-mediumCall for participation: Experience needed to fix: Medium / intermediateCall for participation: Experience needed to fix: Medium / intermediate
Milestone
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: feature requested, but need to be discussedCategory: feature requested, but need to be discussedhelp-heeded-mediumCall for participation: Experience needed to fix: Medium / intermediateCall for participation: Experience needed to fix: Medium / intermediate
Type
Projects
Status
No status
Plugin
GRPC
I have an idea!
The current
grpc.protoconfiguration supports wildcards (implemented in roadrunner-server/grpc#90):This will match
src/Support/Contracts/any.proto, but it will not match nestedsrc/Support/Contracts/not/any.proto.My fist suggestion is to enable recursive glob matching with what's called globstar
**:This would match any
.protofile in any descendants ofContractsdirectory.Another option I would want to suggest is "glob brace":
It allows to use alternation of the patterns. For example,
a_suffix.proto,b_suffix.proto,an_another.protowould be matched to the pattern, butfoo.protowouldn't.In PHP's
glob()function, it's be enabled byGLOB_BRACE.