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

Config file parent directories lookup #651

Open
kdeldycke opened this issue Jun 14, 2023 · 2 comments
Open

Config file parent directories lookup #651

kdeldycke opened this issue Jun 14, 2023 · 2 comments
Labels
🎁 feature request Not existing yet and need to be implemented 🙏 help wanted I can't do this alone and need contributors

Comments

@kdeldycke kdeldycke added 🎁 feature request Not existing yet and need to be implemented 🙏 help wanted I can't do this alone and need contributors labels Jun 14, 2023
@kdeldycke
Copy link
Owner Author

This would be an parameter to the --config decorator, that could be named recursive_parent_search=False or something like that.

It would work by looking for the same pattern file (like *.{yaml,json,ini}) in the parent directory if the current one does not contain the configuration file. And again in the parent's parent directory is not found. Until we do not have access to the directory or reach the root.

@kdeldycke
Copy link
Owner Author

This is different from #581, which is about merging hierarchical configuration files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎁 feature request Not existing yet and need to be implemented 🙏 help wanted I can't do this alone and need contributors
Projects
None yet
Development

No branches or pull requests

1 participant