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

Provide default poe root through env var #206

Closed
emanueljg opened this issue Mar 21, 2024 · 2 comments
Closed

Provide default poe root through env var #206

emanueljg opened this issue Mar 21, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@emanueljg
Copy link

There are a few environments in which it becomes very hard if not impossible to provide CLI args to get desired behavior. Would it be possible to read the desired Poe root through an env var?

$ export POE_ROOT='foo'
$ poe ...

would then be equal to

$ poe --root='foo'

but with the CLI options obviously taking precedence.

@nat-n
Copy link
Owner

nat-n commented Mar 21, 2024

Having a default value for the --root arg from the environment sounds reasonable. I suspect we'd need to make sure it doesn't collide with any env vars already used by poe (like POE_ROOT) to avoid unexpected behavior when for example invoking the poe CLI from within a poe task – more thought required on that question.

@nat-n
Copy link
Owner

nat-n commented Apr 27, 2024

This features is now available with 0.26.0 🚀

You can set the POE_PROJECT_DIR environment variable and poe will look there for the pyproject.toml

@nat-n nat-n closed this as completed Apr 27, 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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants