Skip to content

Commit 5b717e6

Browse files
nkrultoddbluhm
authored andcommitted
chore: update readme for new option
1 parent bc80459 commit 5b717e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Options:
6666
--silent Ignore any env-cmd errors and only fail on executed program failure.
6767
--use-shell Execute the command in a new shell with the given environment
6868
--verbose Print helpful debugging information
69-
-x, --expand-envs Replace $var in args and command with environment variables
69+
-x, --expand-envs Replace $var and ${var} in args and command with environment variables
70+
--recursive Replace $var and ${var} in env file with the referenced environment variable
7071
-h, --help output usage information
7172
```
7273

@@ -129,14 +130,14 @@ commands together that share the same environment variables.
129130
```
130131

131132
### Asynchronous env file support
132-
133+
133134
EnvCmd supports reading from asynchronous `.env` files. Instead of using a `.env` file, pass in a `.js`
134135
file that exports either an object or a `Promise` resolving to an object (`{ ENV_VAR_NAME: value, ... }`). Asynchronous `.rc`
135136
files are also supported using `.js` file extension and resolving to an object with top level environment
136137
names (`{ production: { ENV_VAR_NAME: value, ... } }`).
137-
138+
138139
**Terminal**
139-
140+
140141
```sh
141142
./node_modules/.bin/env-cmd -f ./async-file.js -- node index.js
142143
```

0 commit comments

Comments
 (0)