markbates / refresh

MIT License
191 stars 30 forks source link

Add dot env files support #39

Closed joseluisq closed 3 years ago

joseluisq commented 4 years ago

This PR allows to load a custom .env file via github.com/joho/godotenv introducing a new file_env config entry (FileEnv string) which is empty by default meaning that refresh does not load any .env if it's not explicitly specified.

refresh.yml example:

# ....
command_env: []
file_env: "some_file.env"
enable_colors: true
# ....