15 Commits

Author SHA1 Message Date
Todd Bluhm
18e8a28148
fix(recursive): cleaned up after rebase 2025-08-06 00:09:16 -08:00
Nicholas Krul
53f4549001
feat: recursive embedding of env vars in env vars 2025-08-06 00:05:00 -08:00
Kyle Hensel
99774970f4
chore: don't convert strings to numbers/booleans in the API
also added test cases for invalid files
2025-01-10 22:15:55 +11:00
Kyle Hensel
865199591b
feat(cli): provide a more helpful error if there's no command 2024-12-10 18:13:29 +11:00
Todd Bluhm
f8106ac44a
feat(esm): convert to using esm modules 2024-12-02 10:30:43 -09:00
Todd Bluhm
26f4dfb2f6
chore(pkg): new linter and updated typescript support 2024-11-30 04:42:45 -09:00
Todd Bluhm
e66cfc10f1
chore(package): update dependencies 2020-03-20 17:20:18 -05: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
Todd Bluhm
27a2705706
feat(flags): add silent flag to ignore errors
- add silent flag to ignore env-cmd errors and missing file errors, but still terminate on signals and child process failures
2020-02-09 21:34:52 -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
Todd Bluhm
f5e2e33939
Updated typescript-eslint packages and fixed lint errors
- Updated commander
- Brought coverage back up to 100%
- Updated tsconfig to adhere to linter parser update
2019-08-28 03:13:50 -05:00
Todd Bluhm
012230dd8a
Exit with non-zero error code when an error occurs
- Added an `npm run watch` command auto-recompilation of typescript files
- Updated Changelog
2019-05-29 23:47:16 -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
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