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

Discover .env files in parent directory #240

Open
line-o opened this issue Oct 29, 2024 · 0 comments
Open

Discover .env files in parent directory #240

line-o opened this issue Oct 29, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@line-o
Copy link
Member

line-o commented Oct 29, 2024

Enhancement

In order to use a configuration implicitly, at the moment you have to either

  • specify a .env file in each working directory
  • use the --config parameter to use a central configuration file

Leveraging the find-up module a user can have a default configuration in their home directory while still being able to override this by a configuration in a descendant directory and/or providing a specific configuration file as a parameter.

This will then not only work for .env files but can be extended to also look for .xstrc.

Alternatives

There might be alternative packages that achieve the same or we could code the functionality by hand.

@line-o line-o added the enhancement New feature or request label Oct 29, 2024
@line-o line-o self-assigned this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant