10 Commits

Author SHA1 Message Date
Todd Bluhm
fbbbf13e49
Add system env vars back into the env list
- After retrieving user set envs from a file, add the system envs back
into the envs object so that envs like PATH, etc… will exist for the
spawned command
2016-12-06 21:32:09 -08:00
Todd Bluhm
f37249e467
Added in support for .env-cmdrc file and updated to 3.0.0 2016-12-03 01:44:39 -06:00
Jon Scheiding
148d2ab000 Implemented handling for JavaScript files (toddbluhm/env-cmd#10) 2016-11-15 14:40:21 -05:00
Eric Lanehart
5c77fc195f Add support for JSON format
Short circuits custom parser with node’s module loader when given file has a .json extension
2016-09-15 13:01:59 -04:00
Todd Bluhm
fbb5ac6d68
Regex for parsing, support inline comments, support key value format
- Moved over to using regex for parsing the env file
- Added support for inline comments
- Added support for `key value` pairing file format
- Will now ignore invalid lines in env file, instead of throwing an error
- Removed old test cases
- Added more specific test cases
2016-08-18 16:48:40 -05:00
Todd Bluhm
39616b70b1 Removed -e/--env flags, allow # comment lines in env file, bug fixes
- Removed the -e/--env flags in favor of just requiring the first arg to
env-cmd to be the relative path to the env file
- Comments are now valid in env files using the #
- Empty lines in env file are now ignored
- Fixed bug env file no longer needs to end on a newline
2016-08-17 16:24:01 -05:00
Todd Bluhm
a2777a636c Fix test coverage 2016-08-17 01:09:58 -05:00
Todd Bluhm
39c0760630 Added help text, handle uncaught errors, added .npmignore 2016-08-17 00:55:16 -05:00
Todd Bluhm
f0bcce1441 Travis tweaks, make compatible with node v4 2016-08-16 21:50:21 -05:00
Todd Bluhm
afc512c641 Initial code commit 2016-08-16 21:34:05 -05:00