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: Support wildcard include #639

Open
henricook opened this issue Jun 19, 2019 · 3 comments
Open

Feature request: Support wildcard include #639

henricook opened this issue Jun 19, 2019 · 3 comments

Comments

@henricook
Copy link

In some situations i'd like to be able to include an arbitrary number of files, for example if I want my application to know about N other environments (this number can vary) I might want to include environment-config-env1.conf, environment-config-env2.conf ... environment-config-env*.conf

Ideally each of these files would add an entry to an array or similar, so that after i've included them all I have one key envs with an object describing each env in

@havocp
Copy link
Collaborator

havocp commented Jun 19, 2019

for resources on the classpath I don’t think there’s a (non horrible) way to implement this because there’s no way to list resources by directory afaik.

for files something like include glob(“foo/*.conf”) could make sense.

@henricook
Copy link
Author

Thanks for feeding into this, for my immediate use case files are absolutely what I'm after

@eshu
Copy link

eshu commented Jul 23, 2019

I have the same need for files only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants