60 Commits

Author SHA1 Message Date
Todd Bluhm
0846e5d6a5
fix(expand-envs): test more edge cases 2025-08-06 00:26:33 -08:00
Nicholas Krul
f47b9f3c63
chore: update readme for new option 2025-08-06 00:07:11 -08:00
Todd Bluhm
abf4cca56d
chore(README): update for -r and -f flag changes 2025-07-12 01:23:30 -08:00
Todd Bluhm
9942f3c448
fix(commander)!: updated code for new version 2024-12-03 05:38:40 -09:00
Todd Bluhm
a0c8f2fad0
chore(readme): fix readme file, update husky config 2024-12-01 03:32:37 -09:00
Todd Bluhm
19e91648b5
docs: update readme badges 2020-04-16 20:40:28 -05:00
Todd Bluhm
92ad24c735
docs: update readme badges to include windows 2020-02-21 17:44:19 -06:00
Todd Bluhm
e19409f4d9
chore: added editorconfig
- updated code style badge in readme
- moved commitlint settings to package.json
2020-02-20 04:29:30 -06:00
Todd Bluhm
f8a3173fda
feat(ci): change to github actions for ci 2020-02-17 20:56:06 -06:00
Todd Bluhm
361f731f88
docs(readme): update variable expansion docs 2020-02-10 20:00:47 -06:00
Todd Bluhm
020998a077
docs(readme): added expand env and silent docs
- Added some additional fun and helpful emoji to the docs
2020-02-10 00:43:27 -06:00
omeid matten
8318637c48 feat: Support env vars expansion in cmd and args
This pull request adds support for expanding environment variable
expansion support. Closes #91

Since the user controls the call site of cmd-env, it only supports
basic UNIX style $var format. `%var%` (windows) or `${var}` is not
supported. However, you can escape variable expansion by escaping
the dollar sign like so `\$`.

