File tree 4 files changed +20
-7
lines changed 4 files changed +20
-7
lines changed Original file line number Diff line number Diff line change
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
+
1
6
## Dotenv 0.3.1.0
2
7
3
8
* Made interface more polymorphic so the functions works in any instance of
24
29
* Reverted change to Data.Text in favor of String, for maintaining compatibility
25
30
with common Haskell system libraries. Added separate interface for parsing a
26
31
file into tuples containing Data.Text values. Thanks to Daisuke Fujimura
27
- (Github : fujimura).
32
+ (GitHub : fujimura).
28
33
* Fixed parsing of CRLF characters for Windows users.
29
34
30
35
## Dotenv 0.2.0.0 (deprecated)
31
36
32
37
* Changed public interfaces to use Data.Text.
33
38
* 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
35
40
contribution.
36
41
37
42
## Dotenv 0.1.0.0
Original file line number Diff line number Diff line change @@ -69,10 +69,17 @@ from one or more dotenv file before invoking an executable:
69
69
dotenv -f mydotenvfile myprogram
70
70
```
71
71
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
+
72
79
Hint: The ` env ` program in most Unix-like environments prints out the
73
80
current environment settings. By invoking the program ` env ` in place
74
81
of ` myprogram ` above you can see what the environment will look like
75
- after evaluating multiple Dotenv files.
82
+ after evaluating multiple Dotenv files.
76
83
77
84
## Author
78
85
84
91
85
92
## Copyright
86
93
87
- (C) 2015-2016 [ Stack Builders Inc.] ( http://www.stackbuilders.com )
94
+ (C) 2015-2017 [ Stack Builders Inc.] ( http://www.stackbuilders.com )
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ config = Options
49
49
dotEnv :: MonadIO m => Options -> m ()
50
50
dotEnv opts = liftIO $ do
51
51
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)
54
53
exitWith code
54
+ where
55
+ programArguments = concatMap (" " ++ ) (args opts)
Original file line number Diff line number Diff line change 1
1
name : dotenv
2
- version : 0.3.1 .0
2
+ version : 0.3.2 .0
3
3
synopsis : Loads environment variables from dotenv files
4
4
homepage : https://github.com/stackbuilders/dotenv-hs
5
5
description :
You can’t perform that action at this time.
0 commit comments