Commit Graph

174 Commits (main)

Author SHA1 Message Date
John Barton d6ee6871f2
Merge pull request #95 from orxobo/Write-adjustment
Fixed Write bugs
2020-03-02 07:46:15 +11:00
orxobo dbcf4b53b8
Fixed Write bugs
This should address a fix #93 and #94
This has not been addressed in any tests.
2020-02-11 17:05:34 +10:00
John Barton b09de681dc
Merge pull request #90 from djherbis/master
#89 move regexp.MustCompile to globals
2019-10-21 07:25:22 +11:00
Dustin H 992ab0ec47
#89 move regexp.MustCompile to globals 2019-10-18 10:35:15 -04:00
John Barton 5c0e6c6ab1
Merge pull request #69 from hairyhenderson/ignore-leading-whitespace
Fixing a couple whitespace bugs: ignoring leading whitespace, and supporting more kinds of empty lines
2019-02-04 15:41:09 +11:00
John Barton 61baafa627
Merge branch 'master' into ignore-leading-whitespace 2019-02-04 15:28:23 +11:00
John Barton 823f94bb9a
Merge pull request #70 from hairyhenderson/support-keys-beginning-with-export-66
Support key names beginning with 'export'
2019-02-04 15:26:24 +11:00
Dave Henderson 263a1dda9d
Support key names beginning with 'export'
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2019-02-03 23:11:51 -05:00
Dave Henderson 79711eebaf
Ignoring leading whitespace
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2019-02-03 22:39:38 -05:00
John Barton 69ed1d913a
Merge pull request #63 from mdanzinger/patch-1
Update cmd.go
2018-11-21 06:47:48 +11:00
John Barton 2841430efc
An even tinier grammar fix
I read `.env` aloud as dotenv so the A makes sense.
2018-11-21 06:41:23 +11:00
Mendy Danzinger 5917dd2291
Update cmd.go
Tiny little grammatical error.
2018-11-20 13:25:32 -05:00
John Barton c0b86d615e
Merge pull request #60 from coolaj86/precedence
explicitly state env precedence and convention
2018-09-27 15:32:03 +10:00
AJ ONeal 3896766f7d explicitly state env precedence and convention 2018-09-24 21:35:43 -06:00
John Barton 23d116af35
Merge pull request #58 from lucastetreault/master
feat(Expand Variables): Custom variable expansion instead of Go's os.Expand
2018-09-11 18:04:31 +10:00
Lucas Tétreault 2d8b3aab88 feat(Expand Variables): Custom variable expansion instead of Go's os.Expand
Copy over the tests from https://github.com/bkeepers/dotenv/blob/master/spec/dotenv/parser_spec.rb
related to expanding variables and implement the required changes. I also realized as part of this
that this implementation was not handling values in single quotes properly (e.g.: not the same was
as the ruby package mentionned) so that has been fixed as well along with the related tests.

Fixes: #52
2018-09-11 00:55:10 -06:00
John Barton 1709ab122c
Merge pull request #54 from egorse/master
The value expand fallback to actual ENV values
2018-04-05 15:36:34 +10:00
egorse 8ad714e304 The value expand fallback to actual ENV values 2018-03-31 23:18:36 +03:00
John Barton 6bb0851667
Merge pull request #47 from sachaos/feature-expand-variables-on-value
Support variable substitution in dotenv files
2018-01-15 13:49:21 +11:00
John Barton 06e67b5ef3
Update my homepage link 2017-12-23 10:35:39 +11:00
Takumasa Sakao 2707e9ff66 Fix test, `$` should not be escaped 2017-11-20 23:41:46 +09:00
Takumasa Sakao 50c29652a0 Expand variables on parseValue 2017-11-20 23:20:38 +09:00
Takumasa Sakao 33977c2d8d Add test for substitutions 2017-11-20 23:20:19 +09:00
Takumasa Sakao 9be76b3741 Pass envMap to parseLine & parseValue 2017-11-20 22:21:39 +09:00
John Barton 6d367c18ed
Merge pull request #46 from joho/fix_quoting_parser_bug
WIP Parsing bug with nested quotes
2017-11-10 12:03:15 +11:00
John Barton (joho) 05be8ccbf7 Try and replicate reported bug #45 2017-11-10 10:38:18 +11:00
John Barton 0f92a24bb0
Merge pull request #44 from dvrkps/patch-1
travis: update go version
2017-11-02 13:11:18 +11:00
Davor Kapsa b7bbb3624e
travis: update go version 2017-11-01 07:18:32 +01:00
John Barton a79fa1e548 Merge pull request #41 from alexquick/document-write-dotenv
Document Marshal, Unmarshal, and Write
2017-09-18 16:32:59 +10:00
John Barton 144189c1ed Merge pull request #42 from alexquick/feature-sorted-output
Sort output of Marshal/Write
2017-09-18 16:32:10 +10:00
Alex Quick 3dd2dbe832 sort output of Write/Marshal 2017-09-16 18:02:27 -04:00
Alex Quick 9f04f40640 Be more careful with TestRoundtrip 2017-09-16 17:55:04 -04:00
Alex Quick e6264cf869 document Marshal, Unmarshal, and Write 2017-09-16 17:12:55 -04:00
John Barton 9739509bea Merge pull request #35 from alexquick/feature-write-dotenv
support for writing envs out in dotenv format
2017-09-13 22:32:30 -07:00
Alex Quick b1bb9d9fc3 rename WriteString/ReadString to Marshal/Unmarshal 2017-09-14 00:24:22 -04:00
Alex Quick 5d289f4405 escape some other bash-y special chars ($!) 2017-09-13 23:13:08 -04:00
Alex Quick 88e7c8bd35 support for writing envs out in dotenv format 2017-09-13 23:13:08 -04:00
John Barton c9360df4d1 Merge pull request #34 from alexquick/fix-parsing-issues
Fix some small parsing bugs
2017-08-22 14:21:26 +10:00
John Barton 59f20222da Merge pull request #33 from crash7/go-report-card
Add Go Report Card badge and fix spelling error
2017-08-22 14:17:51 +10:00
John Barton 9d9ddadf44 Merge pull request #36 from pda/parse-from-reader
Parse(reader) as alternative to Read(filenames)
2017-08-06 18:28:30 +10:00
Paul Annesley 390de3704e README.md mentions Parse(io.Reader) 2017-08-06 17:34:10 +10:00
Paul Annesley ebf1036af6 Parse(io.Reader) => map[string]string 2017-08-06 17:34:10 +10:00
Alex Quick a905e99577 fix panic with `"` as the value 2017-07-16 18:43:49 -04:00
Alex Quick 6f30f0c011 support for equals in yaml-style lines 2017-07-16 17:25:28 -04:00
Alex Quick 84bf91f40e rudimentry support for nested quotes 2017-07-16 17:24:36 -04:00
Alex Quick b9324c6f3c handle escaping more comprehensively 2017-07-16 17:15:29 -04:00
Christian Musa 12b7e03247 Add Go Report Card badge and fix spelling error 2017-07-14 21:33:04 -03:00
John Barton 3ddb2792f3 README housekeeping 2017-07-05 14:31:29 +10:00
John Barton 325433c502 Merge pull request #29 from joho/respect_empty_external_env_vars
Respect preset empty external env vars
2017-03-29 07:01:54 +11:00
John Barton (joho) 034acc2190 Change check of existing env to respect empty (but set) vars. 2017-03-28 11:54:56 +11:00