-
Notifications
You must be signed in to change notification settings - Fork 221
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
Add .recursive
on config::File
#35
Labels
Comments
To me, I would expect "recursive" to search down the file hierarchy recursively not up. That name seems odd to me. |
I agree. I can't think of a good name unless I make it super long. Ideas are welcome. |
|
Hmm. I could just leave this out and tell people to use something like the findup crate. extern crate config;
extern crate findup;
fn main() {
let settings = config::Config::default()
.merge(config::File::from(findup::findup("config/default.toml"))
.unwrap();
} |
Closing because the above solution is simple enough if that's what you want. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow to control upwards recursion when searching for configuration files. The only real question is if the upwards recursion should be default true or false.
The text was updated successfully, but these errors were encountered: