Skip to content

Commit 5a3e3ef

Browse files
chore: Update README and bump version (#170)
* Update README.md & bump version * bump: 0.11.0.2
1 parent 34ef7e7 commit 5a3e3ef

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## MASTER
2+
## Dotenv 0.11.0.2
3+
### Modified
4+
* Allow optparse-applicative 0.18
5+
26
## Dotenv 0.11.0.1
37
### Modified
48
* Export internal module `Configuration.Dotenv.Internal` which exports all

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,27 @@ $ dotenv "echo $DATABASE"
7979
postgres://myusername@localhost/database
8080
```
8181

82+
### Surrond with quotes
83+
84+
If your value starts with a character that produces a parse error (e.g. `{`) . Surround your value
85+
with quotes. You can also escape the quotes if they're inside your value. For example:
86+
87+
```
88+
JSON_SQ='{"a":[1,2,3], "b": "\'asdf\'"}'
89+
JSON_DQ="{\"a\":[1,2,3], \"b\": \"'asdf'\"}"
90+
```
91+
92+
Run it:
93+
94+
```
95+
$ dotenv "echo $JSON_SQ" | jq .a
96+
[
97+
1,
98+
2,
99+
3
100+
]
101+
```
102+
82103
### Configuration
83104

84105
The first argument to `loadFile` specifies the configuration. You can use

dotenv.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dotenv
2-
version: 0.11.0.1
2+
version: 0.11.0.2
33
synopsis: Loads environment variables from dotenv files
44
homepage: https://github.com/stackbuilders/dotenv-hs
55
description:
@@ -65,7 +65,7 @@ executable dotenv
6565
build-depends: base >= 4.9 && < 5.0
6666
, base-compat >= 0.4
6767
, dotenv
68-
, optparse-applicative >= 0.11 && < 0.18
68+
, optparse-applicative >= 0.11 && < 0.19
6969
, megaparsec
7070
, process
7171
, text

0 commit comments

Comments
 (0)