-
Notifications
You must be signed in to change notification settings - Fork 97
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
Support custom filepaths #71
Comments
As it stands, I'm not interested in a change like that. I am willing to listen to people who want to make changes to The goal of So, tell me about your application and how it would use this feature and why it needs it. This is the important part, code is easy. |
@dominictarr Fair enough, maybe it doesn't make sense for this project. I might want to append a I might want to load different configuration file names from disk - e.g. for different deployment environments like |
Also, if I wanted to migrate a project to use |
Maybe accept a filepaths array instead of the first argument, e.g.
rc(['./my/custom/path'])
? Then also expose default paths asrc.paths(appname)
(as function not array, for immutability), so that user can prepend/append/inject custom paths in their preferred order, e.g.rc(['./custom/path'].concat(rc.paths(appname)))
?I might be able to submit a PR if you'd be interested.
The text was updated successfully, but these errors were encountered: