-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Set global flags via global mechanisms (environment variable, config file) #1623
Comments
Hi, could you provide some examples of how that would work on the user end? |
Partially duplicates #1132, but there is an argument for adding some flags as environment variables as well. I don't think they make sense in config.toml, but I'm prepared to hear other opinions too. |
@Secrus it is me again 😄 . I was about to create this exact issue. We run
What I tried is running : I was able to make everything run properly by adding the |
That sounds like a variant of #7184 -- that being said, the solution really needs to be fixing the bug that causes Poetry to die without useful output, and not a better way to set a flag that happens to be a workaround. It's certainly true that this is nice to have, but I don't think that the fact that there's a nasty bug involving Cleo-decorated output right now means that it's suddenly more urgent to make a workaround more ergonomic (as opposed to just fixing the bug itself). |
Feature Request
When integrating poetry in a larger work of development loop automation and build system pipeline the same command will get run in different contexts.
As such some options would be better served if we could put them in configuration directly instead of having to modulate the command line calls.
Thus when running the script in an interactive session on the programmer's station poetry commands would be interactive with ansi coloring. but the very same script when run on an unattended build system would automatically receive
--no-ansi
--no-interaction
global options if these were added in the poetry config already present on the build machine / docker image.Same goes with the quiet and verbose flags and any other options that could affect all commands.
thanks
The text was updated successfully, but these errors were encountered: