stackbuilders / dotenv-hs

Load environment variables from dotenv files for Haskell
https://hackage.haskell.org/package/dotenv
MIT License
65 stars 14 forks source link

feat: Add --dry-run flag to print out variables without executing the program #167

Closed flandrade closed 1 year ago

flandrade commented 1 year ago

This PR tackles the feature request outlined in https://github.com/stackbuilders/dotenv-hs/issues/159

Issue Description:

The current Dotenv CLI executes the program regardless of the provided environment variables, even if they are missing or do not meet the required criteria. This behavior poses a concern as it may lead to unintended consequences or errors.

Proposed Solution:

To address this issue, this pull request introduces a new flag --dry-run that allows users to examine the loaded environment variables without executing the program.

flandrade commented 1 year ago

@CristhianMotoche @FranzGB Please take a look!