Skip to content

Commit

Permalink
chore: Update README and bump version (#170)
Browse files Browse the repository at this point in the history
* Update README.md & bump version

* bump: 0.11.0.2
  • Loading branch information
CristhianMotoche committed Jun 22, 2023
1 parent 34ef7e7 commit 5a3e3ef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,27 @@ $ dotenv "echo $DATABASE"
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
Expand Down
4 changes: 2 additions & 2 deletions dotenv.cabal
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -65,7 +65,7 @@ executable dotenv
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
Expand Down

0 comments on commit 5a3e3ef

Please sign in to comment.