pivoshenko / poetry-plugin-dotenv

poetry-plugin-dotenv - is the plugin that automatically loads environment variables from a dotenv file into the environment before poetry commands are run
MIT License
67 stars 4 forks source link

Add support of the CLI for configuration #246

Open pivoshenko opened 2 months ago

pivoshenko commented 2 months ago

Use CLI to load configuration as an alternative to env variables or pyproject.toml

poetry run --dotenv-location=".env.dev" <command>

poetry run --dotenv-ignore <command>
--dotenv-location <string/path>

--dotenv-ignore <bool> false
pivoshenko commented 1 month ago

It looks like with the current underlying logic of poetry/cleo implementation of such a feature could be problematic and require a lot of additional effort. I will keep looking into it but with a lower priority 🐱