Add dotenv support for arguments - #327
Open
emma31-dev wants to merge 2 commits into
Open
emma31-dev wants to merge 2 commits into
emma31-dev wants to merge 2 commits into
Conversation
Introduce an `env` feature that loads arguments from a .env file via dotenvy, disabled by default.
emma31-dev
marked this pull request as draft
September 17, 2026 12:07
emma31-dev
force-pushed
the
feat/load-args-from-env
branch
2 times, most recently
from
September 17, 2026 21:34
00f2dd0 to
6c89115
Compare
emma31-dev
marked this pull request as ready for review
September 17, 2026 21:34
The `env` feature is now included in the default features, removing the need for the conditional compilation guard around the dotenv call. Signed-off-by: emma31-dev <emmanuelfidel07@gmail.com>
emma31-dev
force-pushed
the
feat/load-args-from-env
branch
from
September 17, 2026 21:53
6c89115 to
4034a84
Compare
Author
|
@tvpeter This pr is ready for your review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pr Introduce an
envfeature that loads arguments from a .env file via dotenvy, enabled by default, instead of manually typing args in the command as it gets difficult to change values frequently. Overtime the command of a single action can balloon to over 80 chars with a lot of them repeating over different commands. since it already support environment variables , .env support seems like a logical next step IMO.Changelog notice
envfeature that loads arguments from a .env file via dotenvyChecklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
* [ ] I've added tests for the new featureCHANGELOG.md