packages feed

dotenv 0.11.0.1 → 0.11.0.2

raw patch · 3 files changed

+27/−2 lines, 3 filesdep ~optparse-applicativePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: optparse-applicative

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,4 +1,8 @@ ## MASTER+## Dotenv 0.11.0.2+### Modified+* Allow optparse-applicative 0.18+ ## Dotenv 0.11.0.1 ### Modified * Export internal module `Configuration.Dotenv.Internal` which exports all
README.md view
@@ -79,6 +79,27 @@ postgres://myusername@localhost/database ``` +### Surrond with quotes++If your value starts with a character that produces a parse error (e.g. `{`) . Surround your value+with quotes. You can also escape the quotes if they're inside your value. For example:++```+JSON_SQ='{"a":[1,2,3], "b": "\'asdf\'"}'+JSON_DQ="{\"a\":[1,2,3], \"b\": \"'asdf'\"}"+```++Run it:++```+$ dotenv "echo $JSON_SQ" | jq .a+[+  1,+  2,+  3+]+```+ ### Configuration  The first argument to `loadFile` specifies the configuration. You can use
dotenv.cabal view
@@ -1,5 +1,5 @@ name:                dotenv-version:             0.11.0.1+version:             0.11.0.2 synopsis:            Loads environment variables from dotenv files homepage:            https://github.com/stackbuilders/dotenv-hs description:@@ -65,7 +65,7 @@   build-depends:         base >= 4.9 && < 5.0                        , base-compat >= 0.4                        , dotenv-                       , optparse-applicative >= 0.11 && < 0.18+                       , optparse-applicative >= 0.11 && < 0.19                        , megaparsec                        , process                        , text