Signed-off-by: omeid matten <public@omeid.me>
2019-11-28 16:20:42 +11:00
Todd Bluhm
5d685b67ff
feat(flags): add --verbose flag and option 2019-11-15 12:40:37 -06:00
Sean McPherson
27afb757fe Fix typo (#100) 2019-11-14 14:44:44 -06:00
Todd Bluhm
c00dd73531
chore(readme): reference ts-standard instead of js-standard 2019-11-01 00:26:45 -05:00
Todd Bluhm
bbc4b78ad2
Convert over to using ts-standard
- Removed all the various eslint dependencies and added ts-standard
- Updated Readme file with some minor changes
- Updated dist folder to have one level again
2019-08-29 23:39:32 -05:00
Gregory Waxman
ae7981691e Added Env default locations (#81)
* Added env default locations to match rc file locations

* Updated README to clarify all supported files and their formats

* Added new test to verify all env files are searched for
2019-08-28 02:25:15 -05:00
purificant
45847ec834 fix small typo (#78) 2019-07-26 15:57:32 -05:00
Todd Bluhm
727f429a7e
Remove package-lock file, update npm keywords, fix badges in Readme 2019-06-06 20:43:05 -05:00
Simone Busoli
5d8fae4c75 Detail the expected format of async env file (#67)
Clarify in README file the export format for synchronous or asynchronous `.js` files
2019-05-30 01:07:12 -05:00
Todd Bluhm
a7bba44079
Add clarification around using the new custom env file path usage 2019-05-10 13:04:51 -05:00
greenkeeper[bot]
af9686b7a0 docs(readme): add Greenkeeper badge (#60) 2019-05-06 05:42:03 -05:00
Todd Bluhm
b1ad7e4902
Documentation updates and lint command changes
- Fixed some minor documentation issues
- Added tsc command to npm run lint to check for typescript errors
when linting
2019-05-05 21:11:19 -05:00
Todd Bluhm
4463e553e7
Updates to Readme and CLI help text 2019-05-04 16:01:59 -05:00
Todd Bluhm
4b37f41bab
Readme updates 2019-05-04 15:17:03 -05:00
Todd Bluhm
3534069ece Add --use-shell option
- Added test cases for new option
- Fixed up other test cases
- Fixed code coverage issue
2019-05-04 05:35:26 -05:00
Todd Bluhm
0523d994be
More Readme file tweaks 2019-05-04 04:05:33 -05:00
Todd Bluhm
9171dc06cb
More Readme file tweaks 2019-05-04 03:22:06 -05:00
Todd Bluhm
dc06c40e9c
Add in programmatic API docs 2019-05-04 03:18:20 -05:00
Todd Bluhm
2509f2cef7
Readme file tweaks 2019-05-04 02:47:22 -05:00
Todd Bluhm
4990ab3ccd
Add async .rc file support
- Updates to Readme file
2019-05-04 02:27:27 -05:00
Todd Bluhm
56ed009d7b
Convert EnvCmd to Typescript
- Complete rewrite and reorganization
- Expose a usable programmatic API
- Support Async .env files by accepting javascript files
- Update all libraries/dependencies
- Support for more options in the future by using commanderjs
- More thorough test cases and code-coverage
- Better handling of signal terminations for both parent and child
processes
- Use ESLint Standard with Typescript
2019-05-04 02:16:03 -05:00
Todd Bluhm
9fcfd621dd
Update README and travis ci config 2018-10-27 13:56:32 -05:00
Todd Bluhm
7da026a121
Drop node v4 support, updated dev deps and added examples link
- Drop support for node v4
- Update dev dependencies sinon and nyc
- Updated package-lock file
- Updated license file year text
- Added examples link to readme
- Added node 10 version to automated testing
2018-10-19 15:38:44 -05:00
Todd Bluhm
28bd3845e7 Allow for using absolute pathing, ~ pathing, and relative pathing (#30)
* Allow for using absolute pathing, ~ pathing, and relative pathing

* Add test cases for `./` and `../` pathing

* Update Readme file with new path rules
2017-09-25 13:39:06 -05:00
Todd Bluhm
bff0958576 Refactor fallback behavior to require a --fallback flag (#28)
* Refactored fallback behavior to require a --fallback flag

- By default env-cmd will no longer crash if .env or .env-cmdrc files
are not found
- In order to use the old default .env file fallback functionality a
--fallback flag must be passed

* Update minimum nodejs version and update Readme file

* Fix coverage

* Reduce minimum nodejs version down to v4

* Minor readme tweaks
2017-09-21 17:44:35 -05:00
Todd Bluhm
a73616073f Fixed coverage and updated Readme file 2017-09-21 17:12:18 -05:00
Todd Bluhm
51359195d9
Updated package to 5.1.0
- Added new contributor
- Updated changelog
2017-04-18 12:44:13 -04:00
Anton Versal
7e29082fa7 fixes according to amendments 2017-04-18 12:29:50 -04:00
Anton Versal
494cddb9cd add —no-override option 2017-04-18 12:29:50 -04:00
Todd Bluhm
7a26c4297f Update README.md
Minor readme fixes
2017-03-31 11:53:31 -04:00
Todd Bluhm
909df18ddb
Fix the # comment in env var name issue 2017-03-03 01:26:05 -05:00
Alexander Praetorius
fa24b79ca8 UPDATE readme describe .env fallback option 2017-02-21 10:00:17 +01:00
Todd Bluhm
104475c11d
Minor README tweaks 2016-12-06 21:52:00 -08:00
Todd Bluhm
6b60e3c27f
Fix bug when including a # in the env value
- Fixed a bug that caused a # symbol in the env value to be interpreted
as an inline comment
- When you want to include a # in you value, you need to wrap it in
double quotes: ENV=“some#symbol value”
2016-12-06 21:29:26 -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
a43365e787 Putting my name all over it (toddbluhm/env-cmd#10) 2016-11-21 15:17:40 -05:00
Jon Scheiding
c3805e79b0 Updated README (toddbluhm/env-cmd#10) 2016-11-15 14:42:21 -05:00
Todd Bluhm
6eb62a16de Update README.md
Update badge's maxAge to tailor it more appropriately for each badge
2016-11-01 00:45:58 -04:00
Eric Lanehart
0d2f0452a2 Credit contributors 2016-09-22 08:25:00 -04:00