Skip to content

Commit 24fac5c

Browse files
author
Götz Christ
committed
Version bump and update README.md
1 parent 6fcd83c commit 24fac5c

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Dotenv 0.3.2.0
2+
3+
* Add the option to pass arguments to the program passed to Dotenv. Thanks to
4+
Oleg Grenrus (GitHub: phadej) for making this contribution.
5+
16
## Dotenv 0.3.1.0
27

38
* Made interface more polymorphic so the functions works in any instance of
@@ -24,14 +29,14 @@
2429
* Reverted change to Data.Text in favor of String, for maintaining compatibility
2530
with common Haskell system libraries. Added separate interface for parsing a
2631
file into tuples containing Data.Text values. Thanks to Daisuke Fujimura
27-
(Github: fujimura).
32+
(GitHub: fujimura).
2833
* Fixed parsing of CRLF characters for Windows users.
2934

3035
## Dotenv 0.2.0.0 (deprecated)
3136

3237
* Changed public interfaces to use Data.Text.
3338
* Added function `parseFile` to read dotenv file without modifying the
34-
environment. Thanks to Daisuke Fujimura (Github: fujimura) for making this
39+
environment. Thanks to Daisuke Fujimura (GitHub: fujimura) for making this
3540
contribution.
3641

3742
## Dotenv 0.1.0.0

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,17 @@ from one or more dotenv file before invoking an executable:
6969
dotenv -f mydotenvfile myprogram
7070
```
7171

72+
Aditionally you can pass arguments and flags to the program passed to
73+
Dotenv:
74+
75+
```
76+
dotenv -f mydotenvfile myprogram -- --myflag myargument
77+
```
78+
7279
Hint: The `env` program in most Unix-like environments prints out the
7380
current environment settings. By invoking the program `env` in place
7481
of `myprogram` above you can see what the environment will look like
75-
after evaluating multiple Dotenv files.
82+
after evaluating multiple Dotenv files.
7683

7784
## Author
7885

@@ -84,4 +91,4 @@ MIT
8491

8592
## Copyright
8693

87-
(C) 2015-2016 [Stack Builders Inc.](http://www.stackbuilders.com)
94+
(C) 2015-2017 [Stack Builders Inc.](http://www.stackbuilders.com)

app/Main.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ config = Options
4949
dotEnv :: MonadIO m => Options -> m ()
5050
dotEnv opts = liftIO $ do
5151
mapM_ (loadFile (overload opts)) (files opts)
52-
-- 'system' is used, so shell expansion is made
53-
code <- system (program opts ++ concatMap (" " ++) (args opts))
52+
code <- system (program opts ++ programArguments)
5453
exitWith code
54+
where
55+
programArguments = concatMap (" " ++) (args opts)

dotenv.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dotenv
2-
version: 0.3.1.0
2+
version: 0.3.2.0
33
synopsis: Loads environment variables from dotenv files
44
homepage: https://github.com/stackbuilders/dotenv-hs
55
description:

0 commit comments

Comments
 (0)