▲ 1 ▼ Run any command with a .env file for environment
Because one cannot always modify source code to include a library to load the environment from a file, and doing it from a shell is more than arcane, I wrote this tiny `envrun` command: it will run you command with environment defaults loaded from `.env` or any env file specified, without having to modify the command itself.
Register to comment or vote on this story
Ok but godotenv is already able to do that. It can be used as a library and an executable godotenv -f /some/path/to/.env some_command with some args". I missed something ?
EDIT: Ok I understand the use case. It's to export vars from an env file. Sorry, I missed the point :)