Commit Graph

174 Commits (main)

Author SHA1 Message Date
John Barton (joho) cd1272609d Add failing test for override of empty var 2017-03-28 11:39:40 +11:00
John Barton eaf676fc03 Merge pull request #27 from goenning/empty_var
allow usage of empty var on .env
2017-03-23 07:07:31 +11:00
Oenning a42a65518c allow empty_var 2017-03-22 13:05:44 +00:00
John Barton b01826f956 Merge pull request #25 from matiasanaya/master
Fix quoted values check
2017-03-21 20:56:48 +11:00
Matias Anaya 6a1233b2f6 Fix quoted values check 2017-03-21 19:04:19 +11:00
John Barton d10b3fbe00 Merge pull request #24 from joho/setup_travis
Move CI
2017-02-22 08:49:41 +11:00
John Barton (joho) 0a959c8d8f Add a badge for the windows build too. 2017-02-22 08:43:40 +11:00
John Barton (joho) bcaccd4f68 Apparently this file is meant to be hidden? 2017-02-22 08:29:43 +11:00
John Barton (joho) 22e45bfff4 Switch build badge over to travis 2017-02-22 08:27:57 +11:00
John Barton (joho) 2fc79dff51 Replace wercker.yml with travis.yml 2017-02-22 08:23:25 +11:00
John Barton 726cc8b906 Merge pull request #22 from mmilata/dont-swallow-errors
Improve error handling
2016-12-17 10:05:37 +11:00
Martin Milata 861984c215 Don't hide line parsing errors 2016-12-12 14:43:30 +01:00
Martin Milata 0ff0c0fc7a Propagate errors encountered when reading file 2016-12-12 14:41:36 +01:00
John Barton 4ed13390c0 Merge pull request #13 from jmervine/master
Add Overload methods.
2015-09-07 11:02:28 +10:00
Josh Mervine 008304c688 adding Overload method 2015-09-05 08:59:08 -07:00
John Barton 443e926da0 Merge pull request #11 from buddhamagnet/master
Remove unecessary assignment in autoloader
2015-06-10 07:30:23 +10:00
buddhamagnet 2ed25fcb28 remove unecessary assignment in autoloader 2015-06-09 18:24:15 +01:00
John Barton (joho) f6581828bb outdent else because golint said so. 2015-03-23 12:17:14 +11:00
John Barton (joho) d29c003c20 Still trying to please golint with package comments. 2015-03-23 12:15:55 +11:00
John Barton (joho) 19b5c2bf30 Some golint feedback from http://goreportcard.com/report/joho/godotenv 2015-03-23 12:15:01 +11:00
John Barton (joho) e1c92610d7 run `gofmt -w -s ./..` 2015-03-23 12:06:31 +11:00
John Barton ead2e75027 Merge pull request #8 from calavera/add_values_to_envmap
Fix issue reading file.
2015-01-02 15:46:44 +11:00
David Calavera dc9cc93c4e Add values to the envMap when reading the file.
But do not override values in the global environment.
2014-12-23 17:57:02 -08:00
John Barton (joho) a01a834e16 Update docs for the bin command. 2014-10-12 10:38:08 +11:00
John Barton (joho) d2ce5befea Move cmd.go so it installs as "godotenv" 2014-10-12 10:27:22 +11:00
John Barton a86c254d7d Merge pull request #6 from joho/add_bin_command
Add a bin command
2014-10-12 09:58:57 +11:00
John Barton (joho) 1736a884e7 Improve godoc on Read and Exec 2014-10-12 09:58:10 +11:00
John Barton (joho) b2cd7d822b Move the env loadings & command running into main package. 2014-10-12 09:50:38 +11:00
John Barton (joho) 8c38c298ed Get the minimum viable of the command working.
Stripped debug code out
Tidied up some flag handling
Get it working with and without the -f flag.
2014-09-21 10:42:05 +10:00
John Barton (joho) 28b52615cf WIP on adding a bin command 2014-09-20 21:38:51 +10:00
John Barton (joho) aab3ea4ba6 Add CI badge for windows from Appveyor. 2014-07-14 20:10:23 +10:00
John Barton (joho) 8350eb932e Remove commented out code and go fmt tests. 2014-07-14 19:36:35 +10:00
John Barton 68b1921266 Merge pull request #4 from GoIncremental/4-windows-line-returns
Tests failing on Windows
2014-07-14 19:35:09 +10:00
David Bochenski bdacd70f4c fixup 2014-07-10 10:14:38 +01:00
David Bochenski ae0bc4ea3c Fix remaining failing test on windows 2014-07-09 15:35:36 +01:00
David Bochenski 9c77c4efaf Closes #4 Use bufio.Scanner to read newLines 2014-06-25 16:26:24 +01:00
John Barton 3c13a80fe1 Merge pull request #3 from ys/feature/accept-equals-in-values
Use SplitN instead of split
2014-03-10 14:25:32 +11:00
Yannick Schutz 7e3e1e2c6c Use SplitN instead of split 2014-03-07 23:21:31 +01:00
John Barton 3505098f90 Merge pull request #2 from mattn/seveal_equals
FOO=BAR= should be "FOO" = "BAR="
2013-11-18 01:49:12 -08:00
mattn c0dce90b3c FOO=BAR= should be "FOO" = "BAR=" 2013-11-18 18:46:24 +09:00
John Barton (joho) 6e333bd708 add godotenv.Read() which returns a map rather than calling os.Setenv 2013-09-04 12:40:57 +10:00
John Barton 38f18b8248 Merge pull request #1 from wolfeidau/readme_corrections
Small correction to code in the README.
2013-09-03 03:37:38 -07:00
Mark Wolfe 4392e21bf6 Small correction to code in the README. 2013-09-03 18:34:37 +10:00
John Barton (joho) 05b73c4383 Fix the autoload package. 2013-08-06 20:00:06 +10:00
John Barton (joho) 5efd3c5b44 Do more of the documenting. 2013-08-02 14:33:40 +10:00
John Barton (joho) d00d0f7ef4 Turns out there was an easier way to read the env file. 2013-08-02 13:40:38 +10:00
John Barton (joho) 5896be1361 Add the ability to autoload the env file when you import. 2013-07-31 19:46:42 +10:00
John Barton (joho) 42920bbe5d Write up something for "go doc" 2013-07-31 14:54:21 +10:00
John Barton (joho) 85e631994e Update readme 2013-07-31 14:38:18 +10:00
John Barton (joho) 9ec71cc6c8 Make sure we don't overwrite existing ENV vars. 2013-07-31 14:25:10 +10:00